/* =========================================================
   FlowDrive — global styles
   Dark-mode first · macOS 26 design language · glassmorphism
   ========================================================= */

:root {
  /* color */
  --bg: #0a0a0d;
  --bg-2: #101016;
  --bg-3: #15151c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-2: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-dim: #b9b9c3;
  --text-mute: #8a8a96;
  --accent: #7cc7ff;
  --accent-2: #a78bfa;
  --accent-3: #5ee3c1;
  --grad: linear-gradient(120deg, #7cc7ff 0%, #a78bfa 50%, #ff9bd2 100%);
  --grad-cool: linear-gradient(135deg, #7cc7ff 0%, #5ee3c1 100%);

  /* type */
  --font-sans: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "SF Pro Text", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* sizing */
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --radius-xl: 36px;
  --container: 1180px;

  /* motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7fa;
    --bg-2: #ffffff;
    --bg-3: #ffffff;
    --surface: rgba(0,0,0,0.04);
    --surface-2: rgba(0,0,0,0.06);
    --stroke: rgba(0,0,0,0.08);
    --stroke-2: rgba(0,0,0,0.14);
    --text: #1d1d1f;
    --text-dim: #4b4b55;
    --text-mute: #6e6e76;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(124,199,255,.10), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(167,139,250,.08), transparent 60%),
    var(--bg);
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #000; padding: 10px 14px; border-radius: 8px;
  z-index: 1000; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Typography
   ========================================================= */
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.display {
  margin: 0;
  font-size: clamp(44px, 7.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.display--md { font-size: clamp(36px, 5vw, 64px); }
.display em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.display .grad {
  background: var(--grad-cool);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.headline {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 650;
}

.lede {
  margin: 22px auto 0;
  max-width: 640px;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--text-dim);
  line-height: 1.45;
}

.sub {
  margin: 16px auto 0;
  max-width: 640px;
  font-size: 18px;
  color: var(--text-dim);
}

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(10,10,13,0.62);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(10,10,13,0.82);
  border-bottom-color: var(--stroke);
}
@media (prefers-color-scheme: light) {
  .nav { background: rgba(255,255,255,0.62); }
  .nav.is-scrolled { background: rgba(255,255,255,0.85); }
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 17px;
}
.nav__logo { width: 24px; height: 24px; }
.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  color: var(--text-dim);
}
.nav__links a { transition: color .2s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav__cta:hover { transform: translateY(-1px); opacity: .9; }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn--primary {
  background: var(--text);
  color: var(--bg);
}
.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--stroke-2);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: var(--surface-2); }
.btn--appstore {
  background: #fff;
  color: #000;
  padding: 10px 18px 10px 16px;
  border-radius: 14px;
  text-align: left;
}
.btn--appstore .btn__icon { width: 26px; height: 26px; }
.btn--appstore .btn__stack { display: flex; flex-direction: column; line-height: 1.05; }
.btn--appstore .btn__small { font-size: 10px; font-weight: 500; letter-spacing: .04em; opacity: .8; }
.btn--appstore .btn__big { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.btn--soon {
  cursor: default;
  opacity: .92;
}
.btn--soon:hover { transform: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 120px) 0 0;
  text-align: center;
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  inset: -10% 0 auto 0;
  height: 80vh;
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(124,199,255,.22), transparent 60%),
    radial-gradient(40% 30% at 20% 20%, rgba(167,139,250,.18), transparent 60%),
    radial-gradient(40% 30% at 80% 10%, rgba(94,227,193,.14), transparent 60%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__ctas {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero__meta {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-mute);
}

/* Showcase window */
.showcase {
  position: relative;
  margin: clamp(60px, 8vw, 100px) auto 0;
  max-width: 1080px;
  padding: 0 24px;
}
.showcase__window {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--stroke);
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.02) inset;
  backdrop-filter: blur(30px) saturate(180%);
}
.showcase__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--stroke);
  position: relative;
}
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot--r { background: #ff5f57; }
.dot--y { background: #febc2e; }
.dot--g { background: #28c840; }
.showcase__title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 13px; color: var(--text-dim);
}
.showcase__body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 460px;
}
.showcase__sidebar {
  padding: 18px 14px;
  border-right: 1px solid var(--stroke);
  background: rgba(255,255,255,0.015);
}
.sidebar__label {
  margin: 14px 8px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-mute);
}
.showcase__sidebar ul { list-style: none; margin: 0; padding: 0; }
.showcase__sidebar li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: default;
}
.showcase__sidebar li.is-active {
  background: linear-gradient(180deg, rgba(124,199,255,.18), rgba(124,199,255,.06));
  color: var(--text);
}
.dotled {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-mute);
  flex-shrink: 0;
}
.is-active .dotled { background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.showcase__main { padding: 24px 28px; text-align: left; }
.showcase__header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 22px;
}
.showcase__header h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.showcase__header p { margin: 4px 0 0; font-size: 13px; color: var(--text-mute); }
.badge {
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--stroke-2);
}
.badge--studio {
  background: linear-gradient(135deg, rgba(124,199,255,.2), rgba(167,139,250,.2));
  color: #c7e3ff;
  border-color: rgba(124,199,255,.3);
}

