/* ========================================
   DESIGN TOKENS
   ======================================== */
:root {
    /* Colors */
    --teal-500: #14B8A6;
    --teal-400: #2DD4BF;
    --teal-600: #0D9488;
    --cyan-400: #22D3EE;
    --navy-900: #0F172A;
    --navy-800: #1E293B;
    --navy-700: #334155;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --slate-300: #CBD5E1;
    --white: #FFFFFF;
    
    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--teal-500) 0%, var(--cyan-400) 100%);
    --gradient-brand-dark: linear-gradient(135deg, var(--teal-600) 0%, var(--teal-500) 100%);
    --gradient-bg: linear-gradient(180deg, var(--navy-900) 0%, #0A0F1C 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(20, 184, 166, 0.12) 0%, transparent 70%);
    
    /* Typography */
    --font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: clamp(4rem, 10vw, 8rem);
    --container-max: 1280px;
}

/* ========================================
   LIGHT THEME OVERRIDES
   ======================================== */
[data-theme="light"] {
    --navy-900: #F8FAFC;
    --navy-800: #F1F5F9;
    --navy-700: #E2E8F0;
    --slate-500: #64748B;
    --slate-400: #64748B;
    --slate-300: #334155;
    --white: #0F172A;
    --gradient-bg: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
}

[data-theme="light"] .nav.scrolled {
    background: rgba(248, 250, 252, 0.95);
    border-bottom: 1px solid rgba(20, 184, 166, 0.15);
}

[data-theme="light"] .logo-icon svg path {
    stroke: #FFFFFF;
}

[data-theme="light"] .hero-grid {
    background-image:
        linear-gradient(rgba(20, 184, 166, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 184, 166, 0.06) 1px, transparent 1px);
}

[data-theme="light"] .value-bar {
    background: rgba(241, 245, 249, 0.8);
    border-color: rgba(20, 184, 166, 0.15);
}

[data-theme="light"] .service-card {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.8) 0%, rgba(248, 250, 252, 0.8) 100%);
    border-color: rgba(20, 184, 166, 0.15);
}

[data-theme="light"] .service-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .why-image {
    background: linear-gradient(135deg, #F1F5F9 0%, #F8FAFC 100%);
}

[data-theme="light"] .metric-card {
    background: rgba(241, 245, 249, 0.9);
}

[data-theme="light"] .job-card {
    background: rgba(241, 245, 249, 0.5);
    border-color: rgba(20, 184, 166, 0.15);
}

[data-theme="light"] .job-card:hover {
    background: rgba(241, 245, 249, 0.8);
}

[data-theme="light"] .careers {
    background: linear-gradient(180deg, transparent 0%, rgba(241, 245, 249, 0.8) 100%);
}

[data-theme="light"] .cta-card {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(34, 211, 238, 0.04) 100%);
}

[data-theme="light"] .cta-card::before {
    opacity: 0.03;
}

[data-theme="light"] .footer {
    border-top-color: rgba(20, 184, 166, 0.15);
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(100, 116, 139, 0.2);
}

[data-theme="light"] .social-link {
    background: rgba(241, 245, 249, 0.8);
    border-color: rgba(20, 184, 166, 0.15);
}

[data-theme="light"] .social-link svg {
    fill: #334155;
}

[data-theme="light"] .btn-primary {
    color: #0F172A;
}

[data-theme="light"] .btn-secondary {
    border-color: rgba(20, 184, 166, 0.4);
    color: #0D9488;
}

[data-theme="light"] .data-flow-path {
    opacity: 0.12;
}

[data-theme="light"] .hero-particles span {
    background: var(--teal-600);
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--navy-900);
    transition: background-color 0.3s ease, color 0.3s ease;
    color: var(--slate-300);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   UTILITIES
   ======================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
    padding: 0.75rem 0;
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-brand);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-primary {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.logo-sub {
    font-size: 0.55rem;
    font-weight: 500;
    color: var(--slate-400);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--slate-300);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--teal-400);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-brand);
    color: var(--navy-900);
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--teal-400);
    border: 1px solid var(--teal-500);
}

.btn-secondary:hover {
    background: rgba(20, 184, 166, 0.1);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--teal-400);
    transition: all 0.3s ease;
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--slate-400);
    margin-left: 1rem;
}

.theme-toggle:hover {
    border-color: rgba(20, 184, 166, 0.4);
    background: rgba(20, 184, 166, 0.1);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    stroke: var(--slate-400);
    transition: stroke 0.3s ease;
}

.theme-toggle:hover svg {
    stroke: var(--teal-400);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 6rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-bg);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: var(--gradient-glow);
    animation: pulse 8s ease-in-out infinite;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(20, 184, 166, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 184, 166, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--teal-400);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease forwards;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--teal-400);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--slate-400);
    max-width: 600px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-visual {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 80%;
    display: none;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .hero-visual { display: block; }
}

