/* SoraList website. Same language as the app: deep night-sky gradient, glass
   surfaces, Inter, the flat blue of the logo (#4F7CFF) and a cyan glow. */
:root {
  --ink: #070b24;
  --ink-2: #0d1235;
  --violet: #1e0b3d;
  --blue: #4F7CFF;
  --blue-hi: #7c9bff;
  --cyan: #22D3EE;
  --text: #eef1ff;
  --muted: #a3abcc;
  --faint: #6c7499;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-hi: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.09);
  --line-hi: rgba(255, 255, 255, 0.16);
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.45, 0, 0.2, 1);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; background: var(--glass-hi); border: 1px solid var(--line); padding: 2px 7px; border-radius: 7px; }

/* ---------- background sky ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(120% 80% at 50% -10%, #17205a 0%, transparent 60%),
              linear-gradient(170deg, var(--ink) 0%, var(--ink-2) 45%, var(--violet) 100%); }
.sky-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; animation: drift 22s var(--ease-io) infinite alternate; }
.sky-glow--a { width: 620px; height: 620px; left: -160px; top: 30%; background: #2b3fbf; }
.sky-glow--b { width: 520px; height: 520px; right: -140px; top: 60%; background: #0e5a7a; animation-delay: -9s; }
.sky-grain { position: absolute; inset: 0; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift { to { transform: translate(80px, -60px) scale(1.12); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 14px;
  font: 600 15px/1 Inter, sans-serif; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s var(--ease), border-color .4s var(--ease); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -10px rgba(79, 124, 255, .7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { transform: translateY(-2px); background: #5d88ff; box-shadow: 0 18px 40px -12px rgba(79, 124, 255, .85), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { background: var(--glass); border-color: var(--line-hi); color: var(--text); backdrop-filter: blur(12px); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--glass-hi); border-color: rgba(255,255,255,.26); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; border-radius: 16px; }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(calc(100% - 28px), var(--max)); height: 60px; padding: 0 12px 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-radius: 18px; border: 1px solid transparent;
  transition: background .6s var(--ease), border-color .6s var(--ease), backdrop-filter .6s var(--ease), box-shadow .6s var(--ease); }
.nav.is-scrolled { background: rgba(10, 14, 40, .62); border-color: var(--line); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 50px -30px rgba(0,0,0,.8); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; fill: var(--blue); }
.brand-word { font-size: 21px; letter-spacing: -0.02em; font-weight: 400; }
.brand-word b { font-weight: 700; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .3s, background .3s; }
.nav-links a:hover { color: var(--text); background: var(--glass); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 24px 40px; text-align: center; max-width: var(--max); margin: 0 auto; }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: #c9d4ff; background: rgba(79, 124, 255, .12); border: 1px solid rgba(79, 124, 255, .3); }
.hero-title { font-size: clamp(42px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; margin: 0 auto 22px; max-width: 14ch; }
.grad { background: linear-gradient(100deg, #fff 0%, #b9c8ff 35%, var(--blue-hi) 60%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 580px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin: 22px 0 0; color: var(--faint); font-size: 13.5px; }

/* sunrise behind the title: the logo's half sun and horizon lines */
.hero-sun { position: absolute; left: 50%; top: 40px; width: 760px; height: 420px; transform: translateX(-50%); pointer-events: none; z-index: -1; }
.sun { position: absolute; left: 50%; bottom: 120px; width: 460px; height: 230px; margin-left: -230px; border-radius: 230px 230px 0 0;
  background: radial-gradient(circle at 50% 100%, rgba(79,124,255,.55), rgba(79,124,255,.18) 55%, transparent 72%);
  filter: blur(6px); transform-origin: 50% 100%; animation: sunrise 2.4s var(--ease) .1s both, breathe 9s var(--ease-io) 2.6s infinite alternate; }
.horizon { position: absolute; left: 50%; height: 2px; border-radius: 2px; transform: translateX(-50%) scaleX(0);
  background: linear-gradient(90deg, transparent, rgba(124,155,255,.6), transparent); animation: horizon 1.8s var(--ease) both; }
