/* =========================================================
   42Code.NET — main.css
   Dark, premium, performance-first design system
   ========================================================= */

:root {
    --bg: #0b0c0e;
    --bg-2: #101114;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-2: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --text: #f4f4f5;
    --muted: #aaaaaa;
    --dim: #7a7a7a;
    --accent: #e4e4e7;
    --accent-2: #aaaaaa;
    --accent-ink: #1a1a1a;
    --danger: #fb7185;
    --grad: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);

    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
    --font-display: 'Space Grotesk', var(--font);
    --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

    --radius: 18px;
    --radius-sm: 12px;
    --nav-h: 72px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --container: 1200px;

    /* aliases for legacy pages (ceo.html) */
    --primary: var(--bg);
    --primary-light: var(--text);
    --bg-alt: var(--bg-2);
    --card: var(--surface);
    --border: var(--line);
    --text-muted: var(--muted);
    --card-shadow: none;

    color-scheme: dark;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-h) + 16px);
}
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    text-rendering: optimizeLegibility;
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}
.container.narrow { max-width: 860px; }

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
    border-radius: 10px;
    transform: translateY(-200%);
    transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

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

/* ---------- Scroll progress ---------- */
.scroll-progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 2px;
    z-index: 200;
    background: var(--grad);
    transform-origin: 0 50%;
    transform: scaleX(0);
}

/* ---------- Buttons ---------- */
.btn {
    --pad-y: 14px;
    --pad-x: 22px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: var(--pad-y) var(--pad-x);
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.35s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.35s;
    isolation: isolate;
}
.btn i { font-size: 0.9em; transition: transform 0.35s var(--ease); }
.btn:hover i.fa-arrow-right,
.btn:hover i.fa-arrow-up-right-from-square { transform: translateX(3px); }
.btn-sm { --pad-y: 10px; --pad-x: 16px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-accent {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 0 0 0 rgba(228, 228, 231, 0);
}
.btn-accent:hover {
    background: #ffffff;
    box-shadow: 0 8px 30px -6px rgba(228, 228, 231, 0.45);
}
.btn-ghost {
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.07); }
.btn:disabled { opacity: 0.6; cursor: progress; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); background: var(--surface); }

