/* ============================================================================
   SCHNABEL · "GÖRÜNÜR HAT / THE VISIBLE LINE" — NEXT-GEN REDESIGN LAYER
   ----------------------------------------------------------------------------
   Loaded AFTER index.css. Overrides tokens + global aesthetics, recomposes
   layouts, and removes the templated "AI tells" (glow spam, neon, kitsch nav
   metal). Brand (crimson / gold / black), content, IA and all JS hooks are
   preserved. Revertible: remove the <link> to fall back to the original.
   Dials — VARIANCE 9 · MOTION 9 · DENSITY 3  (redesign overhaul / experimental)
   ========================================================================== */

/* --- GLOBAL MOBIL RESET --- */
* {
    -webkit-tap-highlight-color: transparent;
}
*:focus, *:active {
    outline: none !important;
}
::selection {
    background: transparent;
}

/* ----------------------------------------------------------------------------
   1. DESIGN TOKENS  (override existing var names + add a real scale)
   -------------------------------------------------------------------------- */
:root {
    /* Ink ramp — off-black, never pure #000 */
    --ink-900: #08080a;
    --ink-800: #0b0b0e;
    --ink-700: #101015;
    --ink-600: #16161c;
    --ink-500: #1d1d25;
    --ink-400: #26262f;

    /* Re-point legacy vars so the whole site inherits the new base */
    --bg-dark: #0a0a0c;
    --bg-dark-rgb: 10, 10, 12;
    --card-dark: #101015;
    --card-dark-rgb: 16, 16, 21;

    /* Primary — crimson (the "flow / energy" accent, locked) */
    --primary: #d6172a;
    --primary-rgb: 214, 23, 42;
    --primary-soft: rgba(214, 23, 42, 0.14);
    --primary-glow: rgba(214, 23, 42, 0.22);

    /* Secondary — refined brass-gold (material highlight: beans / metal sheen) */
    --secondary: #e0a52b;
    --secondary-rgb: 224, 165, 43;
    --secondary-glow: rgba(224, 165, 43, 0.18);

    --accent: #b3121f;
    --accent-glow: rgba(179, 18, 31, 0.22);

    /* Text */
    --text-light: #f5f4f2;
    --text-muted: #9b9ba6;
    --text-dim: #6c6c78;

    /* Lines & surfaces */
    --hair: rgba(255, 255, 255, 0.08);
    --hair-strong: rgba(255, 255, 255, 0.14);
    --border: rgba(255, 255, 255, 0.08);

    /* Glass (used sparingly now) */
    --glass-bg: rgba(16, 16, 21, 0.62);
    --glass-border: rgba(255, 255, 255, 0.10);
    --glass-border-hover: rgba(255, 255, 255, 0.20);

    /* Type */
    --font-heading: 'Korataki', 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    /* Radius — ONE scale (chips/buttons = pill, cards = lg, inputs = sm) */
    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 26px;
    --r-pill: 999px;

    /* Spacing rhythm */
    --space-section: clamp(5.5rem, 4rem + 7vw, 11rem);
    --gutter: clamp(1.25rem, 0.6rem + 2.4vw, 2.5rem);

    /* Elevation — tinted, never pure black */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 40px 90px rgba(0, 0, 0, 0.6);
    --shadow-crimson: 0 24px 70px rgba(214, 23, 42, 0.12);

    /* Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.25s ease;
}

/* ----------------------------------------------------------------------------
   2. BASE + ATMOSPHERE
   -------------------------------------------------------------------------- */
html { scroll-behavior: auto; } /* Lenis owns smooth scroll; native would fight it */

/* Lenis smooth-scroll required styles (iframe rule omitted so the map stays usable) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    /* Calmer ambient field: one cool crimson pool top, faint brass pool bottom */
    background-image:
        radial-gradient(120% 80% at 50% -10%, rgba(214, 23, 42, 0.06) 0%, transparent 55%),
        radial-gradient(90% 60% at 100% 105%, rgba(224, 165, 43, 0.035) 0%, transparent 60%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection { background: rgba(214, 23, 42, 0.30); color: #fff; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), #7a0c15);
    border-radius: 99px;
    border: 2px solid var(--ink-900);
}

/* Fixed grain + atmosphere layers (elements injected in index.html) */
.fx-atmos,
.fx-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.fx-atmos {
    background:
        radial-gradient(60% 50% at 80% 8%, rgba(214, 23, 42, 0.05), transparent 70%),
        radial-gradient(50% 50% at 12% 92%, rgba(224, 165, 43, 0.04), transparent 70%);
    mix-blend-mode: screen;
}
.fx-grain {
    z-index: 60;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}
/* Keep real content above the atmosphere field */
#header, main, footer, .skeleton-overlay, .modal, #toast-container,
.spine { position: relative; z-index: 2; }
#header { z-index: 1000; }
/* WhatsApp launcher stays a true viewport-fixed FAB (index.css owns its fixed + z-index) */
.whatsapp-float { position: fixed; z-index: 9999; }

/* ----------------------------------------------------------------------------
   3. TYPOGRAPHY  (de-glow, real hierarchy)
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { letter-spacing: -0.025em; }

/* Kill the neon glow tell — keep ink legible with only faint depth */
.glow-text {
    color: var(--text-light);
    text-shadow: none;
    text-wrap: balance;
}

.section-title {
    font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin-bottom: 1.25rem;
}

.section-desc,
.section-description {
    color: var(--text-muted);
    font-size: clamp(1rem, 0.96rem + 0.3vw, 1.12rem);
    line-height: 1.65;
    max-width: 56ch;
}

/* Eyebrow → engineering micro-label with a leading hairline (mono, restrained) */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 1.25rem;
}
.section-tag::before {
    content: "";
    width: 1.6rem;
    height: 1px;
    background: linear-gradient(90deg, var(--secondary), transparent);
}
.section-header { max-width: 760px; margin: 0 auto var(--gutter) auto; }
.section-header .section-tag { justify-content: center; }

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

/* ----------------------------------------------------------------------------
   4. BUTTONS  (refined, magnetic-ready, full states, no neon)
   -------------------------------------------------------------------------- */
.btn {
    position: relative;
    overflow: hidden;
    gap: 0.55rem;
    padding: 1rem 2.1rem;
    border-radius: var(--r-pill);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    transition: transform 0.45s var(--ease-out-expo), background 0.3s ease,
                box-shadow 0.4s var(--ease-out-expo), color 0.25s ease, border-color 0.25s ease;
    will-change: transform;
}
.btn-sm {
    padding: 0.45rem 1.1rem;
    font-size: 0.8rem;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 30px rgba(214, 23, 42, 0.28);
}
.btn-primary:hover {
    background: #ec1f31;
    transform: translateY(-3px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 18px 44px rgba(214, 23, 42, 0.4);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--hair-strong);
    color: var(--text-light);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}
.btn:active { transform: scale(0.97) translateY(0); }
.btn-block { width: 100%; }

/* Magnetic inner wrapper (enhance.js moves .btn-label; keep label crisp) */
.btn > .btn-label { display: inline-block; will-change: transform; }

/* ----------------------------------------------------------------------------
   5. HEADER / NAV  (single line, calmer, drop the kitsch metal rails)
   -------------------------------------------------------------------------- */
#header { padding: 1.15rem 0; }
#header.scrolled {
    background: rgba(8, 8, 10, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--hair);
    padding: 0.7rem 0;
}
.header-container { gap: 2rem; }

