/* Shared page system for sofluffy.ai marketing pages (pitch/, vision/, connect/).
   Apple-style minimalism: neutral white / light-grey bands, one idea per band,
   centred hierarchy (product line → headline → subhead → visual → details).
   The one expressive element is glass: a frosted nav and product screens shown
   as frosted panels floating over a slow, soft colour field.

   Every class is prefixed `a-` so it never collides with the product mockups,
   which keep their own (app-matching) class names and warm palette. */

:root {
  --a-page: #ffffff;
  --a-page-alt: #f5f5f7;
  --a-text: #1d1d1f;
  --a-text-2: #6e6e73;
  --a-text-3: #86868b;
  --a-hair: rgba(0, 0, 0, .1);
  /* Brand orange. #ff6a3d is too light for text or white-on-orange buttons
     (2.85:1), so interactive text/fills use the deeper tone (4.9:1). */
  --a-orange: #ff6a3d;
  --a-orange-ink: #c8440f;
  --a-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --a-max: 980px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--a-font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--a-text);
  background: var(--a-page);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--a-orange); outline-offset: 3px; border-radius: 6px; }

/* ───────── Frosted navigation ───────── */
.a-nav {
  position: sticky; top: 0; z-index: 100;
  height: 48px;
  background: rgba(251, 251, 253, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.a-nav-in {
  max-width: var(--a-max); height: 100%; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 28px;
}
.a-mark { color: var(--a-text); display: flex; align-items: center; gap: 7px; text-decoration: none; font-size: 19px; font-weight: 700; letter-spacing: -0.04em; }
.a-mark svg { width: 22px; height: 25px; }
.a-nav-links { display: none; gap: 26px; margin-left: auto; }
.a-nav-links a { font-size: 13px; color: var(--a-text); text-decoration: none; opacity: .8; letter-spacing: -0.01em; }
.a-nav-links a:hover { opacity: 1; }
.a-nav-cta {
  margin-left: auto; font-size: 13px; font-weight: 500; text-decoration: none; color: #fff;
  background: var(--a-orange-ink); border-radius: 980px; padding: 8px 16px; min-height: 36px;
  display: inline-flex; align-items: center; position: relative;
}
.a-nav-cta::after { content: ''; position: absolute; inset: -4px -2px; } /* 44px hit area */
.a-nav-jump { font-size: 13px; text-decoration: none; color: var(--a-text); padding: 12px 4px; margin-left: auto; }
.a-nav-jump + .a-nav-cta { margin-left: 8px; }
@media (min-width: 734px) {
  .a-nav-links { display: flex; }
  .a-nav-cta { margin-left: 0; }
  .a-nav-jump { display: none; }
}

/* ───────── Bands (sections) ───────── */
.a-band { padding: 64px 20px; text-align: center; position: relative; overflow: hidden; }
.a-band.alt { background: var(--a-page-alt); }
.a-band.night { background: #000; color: #f5f5f7; }
.a-in { max-width: var(--a-max); margin: 0 auto; }
@media (min-width: 734px) { .a-band { padding: 120px 40px; } }

/* Type scale: product line → headline → subhead → body → caption */
.a-line { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--a-orange-ink); margin-bottom: 8px; }
.night .a-line { color: var(--a-orange); }
.a-hero-title { font-size: clamp(44px, 12vw, 96px); font-weight: 700; line-height: 1.02; letter-spacing: -0.04em; }
.a-title { font-size: clamp(36px, 9.5vw, 64px); font-weight: 600; line-height: 1.06; letter-spacing: -0.03em; max-width: 16ch; margin: 0 auto; }
.a-sub {
  font-size: clamp(19px, 5vw, 28px); font-weight: 500; line-height: 1.25; letter-spacing: -0.015em;
  color: var(--a-text-2); max-width: 32ch; margin: 16px auto 0;
}
.night .a-sub { color: #a1a1a6; }
.a-caption { font-size: 14px; color: var(--a-text-2); }
@media (min-width: 734px) { .a-line { font-size: 24px; } }
.a-hero-title, .a-title, .a-sub, .a-statement { text-wrap: balance; }
p { text-wrap: pretty; }

/* Two-tone statement paragraph (muted lead-in, ink conclusion) */
.a-statement { font-size: clamp(28px, 7.4vw, 48px); font-weight: 600; line-height: 1.14; letter-spacing: -0.03em; max-width: 22ch; margin: 0 auto; }
.a-statement .a-quiet { color: var(--a-text-3); }

/* ───────── Buttons ───────── */
.a-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.a-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px; border-radius: 980px;
  font-size: 17px; font-weight: 500; letter-spacing: -0.02em; text-decoration: none;
  background: var(--a-orange-ink); color: #fff; border: 1px solid var(--a-orange-ink);
  transition: background .2s;
}
.a-btn:hover { background: #b23c0c; }
.a-btn.ghost { background: transparent; color: var(--a-orange-ink); }
.a-btn.ghost:hover { background: rgba(200, 68, 15, .06); }
.night .a-btn { background: var(--a-orange); border-color: var(--a-orange); color: #000; }
.night .a-btn.ghost { background: transparent; color: var(--a-orange); }

/* ───────── The glass stage ───────── */
.a-stage { position: relative; margin: 56px auto 0; display: grid; place-items: center; isolation: isolate; }
.a-stage::before {
  content: ''; position: absolute; inset: -6% -10%; z-index: -1;
  background:
    radial-gradient(38% 34% at 30% 35%, rgba(255, 140, 100, .55), transparent 70%),
    radial-gradient(34% 32% at 72% 30%, rgba(255, 150, 200, .45), transparent 70%),
    radial-gradient(40% 36% at 60% 75%, rgba(170, 150, 255, .45), transparent 70%),
    radial-gradient(30% 28% at 25% 78%, rgba(130, 200, 255, .35), transparent 70%);
}
/* Only the hero's colour field moves; static fields elsewhere keep scrolling smooth on phones. */
.hero .a-stage::before { animation: a-drift 22s ease-in-out infinite alternate; }
.night .a-stage::before { opacity: .55; }
@keyframes a-drift {
  0% { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) rotate(8deg) scale(1.06); }
}
.a-glass {
  width: min(100%, 420px);
  padding: 10px;
  border-radius: 46px;
  background: rgba(255, 255, 255, .42);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 40px 90px -40px rgba(60, 30, 90, .45);
}
.a-glass.wide { width: min(100%, 680px); border-radius: 40px; }
@media (max-width: 733px) {
  .a-glass { padding: 12px; -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); }
  .a-stage { margin-top: 40px; }
}
/* Product screens sit flush inside the glass bezel. */
.a-glass > .phone, .a-glass > .device { max-width: none; width: 100%; border-radius: 36px; box-shadow: none; border-color: rgba(0, 0, 0, .06); }
.a-glass.wide > .device { border-radius: 30px; }

/* Small floating glass chips (hero composition) */
.a-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 18px; font-size: 14px; font-weight: 500; text-align: left;
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 20px 40px -24px rgba(60, 30, 90, .4);
}
.a-chip small { display: block; font-size: 12px; color: var(--a-text-2); font-weight: 400; }
.a-dot { width: 8px; height: 8px; border-radius: 50%; background: #1f8a4c; flex: none; }

/* ───────── Details row under a visual ───────── */
.a-facts { display: grid; gap: 14px; max-width: var(--a-max); margin: 40px auto 0; text-align: left; }
@media (max-width: 733px) {
  .a-fact { padding-top: 12px; }
  .a-fact h3 { font-size: 17px; }
  .a-fact p { display: none; }
}
.a-fact { border-top: 1px solid var(--a-hair); padding-top: 18px; }
.a-fact h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.a-fact p { color: var(--a-text-2); margin-top: 6px; font-size: 17px; }
.night .a-fact { border-color: rgba(255, 255, 255, .16); }
.night .a-fact p { color: #a1a1a6; }
@media (min-width: 734px) { .a-facts { grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; } }

/* A hint for interactive visuals */
.a-try { margin-top: 18px; font-size: 15px; color: var(--a-text-2); }

/* ───────── Glass tiles (links into deeper pages) ───────── */
.a-tiles { display: grid; gap: 16px; max-width: var(--a-max); margin: 0 auto; text-align: left; }
.a-tile {
  display: grid; gap: 10px; align-content: start;
  padding: 28px; border-radius: 28px; text-decoration: none; color: var(--a-text);
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 30px 60px -40px rgba(60, 30, 90, .45);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.a-tile:hover { transform: translateY(-3px); }
.a-tile .a-glyph { font-size: 30px; line-height: 1; }
.a-tile h2, .a-tile h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.a-tile p { color: var(--a-text-2); }
.a-tile .a-go { color: var(--a-orange-ink); font-weight: 500; margin-top: auto; }
@media (min-width: 734px) { .a-tiles { grid-template-columns: repeat(3, 1fr); } }

/* Glass rows on black (roadmap, reasons) */
.a-rows { display: grid; gap: 12px; max-width: 720px; margin: 48px auto 0; text-align: left; position: relative; isolation: isolate; }
.a-rows::before {
  content: ''; position: absolute; inset: -10% -20%; z-index: -1; opacity: .4;
  background:
    radial-gradient(40% 40% at 25% 30%, rgba(255, 106, 61, .7), transparent 70%),
    radial-gradient(40% 40% at 80% 75%, rgba(155, 81, 224, .6), transparent 70%);
}
.a-row {
  display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; border-radius: 22px;
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .12);
}
.a-row > span:first-child { font-size: 26px; line-height: 1.1; flex: none; }
.a-row b { display: block; font-size: 17px; font-weight: 600; }
.a-row span.d { font-size: 15px; color: #a1a1a6; }
.a-row .a-state { margin-left: auto; font-size: 12px; font-weight: 600; white-space: nowrap; border-radius: 980px; padding: 4px 10px; }
.a-state.live { background: rgba(48, 209, 88, .18); color: #30d158; }
.a-state.next { background: rgba(255, 106, 61, .18); color: var(--a-orange); }

/* ───────── Footer ───────── */
.a-foot { background: var(--a-page-alt); border-top: 1px solid var(--a-hair); }
.a-foot-in { max-width: var(--a-max); margin: 0 auto; padding: 6px 20px max(10px, env(safe-area-inset-bottom)); font-size: 12px; color: var(--a-text-2); display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.a-foot a { color: var(--a-text-2); text-decoration: none; padding: 12px 0; }
.a-foot a:hover { text-decoration: underline; }

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