/* Loop landing — recreated from the design handoff (tokens are pixel-exact).
   Zero third-party requests: system font stack (Roboto if present), inline SVG icons. */

:root {
  /* surfaces */
  --bg: #0E0C11;
  --surface: #15131A;
  --surface-2: #1D1A21;
  --tile: #241F30;
  /* borders */
  --border: #221F29;
  --border-accent: #2C2640;
  --border-hair: #1C1A20;
  --border-chip: #26232B;
  --border-badge: #2A2730;
  /* text */
  --text-head: #F4F1F7;
  --text-strong: #ECE8F0;
  --text: #A29DA8;
  --text-muted: #8B8692;
  --text-dim: #7C7885; /* nudged from handoff #6E6A76 to reach WCAG AA 4.5:1 on --bg */
  --text-badge: #B6B1BD;
  /* accent (violet) */
  --ac: #CDBFF7;
  --on-ac: #32255F;
  --ac-glow: rgba(205, 191, 247, 0.08);
  /* ring */
  --ring-empty: #2B2830;

  --font-sans: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --maxw: 1180px;
  --pad-x: 32px;
  --widget-radius: 28px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; }

a { color: var(--ac); text-decoration: none; }
a:hover { color: #E4DBFB; }

:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 4px; }

.icon { display: block; }
.icon--accent { color: var(--ac); }
.icon--on-accent { color: var(--on-ac); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- NAV ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 12px; flex: 1; color: inherit; }
.brand:hover { color: inherit; }
.brand__logo { width: 62px; height: 62px; }
.brand__name {
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -1px;
  color: var(--text-strong);
  line-height: 1;
}
.nav__link { font-size: 14.5px; color: var(--text); }
.nav__link:hover { color: var(--text-strong); }

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}
.pill--cta {
  height: 38px;
  padding: 0 18px;
  background: var(--ac);
  color: var(--on-ac);
  font-size: 14px;
  font-weight: 500;
}


/* ---------- HERO ---------- */
.hero {
  display: flex;
  gap: 56px;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 0 64px;
}
.hero__copy {
  flex: 1;
  min-width: 330px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-badge);
  border-radius: 999px;
  padding: 6px 14px 6px 10px;
}
.badge__text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-badge);
  letter-spacing: 0.2px;
}
.hero__title {
  margin: 0;
  font-size: 62px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--text-head);
  text-wrap: balance;
}
.hero__subtitle {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text);
  max-width: 520px;
  text-wrap: pretty;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 6px;
}
.store-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 56px;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--ac);
}
.store-btn__labels { display: flex; flex-direction: column; line-height: 1.1; }
.store-btn__top { font-size: 11px; color: var(--on-ac); opacity: 0.7; }
.store-btn__bottom { font-size: 17px; font-weight: 600; color: var(--on-ac); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid var(--border-accent);
  color: var(--ac);
  font-size: 15px;
  font-weight: 500;
  background: transparent;
}
.btn-outline:hover { background: var(--ac-glow); color: #E4DBFB; border-color: var(--ac); }
.hero__note {
  font-size: 13.5px;
  color: var(--text-dim);
  max-width: 150px;
  line-height: 1.4;
}

/* ---------- PHONE MOCKUP ---------- */
.hero__mockup { flex: 0 0 auto; margin: 0 auto; }
.phone {
  position: relative;
  width: 300px;
  border: 10px solid #1A171F;
  border-radius: 44px;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.phone__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2E2E2E;
  z-index: 2;
}
.phone__screen {
  height: 614px;
  background: linear-gradient(165deg, #3A2E40 0%, #241C2E 45%, #14101A 100%);
  display: flex;
  flex-direction: column;
  padding: 28px 22px 20px;
  border-radius: 34px;
}
.clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 22px;
}
.clock__time {
  font-size: 56px;
  font-weight: 300;
  letter-spacing: -1px;
  color: var(--text-head);
  line-height: 1;
}
.clock__date { font-size: 14px; color: rgba(244, 241, 247, 0.7); }

.widget {
  position: relative;
  height: 290px;
  border-radius: var(--widget-radius);
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
}
.widget__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.widget__label,
.widget__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}
.widget__label {
  left: 12px; top: 12px;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 11px 4px 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.2px;
  background: rgba(0, 0, 0, 0.4);
}
.widget__chip--name {
  left: 12px; bottom: 12px;
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
}
.widget__chip--react {
  right: 12px; bottom: 12px;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 15px;
}
@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .widget__label, .widget__chip {
    background: rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 0;
  margin-top: 26px;
  justify-items: center;
}
.app-tile { width: 48px; height: 48px; border-radius: 14px; }
.app-tile--loop {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1C1B22;
  border: 1px solid #2E2A36;
}
.dock {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: 12px 8px;
}
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .dock { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.dock-tile { width: 46px; height: 46px; border-radius: 14px; }

/* ---------- SECTIONS ---------- */
.section { border-top: 1px solid var(--border-hair); }
.section__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ac);
  letter-spacing: 0.4px;
}
.section__title {
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -1.2px;
  color: var(--text-head);
}
.section__lede {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  max-width: 520px;
  text-wrap: pretty;
}