.nav-links {
    gap: 0.15rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--hair);
    border-radius: var(--r-pill);
    padding: 0.32rem 0.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
/* remove the chrome side-rails (kitsch tell) */
.nav-links::before, .nav-links::after { display: none !important; }

.nav-links a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0;
    color: var(--text-muted);
    padding: 0.45rem 0.85rem;
    border-radius: var(--r-pill);
    white-space: nowrap;          /* never let a label wrap to 2 lines */
    transition: color 0.25s ease, background 0.3s var(--ease-out-expo);
}

/* Compact band: 8 Turkish labels + lang + CTA must stay on one line 1024–1366 */
@media (min-width: 1025px) and (max-width: 1366px) {
    .header-container { gap: 1.25rem; }
    .nav-links { padding: 0.28rem 0.4rem; }
    .nav-links a { font-size: 0.74rem; padding: 0.4rem 0.62rem; }
    .nav-actions { gap: 0.9rem; }
}
.nav-links a::before { display: none; } /* drop the gradient fill pill */
.nav-links a:hover { color: var(--text-light); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active,
.nav-links a.active:hover {
    color: #fff !important;
    background: var(--primary);
    box-shadow: 0 6px 18px rgba(214, 23, 42, 0.32);
}

/* gold underline indicator no longer needed (pill shows active) */
.nav-active-line { display: none !important; }

.lang-switch {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--hair);
    border-radius: var(--r-pill);
}
.lang-btn { border-radius: var(--r-pill); }
.lang-btn.active { background: var(--primary); box-shadow: none; }

