/* ============================================================
   INCUSON — Design tokens + base styles
   Palette: ink / paper / steel / cyan / ember
   Type:    Space Grotesk (display + UI), JetBrains Mono (labels)
   ============================================================ */

:root {
  /* Brand palette — obsidian + paper; cyan/ember/mist/steel rotate as accents */
  --ink:         #07090C;   /* page bg, near-pure black with cool cast */
  --ink-2:       #0E1116;   /* card / surface */
  --ink-3:       #14181F;   /* elevated surface */
  --paper:       #ECEAE3;   /* foreground text, warm off-white */
  --paper-dim:   #C4C1B8;
  --mist:        #A8A498;   /* warm light grey — secondary accent */
  --mist-dim:    #6F6C63;
  --steel:       #828790;   /* cool secondary text — WCAG AA (≥4.5:1) on --ink */
  --steel-dim:   #5C616A;   /* legal footer; brighter than 3:1 minimum */
  --cyan:        #14B8C5;   /* electric accent */
  --cyan-hi:     #5BD4DE;
  --cyan-dim:    rgba(20, 184, 197, 0.10);
  --ember:       #E85D4A;   /* warm accent */
  --ember-hi:    #F47A68;
  --ember-dim:   rgba(232, 93, 74, 0.10);
  --line:        rgba(236, 234, 227, 0.06);
  --line-strong: rgba(236, 234, 227, 0.12);

  /* Theme-aware surfaces (overridden in [data-theme="light"]) */
  --nav-bg:        rgba(7, 9, 12, 0.78);
  --nav-bg-strong: rgba(7, 9, 12, 0.96);
  --grain-opacity: 0.025;
  --bg-glow:       radial-gradient(1400px 800px at 50% -20%, rgba(20, 184, 197, 0.05), transparent 70%),
                   radial-gradient(1200px 800px at 50% 120%, rgba(0, 0, 0, 0.6), transparent 70%);

  /* Accent foreground — always dark; sits on top of bright cyan/paper chips */
  --accent-fg: #07090C;

  /* Type */
  --f-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --maxw: 1280px;
  --pad-x: clamp(20px, 4vw, 56px);

  /* Radii / motion */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  /* Cinematic vignette — subtle, dark, no color washes */
  background-image: var(--bg-glow);
  background-attachment: fixed;
  background-color: var(--ink);
}

/* Subtle film grain on top of everything for cinematic feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============================================================
   LAYOUT
   ============================================================ */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

