:root {
    --bg-dark: #030305;
    --bg-card: rgba(15, 15, 20, 0.4);
    --text-main: #ffffff;
    --text-muted: #9494a0;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    --accent: #ffffff;
    --primary-glow: rgba(59, 130, 246, 0.1);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Premium Radial Background Glows */
body::before {
    content: '';
    position: fixed;
    top: -20vh; left: -10vw; width: 60vw; height: 60vh;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.07) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20vh; right: -10vw; width: 60vw; height: 60vh;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
}

/* Subtle background grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, .logo {
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(3, 3, 5, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
    border-radius: 4px; /* Slight softening for modern B2B */
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}

.btn-primary:hover:not(:disabled) {
    background: #e5e5e5;
    box-shadow: 0 6px 20px rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-large {
    padding: 1.2rem 2.8rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 5rem;
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.hero h1 {
    font-size: 5.5rem;
    line-height: 1.05;
    margin-bottom: 2rem;
}

.hero h1 span {
    color: var(--text-muted);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    font-weight: 300;
}

/* Stats Banner */
.stats-banner {
    padding: 4rem 0;
}

.border-top-bottom {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.stat-number::after {
    content: '+';
    color: var(--text-muted);
    font-size: 1.5rem;
    vertical-align: super;
    margin-left: 2px;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Philosophy */
.philosophy {
    padding: 150px 0;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.phil-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.phil-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Data Graph Animation Block */
.graph-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.graph-header { display: flex; gap: 2rem; margin-bottom: 2rem; }
.g-metric { display: flex; flex-direction: column; }
.g-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 5px; }
.g-value { font-size: 1.8rem; font-weight: 700; }
.highlight-blue { color: #3b82f6; }
.highlight-green { color: #10b981; }

.animated-chart { width: 100%; height: auto; overflow: visible; }
.grid-line { stroke: rgba(255,255,255,0.05); stroke-width: 1; fill: none; }
.chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.blue-line { stroke: #3b82f6; }
.green-line { stroke: #10b981; }
.blue-area { fill: url(#blue-grad); }
.green-area { fill: url(#green-grad); }

.chart-area { opacity: 0; transition: opacity 1s ease 1s; }
.node { fill: var(--bg-dark); stroke-width: 2; opacity: 0; transition: opacity 0.3s ease 1.5s; }
.blue-node { stroke: #3b82f6; }
.green-node { stroke: #10b981; }

/* The Draw Animation controlled by Javascript Scroll Reveal */
.chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}
.phil-image.active .chart-line {
    animation: drawLine 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.phil-image.active .chart-area { opacity: 1; }
.phil-image.active .node { opacity: 1; }

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* Services */
.services {
    padding: 100px 0 150px 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.services-wrapper {
    border-top: 1px solid var(--border);
}

.service-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    padding: 3.5rem 2rem;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    border-radius: 12px;
    margin: 1rem 0;
}

.service-row:hover {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(1.01);
}

.s-num {
    font-size: 1rem;
    color: var(--text-muted);
}

.s-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.s-content p {
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
}

/* Contact */
.contact {
    padding: 150px 0;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(to right, transparent, var(--border-hover), transparent);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-weight: 300;
    max-width: 400px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.c-method {
    font-size: 1.1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.01);
}

.c-method:hover {
    color: var(--text-main);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}

.contact-form-container {
    padding: 3rem;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

label {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

input, textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

textarea {
    height: 120px;
    resize: none;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    display: none;
}
.form-status.success { color: #4ade80; display: block; }
.form-status.error { color: #f87171; display: block; }

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.f-brand {
    font-weight: 700;
    font-size: 1.2rem;
}

.f-links {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .hero h1 { font-size: 4.5rem; }
    .contact-wrapper { gap: 3rem; }
    .contact-form-container { padding: 2rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 3.2rem; }
    .philosophy-grid { grid-template-columns: 1fr; gap: 3rem; }
    .stats-grid { grid-template-columns: 1fr; gap: 3rem; }
    .service-row { grid-template-columns: 1fr; gap: 1rem; padding: 2rem 1.5rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0rem; }
}
