/* ============================================================================
   CloudSpan — UI/UX 全局样式 (Modern B2B Tech Aesthetic)
   参考 Vercel / Linear / Stripe 的视觉基调：
   - 深色区(Hero/Nav顶部/Work/Contact):  #0F172A → #0A0E17 渐变 + 光晕
   - 亮色区(卡片/正文):                  #FFFFFF / #F8FAFC + #E2E8F0 边框
   - 品牌色 Accent:                      #2563EB / #3B82F6
   内容结构保持不变，本文件只负责视觉层。若改 HTML 结构请同步。
   ========================================================================= */

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

:root {
    /* dark surfaces (hero / nav top / work / contact) */
    --ink-950: #0A0E17;              /* deepest */
    --ink-900: #0F172A;              /* primary dark */
    --ink-800: #111C31;
    --ink-700: #1E293B;
    --on-dark: #F8FAFC;              /* primary text on dark */
    --on-dark-2: #CBD5E1;            /* secondary text on dark */
    --on-dark-3: #94A3B8;            /* muted text on dark */
    --glass: rgba(255, 255, 255, 0.04);
    --glass-2: rgba(255, 255, 255, 0.07);
    --glass-brd: rgba(255, 255, 255, 0.10);
    --glass-brd-2: rgba(255, 255, 255, 0.18);

    /* light surfaces */
    --bg: #FFFFFF;
    --bg-soft: #F8FAFC;
    --text-1: #0F172A;               /* headings on light */
    --text-2: #475569;               /* body on light */
    --text-3: #64748B;               /* muted on light */
    --line: #E2E8F0;                 /* border on light */
    --line-2: #CBD5E1;

    /* brand accent (royal blue) */
    --accent: #2563EB;
    --accent-600: #2563EB;
    --accent-500: #3B82F6;
    --accent-400: #60A5FA;
    --accent-deep: #1D4ED8;
    --accent-soft: #EFF6FF;          /* tinted badge bg */
    --accent-soft-2: #DBEAFE;
    --accent-grad: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    --accent-glow: 0 12px 34px rgba(37, 99, 235, 0.28);

    /* shape & depth */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 16px;
    --r-pill: 999px;
    --sh-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --sh-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --sh-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --sh-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
    --sh-blue: 0 20px 48px rgba(37, 99, 235, 0.16);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);   /* Linear-like ease-out */
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-size: 16px;
}

body {
    font-family: var(--font);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-2);
    background: var(--bg);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-400); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ======================== NAVBAR (frosted glass) ======================== */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02), 0 10px 34px rgba(15, 23, 42, 0.07);
    transition: padding 0.35s var(--ease), box-shadow 0.35s var(--ease),
                background 0.35s var(--ease);
}
/* Scheme C: navbar is ALWAYS white frosted glass so the white-bg logo blends in.
   Dark links at all times (no transparent/dark top state). */
.navbar .nav-logo,
.navbar .nav-link { color: var(--text-2); transition: color 0.2s var(--ease); }
.navbar .nav-logo:hover,
.navbar .nav-link:hover,
.navbar .nav-link.active-nav { color: var(--accent); }
.navbar .logo-icon { color: var(--accent); }
.navbar .nav-toggle span { background: var(--text-1); }

/* scrolled: slightly more opaque + tighter padding */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.86);
    padding: 9px 0;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02), 0 8px 30px rgba(15, 23, 42, 0.06);
}
.navbar.scrolled .nav-logo,
.navbar.scrolled .nav-link { color: var(--text-2); }
.navbar.scrolled .nav-logo:hover,
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active-nav { color: var(--accent); }
.navbar.scrolled .logo-icon { color: var(--accent); }
.navbar.scrolled .nav-toggle span { background: var(--text-1); }

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

.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { display: flex; color: var(--accent); transition: transform 0.3s var(--ease); }
.nav-logo:hover .logo-icon { transform: scale(1.06); }
.logo-text { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; }

/* image logo — raw white-background brand asset */
/* Company logo: uses the UNMODIFIED master file (logo-original.png).
   White margins are cropped via CSS only (object-fit), never editing the asset. */
