/* ============================================================
   Essentials — app landing page
   Pure-black iOS theme, red accent, premium app-landing feel
   ============================================================ */

:root {
  --bg:        #000000;
  --bg-2:      #0c0c0e;
  --surface:   #141416;
  --surface-2: #1c1c20;
  --line:      rgba(255,255,255,0.09);
  --line-soft: rgba(255,255,255,0.055);

  --fg:        #ffffff;
  --fg-2:      #a6a6ad;
  --fg-3:      #6c6c74;

  --accent:    #ff375f;
  --accent-2:  #ff5470;
  --accent-deep: #ff2d55;
  --grad: linear-gradient(135deg, #ff5470, #ff2d55);
  --accent-soft: rgba(255,55,95,0.14);
  --glow: rgba(255,45,85,0.40);

  --font: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --r: 18px;
  --r-lg: 30px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent-2); white-space: nowrap;
  padding: 7px 14px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.h1 { font-size: clamp(2.7rem, 6.5vw, 5.1rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; }
.h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--fg-2); line-height: 1.6; text-wrap: pretty; }
.accent { color: var(--accent); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 15px 24px; border-radius: 14px;
  font-weight: 700; font-size: 1rem; letter-spacing: -0.01em;
  transition: transform .18s ease, box-shadow .25s ease, background .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 34px -12px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 46px -14px var(--glow); }
.btn-ghost { background: var(--surface); color: var(--fg); border: 1px solid var(--line); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.22); background: var(--surface-2); }
.btn .sub { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.18; gap: 1px; }
.btn .sub small { font-size: 0.64rem; font-weight: 600; opacity: .85; letter-spacing: 0.01em; }
.btn .sub b { font-size: 1rem; font-weight: 800; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: 70px;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0,0,0,0.72); backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.app-icon {
  width: 34px; height: 34px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; box-shadow: 0 6px 16px -6px var(--glow);
}
.app-icon svg { width: 19px; height: 19px; color: #fff; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { font-size: 0.92rem; color: var(--fg-2); font-weight: 600; padding: 8px 14px; border-radius: 9px; transition: color .18s, background .18s; }
.nav-links a:hover { color: var(--fg); background: rgba(255,255,255,0.05); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav .btn { padding: 10px 18px; font-size: 0.92rem; border-radius: 11px; }
.nav-toggle { display: none; }

/* ---------- Background glows ---------- */
.glow {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  filter: blur(30px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 130px; overflow: hidden; position: relative; }
.hero .glow.h1g { width: 720px; height: 720px; top: -220px; right: -160px; opacity: .55; }
.hero .glow.h2g { width: 520px; height: 520px; bottom: -260px; left: -160px; opacity: .35; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.hero h1 { margin-top: 24px; }
.hero .lead { margin-top: 22px; max-width: 30ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { display: flex; align-items: center; gap: 18px; margin-top: 26px; color: var(--fg-3); font-size: 0.9rem; font-weight: 500; }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--fg-3); }
.hero-meta b { color: var(--fg-2); font-weight: 700; }

/* ---------- Phone frame ---------- */
.phone-stage { display: flex; justify-content: center; position: relative; }
.phone-stage .glow { width: 420px; height: 560px; top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: .5; }
.phone {
  position: relative; z-index: 1;
  width: clamp(248px, 27vw, 320px);
  aspect-ratio: 1179 / 2556;
  background: #000; border-radius: 46px;
  padding: 11px;
  border: 1.5px solid #2a2a2e;
  box-shadow: 0 50px 110px -40px rgba(0,0,0,0.95), 0 0 0 2px rgba(255,255,255,0.03) inset;
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 33%; height: 26px; background: #000; border-radius: 999px; z-index: 3;
}
.phone-screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #000; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ============================================================
   MARQUEE / FEATURE PILLS
   ============================================================ */
.tab-strip { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.tab-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 0.92rem; font-weight: 600; color: var(--fg-2);
}
.tab-pill svg { width: 17px; height: 17px; color: var(--accent); }

/* ============================================================
   FEATURES
   ============================================================ */
.sec-head { max-width: 640px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .h2 { margin-top: 16px; }
.sec-head .lead { margin-top: 16px; }
.sec-head.center .lead { margin-inline: auto; }

.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 56px; }
.feat {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px 32px;
}
.feat::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%); opacity: 0;
  transition: opacity .3s ease;
}
.feat:hover::after { opacity: 1; }
.feat-ico {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  color: var(--accent-2);
}
.feat-ico svg { width: 26px; height: 26px; }
.feat h3 { margin-top: 22px; }
.feat p { color: var(--fg-2); margin-top: 11px; font-size: 0.98rem; max-width: 42ch; }
.feat .tag { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block; }

/* ============================================================
   SHOWCASE ROW (phone + copy)
   ============================================================ */
.showcase { background: var(--bg-2); }
.show-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.show-grid.flip .show-media { order: 2; }
.show-list { list-style: none; margin-top: 26px; display: grid; gap: 16px; }
.show-list li { display: flex; gap: 14px; align-items: flex-start; }
.show-list .ck { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; flex: none; margin-top: 2px; }
.show-list .ck svg { width: 15px; height: 15px; }
.show-list .txt b { display: block; font-weight: 700; font-size: 1.02rem; }
.show-list .txt span { color: var(--fg-2); font-size: 0.95rem; }
.show-media { display: flex; justify-content: center; position: relative; }
.show-media .glow { width: 380px; height: 480px; top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: .4; }

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
.cta-panel {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--accent) 22%, var(--bg-2)), var(--bg-2));
  padding: clamp(48px, 7vw, 88px) var(--gutter);
}
.cta-panel .glow { width: 600px; height: 600px; top: -340px; left: 50%; transform: translateX(-50%); opacity: .5; }
.cta-panel .inner { position: relative; z-index: 1; }
.cta-panel .h2 { margin-inline: auto; max-width: 18ch; }
.cta-panel .lead { margin: 16px auto 0; max-width: 46ch; }
.cta-panel .hero-cta { justify-content: center; margin-top: 34px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding-block: 48px; border-top: 1px solid var(--line-soft); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .brand { font-size: 1.05rem; }
.footer .app-icon { width: 28px; height: 28px; border-radius: 8px; }
.footer .app-icon svg { width: 16px; height: 16px; }
.footer-by { color: var(--fg-3); font-size: 0.88rem; }
.footer-by a { color: var(--fg-2); font-weight: 700; border-bottom: 1px solid var(--line); }
.footer-by a:hover { color: var(--accent-2); }
.footer-copy { color: var(--fg-3); font-size: 0.8rem; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .phone-stage { margin-top: 16px; }
  .feat-grid { grid-template-columns: 1fr; }
  .show-grid { grid-template-columns: 1fr; text-align: center; }
  .show-grid.flip .show-media { order: 0; }
  .show-list { text-align: left; max-width: 460px; margin-inline: auto; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .nav .btn .full { display: none; }
}
