/* =========================================================================
   Screenshoter — landing page
   Aesthetic: refined macOS-native warmth. Fraunces display serif + Sora body.
   Amber/coral primary with a teal counter-accent over a deep gradient-mesh
   atmosphere. Fully themed (dark default, light variant, persisted toggle).
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Sora", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --accent: #FF7A45;          /* warm coral-amber */
  --accent-2: #FFB454;        /* amber highlight */
  --teal: #36D6C3;            /* counter accent */
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Dark (default) */
:root, [data-theme="dark"] {
  --bg: #0C0D14;
  --bg-2: #14151F;
  --surface: rgba(255,255,255,.045);
  --surface-2: rgba(255,255,255,.07);
  --border: rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.16);
  --text: #F4F3F7;
  --text-dim: #A9A7B8;
  --text-faint: #6E6C82;
  --shadow: 0 40px 90px -30px rgba(0,0,0,.75);
  --glow-a: rgba(255,122,69,.30);
  --glow-b: rgba(54,214,195,.18);
  --glow-c: rgba(255,180,84,.16);
  --nav-bg: rgba(12,13,20,.66);
  --grain-opacity: .04;
  color-scheme: dark;
}

/* Light */
[data-theme="light"] {
  --bg: #F7F5F0;
  --bg-2: #FFFFFF;
  --surface: rgba(20,18,30,.035);
  --surface-2: rgba(20,18,30,.05);
  --border: rgba(20,18,30,.10);
  --border-strong: rgba(20,18,30,.18);
  --text: #1A1726;
  --text-dim: #5A5670;
  --text-faint: #908CA3;
  --shadow: 0 40px 80px -32px rgba(60,40,20,.30);
  --glow-a: rgba(255,122,69,.22);
  --glow-b: rgba(54,214,195,.16);
  --glow-c: rgba(255,180,84,.20);
  --nav-bg: rgba(247,245,240,.72);
  --grain-opacity: .03;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .5s var(--ease), color .5s var(--ease);
}

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

/* ---------- Atmosphere ---------- */
.atmosphere { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.glow {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .9;
  transition: background .5s var(--ease);
}
.glow--a { width: 70vw; height: 70vw; top: -28vw; right: -18vw; background: radial-gradient(circle, var(--glow-a), transparent 65%); }
.glow--b { width: 55vw; height: 55vw; bottom: -22vw; left: -16vw; background: radial-gradient(circle, var(--glow-b), transparent 65%); }
.glow--c { width: 48vw; height: 48vw; top: 42%; left: 30%; background: radial-gradient(circle, var(--glow-c), transparent 60%); }
.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: var(--grain-opacity); mix-blend-mode: overlay;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .82em 1.4em; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.btn--primary {
  color: #1a0f08;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 12px 34px -10px rgba(255,122,69,.6), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -10px rgba(255,122,69,.7), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--ghost {
  color: var(--text); background: var(--surface); border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  max-width: var(--maxw); margin: 0 auto; width: calc(100% - 4vw);
  padding: .85rem 1.4rem; margin-top: .8rem;
  background: var(--nav-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 10px 40px -24px rgba(0,0,0,.5);
  transition: background .5s var(--ease), border-color .5s var(--ease);
}
.nav__brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.nav__icon { border-radius: 9px; box-shadow: 0 4px 12px -4px rgba(0,0,0,.4); }
.nav__name { font-family: var(--font-display); font-size: 1.22rem; letter-spacing: -.01em; }
.nav__links { display: flex; gap: 1.7rem; margin-left: auto; font-size: .95rem; color: var(--text-dim); font-weight: 500; }
.nav__links a { position: relative; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0; background: var(--accent); transition: width .25s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: .9rem; }

/* Theme toggle */
.theme-toggle { background: none; border: none; cursor: pointer; padding: 0; }
.theme-toggle__track {
  display: block; width: 52px; height: 28px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  position: relative; transition: background .3s;
}
.theme-toggle__thumb {
  position: absolute; top: 2px; left: 2px; width: 22px; height: 22px;
  border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent));
  display: grid; place-items: center; color: #1a0f08;
  transition: transform .35s var(--ease);
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
[data-theme="dark"] .theme-toggle__thumb { transform: translateX(24px); }
.icon-sun, .icon-moon { position: absolute; transition: opacity .25s, transform .25s; }
[data-theme="dark"] .icon-sun { opacity: 0; transform: scale(.4); }
[data-theme="dark"] .icon-moon { opacity: 1; }
[data-theme="light"] .icon-moon { opacity: 0; transform: scale(.4); }
[data-theme="light"] .icon-sun { opacity: 1; }

/* ---------- Layout helpers ---------- */
section { position: relative; }
.kicker {
  display: inline-block; font-family: var(--font-mono); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .18em; color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .85rem; font-weight: 500; color: var(--text-dim);
  padding: .45rem .9rem; border: 1px solid var(--border-strong);
  border-radius: 999px; background: var(--surface); margin-bottom: 1.6rem;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(54,214,195,.18); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto; width: calc(100% - 4vw);
  padding: clamp(3.5rem, 8vw, 7rem) 0 4rem;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 600; font-size: clamp(2.6rem, 6.2vw, 5rem);
  line-height: 1.02; letter-spacing: -.025em; margin-bottom: 1.5rem;
  font-optical-sizing: auto;
}
.hero__title em { color: var(--accent); font-weight: 600; }
.hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-dim); max-width: 34ch; margin-bottom: 2.2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__note { display: flex; align-items: center; gap: .5rem; margin-top: 1.6rem; color: var(--text-faint); font-size: .9rem; }

