/* ==========================================================================
   TH Digital Services — Modern presentational site
   Color palette derived from logo: deep navy, electric blue, white
   ========================================================================== */

:root {
    /* Logo-derived palette */
    --navy-900: #050810;
    --navy-800: #0a0e1a;
    --navy-700: #0f1424;
    --navy-600: #161c30;
    --navy-500: #1f2740;

    --blue-600: #0033CC;
    --blue-500: #0052D9;
    --blue-400: #0066FF;
    --blue-300: #2E80FF;
    --blue-200: #5B9BFF;
    --blue-100: #B8D4FF;

    --white: #ffffff;
    --gray-50: #f7f9fc;
    --gray-100: #eef2f7;
    --gray-200: #d8dfe8;
    --gray-300: #a8b2c1;
    --gray-400: #6b7689;
    --gray-500: #4a5468;

    /* Semantic */
    --bg: var(--navy-900);
    --bg-soft: var(--navy-800);
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #ffffff;
    --text-muted: #a8b2c1;
    --text-soft: #6b7689;

    --accent: var(--blue-400);
    --accent-hover: var(--blue-300);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    /* Layout */
    --container: 1240px;
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Animation */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input, textarea { font-family: inherit; }

/* Background gradient layer */
.bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 102, 255, 0.18), transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 90%, rgba(0, 51, 204, 0.12), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Cursor glow effect */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.08), transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}
@media (hover: hover) { .cursor-glow.active { opacity: 1; } }

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--blue-300) 0%, var(--blue-400) 50%, var(--blue-500) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s var(--ease);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: linear-gradient(135deg, var(--blue-400), var(--blue-500));
    color: var(--white);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue-300), var(--blue-400));
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.45), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.btn-primary:hover::before { opacity: 1; }
.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--blue-400);
    transform: translateY(-2px);
}
.btn-full { width: 100%; padding: 16px; }

/* ============== Navbar ============== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s var(--ease);
}
.navbar.scrolled {
    padding: 14px 0;
    background: rgba(5, 8, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    transition: opacity 0.3s ease;
}
.nav-logo img { height: 36px; width: auto; }
.nav-logo:hover { opacity: 0.85; }
.logo-text {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: -0.01em;
}
.th-bold { color: var(--white); font-weight: 800; }
.logo-digital { color: var(--blue-400); font-weight: 600; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    padding: 10px 16px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 999px;
    transition: all 0.3s var(--ease);
    position: relative;
}
.nav-link:hover {
    color: var(--text);
    background: var(--surface);
}
.nav-cta {
    background: var(--blue-400);
    color: var(--white) !important;
    padding: 10px 22px;
    margin-left: 8px;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
}
.nav-cta:hover {
    background: var(--blue-300);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

/* Language switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
    padding: 5px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}
.lang-btn {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 999px;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
    color: var(--white);
    background: var(--blue-400);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.4);
}
.lang-divider {
    color: var(--text-soft);
    font-size: 12px;
    user-select: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============== Hero ============== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 100px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 20s ease-in-out infinite;
}
.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--blue-400), transparent 70%);
    top: -20%;
    left: -10%;
}
.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--blue-600), transparent 70%);
    bottom: -20%;
    right: -10%;
    animation-delay: -10s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.05); }
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}
.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-400);
    box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.6);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.6); }
    50% { box-shadow: 0 0 0 8px rgba(0, 102, 255, 0); }
}

.hero-title {
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.035em;
    line-height: 1.05;
}
.hero-title span { display: block; }
.hero-subtitle {
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 36px;
    line-height: 1.65;
}
.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}
.hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.stat-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}
.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    letter-spacing: 0.01em;
}

/* Hero visual */
.hero-visual {
    position: relative;
    aspect-ratio: 1;
    max-width: 520px;
    margin-left: auto;
}
.hero-graphic {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.graphic-glow {
    position: absolute;
    inset: 18%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.45), transparent 65%);
    filter: blur(60px);
    animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.12); }
}
.agent-network {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 30px 60px rgba(0, 102, 255, 0.3));
    animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* SVG inner animations */
.ring { transform-origin: 250px 250px; transform-box: fill-box; }
.ring-outer { animation: spin 40s linear infinite; }
.ring-mid   { animation: spinReverse 30s linear infinite; }
.ring-inner { animation: spin 22s linear infinite; }
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes spinReverse {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}

.node {
    transform-origin: center;
    transform-box: fill-box;
    animation: nodePulse 3s ease-in-out infinite;
}
.node.n2 { animation-delay: 0.5s; }
.node.n3 { animation-delay: 1.0s; }
.node.n4 { animation-delay: 1.5s; }
.node.n5 { animation-delay: 2.0s; }
.node.n6 { animation-delay: 2.5s; }
@keyframes nodePulse {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50%      { transform: scale(1.18); opacity: 1; }
}

