@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   İlter Kavlak — shared stylesheet
   One file drives every page. Light theme by default,
   dark theme applied automatically from the OS setting.
   Fonts (Google Fonts) are @imported above, so pages only need to
   link this one stylesheet: Space Grotesk + Manrope + JetBrains Mono.
   ============================================================ */

/* --- Design tokens: light (default) ------------------------ */
:root {
  --bg:            #fbfbfc;
  --bg-subtle:     #f3f4f7;
  --surface:       #ffffff;
  --border:        #e5e7ec;
  --border-strong: #d2d6dd;

  --text:          #374151;  /* body */
  --text-muted:    #636b78;  /* secondary / meta */
  --heading:       #0b1220;  /* headings, strong */

  --accent:        #0f766e;  /* teal-700, AA on white */
  --accent-hover:  #0b5a54;
  --accent-soft:   rgba(15, 118, 110, 0.10);
  --accent-glow:   rgba(15, 118, 110, 0.28);
  --on-accent:     #ffffff;   /* text on accent-filled buttons */
  --accent-2:      #6d5ae6;   /* secondary hue for gradients */

  /* Soft page-background mesh (two subtle hues) */
  --glow-1:        rgba(15, 118, 110, 0.10);
  --glow-2:        rgba(109, 90, 230, 0.08);
  --grid-dot:      rgba(11, 18, 32, 0.10);

  --nav-bg:        rgba(255, 255, 255, 0.72);
  --shadow:        0 1px 2px rgba(15, 23, 42, 0.04),
                   0 8px 24px -16px rgba(15, 23, 42, 0.18);
  --shadow-lg:     0 1px 2px rgba(15, 23, 42, 0.05),
                   0 24px 48px -24px rgba(15, 23, 42, 0.28);

  --font-display: 'Space Grotesk', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --maxw: 820px;         /* readable text column */
  --maxw-wide: 1140px;   /* card grids / wide layouts */
  --radius: 14px;
  --pad-x: clamp(1.1rem, 4vw, 2rem);
  --nav-h: 5.25rem;      /* floating nav height incl. its top offset */
}

/* --- Design tokens: dark (OS preference) -------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #0b0f15;
    --bg-subtle:     #10151d;
    --surface:       #141a22;
    --border:        #232a35;
    --border-strong: #313a47;

    --text:          #c9d1d9;
    --text-muted:    #8b949e;
    --heading:       #f0f3f6;

    --accent:        #2dd4bf;  /* lighter teal, AA on dark */
    --accent-hover:  #5eead4;
    --accent-soft:   rgba(45, 212, 191, 0.13);
    --accent-glow:   rgba(45, 212, 191, 0.30);
    --on-accent:     #062521;   /* dark text reads better on light teal */
    --accent-2:      #a194ff;

    --glow-1:        rgba(45, 212, 191, 0.11);
    --glow-2:        rgba(161, 148, 255, 0.10);
    --grid-dot:      rgba(240, 243, 246, 0.09);

    --nav-bg:        rgba(20, 26, 34, 0.72);
    --shadow:        0 1px 2px rgba(0, 0, 0, 0.4),
                     0 8px 24px -16px rgba(0, 0, 0, 0.6);
    --shadow-lg:     0 1px 2px rgba(0, 0, 0, 0.4),
                     0 24px 48px -24px rgba(0, 0, 0, 0.75);
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Hero decorations bleed past the column; clip them sideways only. */
main { overflow-x: clip; }

/* Fixed, ultra-subtle two-tone glow that gives the page depth without
   any images or extra markup. Sits behind all content. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55rem 38rem at 12% -8%, var(--glow-1), transparent 60%),
    radial-gradient(48rem 40rem at 105% 4%, var(--glow-2), transparent 55%);
}

h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; font-weight: 700; font-family: var(--font-display); letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }
strong { color: var(--heading); font-weight: 600; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent-hover); }

ul { list-style: none; }

code, pre { font-family: var(--font-mono); }
:not(pre) > code {
  font-size: 0.86em;
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--heading);
}

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

::selection { background: var(--accent-soft); color: var(--heading); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; color: var(--on-accent); }

/* --- Layout helpers ---------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.wrap-wide { max-width: var(--maxw-wide); }

.section { margin-top: 4.5rem; }
.section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.section-title::before {
  content: "";
  width: 1.8rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.section-head { margin-bottom: 1.5rem; }
.section-head h2 { max-width: 38rem; }
.section-head .lede { margin-top: 0.6rem; max-width: 42rem; }

.muted { color: var(--text-muted); }
.lede { font-size: 1.08rem; color: var(--text-muted); }

/* --- Top navigation (floating glass bar) ------------------- */
.nav {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  padding-inline: var(--pad-x);
  margin-top: 0.75rem;
}
.nav-inner {
  max-width: var(--maxw-wide);
  margin-inline: auto;
  padding: 0.5rem 0.5rem 0.5rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--nav-bg);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--heading);
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-brand span { color: var(--accent); }
.nav-brand:hover { color: var(--heading); }
.nav-links {
  display: flex;
  gap: 0.15rem;
  font-size: 0.9rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--heading); background: var(--bg-subtle); }