section { padding: 120px 0; position: relative; }
section.tight { padding: 80px 0; }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
}
.brand .mark {
  width: 40px;
  height: 40px;
  color: var(--paper);
}
.brand .word {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
  display: inline-flex;
}
.word-lead { color: var(--paper); }
.word-rest {
  background-image: linear-gradient(90deg,
    var(--ember) 0%, var(--ember) 18%, var(--cyan) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.brand-logo { height: 64px; width: auto; display: block; border-radius: 7px; }
.brand-logo.dark { display: none; }
[data-theme="dark"] .brand-logo.light { display: none; }
[data-theme="dark"] .brand-logo.dark { display: block; }
footer .brand-card .word-lead { color: var(--ink); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  letter-spacing: -0.005em;
}
.nav-links a {
  color: var(--paper);
  opacity: 0.72;
  transition: opacity 0.18s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active {
  opacity: 1;
  border-bottom: 1.5px solid var(--paper);
  padding-bottom: 4px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.lang button {
  background: none;
  border: 0;
  color: var(--steel);
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.08em;
}
.lang button.on {
  background: var(--paper);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

/* Mobile CTA inside the nav-links panel — hidden on desktop. */
.nav-links .mobile-cta { display: none; }
@media (max-width: 960px) {
  .nav-links.open .mobile-cta {
    display: inline-flex !important;
    margin-top: 8px;
    background: var(--cyan);
    color: var(--accent-fg) !important;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 500;
    width: auto !important;
    opacity: 1 !important;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--cyan);
  color: var(--accent-fg);
  font-weight: 500;
  box-shadow: 0 0 0 0 var(--cyan-dim), 0 18px 40px -16px rgba(20, 184, 197, 0.45);
}
.btn-primary:hover { background: var(--cyan-hi); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--paper); }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-dim);
  background: transparent;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  display: inline-block;
}

.h1 {
  font-size: clamp(44px, 6.8vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0;
}
.h2 {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0;
}
.h3 {
  font-size: clamp(20px, 1.5vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
}
.lead {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--steel);
  max-width: 56ch;
}
.cyan  { color: var(--cyan); }
.ember { color: var(--ember); }
.mist  { color: var(--mist); }
.muted { color: var(--steel); }
.center { text-align: center; }
.center-x { margin-left: auto; margin-right: auto; }

/* Section-scoped accents: add .accent-ember or .accent-mist on a <section>
   to retint the eyebrow dot, focus rings, etc. inside it. */
.accent-ember .eyebrow::before { background: var(--ember); }
.accent-mist  .eyebrow::before { background: var(--mist); }
.accent-ember .card ul.checks li::before { background: var(--ember); }
.accent-mist  .card ul.checks li::before { background: var(--mist); }

/* ============================================================
   CARDS
   ============================================================ */

.card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  background: var(--ink-3);
}
.card .index {
  position: absolute;
  top: 28px;
  right: 32px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--steel);
  letter-spacing: 0.16em;
}
.card .icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  font-size: 24px;
  color: var(--paper);
  background: transparent;
  border-radius: 0;
}
.card .icon.cyan,
.card .icon.ember,
.card .icon.paper { background: transparent; color: var(--paper); }
.card h3 { margin: 0 0 14px; }
.card p { color: var(--steel); margin: 0; font-size: 15px; line-height: 1.55; }
.card ul.checks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: var(--paper);
}
.card ul.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--paper);
}
[data-theme="light"] .card ul.checks li { color: #1A1F26; }
.card ul.checks li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--paper-dim);
  margin-top: 10px;
  flex-shrink: 0;
}

/* ============================================================
   GRIDS
   ============================================================ */

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

/* ============================================================
   STATS ROW
   ============================================================ */

.stats {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  padding-top: 36px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
.stat .num {
  font-size: clamp(40px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--paper);
  line-height: 1;
  font-feature-settings: "tnum";
}
.stat:nth-child(1) .num .ember-tick { color: var(--cyan); font-weight: 400; }
.stat:nth-child(2) .num .ember-tick { color: var(--ember); font-weight: 400; }
.stat:nth-child(3) .num .ember-tick { color: var(--mist); font-weight: 400; }
.stat .label {
  margin-top: 10px;
  font-size: 12px;
  color: var(--steel);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--f-mono);
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  margin-top: 80px;
}
footer .grid-foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
footer h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 16px;
}
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer ul a { color: var(--steel); font-size: 14px; transition: color 0.18s var(--ease); }
footer ul a:hover { color: var(--paper); }
footer .brand-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--ink);
  padding: 0;
  border-radius: 0;
  margin-bottom: 18px;
}
footer .brand-logo { height: 48px; border-radius: 6px; }
footer .brand-card .mark { color: var(--ink); width: 34px; height: 34px; }
footer .brand-card .mark g { stroke-width: 5.5; }
footer .brand-card .word { font-size: 26px; font-weight: 500; letter-spacing: -0.04em; }
footer .tagline { color: var(--steel); font-size: 14px; max-width: 30ch; }
footer .legal {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--steel-dim);
  font-size: 12px;
  font-family: var(--f-mono);
  letter-spacing: 0.04em;
}
footer .legal .links { display: flex; gap: 28px; }

/* ============================================================
   IMAGE SLOT (placeholder for hero / portraits)
   ============================================================ */