.hero__shot { position: relative; }
.hero__shot-glow {
  position: absolute; inset: 8% 4% -8% 4%; z-index: -1;
  background: radial-gradient(ellipse at 60% 40%, var(--glow-a), transparent 70%);
  filter: blur(50px);
}

/* ---------- Window chrome ---------- */
.window {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.window:hover { transform: translateY(-4px); }
.window--lg { transform: perspective(1600px) rotateY(-4deg) rotateX(1.5deg); }
.window--lg:hover { transform: perspective(1600px) rotateY(0) rotateX(0) translateY(-4px); }
.window__bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .7rem 1rem; background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot--r { background: #FF5F57; } .dot--y { background: #FEBC2E; } .dot--g { background: #28C840; }
.window__title {
  margin-left: .6rem; font-size: .82rem; color: var(--text-faint);
  font-weight: 500; letter-spacing: .01em;
}
.window img { width: 100%; }

/* ---------- Strip ---------- */
.strip {
  max-width: var(--maxw); margin: 1rem auto 0; width: calc(100% - 4vw);
  padding: 2.4rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center;
}
.strip__lead { font-family: var(--font-display); font-size: 1.3rem; color: var(--text-dim); margin-bottom: 1.8rem; }
.strip__items { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 5vw, 4rem); }
.strip__items li { display: flex; flex-direction: column; gap: .2rem; }
.strip__items strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--accent); font-weight: 700; }
.strip__items span { font-size: .9rem; color: var(--text-faint); }

/* ---------- Feature sections ---------- */
.feature { max-width: var(--maxw); margin: 0 auto; width: calc(100% - 4vw); padding: clamp(4rem, 9vw, 7.5rem) 0; }
.feature--alt { /* subtle band */ }
.feature__grid--split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.feature__grid--reverse .feature__text { order: 2; }
.feature__text h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08;
  letter-spacing: -.02em; margin-bottom: 1.2rem;
}
.feature__text p { color: var(--text-dim); margin-bottom: 1.6rem; max-width: 46ch; }
.ticks { list-style: none; display: flex; flex-direction: column; gap: .85rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--text); font-size: .98rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .1em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.feature__shot--center { max-width: 880px; margin: clamp(3rem,6vw,5rem) auto 0; }
.feature__shot--wide { width: 100%; }

