/* ---------- Tokens ---------- */
:root {
  --ocean: #0E2A3B;
  --ocean-2: #163B52;
  --sun: #F2994A;
  --coral: #E4572E;
  --sand: #FBF6EE;
  --sand-2: #F3EADB;
  --ink: #142430;
  --muted: #5B6B76;
  --line: #E6DCCB;
  --card: #FFFFFF;

  --bg: var(--sand);
  --bg-alt: var(--sand-2);
  --text: var(--ink);
  --text-muted: var(--muted);
  --accent: var(--coral);

  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(14, 42, 59, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1F2C;
    --bg-alt: #0F2737;
    --text: #F3EEE6;
    --text-muted: #A9B6BF;
    --line: #22404F;
    --card: #12303F;
    --accent: #F2884F;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ocean); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
  border: 2px solid var(--accent);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--accent); }
.btn:focus-visible, .site-nav a:focus-visible, .nav-toggle:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.btn-small { padding: 9px 18px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); box-shadow: none; }
.btn-light { background: #fff; color: var(--ocean); border-color: #fff; }
.btn-light:hover { box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, var(--sun) 0 38%, transparent 39%),
              linear-gradient(to bottom, transparent 55%, var(--ocean-2) 55%);
  border: 2px solid var(--ocean);
  overflow: hidden;
}
.logo-text { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.02em; }
.logo-accent { color: var(--accent); margin-left: 2px; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--text-muted); font-weight: 500; transition: color .2s; }
.site-nav a:not(.btn):hover { color: var(--text); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s; }
.nav-toggle span + span { margin-top: 7px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 140px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-visual { position: relative; height: 440px; }
.sun {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  right: 6%; top: 4%;
  background: radial-gradient(circle, var(--sun), var(--coral));
  opacity: .9; filter: blur(2px);
}
.card { position: absolute; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card-browser { left: 0; top: 60px; width: 78%; height: 270px; overflow: hidden; animation: float 7s ease-in-out infinite; }
.browser-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-bar i:first-child { background: var(--coral); }
.browser-bar i:nth-child(2) { background: var(--sun); }
.browser-body { padding: 22px; }
.sk { border-radius: 6px; background: var(--bg-alt); margin-bottom: 10px; }
.sk-title { height: 18px; width: 60%; background: var(--ocean-2); opacity: .85; }
.sk-line { height: 10px; width: 85%; }
.sk-line.short { width: 55%; }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.sk-grid div { height: 70px; border-radius: 10px; background: var(--bg-alt); }
.sk-grid div:nth-child(2) { background: color-mix(in srgb, var(--sun) 35%, var(--bg-alt)); }

.card-phone { right: 4%; bottom: 10px; width: 150px; height: 290px; padding: 28px 16px 16px; border-radius: 28px; animation: float 6s ease-in-out infinite reverse; }
.phone-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 50px; height: 8px; border-radius: 6px; background: var(--line); }
.sk-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--sun); margin: 6px auto 16px; }
.sk-pill { height: 34px; border-radius: 999px; background: var(--accent); margin-top: 20px; }

.card-code {
  left: 8%; bottom: 0; padding: 14px 18px; background: var(--ocean); border-color: var(--ocean-2); color: #E8EEF2;
  font: 500 .85rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  animation: float 8s ease-in-out infinite;
}
.c-k { color: #F2994A; } .c-s { color: #9FD8C4; } .c-f { color: #8EC5FF; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}


@media (max-width: 900px) {
  .hero { padding: 48px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; max-width: 520px; width: 100%; margin: 0 auto; }
  .sun { width: 200px; height: 200px; }
  .card-browser { height: 230px; }
  .card-phone { width: 128px; height: 248px; }
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p:not(.eyebrow) { color: var(--text-muted); font-size: 1.1rem; }
@media (max-width: 600px) { .section { padding: 72px 0; } .section-head { margin-bottom: 36px; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service p { color: var(--text-muted); margin: 0; font-size: .98rem; }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--accent); }
.step-num { font-family: var(--font-display); font-size: 1rem; color: var(--accent); font-weight: 600; display: block; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: .98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about-word {
  background: var(--ocean); color: #F3EEE6; border-radius: 24px; padding: 48px 40px;
  display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
}
.about-word::after {
  content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%;
  right: -60px; top: -60px; background: radial-gradient(circle, var(--sun), var(--coral));
  opacity: .85;
}
.word { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; position: relative; z-index: 1; }
.pos { font-style: italic; color: #A9B6BF; position: relative; z-index: 1; }
.def { font-size: 1.15rem; max-width: 18em; position: relative; z-index: 1; }
.about-copy p:not(.eyebrow) { color: var(--text-muted); font-size: 1.08rem; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 40px; } .about-word { padding: 36px 28px; } }

/* CTA */
.cta { background: var(--ocean); color: #F3EEE6; padding: 96px 0; text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  left: 50%; bottom: -330px; transform: translateX(-50%);
  background: radial-gradient(circle, var(--sun), var(--coral)); opacity: .9;
}
.cta-inner { position: relative; max-width: 720px; }
.cta p { color: #C9D3D9; font-size: 1.1rem; margin-bottom: 32px; }
.cta .btn { word-break: break-all; }

/* Footer */
.site-footer { background: var(--ocean); color: #A9B6BF; padding: 36px 0 40px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.logo-footer { color: #F3EEE6; }
.logo-footer .logo-mark { border-color: #F3EEE6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.copyright { margin: 0; font-size: .9rem; width: 100%; }