.nav-links a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

/* On phones the links get their own row and scroll sideways instead of wrapping. */
@media (max-width: 640px) {
  :root { --nav-h: 7.25rem; }
  .nav-inner { flex-wrap: wrap; gap: 0.3rem; border-radius: 20px; padding: 0.6rem 0.5rem 0.45rem; }
  .nav-brand { padding-left: 0.6rem; }
  .nav-links {
    width: 100%;
    font-size: 0.86rem;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
}

/* --- Hero -------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(3rem, 8vw, 5.5rem);
}
/* Dotted grid that fades out from the top-left, plus two soft colour blobs. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.hero::before {
  inset: -2rem -40vw -3rem;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 70% at 30% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(60% 70% at 30% 30%, #000 20%, transparent 75%);
}
.hero::after {
  width: 26rem;
  height: 26rem;
  top: -4rem;
  right: -8rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--glow-2), transparent 62%),
              radial-gradient(circle at 70% 70%, var(--glow-1), transparent 60%);
  filter: blur(10px);
}
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.1rem); line-height: 1.05; }
/* Heading → accent gradient, only where background-clip is supported. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background: linear-gradient(118deg, var(--heading) 40%, var(--accent) 95%, var(--accent-2) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.hero .role {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.hero .tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 36rem;
  margin-top: 1rem;
}

/* Small pill with a live dot ("Currently at …", "Open source", …) */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.8rem 0.3rem 0.6rem;
  margin-bottom: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.status .dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}
.status .dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  opacity: 0;
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.7; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}

/* Contact / CTA buttons */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--heading);
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.contact-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.contact-btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-color: transparent;
  color: var(--on-accent);
  box-shadow: 0 8px 20px -10px var(--accent-glow);
}
.contact-btn.primary:hover {
  color: var(--on-accent);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -10px var(--accent-glow);
  filter: brightness(1.05);
}
.contact-btn svg { width: 17px; height: 17px; flex: none; }

/* --- Prose blocks ------------------------------------------ */
.prose p { margin-bottom: 1rem; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* --- Experience (timeline) ---------------------------------- */
.exp-item {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.5rem 1.5rem;
}
.exp-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 0.15rem;
}
.exp-item > div:last-child {
  position: relative;
  padding: 0 0 2rem 1.6rem;
  border-left: 2px solid var(--border);
}
.exp-item:last-child > div:last-child { padding-bottom: 0.25rem; }
.exp-item > div:last-child::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.exp-item:first-of-type > div:last-child::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.exp-role { font-weight: 700; color: var(--heading); }
.exp-role .company { color: var(--accent); }
.exp-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.exp-desc ul { margin: 0.4rem 0 0; padding: 0; }
.exp-desc li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}
.exp-desc li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
}
@media (max-width: 560px) {
  .exp-item { grid-template-columns: 1fr; gap: 0; }
  .exp-date { padding: 0 0 0.3rem 1.6rem; border-left: 2px solid var(--border); }
}

/* --- Card grid (projects / posts / games) ------------------ */
.card-grid {
  display: grid;
  /* min(280px, 100%) keeps a single card from overflowing very narrow phones */
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.card {
  --card-accent: var(--accent);
  /* Accents can be light (amber, teal); text uses a darker/lighter mix that keeps contrast. */
  --card-text: color-mix(in srgb, var(--card-accent) 55%, var(--heading));
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);           /* whole card is an <a>; keep body-text colour */
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
/* Accent wash that fades in from the top-right corner on hover */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--card-accent) 12%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.card:hover {
  border-color: color-mix(in srgb, var(--card-accent) 55%, var(--border));
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.card:hover::before { opacity: 1; }
.card-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  font-size: 1.35rem;
  background: color-mix(in srgb, var(--card-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-accent) 25%, transparent);
}
.card h3 { margin-bottom: 0.3rem; color: var(--heading); transition: color 0.2s ease; }
.card:hover h3 { color: var(--card-text); }
.card .card-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.card p { font-size: 0.93rem; color: var(--text-muted); margin-bottom: 1rem; }
.card .card-foot {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--card-text);
  transition: transform 0.2s ease;
}
.card:hover .card-foot { transform: translateX(4px); }