.header-logo-img,
.footer-logo-img { filter: none; }
.header-logo-img:hover { transform: scale(1.03); filter: none; }

/* ----------------------------------------------------------------------------
   6. GLASS / SURFACES  (subtle, real edge refraction, a11y fallback)
   -------------------------------------------------------------------------- */
.glass {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    backdrop-filter: blur(20px) saturate(130%);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.5s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.5s var(--ease-out-expo);
}
.glass:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-crimson), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
@media (prefers-reduced-transparency: reduce) {
    .glass { background: var(--ink-700); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Spotlight glow that follows the cursor (app.js sets --mx/--my) */
.pillar-card, .product-card, .contact-info-card, .faq-item, .spec-card,
.prx-cell, .cx-tilt, .team-card { position: relative; }
.pillar-card::after, .product-card::after, .contact-info-card::after,
.spec-card::after, .prx-cell::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
                rgba(214, 23, 42, 0.10), transparent 60%);
}
.pillar-card:hover::after, .product-card:hover::after,
.contact-info-card:hover::after, .spec-card:hover::after, .prx-cell:hover::after { opacity: 1; }

/* ----------------------------------------------------------------------------
   7. SCROLL-REVEAL  (richer base; enhance.js adds the choreography)
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
    will-change: opacity, transform;
}
.reveal.revealed { opacity: 1; transform: none; }

/* ----------------------------------------------------------------------------
   8. LOADER  (restyle to the new language — a filling line)
   -------------------------------------------------------------------------- */
.skeleton-overlay { background: var(--ink-900); gap: 1.6rem; }
.skeleton-logo { width: 132px; animation: skeletonPulse 1.4s infinite alternate ease-in-out; }
.skeleton-bar-container {
    width: 220px; height: 2px; background: rgba(255, 255, 255, 0.08); border-radius: 99px;
}
.skeleton-bar {
    background: linear-gradient(90deg, transparent, var(--primary) 40%, var(--secondary) 60%, transparent);
}

/* ----------------------------------------------------------------------------
   9. FOOTER  (cleaner, hairline structure)
   -------------------------------------------------------------------------- */
footer {
    background: var(--ink-900);
    border-top: 1px solid var(--hair);
    margin-top: 0;
}
.footer-title { font-family: var(--font-heading); letter-spacing: -0.01em; }
.social-icon:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ----------------------------------------------------------------------------
   10. MISC POLISH
   -------------------------------------------------------------------------- */
.whatsapp-float { border-radius: var(--r-pill); }

/* Form fields → unify radius + focus */
.form-group input, .form-group textarea, .form-group select {
    border-radius: var(--r-xs);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--hair);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(214, 23, 42, 0.16);
    background: rgba(255, 255, 255, 0.05);
}