.horizon--1 { bottom: 100px; width: 640px; animation-delay: .5s; }
.horizon--2 { bottom: 70px; width: 380px; animation-delay: .7s; opacity: .7; }
@keyframes sunrise { from { transform: translateY(120px) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes breathe { to { transform: scale(1.08); opacity: .8; } }
@keyframes horizon { to { transform: translateX(-50%) scaleX(1); } }

.hero-in { opacity: 0; transform: translateY(24px); filter: blur(6px);
  animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--d) * 110ms + 250ms); }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

/* screenshot in a browser frame, tilts flat as you scroll */
.showcase { margin: 70px auto 0; perspective: 1600px; }
.showcase .frame { transform: rotateX(calc(var(--tilt, 1) * 16deg)) scale(calc(0.94 + (1 - var(--tilt, 1)) * 0.06));
  transform-origin: 50% 0; transition: transform .15s linear; }
.frame { position: relative; border-radius: 18px; overflow: hidden; background: #0b0f2c;
  border: 1px solid var(--line-hi);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 50px 120px -40px rgba(10, 20, 80, .9), 0 0 120px -50px rgba(79,124,255,.6); }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 30%); }
.frame-bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.18); }
.frame-url { margin: 0 auto; transform: translateX(-24px); font-size: 12.5px; color: var(--faint); padding: 5px 40px; border-radius: 8px; background: rgba(255,255,255,.05); }
.frame-url i { font-size: 10px; margin-right: 6px; }
.frame img { width: 100%; height: auto; }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 120px 24px 0; }
.section--narrow { max-width: 820px; }
.section-head { text-align: center; margin-bottom: 54px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 16px; }
.section-sub { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto; }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(34px); filter: blur(4px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ---------- features bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; padding: 28px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); overflow: hidden; isolation: isolate;
  transition: transform .7s var(--ease), border-color .5s var(--ease), background .5s var(--ease), opacity 1s var(--ease), filter 1s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(79,124,255,.18), transparent 60%); }
.card:hover { border-color: var(--line-hi); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card--wide { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.card h3 { margin: 18px 0 8px; font-size: 19px; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 18px; color: #fff;
  background: linear-gradient(140deg, var(--blue), #3b5bd9); box-shadow: 0 10px 24px -10px rgba(79,124,255,.8), inset 0 1px 0 rgba(255,255,255,.3); }
.mini-boards { margin-top: auto; padding-top: 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini-board { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px;
  transform: translateY(16px); opacity: 0; transition: transform 1s var(--ease), opacity 1s var(--ease); }
.mini-board b { font-size: 13px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.mini-board i { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.12); }
.mini-board i:nth-child(odd) { width: 72%; } .mini-board i:nth-child(3n) { width: 86%; }
.is-shown .mini-board { transform: none; opacity: 1; }
.mini-board:nth-child(2) { transition-delay: .12s; } .mini-board:nth-child(3) { transition-delay: .24s; } .mini-board:nth-child(4) { transition-delay: .36s; }
.card--wide:hover .mini-board:nth-child(odd) { transform: translateY(-4px); }

/* ---------- themes ---------- */
.theme-tabs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 0 auto 30px; padding: 6px; width: fit-content;
  border-radius: 16px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); }
.theme-tabs button { border: 0; background: transparent; color: var(--muted); font: 600 14px Inter, sans-serif; padding: 10px 18px; border-radius: 11px; cursor: pointer;
  transition: color .4s var(--ease), background .4s var(--ease); }
.theme-tabs button:hover { color: var(--text); }
.theme-tabs button[aria-selected="true"] { color: #fff; background: var(--blue); box-shadow: 0 8px 20px -10px rgba(79,124,255,.9); }
.theme-shots { position: relative; aspect-ratio: 1600 / 760; }
.theme-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03);
  transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.theme-shots img.is-on { opacity: 1; transform: none; }

/* ---------- install ---------- */
.install { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: center; padding: 38px; border-radius: 26px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); }
.install-main { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.install-meta { margin: 0; color: var(--faint); font-size: 13.5px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--line); color: var(--muted); }
.steps b { color: var(--text); }
.step-n { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: rgba(79,124,255,.35); }
.copy { margin-left: 4px; border: 1px solid var(--line-hi); background: transparent; color: var(--muted); border-radius: 7px; padding: 2px 8px; font: 500 12px Inter, sans-serif; cursor: pointer; transition: color .3s, border-color .3s; }
.copy:hover { color: var(--text); border-color: rgba(255,255,255,.3); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(var(--plans, 2), minmax(0, 380px)); justify-content: center; gap: 22px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); transition: transform .7s var(--ease), border-color .5s var(--ease), opacity 1s var(--ease), filter 1s var(--ease); }
.plan:hover { transform: translateY(-6px); border-color: var(--line-hi); }
.plan--featured { border-color: rgba(79,124,255,.55);
  background: linear-gradient(180deg, rgba(79,124,255,.16), rgba(79,124,255,.03) 55%), var(--glass);
  box-shadow: 0 40px 90px -45px rgba(79,124,255,.8); }
.plan--featured:hover { border-color: rgba(124,155,255,.8); }
.plan-badge { position: absolute; top: -12px; right: 24px; padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 700;
  background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(79,124,255,.9); }
.plan h3 { margin: 0; font-size: 18px; font-weight: 600; color: var(--muted); }
.plan-price { margin: 14px 0 4px; display: flex; align-items: baseline; gap: 8px; }
.plan-price b { font-size: 54px; letter-spacing: -0.04em; font-weight: 800; line-height: 1; }
.plan-price span { color: var(--muted); font-size: 15px; }
.plan-tag { margin: 0 0 22px; color: var(--muted); font-size: 14.5px; min-height: 22px; }
.plan ul { list-style: none; margin: 0 0 28px; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.plan li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; }
.plan li i { color: var(--cyan); margin-top: 4px; font-size: 13px; }
.plan .btn { margin-top: auto; justify-content: center; width: 100%; }
.plans-note { text-align: center; color: var(--faint); font-size: 14px; margin: 26px 0 0; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--glass); border: 1px solid var(--line); transition: border-color .4s var(--ease), background .4s var(--ease), opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); }
.faq details[open] { border-color: var(--line-hi); background: var(--glass-hi); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-3px) rotate(45deg); transition: transform .5s var(--ease); }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.faq details[open] .faq-a { grid-template-rows: 1fr; }
.faq-a > p { overflow: hidden; margin: 0; padding: 0 22px; color: var(--muted); }
.faq details[open] .faq-a > p { padding-bottom: 20px; }