/* Empty state (e.g. no blog posts yet) */
.empty {
  margin-top: 2rem;
  padding: 3rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  color: var(--text-muted);
}
.empty .empty-emoji { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.empty strong { display: block; color: var(--heading); margin-bottom: 0.3rem; }

/* --- Footer ------------------------------------------------ */
.site-footer {
  margin-top: 5rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.site-footer .socials {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.site-footer .socials a { color: var(--text-muted); }
.site-footer .socials a:hover { color: var(--accent); }
.site-footer .socials svg { width: 20px; height: 20px; display: block; }

/* --- Back link (sub-pages) --------------------------------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2.5rem;
}
.back-link:hover { color: var(--accent); }

/* ============================================================
   Landing-page components (projects/<slug>/). Shared so every
   project page looks like one family; a page only overrides
   the --accent tokens if it wants its own colour.
   ============================================================ */
.lp-badges { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.4rem; }

.lp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}
.lp-stats li {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.86rem;
  color: var(--text-muted);
}
.lp-stats strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--heading); line-height: 1.2; }

/* Terminal window (always dark, in both themes) */
.lp-term {
  margin-top: 2.5rem;
  border: 1px solid #262c36;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d1117;
  box-shadow: var(--shadow-lg);
}
.lp-term-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  background: #161b22;
  border-bottom: 1px solid #262c36;
}
.lp-term-chrome .light { width: 11px; height: 11px; border-radius: 50%; }
.lp-term-chrome .r { background: #ff5f57; }
.lp-term-chrome .y { background: #febc2e; }
.lp-term-chrome .g { background: #28c840; }
.lp-term-chrome .title { margin-left: 0.6rem; font-family: var(--font-mono); font-size: 0.75rem; color: #8b949e; }
.lp-term pre { margin: 0; padding: 1.1rem 1.25rem; overflow-x: auto; font-size: 0.82rem; line-height: 1.75; color: #c9d1d9; }
.lp-term .p { color: #2dd4bf; }
.lp-term .c { color: #79c0ff; }
.lp-term .a { color: #d2a8ff; }
.lp-term .ok { color: #56d364; }
.lp-term .warn { color: #e3b341; }
.lp-term .dim { color: #7d8590; }

/* Feature grid */
.lp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 1rem;
}
.lp-feature {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.lp-feature .ico {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.85rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.15rem;
}
.lp-feature h3 { margin-bottom: 0.35rem; }
.lp-feature p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }
.lp-feature .tag { display: inline-block; margin-bottom: 0.6rem; color: var(--accent); }

/* Numbered steps / pipeline */
.lp-steps { counter-reset: step; display: grid; gap: 0.75rem; list-style: none; }
.lp-steps > li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1.1rem 1rem 3.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.lp-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 0.95rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
}
.lp-steps strong { display: block; margin-bottom: 0.15rem; }
.lp-steps p { margin: 0; font-size: 0.92rem; color: var(--text-muted); }

/* Code block with a copy button (handled in app.js) */
.lp-code {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1rem;
  background: var(--surface);
}
.lp-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.9rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.lp-code-head button {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: 6px;
  padding: 0.15rem 0.6rem;
  font-size: 0.72rem;
}
.lp-code-head button:hover { color: var(--accent); border-color: var(--accent); }
.lp-code pre { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; font-size: 0.82rem; line-height: 1.7; color: var(--text); }
.lp-code .cm { color: var(--text-muted); }
.lp-code .fl { color: var(--accent); }

/* Callout */
.lp-note {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  font-size: 0.93rem;
}
.lp-note p:last-child { margin-bottom: 0; }
.lp-note ul { margin: 0.6rem 0 0; }
.lp-note li { position: relative; padding-left: 1.3rem; margin-bottom: 0.35rem; }
.lp-note li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Tables scroll inside their own box on phones */
.lp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.lp-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.lp-table th, .lp-table td { padding: 0.7rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.lp-table tr:last-child td { border-bottom: 0; }
.lp-table th { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); background: var(--bg-subtle); }
.lp-table td:first-child { white-space: nowrap; color: var(--heading); font-weight: 600; }

.lp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 1rem; }

.lp-cta {
  margin-top: 4.5rem;
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(80% 120% at 0% 0%, var(--glow-1), transparent 60%),
    radial-gradient(80% 120% at 100% 100%, var(--glow-2), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow);
}
.lp-cta h2 { margin-bottom: 0.5rem; }
.lp-cta .contact-row { justify-content: center; }

/* --- Scroll reveal ----------------------------------------- */
/* .reveal-init is added by JS only; if JS is off nothing is hidden. */
.reveal-init { opacity: 0; transform: translateY(16px); }
.reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

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