/* Section-tag inside left-aligned headers keeps the hairline on the left */
.adv-left .section-tag, .adv-right .section-tag { justify-content: flex-start; }

/* --- LAYOUT UTILS --- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}
@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
}

/* --- MOBILE CANVAS FALLBACK --- */
.scroll-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    display: none;
}
@media (max-width: 1024px) {
    #scroll-bound-video, #cafe-scroll-bound-video { display: none !important; }
    .scroll-canvas { display: block !important; }
}

/* ----------------------------------------------------------------------------
   12. HERO  — "The Visible Line" (real renders + kinetic type + parallax)
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100dvh;
    padding-top: clamp(96px, 12vh, 150px);
    padding-bottom: 4rem;
    overflow: hidden;
}
.hero-video { opacity: 0.1; filter: saturate(0.7) contrast(1.05) brightness(0.8); }
.hero-overlay {
    background:
        linear-gradient(180deg, rgba(8,8,10,0.62) 0%, rgba(8,8,10,0.78) 45%, var(--bg-dark) 100%),
        radial-gradient(70% 60% at 22% 42%, rgba(8,8,10,0.5), transparent 70%);
}

.hero-grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); gap: clamp(1.8rem, 1rem + 3vw, 4rem); align-items: center; }

/* Giant kinetic watermark behind everything */
.hero-watermark {
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(4rem, 14.5vw, 14.5rem);
    letter-spacing: -0.04em;
    line-height: 1;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.045);
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

.hero-content { position: relative; z-index: 3; gap: 1.8rem; }
.hero-tag {
    background: var(--primary-soft);
    border: 1px solid rgba(214, 23, 42, 0.25);
    color: #ff8a93;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
}
.hero-title {
    font-size: clamp(2.1rem, 1.5rem + 1.9vw, 3.15rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    font-weight: 800;
    text-wrap: balance;
}
.hero-title .ht-line { display: block; overflow: hidden; }
.hero-title .ht-em { color: var(--secondary); font-style: italic; }
.hero-description { font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem); max-width: 30rem; color: var(--text-muted); }
.hero-buttons { gap: 1rem; flex-wrap: wrap; }

/* Visual stage */
.hero-visual { height: auto; position: relative; z-index: 2; }
.hero-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.92;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Warm spotlight so the dark glass tubes read against the dark hero */
.hero-stage::before {
    content: "";
    position: absolute;
    inset: -22%;
    z-index: 1;
    background:
        radial-gradient(44% 50% at 56% 42%, rgba(224, 165, 43, 0.30), transparent 68%),
        radial-gradient(64% 64% at 60% 52%, rgba(214, 23, 42, 0.22), transparent 72%);
    filter: blur(10px);
    pointer-events: none;
}
/* Soft contact shadow grounding the render */
.hero-stage::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 4%;
    width: 70%; height: 36px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.6), transparent 70%);
    filter: blur(6px);
    z-index: 1;
    pointer-events: none;
}
.hero-stage-tubes {
    position: absolute;
    width: 118%;
    max-width: none;
    left: -9%;            /* centers a 118%-wide cutout (no translate → no GSAP parallax conflict) */
    top: 6%;
    filter: drop-shadow(0 36px 55px rgba(0, 0, 0, 0.62)) brightness(1.06) contrast(1.04);
    transform: rotate(-1deg);
    z-index: 3;
}
.hero-stage-machine {
    position: absolute;
    width: 85%;
    left: 7.5%;
    bottom: -2%;
    filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.65)) brightness(1.18) contrast(1.08);
    z-index: 2;
}
/* Floating instrument chip */
.hero-telemetry {
    position: absolute;
    right: 2%;
    bottom: 6%;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.8rem;
    padding: 1rem 1.2rem;
    border-radius: var(--r-md);
    min-width: 220px;
}
.hero-telemetry-badge {
    grid-column: 1 / -1;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    color: var(--text-dim);
}
.hero-telemetry-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; }
.hero-telemetry-live {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em;
    color: var(--secondary); align-self: center; justify-self: end;
}
.hero-telemetry-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--secondary);
    box-shadow: 0 0 8px var(--secondary); animation: flash 1.6s infinite;
}
.hero-telemetry-row {
    grid-column: 1 / -1;
    display: flex; justify-content: space-between; gap: 1rem;
    margin-top: 0.4rem; padding-top: 0.6rem; border-top: 1px solid var(--hair);
    font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted);
}