.nav-logo-img {
    display: block;
    width: 232px;
    height: 40px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    background: transparent;
    transition: filter 0.2s var(--ease);
}
.nav-logo:hover .nav-logo-img { filter: brightness(1.02); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link {
    position: relative;
    font-size: 0.9rem; font-weight: 500;
    transition: color 0.2s var(--ease);
}
/* animated underline */
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 100%; height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}
.nav-link:hover::after,
.nav-link.active-nav::after { transform: scaleX(1); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    background: var(--accent-grad);
    color: #fff !important;
    padding: 9px 20px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { color: #fff !important; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 99, 235, 0.4); filter: brightness(1.05); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001; }
.nav-toggle span { width: 24px; height: 2px; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.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); }

/* ======================== BUTTONS ======================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    font-size: 0.9375rem; font-weight: 600;
    border-radius: 12px;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
                background 0.2s, border-color 0.2s, color 0.2s, filter 0.2s;
    cursor: pointer; border: none; white-space: nowrap;
}
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(37, 99, 235, 0.38); filter: brightness(1.05); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--on-dark);
    border: 1.5px solid var(--glass-brd-2);
}
.btn-outline:hover { border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }
.btn-outline:active { transform: translateY(0); }

/* ======================== SECTIONS / HEADERS ======================== */
.section { padding: 128px 0; position: relative; }
.section-header { text-align: center; max-width: 800px; margin: 0 auto 72px; }

.section-label {
    display: inline-flex; align-items: center;
    font-size: 0.8125rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}
.section-label::before {
    content: '';
    width: 20px; height: 1px; background: var(--accent);
    margin-right: 10px; opacity: 0.5;
}
.section-label::after {
    content: '';
    width: 20px; height: 1px; background: var(--accent);
    margin-left: 10px; opacity: 0.5;
}

.section-title {
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    font-weight: 800;
    color: var(--text-1);
    line-height: 1.14;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
.section-lead { font-size: 1.0625rem; color: var(--text-3); margin-top: 20px; line-height: 1.8; max-width: 680px; margin-inline: auto; }

/* dark section overrides */
.section-dark { color: var(--on-dark-2); }
.section-dark .section-title { color: #fff; }
.section-dark .section-label { color: var(--accent-400); }
.section-dark .section-lead { color: var(--on-dark-3); }

/* ======================== HERO ======================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 150px 0 110px;
    overflow: hidden;
    background:
        radial-gradient(1100px 620px at 82% 18%, rgba(59, 130, 246, 0.22), transparent 60%),
        radial-gradient(760px 500px at 4% 96%, rgba(37, 99, 235, 0.16), transparent 62%),
        radial-gradient(600px 420px at 55% 110%, rgba(96, 165, 250, 0.12), transparent 65%),
        linear-gradient(180deg, var(--ink-900) 0%, var(--ink-950) 100%);
}
/* faint grid overlay */
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse 90% 78% at 62% 34%, #000 28%, transparent 78%);
            mask-image: radial-gradient(ellipse 90% 78% at 62% 34%, #000 28%, transparent 78%);
    pointer-events: none;
}
/* subtle top glow line */
.hero::after {
    content: '';
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: min(900px, 90%); height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.5), transparent);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: center; }
.hero-content { max-width: 580px; }

.hero-tag {
    display: inline-flex; align-items: center; gap: 9px;
    color: var(--on-dark); font-size: 0.8125rem; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 7px 15px; margin-bottom: 28px;
    background: var(--glass); border: 1px solid var(--glass-brd);
    border-radius: var(--r-pill);
    backdrop-filter: blur(8px);
}
.hero-tag::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent-400);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