/* ---------- Header / Nav ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-h);
    transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s, transform 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(11, 12, 14, 0.72);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom-color: var(--line);
}
.site-header.hide { transform: translateY(-100%); }

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.nav-logo img { height: 34px; width: auto; }
.nav-panel { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
    position: relative;
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateX(-50%);
}
.nav-actions { display: flex; align-items: center; gap: 8px; }

.lang { position: relative; }
.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    padding: 6px;
    background: rgba(20, 21, 24, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line-2);
    border-radius: 14px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 14px;
    color: var(--muted);
}
.lang-menu a b { font-size: 11px; font-weight: 600; color: var(--dim); letter-spacing: 0.04em; }
.lang-menu a:hover { background: var(--surface-2); color: var(--text); }
.lang-menu a[aria-current] { color: var(--text); }
.lang-menu a[aria-current] b { color: var(--accent); }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    position: relative;
}
.nav-toggle span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 48px) 0 96px;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    will-change: transform;
}
.aurora.a1 {
    width: 620px; height: 620px;
    top: -220px; right: -120px;
    background: radial-gradient(circle, rgba(228, 228, 231, 0.55), transparent 65%);
    animation: drift1 18s ease-in-out infinite alternate;
}
.aurora.a2 {
    width: 520px; height: 520px;
    bottom: -260px; left: -160px;
    background: radial-gradient(circle, rgba(161, 161, 170, 0.35), transparent 65%);
    animation: drift2 22s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(-120px, 80px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(140px, -60px) scale(1.1); } }
.grid-fade {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 80%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 56px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 12px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 28px;
}
.pulse {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    animation: ping 2s var(--ease) infinite;
}
@keyframes ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2); opacity: 0; } }

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.3rem, 4.6vw, 3.9rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
}
.hero-title .line { display: block; }
.hero-title .text-gradient {
    background-image: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 40%, #ffffff 50%, var(--accent-2) 60%, var(--accent) 100%);
    background-size: 220% auto;
    animation: shine 7s linear infinite;
}
@keyframes shine { to { background-position: -220% 0; } }
.hero-sub {
    max-width: 580px;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--muted);
    margin-bottom: 36px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }

.stats {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    max-width: 620px;
}
.stats li { display: flex; flex-direction: column; gap: 2px; }
.stats strong {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.stats span { font-size: 13px; color: var(--dim); line-height: 1.35; }

.hero-visual { position: relative; perspective: 1200px; }
.code-card {
    position: relative;
    background: linear-gradient(180deg, rgba(24, 25, 29, 0.92), rgba(16, 17, 20, 0.92));
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.6s var(--ease);
}
.code-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(228, 228, 231, 0.5), transparent 40%, transparent 60%, rgba(161, 161, 170, 0.35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.code-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #3f3f46; }
.dots i:nth-child(1) { background: #71717a; }
.dots i:nth-child(2) { background: #52525b; }
.dots i:nth-child(3) { background: #3f3f46; }
.code-file { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.code-body {
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.75;
    padding: 20px 22px;
    min-height: 300px;
    color: #d4d4d8;
    white-space: pre-wrap;
    word-break: break-word;
}
.code-body .k { color: #ffffff; font-weight: 500; }
.code-body .s { color: var(--accent); }
.code-body .n { color: #f4f4f5; }
.code-body .c { color: var(--dim); font-style: italic; }
.code-body .p { color: var(--accent-2); }
.caret {
    display: inline-block;
    width: 8px;
    height: 1.1em;
    margin-left: 1px;
    vertical-align: text-bottom;
    background: var(--accent);
    animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.code-foot {
    display: flex;
    justify-content: space-between;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--dim);
}
.code-foot i { color: var(--accent); }
.code-foot b { color: var(--accent); font-weight: 500; }

.float-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(20, 21, 24, 0.85);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(10px);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
    animation: float 6s ease-in-out infinite;
}
.float-chip i { color: var(--accent); }
.chip-1 { top: -18px; right: 24px; }
.chip-2 { bottom: 40px; left: -36px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 28px;
    width: 26px;
    height: 42px;
    border: 1.5px solid var(--line-2);
    border-radius: 999px;
    transform: translateX(-50%);
}
.scroll-cue span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 3px;
    height: 8px;
    border-radius: 3px;
    background: var(--text);
    transform: translateX(-50%);
    animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- Marquee ---------- */
.marquee {
    border-block: 1px solid var(--line);
    background: var(--bg-2);
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 56px; padding: 22px 28px; }
.marquee li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 17px;
    color: var(--dim);
    white-space: nowrap;
    transition: color 0.2s;
}
.marquee li:hover { color: var(--text); }
.marquee li i { font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}
.tag::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.tag-sm { font-size: 11px; margin-bottom: 12px; }
.tag-sm::before { display: none; }
.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}
.lead { font-size: clamp(1rem, 1.25vw, 1.125rem); color: var(--muted); }

/* ---------- Cards ---------- */
.card {
    position: relative;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s, transform 0.5s var(--ease), background-color 0.3s;
}
.card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 15px; }
.card:hover { border-color: var(--line-2); }

/* mouse spotlight */
.spot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(228, 228, 231, 0.09), transparent 45%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.spot:hover::before { opacity: 1; }

.card-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border-radius: 14px;
    border: 1px solid var(--line-2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
    color: var(--accent);
    font-size: 19px;
}
.card-icon.lg { width: 60px; height: 60px; font-size: 24px; border-radius: 16px; }
.card-num {
    position: absolute;
    top: 26px;
    right: 28px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--dim);
}

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

.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.bento-lg { grid-column: span 2; grid-row: span 1; }
.bento-lg h3 { font-size: 1.6rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pills li {
    padding: 6px 12px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
}

.feature { display: flex; flex-direction: column; align-items: flex-start; padding: 40px; }
.feature h3 { font-size: 1.5rem; }
.feature p { margin-bottom: 28px; flex: 1; }
.feature strong { color: var(--text); font-weight: 600; }
.dashed { border-style: dashed; border-color: var(--line-2); background: transparent; }

/* ---------- Process ---------- */
.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: step;
}
.steps::before {
    content: '';
    position: absolute;
    top: 27px;
    left: 28px;
    right: 28px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2) 60%, transparent);
    opacity: 0.35;
    transform-origin: 0 50%;
    transform: scaleX(var(--progress, 1));
}
.step { position: relative; padding-right: 12px; }
.step-n {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 26px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: var(--bg);
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent);
    box-shadow: 0 0 0 6px var(--bg);
}
.step h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Showcase ---------- */
.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}
.tab {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: all 0.25s;
}
.tab:hover { color: var(--text); border-color: var(--line-2); }
.tab[aria-selected='true'] { background: var(--text); color: var(--bg); border-color: var(--text); }

