/* =========================================================
   ShellBox landing page
   Dark, blue-accented theme matching the app UI
   ========================================================= */

:root {
  --bg: #070a10;
  --bg-2: #0b111b;
  --surface: #101826;
  --surface-2: #14203040;
  --border: #1e2b3e;
  --text: #eaf2ff;
  --muted: #8ea3bd;
  --accent: #3aa0ff;
  --accent-2: #1b6fe0;
  --accent-soft: #7cc4ff;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1160px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .8);
  --shadow-blue: 0 20px 50px -18px rgba(58, 160, 255, .45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 700px at 70% -10%, #12233c 0%, var(--bg) 55%) no-repeat, var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn--play {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff; box-shadow: var(--shadow-blue);
}
.btn--play:hover { transform: translateY(-2px); box-shadow: 0 26px 60px -16px rgba(58,160,255,.6); }
.btn--ghost {
  background: rgba(255,255,255,.04); color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn--disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ---------- Google Play badge ----------
   NOTE: Google's brand guidelines require the official badge artwork on
   production sites. Swap this markup for the official asset when available:
   https://play.google.com/intl/en_us/badges/
------------------------------------------ */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.playbadge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 10px 20px 10px 16px; border-radius: 12px;
  background: #05070c; border: 1px solid rgba(255,255,255,.28);
  color: #fff; line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.playbadge:hover {
  transform: translateY(-2px); border-color: rgba(255,255,255,.6);
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.9), 0 0 0 4px rgba(58,160,255,.16);
}
.playbadge__icon { width: 26px; height: 26px; flex: 0 0 auto; }
.playbadge__text { display: grid; gap: 3px; text-align: left; }
.playbadge__text small {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.75); font-weight: 500;
}
.playbadge__text strong { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }

.playbadge--sm { padding: 8px 16px 8px 13px; border-radius: 10px; }
.playbadge--sm .playbadge__icon { width: 20px; height: 20px; }
.playbadge--sm .playbadge__text small { font-size: 8px; }
.playbadge--sm .playbadge__text strong { font-size: 14px; }

.playbadge--lg { padding: 15px 30px 15px 24px; border-radius: 16px; gap: 15px; }
.playbadge--lg .playbadge__icon { width: 36px; height: 36px; }
.playbadge--lg .playbadge__text small { font-size: 12px; }
.playbadge--lg .playbadge__text strong { font-size: 26px; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-soft);
  background: rgba(58,160,255,.1); border: 1px solid rgba(58,160,255,.25);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.grad {
  background: linear-gradient(120deg, var(--accent-soft), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7,10,16,.6);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.nav.scrolled { background: rgba(7,10,16,.9); border-color: var(--border); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand__logo { display: inline-flex; }
.nav__links { display: flex; gap: 26px; margin-left: 12px; }
.nav__links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .18s ease; }
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: auto; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav__burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; }
.hero__glow {
  position: absolute; top: -160px; right: -80px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(58,160,255,.28), transparent 62%);
  filter: blur(30px); pointer-events: none;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.06; font-weight: 800; letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: 18px; margin-top: 20px; max-width: 540px; }
.hero__actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; list-style: none; }
.hero__chips li {
  font-size: 14px; color: var(--text); padding: 7px 14px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2);
}