.hub {
    transform-origin: 250px 250px;
    transform-box: fill-box;
    animation: hubBreath 4s ease-in-out infinite;
}
@keyframes hubBreath {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}
.hub g {
    transform-origin: 250px 250px;
    transform-box: fill-box;
    animation: spin 18s linear infinite;
}

.pulses { transform: translate(250px, 250px); }
.pulse { opacity: 0.85; }

.floating-card {
    position: absolute;
    background: rgba(15, 20, 36, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: cardFloat 5s ease-in-out infinite;
}
.card-1 {
    top: 12%;
    left: -8%;
    animation-delay: -2s;
}
.card-2 {
    bottom: 18%;
    right: -8%;
}
.card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.card-text strong {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
}
.card-text span {
    font-size: 12px;
    color: var(--text-muted);
}
@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-soft);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-soft), transparent);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: var(--blue-400);
    animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* ============== Trusted strip ============== */
.trusted {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 2;
}
.trusted-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 28px;
}
.trusted-text span { color: var(--text); font-weight: 500; }
.trusted-marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
    display: flex;
    gap: 60px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
    width: max-content;
}
.marquee-track span {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-soft);
    letter-spacing: 0.1em;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============== Sections ============== */
section { position: relative; z-index: 2; }
.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 80px;
}
.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.25);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--blue-300);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.section-tag.light {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}
.section-title {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
}
.section-subtitle {
    font-size: clamp(15px, 1.2vw, 18px);
    color: var(--text-muted);
    line-height: 1.7;
}

/* Services */
.services { padding: 120px 0; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue-400), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}
.service-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3), 0 0 60px rgba(0, 102, 255, 0.08);
}
.service-card:hover::before { opacity: 1; }
.service-card.featured {
    background: linear-gradient(180deg, rgba(0, 102, 255, 0.08), rgba(0, 102, 255, 0.02));
    border-color: rgba(0, 102, 255, 0.3);
}
.service-card.featured::before { opacity: 1; }
.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 10px;
    background: var(--blue-400);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 102, 255, 0.05));
    border: 1px solid rgba(0, 102, 255, 0.25);
    color: var(--blue-300);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.4s var(--ease);
}
.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--blue-400), var(--blue-500));
    border-color: var(--blue-400);
    color: var(--white);
    transform: scale(1.05);
}
.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}
.service-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.65;
}
.service-features {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}
.service-features li {
    font-size: 14px;
    color: var(--text-muted);
    padding: 6px 0;
    position: relative;
    padding-left: 22px;
}
.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 12px;
    height: 2px;
    background: var(--blue-400);
    border-radius: 2px;
}

/* Agents section */
.agents {
    padding: 120px 0;
    position: relative;
}
.agents::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 30% 50%, rgba(0, 102, 255, 0.08), transparent 70%);
    pointer-events: none;
}
.agents-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.agents-content .section-title { font-size: clamp(28px, 3.6vw, 44px); }
.agents-list {
    margin: 32px 0 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.agent-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.agent-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}
.agent-item strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.agent-item span {
    font-size: 14px;
    color: var(--text-muted);
}

.terminal-window {
    background: rgba(5, 8, 16, 0.9);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(0, 102, 255, 0.15);
    backdrop-filter: blur(20px);
}
.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}
.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }
.terminal-title {
    margin-left: 12px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 12.5px;
    color: var(--text-soft);
}
.terminal-body {
    padding: 24px 22px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 13.5px;
    line-height: 1.85;
    min-height: 320px;
}
.terminal-line { opacity: 0; animation: typeIn 0.5s var(--ease) forwards; }
.terminal-line:nth-child(1) { animation-delay: 0.3s; }
.terminal-line:nth-child(2) { animation-delay: 0.6s; }
.terminal-line:nth-child(3) { animation-delay: 0.9s; }
.terminal-line:nth-child(4) { animation-delay: 1.3s; }
.terminal-line:nth-child(5) { animation-delay: 1.7s; }
.terminal-line:nth-child(6) { animation-delay: 2.1s; }
.terminal-line:nth-child(7) { animation-delay: 2.5s; }
.terminal-line:nth-child(8) { animation-delay: 2.9s; }
.terminal-line:nth-child(9) { animation-delay: 3.2s; }
.terminal-line:nth-child(10) { animation-delay: 3.5s; }
.terminal-line:nth-child(11) { animation-delay: 3.9s; }
@keyframes typeIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}
.terminal-line .prompt { color: var(--blue-400); margin-right: 6px; }
.terminal-line .cmd { color: var(--white); }
.terminal-line.out { color: var(--text-muted); padding-left: 14px; }
.terminal-line.success { color: #4ade80; }
.terminal-line .highlight { color: var(--blue-300); font-weight: 600; }
.cursor-blink {
    display: inline-block;
    color: var(--blue-400);
    animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Process */
.process { padding: 120px 0; }
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}
.process-timeline::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 6%;
    right: 6%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), var(--border-strong), transparent);
}
.process-step {
    text-align: center;
    position: relative;
    padding-top: 80px;
}
.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--blue-300);
    transition: all 0.4s var(--ease);
}
.process-step:hover .step-number {
    background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
    border-color: var(--blue-400);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.4);
    transform: translateX(-50%) scale(1.05);
}
.process-step h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.process-step p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.65;
}