.browser {
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: #141518;
    overflow: hidden;
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.8);
}
.browser-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}
.browser-url {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 460px;
    margin-inline: auto;
    padding: 7px 14px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--muted);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.browser-url i { color: var(--accent); font-size: 11px; }
.browser-tools { display: flex; align-items: center; gap: 4px; }
.tool {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    color: var(--dim);
    transition: color 0.2s, background 0.2s;
}
.tool:hover, .tool.active { color: var(--text); background: var(--surface-2); }
.browser-tools .btn { margin-left: 8px; }
.browser-screen {
    position: relative;
    height: min(72vh, 720px);
    background: #0e0f11;
    display: flex;
    justify-content: center;
}
.browser-screen iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
    transition: width 0.5s var(--ease), border-radius 0.5s;
}
.browser-screen.view-tablet iframe { width: 768px; border-inline: 1px solid var(--line-2); }
.browser-screen.view-mobile iframe { width: 390px; border-inline: 1px solid var(--line-2); }
.browser-loader {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
    color: var(--muted);
    background: #0e0f11;
    transition: opacity 0.4s;
}
.browser-loader.hidden { opacity: 0; pointer-events: none; }
.spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--line-2);
    border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: border-color 0.3s, background 0.3s;
}
.faq-item[open] { border-color: var(--line-2); background: var(--surface-2); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-size: 1.05rem; font-weight: 600; font-family: var(--font); }
.faq-icon { position: relative; flex: none; width: 18px; height: 18px; }
.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--accent);
    transition: transform 0.35s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-a { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: start; }
.request-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(228, 228, 231, 0.14), transparent 55%),
        var(--surface);
    border-color: rgba(228, 228, 231, 0.25);
    margin-bottom: 20px;
}
.request-card h3 { font-size: 1.35rem; }
.request-card p { margin-bottom: 24px; }
.request-card strong { color: var(--text); }
.contact-list { display: flex; flex-direction: column; gap: 6px; }
.contact-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
}
.contact-list li:hover { border-color: var(--line-2); }
.contact-list i { width: 18px; color: var(--accent); }
.contact-list a { color: var(--muted); font-size: 15px; }
.contact-list a:hover { color: var(--text); }

.contact-form { padding: 32px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; margin-bottom: 14px; }
.field input,
.field textarea {
    width: 100%;
    padding: 24px 16px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-2);
    background: rgba(0, 0, 0, 0.25);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    resize: vertical;
}
.field textarea { min-height: 150px; }
.field label {
    position: absolute;
    top: 17px;
    left: 17px;
    font-size: 15px;
    color: var(--dim);
    pointer-events: none;
    transform-origin: 0 0;
    transition: transform 0.25s var(--ease), color 0.2s;
}
.field input:focus,
.field textarea:focus {
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 4px rgba(228, 228, 231, 0.12);
}
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
    transform: translateY(-9px) scale(0.78);
    color: var(--accent);
}
.field.invalid input,
.field.invalid textarea { border-color: var(--danger); }
.form-status { min-height: 1.5em; margin: 4px 0 14px; font-size: 14px; font-weight: 500; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: var(--danger); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand p { margin: 18px 0 22px; color: var(--muted); font-size: 14.5px; max-width: 320px; }
.footer-title {
    margin-bottom: 18px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dim);
}
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--muted); font-size: 14.5px; transition: color 0.2s; }
.footer ul a:hover { color: var(--text); }
.socials { display: flex; gap: 8px; }
.socials a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    color: var(--muted);
    transition: all 0.2s;
}
.socials a:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-block: 24px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--dim);
}
.footer-langs a { color: var(--dim); }
.footer-langs a:hover, .footer-langs a[aria-current] { color: var(--text); }