/* ---------- final cta ---------- */
.cta { max-width: var(--max); margin: 130px auto 0; padding: 80px 24px; text-align: center; position: relative; border-radius: 32px; overflow: hidden;
  background: radial-gradient(80% 120% at 50% 110%, rgba(79,124,255,.35), transparent 60%), var(--glass); border: 1px solid var(--line); }
.cta h2 { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -0.035em; font-weight: 800; margin: 18px 0 30px; }
.cta-mark { width: 72px; height: 72px; fill: var(--blue); filter: drop-shadow(0 10px 30px rgba(79,124,255,.6)); }
.cta.is-shown .cta-mark { animation: markRise 1.6s var(--ease) both; }
@keyframes markRise { from { transform: translateY(26px); opacity: 0; } }

/* ---------- footer ---------- */
.footer { max-width: var(--max); margin: 80px auto 0; padding: 32px 24px 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--line); }
.footer .brand-mark { width: 24px; height: 24px; } .footer .brand-word { font-size: 18px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a, .footer-copy { color: var(--faint); font-size: 14px; margin: 0; }
.footer-links a:hover { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card--wide { grid-column: span 2; grid-row: auto; }
  .install { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding-top: 124px; }
  .hero-sun { width: 100%; }
  .sun { width: 320px; height: 160px; margin-left: -160px; }
  .horizon { display: none; }
  .eyebrow { font-size: 12px; }
  .showcase { margin-top: 48px; }
  .bento { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .mini-boards { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .section { padding-top: 90px; }
  .install { padding: 24px; }
  .frame-bar { height: 30px; } .frame-url { display: none; }
  .theme-tabs button { padding: 9px 12px; font-size: 13px; }
  .cta { margin-left: 16px; margin-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .hero-in, .js .reveal, .mini-board { opacity: 1 !important; transform: none !important; filter: none !important; }
  .horizon { transform: translateX(-50%) scaleX(1); }
  .showcase .frame { transform: none; }
}

/* inline SVG icons (no icon font, no CDN) */
.ic { width: 1.1em; height: 1.1em; flex: none; }
.card-icon .ic { width: 22px; height: 22px; }
.frame-url .ic { width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; }
.plan li .ic { color: var(--cyan); margin-top: 3px; width: 16px; height: 16px; }
