/* ============================================
   Theós Financial — Modern Mortgage Website
   Color Palette: Deep Navy, Gold Accents, Clean Whites
   ============================================ */

:root {
    /* Primary Colors */
    --navy-900: #0a0e1a;
    --navy-800: #0f1629;
    --navy-700: #151d38;
    --navy-600: #1b2547;
    --navy-500: #243056;
    --navy-400: #3a4a7a;
    --navy-300: #5a6fa0;

    /* Accent - Gold */
    --gold-500: #c9a84c;
    --gold-400: #d4b85c;
    --gold-300: #e0c96e;
    --gold-200: #e8d68f;
    --gold-100: #f5edc8;

    /* Accent - Blue */
    --blue-500: #3b82f6;
    --blue-400: #60a5fa;
    --blue-300: #93c5fd;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, var(--gold-500), var(--gold-300));
    --gradient-blue: linear-gradient(135deg, var(--blue-500), var(--blue-300));
    --gradient-dark: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);

    /* Glass */
    --glass-bg: rgba(15, 22, 41, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-sans);
    background-color: var(--navy-900);
    color: var(--gray-300);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================
   WebGL Canvas
   ============================================ */

#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   Container
   ============================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
    padding: 12px 0;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.nav-logo-img {
    height: 60px;
    width: auto;
    transition: opacity 0.3s ease;
}

.nav-logo-img:hover {
    opacity: 0.85;
}

.footer-logo-img {
    height: 72px;
    width: auto;
}

.about-logo-img {
    height: 120px;
    width: auto;
    margin-bottom: 16px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-400);
    transition: color 0.3s ease;
    border-radius: 8px;
    position: relative;
}

.nav-link:hover {
    color: var(--white);
}

/* Dropdown menus */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > .nav-link::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover > .nav-link::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    padding: 12px 0;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s var(--ease-out);
    z-index: 1100;
    display: flex;
    flex-direction: column;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

.nav-dropdown-menu a {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-400);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    color: var(--gold-400);
    background: rgba(201, 168, 76, 0.06);
}

.nav-dropdown-menu .dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 6px 16px;
}

.nav-dropdown-menu .dropdown-label {
    padding: 6px 20px 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-500);
    pointer-events: none;
}

/* Mobile: dropdowns expand inline */
@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        padding: 0;
        min-width: 0;
        display: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: flex;
    }

    .nav-dropdown-menu a {
        font-size: 14px;
        padding: 6px 16px;
        text-align: center;
    }

    .nav-dropdown-menu .dropdown-label,
    .nav-dropdown-menu .dropdown-divider {
        display: none;
    }
}

.nav-link-cta {
    background: var(--gradient-gold);
    color: var(--navy-900) !important;
    font-weight: 600;
    margin-left: 8px;
    border-radius: 8px;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.nav-link-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
    min-height: 44px;
    min-width: 44px;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--navy-900);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   Section Common
   ============================================ */

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 72px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-500);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

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

.section-subtitle {
    font-size: 17px;
    color: var(--gray-400);
    line-height: 1.7;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

/* Fullscreen image reveal background */
.hero-reveal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-reveal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    opacity: 0;
    background:
        /* Vignette — soft fade around all edges */
        radial-gradient(
            ellipse 80% 70% at 50% 45%,
            transparent 40%,
            rgba(10, 14, 26, 0.5) 70%,
            rgba(10, 14, 26, 0.95) 100%
        ),
        /* Bottom darken for text readability */
        linear-gradient(
            to bottom,
            rgba(10, 14, 26, 0.1) 0%,
            rgba(10, 14, 26, 0.25) 40%,
            rgba(10, 14, 26, 0.6) 75%,
            rgba(10, 14, 26, 0.92) 100%
        );
    pointer-events: none;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    max-width: var(--container-max);
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-content {
    max-width: 700px;
    text-align: center;
}

.reveal-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#reveal-edges {
    z-index: 6;
    pointer-events: none;
}

#reveal-image {
    z-index: 2;
}

.reveal-source {
    display: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-400);
    margin-bottom: 32px;
    letter-spacing: 0.02em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--gold-400);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.08;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    max-width: 100%;
    overflow-wrap: break-word;
}

.hero-title-accent {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray-300);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 32px 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.hero-stat-suffix {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--gold-400);
}

.hero-stat-label {
    display: block;
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 6px;
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 48px;
    background: var(--glass-border);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    animation: float 3s ease-in-out infinite;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold-500), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 1; height: 40px; }
    50% { opacity: 0.3; height: 24px; }
}

/* ============================================
   Section Images (between content sections)
   ============================================ */

.section-image {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    z-index: 1;
    clip-path: inset(0);
}