/* ---------- Floating UI ---------- */
.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: rgba(20, 21, 24, 0.85);
    backdrop-filter: blur(10px);
    color: var(--text);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.35s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.lang-suggest {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: calc(100% - 32px);
    padding: 10px 10px 10px 20px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: rgba(20, 21, 24, 0.95);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
    font-size: 14px;
    transform: translateX(-50%);
    animation: slideUp 0.5s var(--ease);
}
.lang-suggest[hidden] { display: none; }
.lang-suggest button { width: 32px; height: 32px; border-radius: 50%; color: var(--dim); }
.lang-suggest button:hover { color: var(--text); background: var(--surface-2); }
@keyframes slideUp { from { opacity: 0; transform: translate(-50%, 20px); } }

/* ---------- Reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.in {
    opacity: 1;
    transform: none;
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js.gsap-on .reveal.in { transition: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .nav-links a { padding: 8px 9px; font-size: 13.5px; }
    .nav-panel { gap: 16px; }
}

@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .nav-panel {
        position: fixed;
        inset: var(--nav-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        max-height: calc(100dvh - var(--nav-h));
        overflow-y: auto;
        padding: 20px 24px 28px;
        background: rgba(11, 12, 14, 0.97);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0.3s;
    }
    .nav-open .nav-panel { opacity: 1; visibility: visible; transform: none; }
    .nav-open .site-header { background: rgba(11, 12, 14, 0.97); }
    .nav-links { flex-direction: column; gap: 2px; }
    .nav-links a { padding: 14px 4px; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--line); }
    .nav-links a:hover { background: none; }
    .nav-links a.active::after { left: auto; right: 4px; top: 50%; transform: translateY(-50%); }
    .nav-actions { justify-content: space-between; }
    .nav-actions .btn { flex: 1; }
    .lang-menu { right: auto; left: 0; bottom: calc(100% + 10px); top: auto; transform-origin: bottom left; }

    .hero-inner { grid-template-columns: 1fr; gap: 64px; }
    .hero-visual { max-width: 560px; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .bento { grid-template-columns: 1fr 1fr; }
    .bento-lg { grid-column: span 2; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
    .steps::before { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    :root { --nav-h: 64px; }
    .container { padding-inline: 16px; }
    .hero { padding-bottom: 80px; }
    .hero-ctas .btn { flex: 1 1 100%; }
    .stats { grid-template-columns: 1fr 1fr; gap: 20px; }
    .chip-2 { left: -6px; }
    .chip-1 { right: 8px; }
    .code-body { font-size: 12px; min-height: 260px; padding: 16px; }
    .grid-3, .grid-2, .bento { grid-template-columns: 1fr; }
    .bento-lg { grid-column: auto; }
    .steps { grid-template-columns: 1fr; }
    .card, .feature, .contact-form { padding: 24px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .browser-url { display: none; }
    .browser-bar { justify-content: space-between; }
    .browser-tools .tool[data-view='tablet'] { display: none; }
    .browser-screen { height: 70vh; }
    .browser-screen.view-mobile iframe { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .scroll-cue { display: none; }
    .lang-suggest { border-radius: 18px; flex-wrap: wrap; padding: 14px 16px; }
}

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

/* ---------- Language tweaks ---------- */
.nav-links a { white-space: nowrap; }
html[lang='ja'] .hero-title { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.25; letter-spacing: -0.01em; }
html[lang='ja'] .section-head h2 { line-height: 1.3; letter-spacing: 0; }
html[lang='ja'] body { line-height: 1.8; }
@media (min-width: 981px) and (max-width: 1240px) {
    html[lang='ja'] .nav-links a, html[lang='de'] .nav-links a, html[lang='fr'] .nav-links a { padding: 8px 7px; font-size: 13px; }
}
.hero-copy { min-width: 0; }
.hero-title, .section-head h2 { overflow-wrap: break-word; hyphens: auto; }

/* =========================================================
   KLASİK KİMLİK — eski 42Code tasarımının görsel dili
   (mat gri zemin, Amarante başlıklar, Nunito metin, ortalı hero,
   büyük harfli menü). Geri almak için bu bloğu silmek yeterli.
   ========================================================= */
:root {
    --bg: #202020;
    --bg-2: #1a1a1a;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-2: rgba(255, 255, 255, 0.055);
    --line: rgba(255, 255, 255, 0.07);
    --line-2: rgba(255, 255, 255, 0.15);
    --muted: #a3a3a3;
    --dim: #8e8e93;
    --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
    --font-display: 'Amarante', Georgia, 'Times New Roman', serif;
}
/* Amarante Japonca karakter içermez → Japonca sayfada başlıklar metin fontuyla */
html[lang='ja'] { --font-display: var(--font); }