/* About */
.about { padding: 120px 0; }
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}
.about-logo-bg {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(145deg, var(--bg-soft), var(--navy-700));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.about-logo-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.15), transparent 60%);
}
.about-logo-bg img {
    position: relative;
    max-width: 80%;
    filter: drop-shadow(0 20px 50px rgba(0, 102, 255, 0.3));
}
.about-content .section-title {
    font-size: clamp(28px, 3.4vw, 42px);
    margin-bottom: 24px;
}
.about-content p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 16px;
}
.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}
.value h4 {
    font-size: 16px;
    color: var(--blue-300);
    margin-bottom: 8px;
    font-weight: 600;
}
.value p {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.55;
}

/* CTA */
.cta { padding: 80px 0 120px; }
.cta-card {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500), var(--navy-800));
    border-radius: var(--radius-xl);
    padding: 70px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}
.cta-bg-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
    filter: blur(60px);
    top: -20%;
    right: -10%;
    animation: orbFloat 15s ease-in-out infinite;
}
.cta-content { position: relative; z-index: 2; }
.cta-content h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    margin: 16px 0;
    color: var(--white);
}
.cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.7;
}
.cta-form {
    position: relative;
    z-index: 2;
    background: rgba(5, 8, 16, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--white);
    font-size: 14px;
    transition: all 0.3s var(--ease);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--blue-300);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}
.form-success {
    display: none;
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 10px;
    color: #4ade80;
    font-size: 14px;
    text-align: center;
}
.form-success.show { display: block; animation: fadeIn 0.4s ease; }

.form-error {
    display: none;
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(255, 99, 99, 0.12);
    border: 1px solid rgba(255, 99, 99, 0.3);
    border-radius: 10px;
    color: #ff8a8a;
    font-size: 14px;
    text-align: center;
}
.form-error.show { display: block; animation: fadeIn 0.4s ease; }

/* Footer */
.footer {
    background: var(--navy-900);
    border-top: 1px solid var(--border);
    padding: 80px 0 30px;
    position: relative;
    z-index: 2;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--border);
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 16px;
    max-width: 320px;
    line-height: 1.65;
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.footer-col h5 {
    font-size: 14px;
    margin-bottom: 18px;
    color: var(--text);
    font-weight: 600;
}
.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    padding: 6px 0;
    transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--blue-300); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    color: var(--text-soft);
    font-size: 13px;
}

/* Animations & reveal */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.9s var(--ease) forwards;
}
.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeRight 1s var(--ease) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeRight {
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ============== Responsive ============== */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: 50px; }
    .hero-visual { max-width: 420px; margin: 0 auto; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .agents-wrapper, .about-wrapper { grid-template-columns: 1fr; gap: 50px; }
    .process-timeline { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
    .process-timeline::before { display: none; }
    .cta-card { grid-template-columns: 1fr; gap: 40px; padding: 50px 36px; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 16px;
        right: 16px;
        flex-direction: column;
        gap: 4px;
        padding: 16px;
        background: rgba(10, 14, 26, 0.96);
        backdrop-filter: blur(20px);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: all 0.3s var(--ease);
    }
    .nav-menu.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .nav-menu li { width: 100%; }
    .nav-link {
        display: block;
        width: 100%;
        text-align: left;
        padding: 12px 16px;
    }
    .nav-cta { margin-left: 0; margin-top: 4px; text-align: center; }
    .lang-switch {
        margin-left: 0;
        margin-top: 8px;
        align-self: flex-start;
    }

    .hero { padding: 110px 0 80px; min-height: auto; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .stat-number { font-size: 28px; }
    .hero-visual { display: none; }
    .hero-container { grid-template-columns: 1fr; }

    .services { padding: 80px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .agents, .process, .about { padding: 80px 0; }
    .about-values { grid-template-columns: 1fr; gap: 16px; }

    .cta-card { padding: 36px 24px; }
    .cta-form { padding: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }
    .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
    .container, .nav-container { padding: 0 18px; }
    .section-header { margin-bottom: 50px; }
    .service-card { padding: 28px 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