/* Data Flow Visualization */
.hero-data-flow {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-data-flow svg {
    width: 100%;
    height: 100%;
}

.data-flow-path {
    fill: none;
    stroke: url(#flowGradient);
    stroke-width: 1.5;
    opacity: 0.08;
    stroke-dasharray: 300 600;
    stroke-dashoffset: 900;
    animation: dataFlow 8s linear infinite;
}

.data-flow-path:nth-child(2) { animation-delay: -1.5s; animation-duration: 10s; opacity: 0.06; }
.data-flow-path:nth-child(3) { animation-delay: -3s; animation-duration: 7s; opacity: 0.1; }
.data-flow-path:nth-child(4) { animation-delay: -5s; animation-duration: 12s; opacity: 0.05; }
.data-flow-path:nth-child(5) { animation-delay: -2s; animation-duration: 9s; opacity: 0.07; }
.data-flow-path:nth-child(6) { animation-delay: -4s; animation-duration: 11s; opacity: 0.06; }

@keyframes dataFlow {
    from { stroke-dashoffset: 900; }
    to { stroke-dashoffset: 0; }
}

.data-flow-node {
    fill: var(--teal-400);
    opacity: 0;
    animation: nodeGlow 4s ease-in-out infinite;
}

.data-flow-node:nth-child(8)  { animation-delay: 0.5s; }
.data-flow-node:nth-child(9)  { animation-delay: 1.2s; }
.data-flow-node:nth-child(10) { animation-delay: 2.1s; }
.data-flow-node:nth-child(11) { animation-delay: 0.8s; }
.data-flow-node:nth-child(12) { animation-delay: 1.8s; }
.data-flow-node:nth-child(13) { animation-delay: 2.5s; }
.data-flow-node:nth-child(14) { animation-delay: 3.0s; }
.data-flow-node:nth-child(15) { animation-delay: 1.5s; }

@keyframes nodeGlow {
    0%, 100% { opacity: 0; r: 2; }
    50% { opacity: 0.3; r: 3.5; }
}

/* Floating Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--teal-400);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 12s ease-in-out infinite;
}

.hero-particles span:nth-child(1) { left: 15%; top: 80%; animation-delay: 0s; animation-duration: 10s; }
.hero-particles span:nth-child(2) { left: 35%; top: 90%; animation-delay: 2s; animation-duration: 14s; }
.hero-particles span:nth-child(3) { left: 55%; top: 85%; animation-delay: 4s; animation-duration: 11s; }
.hero-particles span:nth-child(4) { left: 75%; top: 95%; animation-delay: 1s; animation-duration: 13s; }
.hero-particles span:nth-child(5) { left: 90%; top: 80%; animation-delay: 3s; animation-duration: 12s; }

@keyframes floatParticle {
    0%   { opacity: 0; transform: translateY(0) scale(1); }
    10%  { opacity: 0.6; }
    50%  { opacity: 0.3; transform: translateY(-40vh) scale(0.5); }
    100% { opacity: 0; transform: translateY(-80vh) scale(0); }
}

/* Text Rotator */
.hero-rotator {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 600;
    color: var(--slate-300);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.15s forwards;
    opacity: 0;
    display: flex;
    align-items: baseline;
    gap: 0.4em;
    flex-wrap: wrap;
    line-height: 1.4;
}

.hero-rotator__prefix {
    color: var(--white);
}

.hero-rotator__slot {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    min-width: 12em;
    height: 1.4em;
    overflow: hidden;
    vertical-align: baseline;
}

.hero-rotator__slot::before {
    content: '\200B';
    display: inline;
    line-height: 1.4;
}

.hero-rotator__word {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    line-height: 1.4;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-rotator__word.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-rotator__word.exit {
    opacity: 0;
    transform: translateY(-100%);
}

/* Hero Tagline */
.hero-tagline {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-500);
    margin-top: 2rem;
    margin-bottom: 0;
    animation: fadeInUp 0.6s ease 0.4s forwards;
    opacity: 0;
    letter-spacing: 0.02em;
}

/* ========================================
   VALUE BAR
   ======================================== */
.value-bar {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
    border-top: 1px solid rgba(20, 184, 166, 0.1);
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .value-grid { grid-template-columns: 1fr; }
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.value-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(20, 184, 166, 0.15);
}

.value-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--teal-400);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.value-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.value-desc {
    font-size: 0.8rem;
    color: var(--slate-400);
    line-height: 1.4;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--teal-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--slate-400);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);
    border: 1px solid rgba(20, 184, 166, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--teal-400);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--slate-400);
    line-height: 1.7;
}