/* ---------- Section head ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem,5vw,3.5rem); }
.section-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem,4vw,3rem); line-height: 1.06; letter-spacing: -.02em; margin-bottom: 1rem; }
.section-head p { color: var(--text-dim); }

/* ---------- Hosting cards ---------- */
.hosting { max-width: var(--maxw); margin: 0 auto; width: calc(100% - 4vw); padding: clamp(3rem,7vw,6rem) 0; }
.hosting__cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; margin-bottom: clamp(3rem,6vw,4.5rem); }
.hcard {
  position: relative; padding: 2rem 1.8rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.hcard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0; transition: opacity .35s;
}
.hcard:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.hcard:hover::before { opacity: 1; }
.hcard__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.2rem; border: 1px solid var(--border); }
.hcard__icon--cloud { color: var(--accent); background: rgba(255,122,69,.12); }
.hcard__icon--local { color: var(--teal); background: rgba(54,214,195,.12); }
.hcard__icon--self { color: var(--accent-2); background: rgba(255,180,84,.12); }
.hcard h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; margin-bottom: .4rem; }
.hcard__price { font-family: var(--font-mono); font-size: .9rem; color: var(--text-faint); margin-bottom: 1rem; }
.hcard__price span { color: var(--text); font-weight: 500; }
.hcard p { color: var(--text-dim); font-size: .96rem; margin-bottom: 1.4rem; }
.pill { display: inline-block; font-size: .78rem; font-weight: 500; padding: .35rem .8rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); }
.pill--accent { background: linear-gradient(135deg, rgba(255,180,84,.2), rgba(255,122,69,.2)); border-color: var(--accent); color: var(--accent); }

.hosting__showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }

/* ---------- Bento ---------- */
.bento {
  max-width: var(--maxw); margin: 0 auto; width: calc(100% - 4vw);
  padding: clamp(2rem,5vw,3rem) 0 clamp(4rem,8vw,6rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
.bento__cell {
  padding: 1.7rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  transition: transform .35s var(--ease), background .35s;
}
.bento__cell:hover { transform: translateY(-4px); background: var(--surface-2); }
.bento__cell--wide { grid-column: span 2; }
.bento__cell--accent { background: linear-gradient(140deg, rgba(255,122,69,.12), rgba(54,214,195,.08)); border-color: var(--border-strong); }
.bento__cell h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: .6rem; }
.bento__cell p { color: var(--text-dim); font-size: .92rem; }
.bento__stat { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--accent); margin-bottom: .35rem; }

/* ---------- CTA ---------- */
.cta { max-width: var(--maxw); margin: 0 auto clamp(4rem,8vw,7rem); width: calc(100% - 4vw); }
.cta__inner {
  text-align: center; padding: clamp(3rem,7vw,5.5rem) clamp(1.5rem,5vw,4rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255,122,69,.22), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-strong);
  position: relative; overflow: hidden;
}
.cta__icon { margin: 0 auto 1.4rem; border-radius: 22px; box-shadow: 0 20px 50px -16px rgba(255,122,69,.5); }
.cta__inner h2 { font-family: var(--font-display); font-size: clamp(2rem,4.5vw,3.2rem); font-weight: 600; letter-spacing: -.02em; margin-bottom: 1rem; }
.cta__inner > p { color: var(--text-dim); max-width: 48ch; margin: 0 auto 2rem; }
.cta__form { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; max-width: 480px; margin: 0 auto; }
.cta__form input {
  flex: 1; min-width: 220px;
  padding: .82em 1.2em; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  color: var(--text); font-family: var(--font-body); font-size: 1rem;
  transition: border-color .25s;
}
.cta__form input:focus { outline: none; border-color: var(--accent); }
.cta__form input::placeholder { color: var(--text-faint); }
.cta__status { min-height: 1.4em; margin-top: 1rem; font-size: .95rem; font-weight: 500; }
.cta__status.ok { color: var(--teal); }
.cta__status.err { color: #ff6b6b; }
.cta__fine { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1.4rem; color: var(--text-faint); font-size: .85rem; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw); margin: 0 auto; width: calc(100% - 4vw);
  padding: 3rem 0 4rem; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center;
}
.footer__brand { display: flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.footer__brand img { border-radius: 8px; }
.footer__tag { color: var(--accent); font-family: var(--font-display); font-style: italic; }
.footer__meta { color: var(--text-faint); font-size: .85rem; }
.footer__meta a { color: var(--text-dim); border-bottom: 1px solid var(--border-strong); }
.footer__meta a:hover { color: var(--accent); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .window--lg { transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero__lede { max-width: none; }
  .window--lg { transform: none; }
  .feature__grid--split { grid-template-columns: 1fr; }
  .feature__grid--reverse .feature__text { order: 0; }
  .hosting__cards { grid-template-columns: 1fr; }
  .hosting__showcase { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__cell--wide { grid-column: span 2; }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .bento__cell--wide, .bento__cell--accent { grid-column: span 1; }
  .nav__cta { display: none; }
  .nav { gap: .8rem; }
  .strip__items { gap: 1.4rem 2rem; }
}