.slot {
  background:
    repeating-linear-gradient(135deg, rgba(242,239,232,0.03) 0 10px, rgba(242,239,232,0.06) 10px 20px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-dim);
  min-height: 260px;
}

/* ============================================================
   FORM
   ============================================================ */

.form-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
}
.form-card h3 { margin-bottom: 22px; }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 13px;
  color: var(--paper);
  letter-spacing: -0.005em;
}
.field label .req { color: var(--ember); margin-left: 2px; }
.field input,
.field select,
.field textarea {
  background: var(--ink);
  border: 1px solid var(--line-strong);
  color: var(--paper);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--paper);
}
.field textarea { min-height: 120px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* KVKK consent checkbox */
.field-consent { margin-top: 4px; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  accent-color: var(--cyan);
  cursor: pointer;
}
.consent label {
  font-size: 13px;
  line-height: 1.55;
  color: var(--steel);
  cursor: pointer;
  letter-spacing: -0.005em;
}
.consent a { color: var(--ember); text-decoration: underline; }
.consent a:hover { color: var(--paper); }
.consent input[aria-invalid="true"] { outline: 2px solid var(--ember); outline-offset: 2px; }

.contact-card {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  align-items: flex-start;
}
.contact-card .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card h5 { margin: 0 0 4px; font-size: 15px; font-weight: 500; }
.contact-card p { margin: 0; color: var(--steel); font-size: 14px; line-height: 1.5; }

/* ============================================================
   CHIP / TAG (small inline labels on cards)
   ============================================================ */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: transparent;
  color: var(--paper-dim);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: -0.005em;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ============================================================
   TIMELINE
   ============================================================ */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line-strong);
}
.timeline .node {
  position: relative;
}
.timeline .node::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--mist);
  background: var(--ink);
}
.timeline .node:first-child::before { border-color: var(--cyan); }
.timeline .date {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}
.timeline .node:first-child .date { color: var(--cyan); }
.timeline h4 { margin: 4px 0; font-size: 17px; font-weight: 500; }
.timeline p { margin: 0; color: var(--steel); font-size: 14.5px; }

/* ============================================================
   METHODOLOGY STEPS (numbered horizontal flow)
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px;
}
.step {
  text-align: center;
}
.step .num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  margin: 0 auto 18px;
}
.step:nth-child(1) .num { border-color: var(--cyan); color: var(--cyan); }
.step:nth-child(2) .num { border-color: var(--ember); color: var(--ember); }
.step:nth-child(3) .num { border-color: var(--mist); color: var(--mist); }
.step:nth-child(4) .num { border-color: var(--ember); color: var(--ember); }
.step:nth-child(5) .num { border-color: var(--cyan); color: var(--cyan); }
.step h4 { margin: 0 0 8px; font-size: 17px; font-weight: 500; }
.step p { color: var(--steel); font-size: 13.5px; margin: 0; line-height: 1.5; }

/* ============================================================
   FOUNDER CARDS
   ============================================================ */

.founder {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
}
.founder .initials {
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--paper);
  text-align: center;
  margin: 8px 0 28px;
}
.founder:nth-child(1) .initials { color: var(--cyan); }
.founder:nth-child(2) .initials { color: var(--ember); }
.founder:nth-child(3) .initials { color: var(--mist); }
.founder h4 { margin: 0; font-size: 18px; font-weight: 500; }
.founder .role { color: var(--paper-dim); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
.founder .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.founder .tags .tag {
  background: transparent;
  color: var(--mist);
  border: 1px solid var(--line-strong);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.founder p { color: var(--steel); font-size: 14px; line-height: 1.55; margin: 0; }

/* ============================================================
   CTA BLOCK
   ============================================================ */

.cta-block {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(20, 184, 197, 0.10), transparent 70%),
    var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 64px 32px;
  text-align: center;
}
.cta-block .h2 { max-width: 24ch; margin: 0 auto 16px; }
.cta-block .lead { margin: 0 auto 28px; }
.cta-block .actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   WIP TAG (under service titles still in development)
   ============================================================ */

.wip-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  color: var(--steel);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wip-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 3px rgba(232, 122, 86, 0.18);
}