/* ---------- HOW ---------- */
.how {
  padding: 56px 0 88px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.steps { display: flex; gap: 20px; flex-wrap: wrap; }
.step {
  flex: 1;
  min-width: 250px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step--accent { border-color: var(--border-accent); }
.step__head { display: flex; align-items: center; gap: 12px; }
.step__num { font-family: var(--font-mono); font-size: 13px; color: var(--ac); }
.step__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tile);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.3px;
}
.step__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.code-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-chip);
  border-radius: 12px;
  padding: 8px 12px;
  align-self: flex-start;
}
.code-chip__text { font-family: var(--font-mono); font-size: 13px; color: var(--text-strong); }

/* ---------- WHY ---------- */
.why {
  display: flex;
  gap: 64px;
  align-items: center;
  flex-wrap: wrap;
  padding: 56px 0 88px;
}
.ring {
  flex: 0 0 auto;
  margin: 0 auto;
  position: relative;
  width: 320px;
  height: 320px;
}
.ring__svg { position: absolute; inset: 0; width: 320px; height: 320px; }
.ring__avatar { position: absolute; width: 44px; height: 44px; border-radius: 999px; object-fit: cover; }
.ring__dot { position: absolute; width: 14px; height: 14px; border-radius: 999px; background: var(--ring-empty); }
.ring__center {
  position: absolute;
  left: 132px; top: 132px;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--ac);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-ac);
  box-shadow: 0 0 0 8px var(--ac-glow);
}
.why__copy { flex: 1; min-width: 320px; display: flex; flex-direction: column; gap: 20px; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  flex: 1;
  min-width: 150px;
}
.stat__num { display: block; font-size: 30px; font-weight: 700; color: var(--text-strong); letter-spacing: -1px; }
.stat__label { display: block; font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }

/* ---------- FOOTER ---------- */
.footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 0 44px;
  border-top: 1px solid var(--border-hair);
}
.footer__brand { display: flex; align-items: center; gap: 9px; flex: 1; }
.footer__logo { width: 18px; height: 18px; opacity: 0.6; }
.footer__brand span { font-size: 14px; color: var(--text-dim); }
.footer__link { font-size: 14px; color: var(--text-dim); }
.footer__link:hover { color: var(--text); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  :root { --pad-x: 20px; }
  .hero { gap: 36px; padding: 4px 0 48px; }
  .hero__title { font-size: 40px; letter-spacing: -1px; }
  .hero__subtitle { font-size: 17px; }
  .brand__name { font-size: 38px; }
  .brand__logo { width: 50px; height: 50px; }
  .section__title { font-size: 32px; letter-spacing: -0.8px; }
  .how { padding: 44px 0 64px; gap: 32px; }
  .why { gap: 40px; padding: 44px 0 64px; }
}

@media (max-width: 420px) {
  .nav { gap: 12px; flex-wrap: wrap; }
  .hero__title { font-size: 34px; }
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