.hero-title {
    font-size: clamp(2.5rem, 5.2vw, 4rem);
    font-weight: 800; color: #fff;
    line-height: 1.05; letter-spacing: -0.035em;
    margin-bottom: 24px; text-wrap: balance;
}
/* accent span highlight in title */
.hero-title em { font-style: normal; background: linear-gradient(120deg, #93C5FD, #60A5FA 45%, #3B82F6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.hero-subtitle { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 500; color: var(--on-dark); margin-bottom: 16px; line-height: 1.5; }
.hero-description { font-size: 1.0625rem; color: var(--on-dark-3); max-width: 520px; line-height: 1.8; margin-bottom: 42px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero right visual */
.hero-visual { position: relative; }
.hero-visual::before {
    content: ''; position: absolute; inset: 12% 8%;
    background: radial-gradient(closest-side, rgba(59, 130, 246, 0.4), transparent 75%);
    filter: blur(34px); z-index: 0;
}
.hero-visual-frame {
    position: relative; z-index: 1;
    border-radius: var(--r-lg); overflow: hidden;
    border: 1px solid var(--glass-brd-2);
    background: linear-gradient(160deg, #13203A, #0D1728);
    box-shadow: 0 50px 110px rgba(2, 6, 14, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: perspective(1500px) rotateY(-6deg) rotateX(2deg);
    transition: transform 0.7s var(--ease);
}
.hero-visual-frame:hover { transform: perspective(1500px) rotateY(-2deg) rotateX(0.5deg) scale(1.01); }
.hero-visual-frame img { width: 100%; height: auto; }

/* ======================== GAP (Demo / Pilot / Production) ======================== */
.section-gap { background: var(--bg); }
.gap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.gap-card {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 40px 34px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.gap-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: rgba(37, 99, 235, 0.25); }

/* featured production card (dark, accented) */
.gap-card-active {
    background:
        radial-gradient(420px 240px at 88% -10%, rgba(59, 130, 246, 0.32), transparent 62%),
        linear-gradient(160deg, var(--ink-800), var(--ink-950));
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.32);
    position: relative;
    overflow: hidden;
}
.gap-card-active::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--accent-grad); opacity: 0.9;
}
.gap-card-active:hover { transform: translateY(-6px); box-shadow: 0 40px 90px rgba(37, 99, 235, 0.28); border-color: rgba(96, 165, 250, 0.6); }

.gap-stage { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.gap-card-active .gap-stage { color: var(--accent-400); }
.gap-badge {
    display: inline-block; font-size: 0.6875rem; font-weight: 600;
    padding: 5px 12px; margin-bottom: 22px;
    background: rgba(96, 165, 250, 0.14); color: var(--accent-400);
    border: 1px solid rgba(96, 165, 250, 0.32); border-radius: var(--r-pill);
    letter-spacing: 0.05em; text-transform: uppercase;
}
.gap-list { display: flex; flex-direction: column; gap: 16px; }
.gap-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9375rem; color: var(--text-2); }
.gap-card-active .gap-list li { color: var(--on-dark-2); }

.gap-x, .gap-check { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; margin-top: 2px; position: relative; }
.gap-x { background: #F1F5F9; border: 1px solid var(--line-2); }
.gap-x::before, .gap-x::after { content: ''; position: absolute; top: 50%; left: 50%; width: 9px; height: 1.6px; background: #94A3B8; }
.gap-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.gap-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.gap-check { background: var(--accent-soft-2); }
.gap-check::after { content: ''; position: absolute; top: 44%; left: 50%; width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: translate(-50%, -50%) rotate(45deg); }
.gap-card-active .gap-check { background: rgba(96, 165, 250, 0.16); }
.gap-card-active .gap-check::after { border-color: var(--accent-400); }

/* ======================== ANATOMY (SVG diagram) ======================== */
.section-anatomy { background: var(--bg-soft); }
.anatomy-wrap { max-width: 900px; margin: 0 auto; }
.anatomy-diagram {
    background:
        radial-gradient(520px 280px at 92% -12%, rgba(59, 130, 246, 0.26), transparent 60%),
        linear-gradient(160deg, var(--ink-800), var(--ink-950));
    border: 1px solid rgba(96, 165, 250, 0.26);
    border-radius: var(--r-lg);
    padding: 22px;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.3);
}
.anatomy-diagram svg { width: 100%; height: auto; }
.anatomy-note { text-align: center; margin-top: 28px; font-size: 0.9375rem; color: var(--text-3); }

/* ======================== WORKERS (tabs) ======================== */
.section-workers { background: var(--bg); }

.workers-tabs {
    display: flex; justify-content: center; gap: 6px;
    margin-bottom: 60px; flex-wrap: wrap;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 6px;
    width: fit-content; margin-inline: auto;
}
.worker-tab {
    font-family: var(--font); font-size: 0.9375rem; font-weight: 600;
    color: var(--text-2); background: transparent; border: none;
    border-radius: 9px; padding: 11px 24px; cursor: pointer;
    position: relative; transition: color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.worker-tab:hover { color: var(--text-1); }
.worker-tab.active {
    color: var(--accent); background: #fff;
    box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 6px 18px rgba(15,23,42,.08);
}

/* sliding underline indicator */
.worker-tab::after {
    content: '';
    position: absolute; left: 24px; right: 24px; bottom: 4px; height: 2px;
    background: var(--accent); border-radius: 2px;
    transform: scaleX(0); transform-origin: center;
    transition: transform 0.3s var(--ease);
}
.worker-tab.active::after { transform: scaleX(1); }

.worker-panel { display: none; }
.worker-panel.active { display: block; animation: panelIn 0.28s var(--ease); }
@keyframes panelIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.worker-grid { display: grid; grid-template-columns: 1.18fr 0.82fr; gap: 48px; align-items: center; }
/* reversed panels (image on the right): make the RIGHT column the wide one so the image stays large */
.worker-grid-reverse { grid-template-columns: 0.82fr 1.18fr; }
.worker-grid-reverse .worker-image { order: 2; }

.worker-image {
    position: relative; border-radius: var(--r-lg); overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--sh-lg);
    background: var(--bg-soft);
}
.worker-image::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05); pointer-events: none; }
/* Detailed infographics must NOT be cropped: show full image at natural aspect ratio */
.worker-image img { display: block; width: 100%; height: auto; transition: transform 0.6s var(--ease); }
.worker-image:hover img { transform: scale(1.02); }

.worker-content h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--text-1); letter-spacing: -0.03em; margin-bottom: 18px; }
.worker-lead { font-size: 1.0625rem; color: var(--text-2); line-height: 1.8; margin-bottom: 30px; }

