/* ============================================================
   Stora Landing Page
   Tokens are lifted straight from the app itself, so the
   marketing page reads as a preview of the product, not a
   separate skin bolted on top of it.
   ============================================================ */

:root {
  --bg: #F6F5F1;
  --sidebar: #111111;
  --accent: #5B6CF9;
  --accent-dim: #4854c9;
  --text: #111111;
  --text-secondary: #6B7280;
  --border: #E5E4E0;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;

  --on-dark-text: #F6F5F1;
  --on-dark-secondary: #9A99A8;
  --on-dark-border: #2A2A2E;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --ease: 0.16s ease;

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Respect reduced motion everywhere */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------------- Nav ---------------- */

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 245, 241, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.landing-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.landing-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.landing-nav__brand .mark { width: 28px; height: 28px; }

.landing-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.landing-nav__links a:not(.btn) {
  font-size: 14.5px;
  color: var(--text-secondary);
  transition: color var(--ease);
}

.landing-nav__links a:not(.btn):hover { color: var(--text); }
/* 111111111111111222222222222222222221 */
.btn.landing-nav__cta {
  display: none;
}

.landing-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
}

.landing-nav__toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--ease), opacity var(--ease);
}

.landing-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.landing-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.landing-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 720px) {
  .btn.landing-nav__cta:not(.landing-nav__cta--mobile) {
    display: inline-flex;
  }
}

/* Below 720px: hide the inline links row and swap in a hamburger that
   reveals a dropdown panel instead, so the nav never wraps or overflows. */
@media (max-width: 719px) {
  .landing-nav__toggle { display: inline-flex; }

  

  .landing-nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 28px 16px;
    box-shadow: 0 12px 24px rgba(17,17,17,0.06);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.22s ease, opacity 0.18s ease;
    
  }

  .landing-nav__links a:not(.btn) {
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }

  .landing-nav__links.is-open {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
  }

  .btn.landing-nav__cta--mobile {
    display: inline-flex;
    margin-top: 12px;
  }
}

.landing-nav__inner { position: relative; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--ease), background var(--ease), border-color var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(91, 108, 249, 0.28);
}

.btn--primary:hover { background: var(--accent-dim); transform: translateY(-1px); }

.btn--ghost-dark {
  background: transparent;
  color: var(--on-dark-text);
  border-color: var(--on-dark-border);
}

.btn--ghost-dark:hover { border-color: var(--accent); color: #fff; }

.btn--ghost-light {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost-light:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------------- Hero ---------------- */

.hero {
  background: var(--sidebar);
  color: var(--on-dark-text);
  padding: 96px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--on-dark-secondary);
  border: 1px solid var(--on-dark-border);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero__eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}

.hero h1 .accent-text { color: var(--accent); }

.hero p.lede {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--on-dark-secondary);
  max-width: 480px;
  margin: 0 0 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__meta {
  margin-top: 28px;
  font-size: 13px;
  color: var(--on-dark-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__meta code {
  font-family: var(--font-body);
  background: rgba(91, 108, 249, 0.14);
  color: #B7C0FF;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}

/* Signature visual: a Discord message bubble morphing into a Stora file card */

.morph {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.morph__stage {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 320px;
}

@media (max-width: 600px) {
  .morph { height: 260px; }
  .morph__stage { height: 220px; }
}

.morph__card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.morph__card--discord {
  background: #2B2D31;
  border: 1px solid #1E1F22;
  color: #DBDEE1;
  animation: morph-discord 6s ease-in-out infinite;
}

.morph__card--stora {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  animation: morph-stora 6s ease-in-out infinite;
}

@keyframes morph-discord {
  0%, 38% { opacity: 1; transform: translateY(0) scale(1); }
  50%, 100% { opacity: 0; transform: translateY(-8px) scale(0.98); }
}

@keyframes morph-stora {
  0%, 38% { opacity: 0; transform: translateY(8px) scale(0.98); }
  50%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .morph__card--discord, .morph__card--stora { animation: none; }
  .morph__card--discord { opacity: 1; }
  .morph__card--stora { opacity: 0; }
}

.morph__row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }

.morph__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #fff;
  flex-shrink: 0;
}

.morph__name { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.morph__bot-tag {
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 700;
  padding: 1px 5px; border-radius: 4px; margin-left: 6px; vertical-align: middle;
}
.morph__timestamp { color: #949BA4; font-size: 11.5px; font-weight: 400; }

.morph__attachment {
  margin-top: 8px;
  background: #1E1F22;
  border: 1px solid #3a3c41;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.morph__file-icon {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.morph__file-thumb {
  height: 120px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #EDEBFF, #E1E5FF);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}

.morph__file-name { font-weight: 600; font-size: 14.5px; margin-bottom: 4px; }
.morph__file-meta { color: var(--text-secondary); font-size: 12.5px; display: flex; gap: 10px; }
.morph__star { color: var(--warning); margin-left: auto; }

/* ---------------- Section shell ---------------- */

.section {
  padding: 88px 0;
}

.section--tight { padding: 64px 0; }

@media (max-width: 600px) {
  .hero { padding: 48px 0 56px; }
  .section { padding: 52px 0; }
  .section--tight { padding: 40px 0; }
  .final-cta { padding: 40px 24px; }
  .container { padding: 0 20px; }
}

.section__head {
  max-width: 620px;
  margin: 0 0 48px;
}

.section__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.section__head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.15;
  margin: 0 0 14px;
}

.section__head p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* ---------------- How it works ---------------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(4, 1fr); border-top: none; }
}

.step {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

@media (min-width: 760px) {
  .step {
    padding: 4px 24px 4px 0;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
  .step:last-child { border-right: none; padding-right: 0; }
}

.step__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--border);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: #fff;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0 0 8px;
}

.step p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ---------------- Video ---------------- */

.video-section { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sidebar);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--on-dark-border);
  box-shadow: 0 30px 60px rgba(17,17,17,0.14);
  max-width: 1000px;
  max-height: 480px;
  margin: 0 auto;
}

.video-frame__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

.video-frame__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--on-dark-secondary);
  background:
    radial-gradient(circle at 30% 20%, rgba(91,108,249,0.18), transparent 55%),
    var(--sidebar);
}

.video-frame__play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(91,108,249,0.4);
}

.video-frame__placeholder span {
  font-size: 14px;
}

.video-frame__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

/* ---------------- Features ---------------- */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 620px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(17,17,17,0.06);
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(91,108,249,0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ---------------- Disclaimer ---------------- */

.disclaimer {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: flex-start;
}

.disclaimer__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.disclaimer h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0 0 10px;
}

.disclaimer p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 10px;
}

.disclaimer p:last-child { margin-bottom: 0; }

.disclaimer a { color: var(--accent); font-weight: 600; }
.disclaimer a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .disclaimer { grid-template-columns: 1fr; }
}

/* ---------------- Final CTA ---------------- */

.final-cta {
  background: var(--sidebar);
  color: var(--on-dark-text);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(91,108,249,0.25), transparent 60%);
}

.final-cta > * { position: relative; }

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  margin: 0 0 14px;
}

.final-cta p {
  color: var(--on-dark-secondary);
  font-size: 15.5px;
  margin: 0 0 28px;
}

.final-cta__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------------- Footer ---------------- */

.landing-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
}

.landing-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.landing-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}

.landing-footer__brand .mark { width: 24px; height: 24px; }

.landing-footer__links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.landing-footer__links a {
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: color var(--ease);
}

.landing-footer__links a:hover { color: var(--accent); }

.landing-footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.landing-footer__bottom a { color: var(--text-secondary); }
.landing-footer__bottom a:hover { color: var(--accent); }