/* ---------- Phone mockup ---------- */
.phone {
  position: relative; margin: 0 auto; width: min(420px, 100%);
  border-radius: 28px; padding: 10px;
  background: linear-gradient(160deg, #1b2a40, #0c1420);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), var(--shadow-blue);
}
.phone img { border-radius: 20px; }
.phone--sm { width: min(360px, 100%); }

/* Two overlapping phones for the split sections */
.phone-duo { position: relative; display: flex; justify-content: center; padding: 26px 0; }
.phone--duo {
  width: min(255px, 46%); margin: 0; border-radius: 24px; padding: 8px;
}
.phone--duo img { border-radius: 17px; }
.phone--duo:first-child {
  transform: translateX(9%) rotate(-4deg); z-index: 2;
}
.phone--duo-back {
  transform: translateX(-9%) translateY(34px) rotate(4deg); z-index: 1; opacity: .96;
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--alt { background: linear-gradient(180deg, transparent, var(--bg-2) 40%, transparent); }
.section__head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section__head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.section__head p { color: var(--muted); font-size: 17px; margin-top: 14px; }

/* ---------- Grid / cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--features { grid-template-columns: repeat(3, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(58,160,255,.45); box-shadow: var(--shadow-blue); }
.card__icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  font-size: 22px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(58,160,255,.22), rgba(27,111,224,.12));
  border: 1px solid rgba(58,160,255,.3); color: var(--accent-soft);
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card--soft { background: var(--surface-2); }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__copy h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.02em; }
.split__copy p { color: var(--muted); font-size: 17px; margin-top: 16px; }
.ticks { list-style: none; margin: 24px 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* ---------- Download ---------- */
.download { position: relative; }
.download__card {
  position: relative; overflow: hidden;
  background:
    linear-gradient(160deg, #14263c, #0a1220) padding-box,
    linear-gradient(135deg, rgba(58,160,255,.65), rgba(58,160,255,.05) 45%, rgba(124,196,255,.45)) border-box;
  border: 1px solid transparent; border-radius: 28px;
  padding: 46px 54px 48px; text-align: center;
  box-shadow: var(--shadow), 0 0 70px -30px rgba(58,160,255,.55);
}
/* content sits above the aura */
.download__card > * { position: relative; z-index: 1; }
/* declared after the rule above so the absolute positioning wins */
.download__aura {
  position: absolute; z-index: 0; left: 50%; bottom: -40%; transform: translateX(-50%);
  width: 720px; height: 420px; pointer-events: none;
  background: radial-gradient(circle, rgba(58,160,255,.3), transparent 65%);
  filter: blur(20px);
}
.download__card .eyebrow { margin-bottom: 14px; }
.download__card h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.download__card > p { color: var(--muted); margin-top: 12px; font-size: 17px; }

.download__cta { margin-top: 28px; }
/* gentle attention pulse on the primary download CTA */
.download__cta { animation: ctaPulse 3s ease-in-out infinite; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(58,160,255,.42); }
  55%      { box-shadow: 0 0 0 16px rgba(58,160,255,0); }
}
.download__cta:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .download__cta { animation: none; } }

.download__meta {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-top: 24px;
}
.download__meta li {
  font-size: 14px; color: var(--muted); padding: 7px 15px;
  border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.03);
}

/* ---------- Contact ---------- */
.mail {
  display: inline-block; margin-top: 18px; font-size: 18px; font-weight: 600;
  color: var(--accent-soft); border-bottom: 1px solid rgba(124,196,255,.4); padding-bottom: 2px;
}
.mail:hover { color: #fff; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 54px 0 30px; margin-top: 40px; background: var(--bg-2); }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand p { color: var(--muted); margin-top: 10px; max-width: 260px; }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__col { display: grid; gap: 10px; }
.footer__col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.footer__col a { color: var(--text); font-size: 15px; opacity: .85; }
.footer__col a:hover { opacity: 1; color: var(--accent-soft); }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }

.legal-links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px 14px; margin-top: 36px; font-size: 15px;
}
.legal-links a { color: var(--accent-soft); font-weight: 500; }
.legal-links a:hover { color: #fff; }
.legal-links__sep { color: var(--muted); }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 2; }
  .hero__actions, .hero__chips { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .grid--features, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .download__card { padding: 48px 28px; }
  .split--reverse .split__media { order: 0; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(7,10,16,.98); border-bottom: 1px solid var(--border); padding: 18px 24px; gap: 18px;
  }
}
@media (max-width: 560px) {
  .grid--features, .grid--3 { grid-template-columns: 1fr; }
  .download__card { padding: 34px 18px 36px; }
  .section { padding: 60px 0; }
  .phone--duo { width: 47%; padding: 6px; border-radius: 20px; }
  .phone--duo img { border-radius: 15px; }
  .phone--duo-back { transform: translateX(-9%) translateY(24px) rotate(4deg); }
  .playbadge--lg { padding: 13px 22px 13px 18px; gap: 12px; }
  .playbadge--lg .playbadge__icon { width: 30px; height: 30px; }
  .playbadge--lg .playbadge__text strong { font-size: 21px; }
}