.worker-params {
    display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px;
    padding: 24px; background: var(--bg-soft);
    border: 1px solid var(--line); border-radius: var(--r-md);
}
.param { display: flex; flex-direction: column; gap: 5px; }
.param-key { font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent); }
.param-value { font-size: 0.9375rem; font-weight: 500; color: var(--text-1); }

.worker-list { display: flex; flex-direction: column; gap: 13px; }
.worker-list li { position: relative; padding-left: 30px; font-size: 0.9375rem; color: var(--text-2); line-height: 1.6; }
.worker-list li::before {
    content: ''; position: absolute; left: 2px; top: 6px;
    width: 16px; height: 16px; border-radius: 5px;
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 5px #fff, 0 0 0 1px var(--accent-soft-2);
}
.worker-list li::after {
    content: ''; position: absolute; left: 6px; top: 9px;
    width: 4px; height: 7px;
    border: solid var(--accent); border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ======================== FDE ======================== */
.section-fde { background: var(--bg-soft); }
.fde-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 72px; }

.fde-card {
    background: var(--bg); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 42px 34px; position: relative;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.fde-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: rgba(37, 99, 235, 0.28); }
/* connector between steps */
.fde-card:not(:last-child)::after {
    content: ''; position: absolute; top: 50%; right: -26px;
    width: 26px; height: 2px; z-index: 2;
    background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px);
}

.fde-number {
    font-size: 2.4rem; font-weight: 800; line-height: 1; margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-500), var(--accent-deep));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.fde-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--text-1); letter-spacing: -0.02em; margin-bottom: 12px; }
.fde-timing {
    display: inline-block; font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
    color: var(--accent); background: var(--accent-soft);
    padding: 5px 12px; border-radius: var(--r-pill); margin-bottom: 18px;
}
.fde-card p { font-size: 0.9375rem; color: var(--text-2); line-height: 1.8; }