/* Scroll cue / origin of the page spine */
.hero-cue {
    position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 2px; height: 90px; overflow: hidden; z-index: 3;
}
.hero-cue-line {
    display: block; width: 100%; height: 100%;
    background: linear-gradient(180deg, transparent, var(--primary) 40%, var(--secondary));
    animation: cueFlow 2.2s var(--ease-out-expo) infinite;
}
@keyframes cueFlow {
    0% { transform: translateY(-100%); }
    60%, 100% { transform: translateY(100%); }
}

@media (max-width: 1024px) {
    .hero { padding-top: 140px; padding-bottom: 5rem; min-height: 90svh; display: flex; align-items: center; }
    .hero-grid { grid-template-columns: 1fr; gap: 4rem; width: 100%; }
    .hero-stage { aspect-ratio: 1 / 1.1; max-width: 540px; margin: 0 auto; width: 100%; }
    .hero-watermark { font-size: 18vw; top: 15%; opacity: 0.5; text-align: center; width: 100%; left: 0; transform: none; }
    .hero-cue { display: none; }
}
@media (max-width: 600px) {
    .hero-telemetry { right: 0; bottom: 0; min-width: 0; padding: 0.8rem 1rem; }
    .hero-telemetry-title { font-size: 1rem; }
    /* Completely remove the visual stage on mobile so it doesn't leave an empty glowing space */
    .hero-stage { display: none !important; }
}
@media (max-width: 480px) {
    /* Bold, impactful typography without breaking long Turkish words */
    .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.05; letter-spacing: -0.03em; word-break: normal; hyphens: auto; }
    .hero-tag { font-size: 0.75rem; padding: 0.5rem 1rem; }
    .hero-description { font-size: 1.05rem; }
    /* App-like full width buttons for better UX */
    .hero-buttons { flex-direction: column; width: 100%; gap: 1rem; }
    .hero-buttons .btn { width: 100%; justify-content: center; padding: 1.1rem; }
}

/* ----------------------------------------------------------------------------
   13. GLOBAL SCROLL SPINE  (the page-long "visible line"; enhance.js drives it)
   -------------------------------------------------------------------------- */