/* Amarante'nin tek ağırlığı var: sahte kalınlaştırmayı ve sıkı harf aralığını kapat */
.hero-title,
.section-head h2,
.card h3,
.stats strong,
.card-num {
    font-weight: 400;
    letter-spacing: 0;
}

/* ---- Header ---- */
.site-header.scrolled { background: rgba(32, 32, 32, 0.86); }
.nav-links a {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 0;
}
.nav-links a:hover { background: none; }
.nav-links a.active::after {
    left: 12px;
    right: 12px;
    bottom: 0;
    width: auto;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transform: none;
}
.icon-btn {
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line-2);
}

/* ---- Butonlar: büyük harf; ana buton hap, ikincil buton köşeli ---- */
.btn {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.btn-accent {
    background: #2b2b2b;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}
.btn-accent:hover {
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.35);
}
.btn-ghost {
    border-radius: 4px;
    border: 1.5px solid rgba(255, 255, 255, 0.32);
    background: transparent;
    backdrop-filter: none;
}
.btn-ghost:hover { border-color: #ffffff; background: rgba(255, 255, 255, 0.06); }

/* ---- Hero: solda metin, sağda kod kartı (tablet/telefonda ortalı, kart altta) ---- */
.hero { padding-bottom: 130px; }
.hero .grid-fade { display: none; }
.aurora { opacity: 0.22; }
.hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 56px;
}
.hero-title {
    font-size: clamp(2.6rem, 4.8vw, 4.4rem);
    line-height: 1.12;
}
.hero-sub { max-width: 560px; color: #d4d4d8; }
.hero-ctas { margin-bottom: 44px; }
.stats { grid-template-columns: repeat(4, auto); max-width: 600px; }
.stats strong { font-size: 2.1rem; }
.code-body { min-height: 260px; }

@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 56px; }
    .hero-sub { margin-inline: auto; }
    .hero-ctas { justify-content: center; }
    .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-inline: auto; }
    .stats li { align-items: center; }
    .hero-visual { width: 100%; max-width: 600px; text-align: left; }
}

.scroll-cue {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--dim);
}
.scroll-cue small {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    white-space: nowrap;
}
.scroll-cue span {
    position: relative;
    top: auto;
    left: auto;
    width: 1px;
    height: 56px;
    border-radius: 0;
    background: var(--line-2);
    transform: none;
    animation: none;
    overflow: hidden;
}
.scroll-cue span::after {
    content: '';
    position: absolute;
    left: 0;
    top: -40%;
    width: 1px;
    height: 40%;
    background: #ffffff;
    animation: cue-line 2s var(--ease) infinite;
}
@keyframes cue-line { to { top: 100%; } }

/* ---- Bölüm başlıkları: ortalı hap etiket + Amarante başlık ---- */
.tag {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.05);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--text);
}
.tag::before { width: 6px; height: 6px; border-radius: 50%; }
.tag-sm::before { display: none; }
.section-head h2 {
    font-size: clamp(2.2rem, 4.4vw, 3.5rem);
    line-height: 1.18;
}

/* ---- Bölüm geçişleri: eskisi gibi tek düz zemin, bölümler arası renk farkı/çizgi yok ---- */
.section-alt,
.marquee {
    background: transparent;
    border-block: 0;
}
.footer {
    background: #171717;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- Kartlar: çerçevesiz mat yüzey, büyük numara, ortalı ---- */
.card {
    background: rgba(255, 255, 255, 0.03);
    border-color: transparent;
    border-radius: 16px;
}
.card:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--line-2); }
.card h3 { font-size: 1.4rem; line-height: 1.25; }
#about .card,
#services .card { text-align: center; }
#about .card-num,
#services .card-num {
    position: static;
    display: block;
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-size: 2.6rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.3);
}
#about .card-num + .card-icon,
#services .card-num + .card-icon { display: none; }
#services .pills { justify-content: center; }

@media (max-width: 980px) {
    .nav-panel,
    .nav-open .site-header { background: rgba(32, 32, 32, 0.98); }
    .nav-links a { font-size: 15px; }
    .nav-links a.active::after { left: auto; right: 4px; top: 50%; width: 6px; height: 6px; border-radius: 50%; transform: translateY(-50%); }
}
@media (max-width: 640px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: clamp(2.1rem, 9vw, 2.8rem); }
}