.fde-image { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); border: 1px solid var(--line); max-width: 940px; margin: 0 auto; background: var(--bg-soft); }
.fde-image img { width: 100%; height: 420px; object-fit: cover; }

/* ======================== WORK (dark showcase) ======================== */
.section-work {
    background:
        radial-gradient(900px 500px at 15% 0%, rgba(37, 99, 235, 0.16), transparent 62%),
        radial-gradient(700px 440px at 96% 100%, rgba(59, 130, 246, 0.13), transparent 62%),
        linear-gradient(180deg, var(--ink-900), var(--ink-950));
    overflow: hidden;
}
.section-work::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 80%);
            mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 80%);
    pointer-events: none;
}
.section-work .container { position: relative; z-index: 1; }

.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.work-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid var(--glass-brd);
    border-radius: var(--r-lg); padding: 42px;
    backdrop-filter: blur(8px);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
.work-card:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 165, 250, 0.45);
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
    box-shadow: 0 30px 70px rgba(2, 6, 14, 0.5);
}
.work-category {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent-400); margin-bottom: 20px;
}
.work-category::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-500); box-shadow: 0 0 0 3px rgba(59,130,246,0.18); }
.work-card h3 { font-size: 1.4rem; font-weight: 700; color: #fff; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 14px; }
.work-client { font-size: 0.875rem; color: var(--on-dark-3); margin-bottom: 18px; font-weight: 500; }
.work-card > p:nth-of-type(2) { font-size: 0.9375rem; color: var(--on-dark-2); line-height: 1.8; margin-bottom: 30px; }

.work-metrics { display: flex; gap: 46px; padding-top: 26px; border-top: 1px solid var(--glass-brd); }
.metric { display: flex; flex-direction: column; gap: 6px; }
.metric-number { font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1; font-family: var(--mono); letter-spacing: -0.02em; }
.metric-label { font-size: 0.8125rem; color: var(--on-dark-3); line-height: 1.5; }

/* ======================== TRUST ======================== */
.section-trust { background: var(--bg); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.trust-card {
    background: var(--bg); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 36px 32px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.trust-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: rgba(37, 99, 235, 0.3); }

/* icon badge: rounded square with tinted bg */
.trust-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); background: var(--accent-soft);
    border: 1px solid var(--accent-soft-2);
    margin-bottom: 22px;
    transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}
.trust-card:hover .trust-icon { background: var(--accent-grad); color: #fff; transform: scale(1.05); box-shadow: var(--accent-glow); }

.trust-card h4 { font-size: 1.05rem; font-weight: 700; color: var(--text-1); margin-bottom: 10px; letter-spacing: -0.01em; }
.trust-card p { font-size: 0.9375rem; color: var(--text-2); line-height: 1.7; }

/* ======================== CONTACT (dark) ======================== */
.section-contact { padding: 0; position: relative; min-height: 560px; display: flex; align-items: center; background: var(--ink-950); overflow: hidden; }
.contact-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.contact-bg-img { width: 100%; height: 100%; object-fit: cover; }
.contact-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 23, 0.9) 0%, rgba(10, 14, 23, 0.78) 50%, rgba(10, 14, 23, 0.92) 100%); }