.spine {
    display: none !important;
    position: fixed;
    left: max(18px, calc((100vw - 1240px) / 2 - 26px));
    top: 0;
    bottom: 0;
    width: 2px;
    z-index: 40;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.spine.is-on { opacity: 0; }
.spine-rail { position: absolute; inset: 0; background: var(--hair); }
.spine-fill {
    position: absolute; left: 0; top: 0; width: 100%; height: 0%;
    background: linear-gradient(180deg, var(--secondary), var(--primary));
    box-shadow: 0 0 12px rgba(214, 23, 42, 0.5);
}
.spine-bean {
    display: none;
}
.spine-bean::after {
    content: ""; position: absolute; inset: 0; margin: auto; width: 70%; height: 1.5px;
    background: #1a0305; border-radius: 50%; transform: rotate(-14deg);
}
@media (max-width: 1100px) { .spine { display: none; } }

/* ----------------------------------------------------------------------------
   11. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
    .fx-grain { display: none; }
    html { scroll-behavior: auto; }
    .hero-cue, .hero-telemetry-dot, .pulse-dot { animation: none !important; }
}

/* ----------------------------------------------------------------------------
   14. SECTION RECOMPOSITION  (break the "equal-card" repetition)
   -------------------------------------------------------------------------- */

/* PILLARS → cohesive credentials bar (one strip, hairline-divided, no boxes) */
.pillars { padding: clamp(3rem, 2rem + 3vw, 5rem) 0; }
.pillars-grid {
    gap: 0;
    border-top: 1px solid var(--hair);
    border-bottom: 1px solid var(--hair);
}
.pillar-card.glass {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    border-left: 1px solid var(--hair);
    border-radius: 0;
    padding: 2.4rem 1.9rem;
    gap: 1.1rem;
    transition: background 0.4s var(--ease-out-expo);
}
.pillar-card.glass:first-child { border-left: none; }
.pillar-card.glass:hover { background: rgba(255, 255, 255, 0.022); border-color: var(--hair); box-shadow: none; }
.pillar-card::after { border-radius: 0; }
.pillar-img-wrapper {
    width: 46px; height: 46px; border-radius: var(--r-xs);
    background: var(--primary-soft); border-color: rgba(214, 23, 42, 0.22);
}
.pillar-title { font-size: 1.1rem; }
@media (max-width: 1024px) {
    .pillars-grid { grid-template-columns: 1fr 1fr; }
    .pillar-card.glass:nth-child(3) { border-left: none; }
    .pillar-card.glass:nth-child(odd) { border-left: none; }
    .pillar-card.glass:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
@media (max-width: 600px) {
    .pillars-grid { grid-template-columns: 1fr; }
    .pillar-card.glass { border-left: none; border-top: 1px solid var(--hair); }
    .pillar-card.glass:first-child { border-top: none; }
}

/* REFERENCES → borderless edge-faded marquee, mono wordmarks
   (selector intentionally classless: the .glass class was removed from the markup) */
.references-slider {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    border-top: 1px solid var(--hair);
    border-bottom: 1px solid var(--hair);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.references-slider:hover { box-shadow: none; border-color: var(--hair); }
.ref-logo span {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.92rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: color 0.3s ease;
}
.ref-logo:hover span { color: var(--secondary); }

/* COMPARISON TABLE → drop heavy per-row borders, group cleanly */
.comparison-table th { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--secondary); }
.comparison-table td, .comparison-table th { border-color: var(--hair) !important; }

/* SERVICE BANNER → make the single CTA band feel intentional */
.service-banner {
    padding: clamp(2rem, 5vw, 5rem) 0 !important;
}
.service-banner-content.glass { 
    border-color: rgba(214, 23, 42, 0.25); 
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
    margin: 0 1rem; /* Ekrandan ayırır */
    width: auto;    /* %100 yaparsak margin eklenince ekranı aşar ve sağa taşar! */
    border-radius: 16px;
}
@media (min-width: 768px) {
    .service-banner-content.glass {
        margin: 0 auto;
        width: 100%;
    }
}
.service-banner-content h2 { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.6rem); }

/* VISION BOX → fix mobile spacing */
.vision-box {
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem);
}
/* TESTIMONIALS → quieter quote, real typographic marks */
.testimonial-text { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); font-style: normal; line-height: 1.6; }
.avatar-circle { background: var(--primary-soft); color: var(--secondary); border: 1px solid rgba(214,23,42,0.25); }

/* TEAM → refined avatar monograms (no neon gradient) */
.team-avatar {
    background: var(--ink-500);
    border: 1px solid var(--hair-strong);
    color: var(--secondary);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

/* SECTION HEADER eyebrow stays a deliberate engineering-label system,
   but soften repetition: dim every label slightly so headlines lead. */
.section-tag { opacity: 0.92; }

/* ----------------------------------------------------------------------------
   SCROLL VIDEO SECTION
   -------------------------------------------------------------------------- */
.scroll-video-section {
    position: relative;
    width: 100%;
    background: var(--bg-dark);
}

.scroll-video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#scroll-bound-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity var(--transition-smooth);
}

.scroll-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 22vh;
    justify-content: center;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(10,10,12,0.85) 0%, rgba(10,10,12,0.3) 35%, rgba(10,10,12,0.3) 65%, rgba(10,10,12,0.85) 100%);
    pointer-events: none;
}