/* ========================================
   WHY US SECTION
   ======================================== */
.why-us {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(20, 184, 166, 0.02) 50%, transparent 100%);
}

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

@media (max-width: 900px) {
    .why-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.why-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.why-content > p {
    font-size: 1.1rem;
    color: var(--slate-400);
    margin-bottom: 2rem;
}

.why-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.why-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.why-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: rgba(20, 184, 166, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.why-check svg {
    width: 14px;
    height: 14px;
    stroke: var(--teal-400);
}

.why-list li h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.why-list li p {
    font-size: 0.9rem;
    color: var(--slate-400);
}

.why-visual {
    position: relative;
}

.why-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
    border-radius: 24px;
    border: 1px solid rgba(20, 184, 166, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.why-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0.5;
}

/* Metrics Dashboard */
.metrics-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 400px;
}

.metric-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(20, 184, 166, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.metric-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.metric-card:nth-child(1) { transition-delay: 0s; }
.metric-card:nth-child(2) { transition-delay: 0.15s; }
.metric-card:nth-child(3) { transition-delay: 0.3s; }
.metric-card:nth-child(4) { transition-delay: 0.45s; }

.metric-card:hover {
    border-color: rgba(20, 184, 166, 0.3);
    transform: translateY(-4px);
    transition-delay: 0s;
}

.metric-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    position: relative;
}

.metric-icon svg {
    width: 48px;
    height: 48px;
}

.metric-ring circle {
    fill: none;
    stroke-width: 3;
}

.metric-ring .ring-bg {
    stroke: rgba(20, 184, 166, 0.15);
}

.metric-ring .ring-fill {
    stroke: url(#metricGradient);
    stroke-linecap: round;
    stroke-dasharray: 138;
    stroke-dashoffset: 138;
    transition: stroke-dashoffset 1.5s ease;
}

.metric-card.visible .ring-fill {
    stroke-dashoffset: var(--ring-offset);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta {
    padding: var(--section-padding) 0;
}

.cta-card {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(34, 211, 238, 0.05) 100%);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 24px;
    padding: clamp(3rem, 8vw, 5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

.cta-card h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
}

.cta-card p {
    font-size: 1.1rem;
    color: var(--slate-400);
    max-width: 500px;
    margin: 0 auto 2rem;
    position: relative;
}

.cta-card .btn {
    position: relative;
}

/* ========================================
   CAREERS SECTION
   ======================================== */
.careers {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.8) 100%);
}

.careers-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .careers-content { grid-template-columns: 1fr; }
}

.careers-intro h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.careers-intro p {
    color: var(--slate-400);
    margin-bottom: 1.5rem;
}

.job-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(20, 184, 166, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.job-card:hover {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(20, 184, 166, 0.3);
    transform: translateX(8px);
}

.job-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.job-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--slate-400);
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.job-arrow {
    width: 36px;
    height: 36px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.job-card:hover .job-arrow {
    background: var(--teal-500);
}

.job-arrow svg {
    width: 18px;
    height: 18px;
    stroke: var(--teal-400);
    transition: stroke 0.3s ease;
}

.job-card:hover .job-arrow svg {
    stroke: var(--navy-900);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(20, 184, 166, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand p {
    color: var(--slate-400);
    font-size: 0.95rem;
    margin-top: 1rem;
    max-width: 280px;
}

.footer-col h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    color: var(--slate-400);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--teal-400);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--slate-400);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(20, 184, 166, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(20, 184, 166, 0.1);
    border-color: rgba(20, 184, 166, 0.3);
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: var(--slate-400);
    transition: fill 0.3s ease;
}

.social-link:hover svg {
    fill: var(--teal-400);
}

/* ========================================
   MODALS & FORMS
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--navy-800);
    border: 1px solid rgba(20, 184, 166, 0.15);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 0;
    position: sticky;
    top: 0;
    background: var(--navy-800);
    z-index: 1;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.modal-close {
    width: 36px;
    height: 36px;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.15);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(20, 184, 166, 0.2);
}

.modal-close svg {
    width: 18px;
    height: 18px;
    stroke: var(--slate-400);
}

.modal-body {
    padding: 1.5rem;
}

/* Openings List */
.opening-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border: 1px solid rgba(20, 184, 166, 0.1);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.opening-item:hover {
    border-color: rgba(20, 184, 166, 0.3);
    background: rgba(20, 184, 166, 0.05);
}

.opening-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.35rem;
}

.opening-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--slate-400);
}

.opening-apply {
    padding: 0.5rem 1.25rem;
    background: var(--gradient-brand);
    border: none;
    border-radius: 8px;
    color: #0F172A;
    font-weight: 600;
    font-size: 0.8rem;
    font-family: var(--font-family);
    cursor: pointer;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.opening-apply:hover {
    opacity: 0.9;
}

/* Application Form */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-300);
    margin-bottom: 0.5rem;
}