.showcase__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.stat {
  padding: 14px 16px;
  border-radius: var(--radius-m);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--stroke);
}
.stat__label { margin: 0; font-size: 12px; color: var(--text-mute); }
.stat__value {
  margin: 6px 0 10px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.stat__value span { font-size: 13px; color: var(--text-mute); margin-left: 4px; font-weight: 500; }
.bar {
  height: 6px; border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.bar i {
  display: block; height: 100%;
  width: var(--w, 50%);
  background: var(--grad-cool);
  border-radius: inherit;
}

.rec {
  padding: 16px 18px;
  border-radius: var(--radius-m);
  background: linear-gradient(180deg, rgba(124,199,255,.08), rgba(167,139,250,.04));
  border: 1px solid var(--stroke);
}
.rec__head { margin-bottom: 10px; }
.rec__pill {
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(124,199,255,.15);
  color: #c7e3ff;
}
.rec__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rec__list li { font-size: 14px; color: var(--text-dim); display: flex; gap: 10px; align-items: center; }
.check {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--grad-cool); color: #00231e; font-size: 11px; font-weight: 800;
}

@media (max-width: 720px) {
  .showcase__body { grid-template-columns: 1fr; }
  .showcase__sidebar { display: none; }
  .showcase__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
  margin: clamp(60px, 9vw, 120px) 0;
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* =========================================================
   Section heads / grids
   ========================================================= */
section { padding: clamp(80px, 10vw, 140px) 0; }
section.hero { padding-top: clamp(60px, 9vw, 120px); padding-bottom: 0; }
section.marquee { padding: 18px 0; }

.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 80px);
}

.grid { display: grid; gap: 20px; }
.grid--features {
  grid-template-columns: repeat(2, 1fr);
}
.grid--workflows {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .grid--features, .grid--workflows { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--stroke);
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(124,199,255,.10), transparent 60%);
  opacity: 0; transition: opacity .3s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-2px); border-color: var(--stroke-2); }
.card:hover::after { opacity: 1; }
.card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(124,199,255,.25), rgba(167,139,250,.18));
  color: #cfe7ff;
  margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.015em; }
.card p { margin: 0; color: var(--text-dim); font-size: 16px; }

/* =========================================================
   Bigstat
   ========================================================= */
.bigstat { text-align: center; }
.bigstat .display { margin: 16px auto 0; max-width: 1000px; }

/* =========================================================
   Workflows tiles
   ========================================================= */
.tile {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-l);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  overflow: hidden;
  min-height: 280px;
  display: flex; flex-direction: column;
}
.tile::before {
  content: "";
  position: absolute; inset: -1px;
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(124,199,255,.12), transparent 50%);
  pointer-events: none;
}
.tile--photo::before {
  background: radial-gradient(60% 50% at 100% 0%, rgba(167,139,250,.16), transparent 50%);
}
.tile--archive::before {
  background: radial-gradient(60% 50% at 100% 0%, rgba(94,227,193,.16), transparent 50%);
}
.tile__tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--stroke-2);
  color: var(--text-dim);
  margin-bottom: 16px;
  background: rgba(255,255,255,0.03);
}
.tile h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.015em; }
.tile p { margin: 0 0 18px; color: var(--text-dim); }
.tile__chips { list-style: none; margin: auto 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tile__chips li {
  font-size: 12px; padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--stroke);
  color: var(--text-dim);
}

/* =========================================================
   Pro section
   ========================================================= */
.pro {
  position: relative;
  isolation: isolate;
}
.pro::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 20% 50%, rgba(167,139,250,.15), transparent 60%),
              radial-gradient(800px 400px at 80% 50%, rgba(124,199,255,.10), transparent 60%);
  z-index: -1;
}
.pro__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .pro__inner { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-dim); font-size: 17px; }
.checklist .check { margin-top: 4px; flex-shrink: 0; }

.pro__card {
  padding: 28px;
  border-radius: var(--radius-l);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
}
.pro__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--stroke);
  font-size: 15px;
}
.pro__row:last-child { border-bottom: 0; }
.pro__row span { color: var(--text-mute); }
.pro__row strong { font-weight: 600; }
.pro__row .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pro__chart {
  margin: 14px 0;
  padding: 10px;
  border-radius: var(--radius-m);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--stroke);
}
.pro__chart svg { width: 100%; height: 90px; display: block; }

/* =========================================================
   Final CTA
   ========================================================= */
.cta {
  text-align: center;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(124,199,255,.14), transparent 60%);
}
.cta .hero__ctas { margin-top: 32px; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  border-top: 1px solid var(--stroke);
  padding: 36px 0 48px;
  color: var(--text-mute);
  font-size: 13px;
}
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.footer__brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text);
  font-weight: 600;
}
.footer__links {
  display: flex; gap: 22px; justify-content: center;
}
.footer__links a:hover { color: var(--text); }
.footer__legal { margin: 0; text-align: right; }
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__links { justify-content: center; }
  .footer__legal { text-align: center; }
}

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Article (Privacy / Support)
   ========================================================= */
.article {
  padding: clamp(80px, 10vw, 140px) 0 80px;
}
.article .container { max-width: 760px; }
.article h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -.025em;
  margin: 0 0 12px;
}
.article .updated { color: var(--text-mute); font-size: 14px; margin: 0 0 40px; }
.article h2 {
  margin: 40px 0 14px;
  font-size: 22px;
  letter-spacing: -.01em;
}
.article p, .article li { color: var(--text-dim); font-size: 17px; line-height: 1.65; }
.article ul { padding-left: 22px; }
.article a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.faq {
  margin-top: 16px;
  border-top: 1px solid var(--stroke);
}
.faq details {
  border-bottom: 1px solid var(--stroke);
  padding: 18px 4px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 22px;
  color: var(--text-mute);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; }
