/*
  Shortly – Landing styles
  - Modern, responsive layout
  - System fonts (no external requests)
  - Soft gradients, glass cards, subtle motion
*/

:root {
  --bg: #0b0f15;
  --bg-alt: #0d1117;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --txt: #e8eef7;
  --muted: #a7b1c2;
  --primary: #ff5a8b;
  --primary-600: #ff3f7a;
  --accent: #7aa8ff;
  --success: #39d98a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--txt);
  background: radial-gradient(1200px 800px at 10% -10%, #192030 0%, rgba(25,32,48,0) 60%),
              radial-gradient(1000px 700px at 110% 10%, rgba(127, 86, 217, 0.25) 0%, rgba(127,86,217,0) 60%),
              var(--bg);
  font: 400 16px/1.6 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; padding: 8px 12px; background: var(--bg-alt); border-radius: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.2) blur(8px); background: linear-gradient(180deg, rgba(13,17,23,.7), rgba(13,17,23,.4)); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.logo { color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .3px; font-size: 1.25rem; }
.logo--sm { font-size: 1rem; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { color: var(--txt); text-decoration: none; opacity: .9; }
.nav-links a:hover { opacity: 1; }

.nav-toggle { display: none; background: transparent; border: 0; padding: 6px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--txt); margin: 5px 0; border-radius: 2px; transition: transform .2s ease; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--panel-strong); color: var(--txt); text-decoration: none; background: var(--panel); box-shadow: var(--shadow); transition: transform .15s ease, background .2s ease, border-color .2s ease; }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 8px 12px; font-size: .9rem; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.2); }
.btn--primary { background: linear-gradient(135deg, var(--primary), #ff7aa6); border: 1px solid rgba(255,255,255,.15); color: #0b0f15; font-weight: 700; }
.btn--primary:hover { filter: brightness(1.05); }

/* Hero */
.hero { position: relative; padding: clamp(40px, 8vw, 80px) 0; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 4vw, 48px); }
.hero__copy h1 { font-size: clamp(2rem, 3.8vw, 3.5rem); line-height: 1.12; margin: 0 0 12px; letter-spacing: .2px; }
.hero__copy p { color: var(--muted); margin: 0 0 22px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.cta--center { justify-content: center; }
.btn .icon { display: inline-block; width: 18px; height: 18px; }
.small { font-size: .92rem; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 26px; }
.stats div { background: var(--panel); border: 1px solid var(--panel-strong); border-radius: 12px; padding: 14px; text-align: center; }
.stats strong { font-size: 1.25rem; display: block; }
.stats span { color: var(--muted); font-size: .9rem; }

.hero__visual { display: grid; place-items: center; }
.hero__image { max-width: 100%; height: auto; max-height: 600px; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.phone { width: min(360px, 78vw); aspect-ratio: 9/19.5; background: linear-gradient(180deg, #1a2332, #0e141f); border-radius: 34px; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 60px rgba(0,0,0,.55), inset 0 0 0 6px #0a0f17; position: relative; }
.phone__notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 44%; height: 26px; background: #0a0f17; border-radius: 0 0 16px 16px; box-shadow: inset 0 -1px rgba(255,255,255,.06); }
.phone__screen { position: absolute; inset: 14px; border-radius: 26px; overflow: hidden; background: #0d1117; display: grid; place-items: center; }

.reel-card { position: relative; width: 88%; aspect-ratio: 9/16; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); box-shadow: var(--shadow); }
.reel-card__video { position: absolute; inset: 0; background: linear-gradient(135deg, #2b3a55, #1a2332 35%, #2f244a 60%, #1a2332); filter: saturate(1.1) contrast(1.05); }
.shimmer { background-size: 200% 200%; animation: shimmer 5s ease-in-out infinite; }
@keyframes shimmer { 0%{ background-position: 0% 0%; } 50%{ background-position: 100% 100%; } 100%{ background-position: 0% 0%; } }

.reel-card__meta { position: absolute; left: 10px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(0,0,0,.35); backdrop-filter: blur(4px); border-radius: 999px; border: 1px solid rgba(255,255,255,.12); }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #b8d1ff); }
.lines { display: grid; gap: 4px; }
.line { display: block; width: 120px; height: 8px; background: rgba(255,255,255,.5); border-radius: 999px; }
.line.short { width: 70px; opacity: .7; }

.reel-card__actions { position: absolute; right: 8px; bottom: 10px; display: grid; gap: 10px; }
.reel-card__actions button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.35); color: #fff; cursor: pointer; }
.reel-card__actions button:hover { transform: translateY(-1px); }

.blur-blob { position: absolute; filter: blur(60px) saturate(1.2); opacity: .6; pointer-events: none; }
.blob--one { width: 360px; height: 360px; top: -40px; left: -60px; background: radial-gradient(closest-side, rgba(255,90,139,.85), rgba(255,90,139,0)); }
.blob--two { width: 420px; height: 420px; bottom: -120px; background: radial-gradient(closest-side, rgba(122,168,255,.7), rgba(122,168,255,0)); }
 
/* Sections */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)); border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.section__title { margin: 0 0 10px; font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.section__lead { color: var(--muted); margin: 0 0 28px; }

.grid { display: grid; gap: 18px; }
.cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--panel-strong); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .2s ease; }
.card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.24); }
.card__icon { font-size: 1.4rem; display: inline-flex; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; background: rgba(255,255,255,.06); margin-bottom: 8px; }

.timeline { display: grid; gap: 16px; position: relative; }
.step { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px; background: var(--panel); border: 1px solid var(--panel-strong); border-radius: 14px; padding: 16px; }
.step__badge { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #b8d1ff); color: #09101a; font-weight: 800; }

.testimonials { grid-template-columns: repeat(3, minmax(0,1fr)); }
.quote { background: var(--panel); border: 1px solid var(--panel-strong); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.quote blockquote { margin: 0 0 8px; font-size: 1.05rem; }
.quote figcaption { color: var(--muted); font-size: .95rem; }

.cta__box { background: linear-gradient(135deg, rgba(255,90,139,.15), rgba(122,168,255,.12)); border: 1px solid rgba(255,255,255,.16); border-radius: 20px; padding: clamp(20px, 4vw, 36px); text-align: center; box-shadow: var(--shadow); }
.cta__box h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 2rem); }
.cta__box p { color: var(--muted); margin: 0 0 16px; }

/* (removed store badges styles after reverting to custom buttons) */

/* Footer */
.site-footer { padding: 28px 0; border-top: 1px solid rgba(255,255,255,.06); background: linear-gradient(180deg, rgba(13,17,23,.3), rgba(13,17,23,.6)); }
.footer__grid { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; }
.footer__links { display: flex; gap: 16px; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--txt); }
.footer__copy { color: var(--muted); text-align: right; }

.muted { color: var(--muted); }

/* Docs pages */
.doc .site-header { position: sticky; }
.doc__content { max-width: 900px; padding: 40px 0 64px; }
.doc__content h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.doc__content h2 { margin-top: 24px; font-size: 1.2rem; }
.doc__content p, .doc__content li { color: #d7dfec; }
.doc__content ul { padding-left: 1.2rem; }
.doc__content a { color: #b7cdfc; }

/* Responsive */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .testimonials { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .footer__copy { text-align: center; }
}

@media (max-width: 640px) {
  .nav-links { position: absolute; top: 58px; right: 4%; background: var(--panel); border: 1px solid var(--panel-strong); border-radius: 12px; padding: 10px; display: none; flex-direction: column; gap: 10px; width: min(220px, 92vw); box-shadow: var(--shadow); }
  .nav-toggle { display: inline-block; }
  .cards { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
}

/* Utility */
.show { display: flex !important; }