.form-group label .required {
    color: var(--teal-400);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(20, 184, 166, 0.15);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font-family);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--teal-400);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--slate-500);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-input[type="file"] {
    padding: 0.6rem;
    font-size: 0.8rem;
}

.form-input[type="file"]::file-selector-button {
    padding: 0.4rem 0.8rem;
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 6px;
    color: var(--teal-400);
    font-family: var(--font-family);
    font-size: 0.8rem;
    cursor: pointer;
    margin-right: 0.75rem;
}

.form-input[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(20, 184, 166, 0.15);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font-family);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--teal-400);
}

[data-theme="light"] .form-select {
    background-color: rgba(241, 245, 249, 0.8);
    border-color: rgba(20, 184, 166, 0.15);
}

.form-submit {
    width: 100%;
    padding: 0.85rem;
    background: var(--gradient-brand);
    border: none;
    border-radius: 8px;
    color: #0F172A;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-family);
    cursor: pointer;
    transition: opacity 0.3s ease;
    margin-top: 0.5rem;
}

.form-submit:hover {
    opacity: 0.9;
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-status {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(20, 184, 166, 0.1);
    color: var(--teal-400);
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

@media (max-width: 500px) {
    .form-row { grid-template-columns: 1fr; }
    .modal { border-radius: 12px; }
    .opening-item { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* Light theme modal overrides */
[data-theme="light"] .modal {
    background: #FFFFFF;
    border-color: rgba(20, 184, 166, 0.15);
}

[data-theme="light"] .modal-header {
    background: #FFFFFF;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
    background: rgba(241, 245, 249, 0.8);
    border-color: rgba(20, 184, 166, 0.15);
}

[data-theme="light"] .opening-item {
    border-color: rgba(20, 184, 166, 0.12);
}

[data-theme="light"] .opening-item:hover {
    background: rgba(20, 184, 166, 0.04);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero h1 br { display: none; }

    .hero-rotator {
        flex-direction: column;
        gap: 0.2em;
        font-size: 1.1rem;
    }

    .hero-rotator__slot {
        min-width: 100%;
    }

    .hero-particles {
        display: none;
    }

    .hero-tagline {
        font-size: 0.8rem;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

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

/* ========================================
   SUB-PAGE STYLES
   ======================================== */
.page-hero {
    padding: 10rem 0 4rem;
    position: relative;
    overflow: hidden;
    background: var(--gradient-bg);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0.5;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero .section-label {
    margin-bottom: 1rem;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.page-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--slate-400);
    max-width: 600px;
    margin-bottom: 2rem;
}

.page-content {
    padding: var(--section-padding) 0;
}

.page-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.page-content p {
    font-size: 1.05rem;
    color: var(--slate-400);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.capability-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);
    border: 1px solid rgba(20, 184, 166, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.capability-card:hover {
    border-color: rgba(20, 184, 166, 0.3);
    transform: translateY(-4px);
}

.capability-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.capability-card p {
    font-size: 0.9rem;
    color: var(--slate-400);
    line-height: 1.6;
    margin-bottom: 0;
}

[data-theme="light"] .capability-card {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.8) 0%, rgba(248, 250, 252, 0.8) 100%);
    border-color: rgba(20, 184, 166, 0.15);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--slate-400);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--teal-400);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--slate-500);
}

/* Contact page inline form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.contact-info-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);
    border: 1px solid rgba(20, 184, 166, 0.1);
    border-radius: 16px;
    padding: 2rem;
}

[data-theme="light"] .contact-info-card {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.8) 0%, rgba(248, 250, 252, 0.8) 100%);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--teal-400);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.contact-info-item p, .contact-info-item a {
    font-size: 0.9rem;
    color: var(--slate-400);
    text-decoration: none;
}

.contact-info-item a:hover {
    color: var(--teal-400);
}

/* Blog coming soon */
.coming-soon {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);
    border: 1px solid rgba(20, 184, 166, 0.1);
    border-radius: 24px;
}

[data-theme="light"] .coming-soon {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.8) 0%, rgba(248, 250, 252, 0.8) 100%);
}

.coming-soon h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.coming-soon p {
    color: var(--slate-400);
    max-width: 400px;
    margin: 0 auto;
}

/* Values grid for about page */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);
    border: 1px solid rgba(20, 184, 166, 0.1);
    border-radius: 16px;
    padding: 2rem;
}

[data-theme="light"] .value-card {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.8) 0%, rgba(248, 250, 252, 0.8) 100%);
}

.value-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--slate-400);
    line-height: 1.6;
    margin-bottom: 0;
}