.section-image picture {
    position: absolute;
    top: -15%;
    left: 0;
    width: 100%;
    height: 130%;
}

.section-image img,
.section-image picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform;
    transition: transform 0.1s linear;
}

.section-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 14, 26, 0.7) 0%,
        rgba(10, 14, 26, 0.2) 30%,
        rgba(10, 14, 26, 0.2) 70%,
        rgba(10, 14, 26, 0.7) 100%
    );
    pointer-events: none;
}

.section-image-tall {
    height: 550px;
}

.section-image-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    text-align: center;
    z-index: 2;
    width: 80%;
    max-width: 700px;
    line-height: 1.25;
    text-shadow: 0 3px 12px rgba(0,0,0,0.6);
}

.section-image-subcaption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 80%);
    font-size: 15px;
    font-weight: 500;
    color: var(--gold-400);
    letter-spacing: 0.04em;
    text-align: center;
    z-index: 2;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .section-image-caption {
        font-size: 22px;
    }
    .section-image-subcaption {
        font-size: 13px;
    }
}

/* Content image (inline with text, like about section) */
.content-image {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .section-image {
        height: 250px;
    }
    .section-image-tall {
        height: 320px;
    }
    .content-image {
        max-height: 300px;
    }
    .content-image img {
        max-height: 300px;
    }
}

/* ============================================
   Premium Effects — Animated Gradient Borders
   ============================================ */

@keyframes border-rotate {
    0% { --border-angle: 0deg; }
    100% { --border-angle: 360deg; }
}

@property --border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

/* Cursor follower glow */
.cursor-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, rgba(59, 130, 246, 0.02) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
    opacity: 0;
}

/* Animated gold shimmer on section headers */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.section-title .text-accent {
    background-size: 200% auto;
    animation: shimmer 6s ease-in-out infinite;
}

/* Floating animation for tech visual cards */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Glow pulse on hero badge */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
    50% { box-shadow: 0 0 20px 4px rgba(201, 168, 76, 0.15); }
}

.hero-badge {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* Animated gradient border on featured service cards */
.service-card-featured {
    border-color: rgba(201, 168, 76, 0.15);
}

/* Tilt effect on service cards */
.service-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Smooth reveal for stats numbers */
@keyframes count-up-glow {
    0% { text-shadow: 0 0 20px rgba(201, 168, 76, 0.8); }
    100% { text-shadow: none; }
}


/* Magnetic hover on buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn:hover::after {
    opacity: 1;
}

/* Stagger animation for grid items */
.services-grid .service-card:nth-child(1) { transition-delay: 0s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.3s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.4s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.5s; }

/* Noise texture overlay for depth */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

/* ============================================
   Team Cards
   ============================================ */

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.team-card {
    background: rgba(15, 22, 41, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    text-align: center;
}

.team-card:hover {
    border-color: rgba(201, 168, 76, 0.2);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.team-card-photo {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--navy-700);
}

.team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s var(--ease-out);
}

.team-card:hover .team-card-photo img {
    transform: scale(1.05);
}

.team-card-info {
    padding: 24px 20px 28px;
}

.team-card-name {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.team-card-role {
    font-size: 14px;
    color: var(--gold-400);
    font-weight: 500;
    margin-bottom: 4px;
}

.team-card-nmls {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.team-card-desc {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 16px;
}

.team-card-contact {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.team-card-contact a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-400);
    transition: color 0.3s ease;
}

.team-card-contact a:hover {
    color: var(--gold-400);
}

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

@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; max-width: 360px; margin: 48px auto 0; }
}

/* ============================================
   Services Section
   ============================================ */

.services {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    padding: 40px 32px;
    background: rgba(15, 22, 41, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s var(--ease-out);
    overflow: hidden;
    display: block;
}

.service-card-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover {
    border-color: rgba(201, 168, 76, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-card:hover .service-card-glow {
    opacity: 1;
}

.service-card-featured {
    border-color: rgba(201, 168, 76, 0.15);
    background: rgba(201, 168, 76, 0.03);
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 12px;
    background: var(--gradient-gold);
    color: var(--navy-900);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 14px;
    color: var(--gold-400);
    margin-bottom: 24px;
}

.service-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 15px;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    margin-bottom: 28px;
}

.service-features li {
    position: relative;
    padding: 6px 0 6px 20px;
    font-size: 14px;
    color: var(--gray-400);
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    background: var(--gold-500);
    border-radius: 50%;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-400);
    transition: gap 0.3s var(--ease-out);
}

.service-link:hover {
    gap: 10px;
}

/* Make cards with links show pointer cursor */
.service-card:has(.service-link) {
    cursor: pointer;
}

a.service-link {
    cursor: pointer;
}

/* ============================================
   Technology Section
   ============================================ */

.technology {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 0;
}

.tech-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.tech-description {
    font-size: 17px;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 40px;
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.tech-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.tech-feature-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: 10px;
    color: var(--gold-400);
}

.tech-feature h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.tech-feature p {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.6;
}

/* Tech Visual Card */
.tech-visual-card {
    background: rgba(10, 14, 26, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.tech-visual-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
}

.tech-visual-dots {
    display: flex;
    gap: 6px;
}

.tech-visual-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--navy-500);
}