.contact-content { position: relative; z-index: 1; padding: 130px 0; text-align: center; max-width: 880px; margin: 0 auto; color: #fff; }
.contact-title { font-size: clamp(1.9rem, 4vw, 3.1rem); font-weight: 800; color: #fff; margin-bottom: 20px; letter-spacing: -0.03em; }
.contact-subtitle { font-size: 1.0625rem; color: var(--on-dark-3); margin-bottom: 54px; line-height: 1.8; }

.contact-info { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.contact-item {
    display: flex; align-items: center; gap: 16px;
    color: var(--on-dark); text-align: left;
    padding: 16px 24px;
    background: var(--glass); border: 1px solid var(--glass-brd);
    border-radius: var(--r-md); backdrop-filter: blur(10px);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
}
.contact-item:hover { transform: translateY(-3px); border-color: rgba(96, 165, 250, 0.5); background: var(--glass-2); box-shadow: 0 20px 44px rgba(2, 6, 14, 0.4); }
.contact-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(96, 165, 250, 0.14); border: 1px solid rgba(96, 165, 250, 0.3); display: flex; align-items: center; justify-content: center; color: var(--accent-400); flex-shrink: 0; }
.contact-label { display: block; font-size: 0.6875rem; color: var(--on-dark-3); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 4px; }

/* ======================== FOOTER ======================== */
.footer { background: var(--ink-950); border-top: 1px solid rgba(255, 255, 255, 0.06); color: var(--on-dark-3); padding: 54px 0 28px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 28px; margin-bottom: 34px; padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
/* Scheme C: white badge panel carries the white-bg logo so it has a home on the dark footer */
.footer-brand {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 30px;
    box-shadow: 0 24px 60px rgba(2, 6, 14, 0.4);
    display: flex;
    align-items: center;
    gap: 22px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; color: #0f172a; font-size: 1.125rem; font-weight: 700; }
.footer-logo-img {
    display: block;
    width: 190px;
    height: 33px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    background: transparent;
}
.footer-logo svg { color: var(--accent-400); }
.footer-tagline { font-size: 0.8125rem; color: var(--text-3); font-weight: 500; border-left: 1px solid var(--line); padding-left: 22px; }
.footer-company { text-align: right; font-size: 0.8125rem; line-height: 1.9; }
.footer-bottom { text-align: center; font-size: 0.75rem; color: rgba(203, 213, 225, 0.32); }

/* ======================== SCROLL REVEAL ======================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 56px; }
    .hero-content { max-width: 640px; }
    .hero-visual-frame { transform: none; max-width: 660px; }
    .hero-visual-frame:hover { transform: none; }
    .worker-grid, .worker-grid-reverse { grid-template-columns: 1fr; gap: 44px; }
    .worker-grid-reverse .worker-image { order: 0; }
    .section { padding: 100px 0; }
}

@media (max-width: 900px) {
    .gap-grid, .fde-grid, .work-grid, .trust-grid { grid-template-columns: 1fr; }
    .fde-card:not(:last-child)::after { display: none; }
    .fde-image img { height: 300px; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: clamp(1.7rem, 4.5vw, 2.3rem); }
}

@media (max-width: 768px) {
    /* mobile drawer */
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; align-items: flex-start;
        gap: 28px; padding: 48px 44px; z-index: 999;
        box-shadow: -20px 0 60px rgba(15, 23, 42, 0.16);
        transition: right 0.45s var(--ease);
    }
    .nav-links.active { right: 0; }
    .nav-links .nav-link { color: var(--text-1); font-size: 1.25rem; font-weight: 600; }
    .nav-links .nav-link::after { display: none; }
    .nav-links .nav-link:hover, .nav-links .nav-link.active-nav { color: var(--accent); }
    .nav-toggle { display: flex; }
    .nav-cta { width: 100%; text-align: center; margin-top: 8px; }
    .nav-cta:hover { color: #fff !important; }

    .section { padding: 88px 0; }
    .section-header { margin-bottom: 52px; }
    .hero { padding: 138px 0 96px; min-height: auto; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; }
    .btn { width: 100%; }
    .trust-grid { grid-template-columns: 1fr; }
    .workers-tabs { width: 100%; justify-content: stretch; }
    .worker-tab { flex: 1; text-align: center; }
    .contact-info { flex-direction: column; align-items: stretch; max-width: 400px; margin: 0 auto; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-company { text-align: center; }
}

@media (max-width: 480px) {
    .nav-logo-img { width: 196px; height: 34px; }
    .footer-logo-img { width: 160px; height: 28px; }
    .container { padding: 0 18px; }
    .nav-container { padding: 0 18px; }
    .gap-card, .fde-card, .work-card, .trust-card { padding: 28px 22px; }
    .worker-image img { height: auto; }
    .metric-number { font-size: 1.5rem; }
    .work-metrics { gap: 26px; flex-wrap: wrap; }
    .fde-card { padding: 32px 24px; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