.scroll-video-overlay .section-title {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.scroll-video-overlay .section-desc {
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    color: var(--text-light);
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
    .scroll-video-overlay {
        align-items: center;
        padding-top: 0;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .scroll-video-overlay .section-title {
        font-size: 2.2rem;
        margin-bottom: 0.75rem;
    }
    .scroll-video-overlay .section-desc {
        font-size: 1.05rem;
    }
    #scroll-bound-video {
        object-fit: cover;
        transform: scale(0.9); /* Zoom out by 10% */
    }
}

/* --- CAFE SCROLL VIDEO SECTION --- */
.cafe-scroll-video-section {
    position: relative;
    width: 100%;
    background: var(--bg-dark);
}

.cafe-scroll-video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#cafe-scroll-bound-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    transition: opacity var(--transition-smooth);
}

.cafe-scroll-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(10,10,12,0.95) 0%, rgba(10,10,12,0.3) 30%, rgba(10,10,12,0.3) 70%, rgba(10,10,12,0.95) 100%);
    pointer-events: none;
    padding: 2rem;
}

/* --- SCROLL VIDEO DYNAMIC CAPTIONS --- */
.scroll-captions-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-caption {
    position: absolute;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    width: 100%;
    will-change: transform, opacity;
}

.scroll-caption.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.caption-title {
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    margin-bottom: 0.6rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.85);
    font-weight: 800;
}

.caption-desc {
    font-size: clamp(0.95rem, 1.2vw, 1.25rem);
    color: var(--text-light);
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.85);
}

@media (max-width: 768px) {
    .cafe-scroll-video-overlay {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .cafe-scroll-video-overlay .section-title {
        font-size: 2.0rem;
        margin-bottom: 0.6rem;
    }
    .cafe-scroll-video-overlay .section-desc {
        font-size: 1.0rem;
    }
    #cafe-scroll-bound-video {
        object-fit: cover;
        transform: scale(0.9); /* Zoom out by 10% on mobile */
    }
    .comparison-table {
        min-width: 100% !important; /* Force table to fit container width */
        font-size: 0.74rem;
    }
    .comparison-table th, 
    .comparison-table td {
        padding: 0.75rem 0.5rem !important; /* Reduce padding on mobile */
    }
    .comparison-table th {
        font-size: 0.65rem !important;
    }
    .feat-col {
        width: 38% !important; /* Adjust column widths for mobile */
    }
}

/* Clickable Contact Fields styling */
a.info-val {
    color: var(--text-light) !important;
    text-decoration: none;
    transition: color var(--transition-fast) ease;
}
a.info-val:hover {
    color: var(--primary) !important;
    text-decoration: none;
}

/* --- RESPONSIVE HEADER & MOBILE NAV OVERRIDES --- */
.header-cta {
    padding: 0.42rem 1rem !important;
    font-size: 0.76rem !important;
    height: auto !important;
    min-height: auto !important;
    line-height: 1.2 !important;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex !important;
    }
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 80% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: rgba(10, 10, 12, 0.98) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        border: none !important;
        border-left: 1px solid rgba(214, 23, 42, 0.15) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 2rem !important;
        padding: 2rem !important;
        transition: transform 0.4s ease, right 0.4s ease !important;
        z-index: 1050 !important;
        display: flex !important;
    }
    .nav-links.active {
        right: 0 !important;
    }
    .nav-links a {
        font-size: 1.1rem !important;
        padding: 0.8rem 1.8rem !important;
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    .nav-links a.active {
        color: var(--text-light) !important;
        background: rgba(214, 23, 42, 0.12) !important;
        border: 1px solid var(--primary) !important;
        border-radius: var(--r-pill) !important;
    }
    #nav-sliding-bean {
        display: none !important;
    }
}

.designed-by a:hover {
    color: var(--primary) !important;
}