.tech-visual-dots span:first-child { background: #ff5f57; }
.tech-visual-dots span:nth-child(2) { background: #febc2e; }
.tech-visual-dots span:last-child { background: #28c840; }

.tech-visual-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-500);
}

.tech-visual-body {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tech-visual-metric {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.metric-label {
    font-size: 13px;
    color: var(--gray-500);
    flex: 1;
    min-width: 120px;
}

.metric-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-sans);
    font-variant-numeric: tabular-nums;
}

.metric-highlight {
    color: var(--gold-400);
}

.metric-bar {
    width: 100%;
    height: 3px;
    background: var(--navy-600);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.metric-bar-fill {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 2px;
    transition: width 1.5s var(--ease-out);
}

.tech-visual-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(40, 200, 64, 0.06);
    border: 1px solid rgba(40, 200, 64, 0.15);
    border-radius: 8px;
    font-size: 13px;
    color: #28c840;
    font-weight: 500;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #28c840;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ============================================
   Process Section
   ============================================ */

.process {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 0;
}

.process-steps {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.process-step {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 32px 0;
    position: relative;
}

.process-step-number {
    flex-shrink: 0;
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    width: 64px;
}

.process-step-content h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.process-step-content p {
    font-size: 15px;
    color: var(--gray-400);
    line-height: 1.7;
}

.process-step-line {
    position: absolute;
    left: 32px;
    bottom: 0;
    width: 1px;
    height: 0;
    background: linear-gradient(to bottom, var(--gold-500), transparent);
}

.process-step:not(:last-child) .process-step-line {
    height: 100%;
}

/* ============================================
   About Section
   ============================================ */

.about {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 0;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content p {
    font-size: 16px;
    color: var(--gray-400);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-content em {
    color: var(--gold-400);
    font-style: italic;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.about-value {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(201, 168, 76, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-300);
}

.about-value-icon {
    color: var(--gold-400);
    flex-shrink: 0;
}

.about-image-card {
    background: rgba(15, 22, 41, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-placeholder {
    text-align: center;
    padding: 40px;
}

.about-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-tagline {
    font-size: 14px;
    color: var(--gray-500);
}

/* ============================================
   Contact Section
   ============================================ */

.contact {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info p {
    font-size: 16px;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-detail-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: 10px;
    color: var(--gold-400);
}

.contact-detail-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.contact-detail-value {
    font-size: 15px;
    color: var(--gray-300);
    line-height: 1.5;
    display: block;
}

a.contact-detail-value:hover {
    color: var(--gold-400);
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(15, 22, 41, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-400);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    min-height: 44px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-600);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--navy-800);
    color: var(--white);
}

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

/* ============================================
   Footer
   ============================================ */

.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--glass-border);
    padding: 64px 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 16px;
    line-height: 1.6;
}

.footer-links-group h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-links-group a,
.footer-links-group p {
    display: block;
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 8px;
    transition: color 0.3s ease;
    line-height: 1.5;
}

.footer-links-group a:hover {
    color: var(--gold-400);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--gray-600);
}

.footer-legal {
    font-size: 12px !important;
}

/* ============================================
   Comparison Tables (horizontal scroll on mobile)
   ============================================ */

.comparison-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ============================================
   Animations
   ============================================ */

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-animate="fade-right"] {
    transform: translateX(-30px);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate].visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    :root { --section-padding: 80px; }

    .tech-layout,
    .about-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root { --section-padding: 60px; }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: rgba(10, 14, 26, 0.99);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--ease-out);
        overflow-y: auto;
        padding: 80px 24px 40px;
        z-index: 1000;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 17px;
        padding: 10px 24px;
        width: 100%;
        text-align: center;
    }

    .nav-link-cta {
        margin-left: 0;
        margin-top: 12px;
        font-size: 16px;
        padding: 14px 32px;
        width: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Services grid: 1 column on mobile */
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    /* Hero */
    .hero-title {
        font-size: clamp(32px, 9vw, 56px);
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
        overflow: hidden;
    }

    .hero-stat-number {
        font-size: 28px;
    }

    .hero-stat-divider {
        width: 60px;
        height: 1px;
    }

    .hero-scroll-indicator {
        display: none;
    }

    /* Tech visual card */
    .tech-visual-card {
        width: 100%;
        overflow: hidden;
    }

    /* Section images */
    .section-image {
        height: 250px;
    }

    .section-image-tall {
        height: 320px;
    }

    /* Section header typography */
    .section-title {
        font-size: clamp(28px, 5vw, 48px);
    }

    .section-subtitle {
        font-size: 15px;
    }

    .section-header {
        margin-bottom: 48px;
    }

    /* Process steps */
    .process-step {
        gap: 20px;
    }

    .process-step-number {
        font-size: 32px;
        width: 48px;
    }

    .process-step-line {
        left: 24px;
    }

    .process-step-content h3 {
        font-size: 19px;
    }

    .process-step-content p {
        font-size: 14px;
    }

    /* About */
    .about-values {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Typography — ensure minimum readable sizes */
    body {
        font-size: 14px;
    }

    .service-title {
        font-size: 21px;
    }

    .service-desc {
        font-size: 14px;
    }

    .tech-description {
        font-size: 15px;
    }

    .about-content p {
        font-size: 15px;
    }

    .contact-info p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    :root { --section-padding: 48px; }

    .hero {
        padding: 100px 16px 60px;
    }

    .hero-title {
        font-size: clamp(28px, 8vw, 44px);
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 12px;
        margin-bottom: 24px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        font-size: 14px;
    }

    /* Nav items: smaller for very small screens */
    .nav-link {
        font-size: 15px;
        padding: 8px 20px;
    }

    .nav-link-cta {
        font-size: 14px;
        padding: 12px 28px;
    }

    /* Footer: single column */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Container padding */
    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    /* Service cards: tighter padding */
    .service-card {
        padding: 24px 20px;
    }

    /* Nav logo: reduce for small screens */
    .nav-logo-img {
        height: 44px;
    }

    /* Contact form */
    .contact-form-wrapper {
        padding: 20px;
    }

    /* Hero stats */
    .hero-stats {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .hero-stat-number {
        font-size: 24px;
    }

    .hero-stat-suffix {
        font-size: 18px;
    }

    /* Tech visual */
    .tech-layout {
        gap: 32px;
    }

    /* About layout */
    .about-layout {
        gap: 32px;
    }

    /* Contact layout */
    .contact-layout {
        gap: 32px;
    }

    /* Section image */
    .section-image {
        height: 200px;
    }

    .section-image-tall {
        height: 260px;
    }

    .section-image-caption {
        font-size: 18px;
        width: 90%;
    }

    .section-image-subcaption {
        font-size: 12px;
    }
}

/* ============================================
   Very small screens (320px)
   ============================================ */

@media (max-width: 360px) {
    .nav-link {
        font-size: 14px;
        padding: 7px 16px;
    }

    .hero-title {
        font-size: 26px;
    }

    .section-title {
        font-size: 26px;
    }

    .hero-stats {
        padding: 16px 12px;
        gap: 16px;
    }

    .hero-stat-number {
        font-size: 22px;
    }

    .process-step {
        gap: 14px;
    }

    .process-step-number {
        font-size: 28px;
        width: 40px;
    }

    .process-step-line {
        left: 20px;
    }

    /* Section image caption */
    .section-image-caption {
        font-size: 16px;
        width: 92%;
    }

    .section-image-subcaption {
        font-size: 11px;
    }

    /* Footer: ensure proper spacing at very small screens */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-links-group a {
        padding: 4px 0;
    }

    .footer-bottom {
        padding-top: 20px;
        gap: 12px;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}

/* ============================================
   Accessibility
   ============================================ */

.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: var(--gold-500);
    color: var(--navy-900);
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    transition: top 0.3s ease;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 0;
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold-400);
    outline-offset: 2px;
}

.nav-link:focus-visible {
    outline: 2px solid var(--gold-400);
    outline-offset: 4px;
    border-radius: 4px;
}

.service-card:focus-within {
    border-color: rgba(201, 168, 76, 0.3);
}

/* Mobile Touch Optimization */
.nav-toggle, .btn, .service-card, .nav-link {
    touch-action: manipulation;
}

/* FAQ Accordion */
.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background: rgba(15, 22, 41, 0.5);
    transition: border-color 0.3s ease;
}

.faq-item.active {
    border-color: rgba(201, 168, 76, 0.2);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--gold-400);
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: var(--gold-400);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-question::after {
    content: '\2212';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 15px;
    color: var(--gray-400);
    line-height: 1.7;
}

/* Visible Breadcrumbs */
.breadcrumbs {
    padding: 12px 0;
    font-size: 13px;
    color: var(--gray-500);
}

.breadcrumbs a {
    color: var(--gray-500);
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--gold-400);
}

.breadcrumbs span {
    margin: 0 8px;
    color: var(--gray-600);
}