/* ============================================================
   PLATFORM NOTICE (closed-beta banner on home)
   ============================================================ */

.platform-notice {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(600px 240px at 0% 50%, rgba(20, 184, 197, 0.08), transparent 70%),
    radial-gradient(500px 220px at 100% 50%, rgba(232, 122, 86, 0.06), transparent 70%),
    var(--ink-2);
  overflow: hidden;
}
.platform-notice::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--ember));
  opacity: 0.7;
}
.platform-notice__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  white-space: nowrap;
}
.platform-notice__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(20, 184, 197, 0.18);
  animation: notice-pulse 2.2s ease-in-out infinite;
}
@keyframes notice-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(20, 184, 197, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(20, 184, 197, 0.04); }
}
.platform-notice__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--paper);
}
.platform-notice__text {
  margin: 0;
  color: var(--paper);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}
@media (max-width: 720px) {
  .platform-notice { grid-template-columns: 1fr; padding: 20px 22px 22px; gap: 12px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .grid-3, .grid-4, .grid-5, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px var(--pad-x) 28px;
    background: var(--nav-bg-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }
  .nav-links.open a { opacity: 1; padding: 6px 0; width: 100%; }
  .nav-links.open a.active { border-bottom: 0; color: var(--cyan); }
  .menu-toggle { display: inline-flex; }
  footer .grid-foot { grid-template-columns: 1fr 1fr; }
  section { padding: 80px 0; }
  section.tight { padding: 56px 0; }
  .stats { gap: 32px; }
  .h1 { font-size: clamp(38px, 7vw, 64px); }
  .h2 { font-size: clamp(30px, 5vw, 48px); }
}

@media (max-width: 760px) {
  /* Compact nav: drop the primary CTA from the bar — it's reachable via the
     mobile menu panel and the İletişim page link. Keeps logo + lang + menu. */
  .nav-right .btn-primary { display: none; }
  .nav-inner { gap: 12px; padding: 16px 0; }
  .brand .word { font-size: 24px; }
  .brand .mark { width: 36px; height: 36px; }
  .lang { padding: 3px; }
  .lang button { padding: 4px 8px; }
}

@media (max-width: 560px) {
  :root { --pad-x: 20px; }
  .grid-3, .grid-4, .grid-5, .steps { grid-template-columns: 1fr; }
  footer .grid-foot { grid-template-columns: 1fr; gap: 32px; }
  .row-2 { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  footer .legal { flex-direction: column; gap: 16px; }
  footer .legal .links { flex-wrap: wrap; gap: 18px; }
  section { padding: 64px 0; }
  section.tight { padding: 44px 0; }
  .stats { gap: 28px; padding-top: 28px; margin-top: 28px; }
  .stat .num { font-size: 36px; }
  .cta-block { padding: 44px 22px; }
  .cta-block .actions { flex-direction: column; align-items: stretch; }
  .cta-block .actions .btn { width: 100%; }
  .h1 { font-size: clamp(34px, 9vw, 48px); line-height: 1.02; letter-spacing: -0.03em; }
  .h2 { font-size: clamp(26px, 7vw, 38px); }
  .lead { font-size: 15px; line-height: 1.55; }
  .card { padding: 28px 22px; }
  .card .index { top: 22px; right: 22px; font-size: 12px; }
  .contact-card { padding: 16px; }
  .nav-links.open {
    /* When the mobile menu panel is open, give it room and align to bottom */
    padding: 24px 20px !important;
    gap: 16px !important;
    font-size: 16px;
  }
  /* Keep .timeline readable when stacked */
  .timeline { padding-left: 22px; }
  .timeline::before { left: 5px; }
  .timeline .node::before { left: -23px; }
  /* Founder initials a touch smaller */
  .founder { padding: 28px 24px; }
  .founder .initials { font-size: 44px; }
  /* Quote card padding */
  .accent-mist .card, .accent-ember .card { padding: 28px 22px; }
}

@media (max-width: 380px) {
  :root { --pad-x: 16px; }
  .brand .word { font-size: 21px; }
  .brand .mark { width: 32px; height: 32px; }
  .nav-right { gap: 8px; }
  .lang { font-size: 10px; }
  .menu-toggle { padding: 6px 10px; font-size: 12px; }
  .h1 { font-size: clamp(30px, 9.5vw, 40px); }
  .btn { padding: 12px 18px; font-size: 14px; }
  /* Hero CTAs stack on tiny screens */
  section .wrap > div[style*="inline-flex"] { width: 100%; flex-direction: column; }
  section .wrap > div[style*="inline-flex"] .btn { width: 100%; justify-content: center; }
}

/* Prevent any element from forcing horizontal scroll on mobile */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, .card, .form-card { max-width: 100%; }

/* ============================================================
   LIGHT THEME
   Activated by [data-theme="light"] on <html>. Token-only override
   so every rule above keeps working — semantics stay, palette flips.
   ============================================================ */

[data-theme="light"] {
  --ink:         #F4F1EA;   /* page bg — warm paper */
  --ink-2:       #FFFFFF;   /* card / surface */
  --ink-3:       #EAE6DC;   /* elevated surface */
  --paper:       #0E1116;   /* foreground text — deep ink */
  --paper-dim:   #2A2F37;
  --mist:        #5A5F68;   /* warm secondary text */
  --mist-dim:    #8A8F98;
  --steel:       #5A5F68;   /* WCAG AA (≥4.5:1) on light --ink */
  --steel-dim:   #6B7079;   /* legal footer; passes AA for small text */
  --cyan:        #0F9AA6;   /* slightly deeper for contrast on white */
  --cyan-hi:     #14B8C5;
  --cyan-dim:    rgba(15, 154, 166, 0.12);
  --ember:       #D9492F;
  --ember-hi:    #E85D4A;
  --ember-dim:   rgba(217, 73, 47, 0.10);
  --line:        rgba(7, 9, 12, 0.10);
  --line-strong: rgba(7, 9, 12, 0.16);

  --nav-bg:        rgba(244, 241, 234, 0.82);
  --nav-bg-strong: rgba(244, 241, 234, 0.98);
  --grain-opacity: 0;
  --bg-glow:       radial-gradient(1400px 800px at 50% -20%, rgba(15, 154, 166, 0.06), transparent 70%),
                   radial-gradient(1200px 800px at 50% 120%, rgba(7, 9, 12, 0.05), transparent 70%);
}

/* A handful of surfaces use hard-coded dark tints — refresh them for light. */
[data-theme="light"] .cta-block {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(15, 154, 166, 0.10), transparent 70%),
    var(--ink-2);
  box-shadow: 0 1px 0 rgba(7, 9, 12, 0.04), 0 24px 60px -32px rgba(7, 9, 12, 0.18);
}
[data-theme="light"] .platform-notice {
  background:
    radial-gradient(600px 240px at 0% 50%, rgba(15, 154, 166, 0.10), transparent 70%),
    radial-gradient(500px 220px at 100% 50%, rgba(217, 73, 47, 0.08), transparent 70%),
    var(--ink-2);
  box-shadow: 0 1px 0 rgba(7, 9, 12, 0.04), 0 16px 40px -28px rgba(7, 9, 12, 0.16);
}
[data-theme="light"] .platform-notice__dot {
  box-shadow: 0 0 0 4px rgba(15, 154, 166, 0.22);
}
[data-theme="light"] .wip-tag::before {
  box-shadow: 0 0 0 3px rgba(217, 73, 47, 0.20);
}
[data-theme="light"] .btn-primary {
  box-shadow: 0 0 0 0 var(--cyan-dim), 0 18px 40px -16px rgba(15, 154, 166, 0.40);
}
[data-theme="light"] .card {
  background: var(--ink-2);
  box-shadow: 0 1px 0 rgba(7, 9, 12, 0.03), 0 10px 30px -24px rgba(7, 9, 12, 0.16);
}
[data-theme="light"] .nav {
  border-bottom-color: rgba(7, 9, 12, 0.08);
}

/* ============================================================
   THEME TOGGLE (icon button next to lang switcher)
   ============================================================ */

.theme-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  padding: 0;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.theme-toggle:hover { background: var(--ink-3); }
.theme-toggle svg { width: 16px; height: 16px; display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
@media (max-width: 540px) {
  .theme-toggle { width: 32px; height: 32px; }
  .theme-toggle svg { width: 14px; height: 14px; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

/* Skip-to-content link — visible only when focused via Tab */
.skip-link {
  position: absolute;
  top: -120%;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--accent-fg);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Screen-reader-only — visible to AT, invisible visually */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Focus rings — hide for mouse users, clear for keyboard */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 3px; }
.nav-links a:focus-visible { outline-offset: 4px; }
.lang button:focus-visible { outline-offset: 1px; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
  border-color: var(--cyan);
}

/* ============================================================
   PAGE TRANSITIONS (View Transitions API — progressive enhancement)
   Unsupported browsers fall back to instant navigation.
   ============================================================ */

@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: 320ms ease both vt-fade-out;
}
::view-transition-new(root) {
  animation: 460ms ease both vt-fade-in;
}

@keyframes vt-fade-out {
  to { opacity: 0; translate: 0 -10px; }
}
@keyframes vt-fade-in {
  from { opacity: 0; translate: 0 12px; }
}

/* Reduced motion — respect user preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .platform-notice__dot { animation: none; box-shadow: 0 0 0 4px rgba(20, 184, 197, 0.18); }
  .btn:hover { transform: none; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* ============================================================
   FORM VALIDATION STATES
   ============================================================ */

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--ember);
}
.field .error-msg {
  color: var(--ember);
  font-size: 12px;
  margin-top: 4px;
  font-family: var(--f-mono);
  letter-spacing: -0.005em;
  min-height: 0;
  overflow: hidden;
}
.field .error-msg:empty { display: none; }

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  line-height: 1.5;
  display: none;
}
.form-status[data-state="success"] {
  display: block;
  background: rgba(20, 184, 197, 0.10);
  border: 1px solid var(--cyan);
  color: var(--cyan);
}
.form-status[data-state="error"] {
  display: block;
  background: rgba(232, 93, 74, 0.12);
  border: 1px solid var(--ember);
  color: var(--ember-hi);
}
[data-theme="light"] .form-status[data-state="success"] { color: var(--cyan); }
[data-theme="light"] .form-status[data-state="error"]   { color: var(--ember); }

/* Social buttons — "coming soon" state */
.social-soon {
  opacity: 0.32;
  cursor: default;
  pointer-events: none;
}

/* Honeypot — hidden from humans, visible to scrapers */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================================
   COOKIE / AYDINLATMA BANNER (KVKK)
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 580px;
  margin: 0 auto;
  z-index: 95;
  padding: 18px 22px;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(150%);
  transition: transform 0.32s var(--ease);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--paper);
}
.cookie-banner[data-visible="true"] { transform: translateY(0); }
.cookie-banner p { margin: 0; color: var(--paper); }
.cookie-banner p a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner .actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-banner .btn {
  padding: 9px 16px;
  font-size: 13px;
}
[data-theme="light"] .cookie-banner {
  box-shadow: 0 16px 40px -16px rgba(7, 9, 12, 0.22);
}
@media (max-width: 480px) {
  .cookie-banner { padding: 16px; }
  .cookie-banner .actions { flex-direction: column-reverse; }
  .cookie-banner .btn { width: 100%; }
}
