:root {
  --accent: #7c3aed;
  --ink: #141417;
  --muted: #5b5b66;
  --bg: #ffffff;
  --alt: #f6f5f8;
  --line: rgba(20, 20, 23, 0.1);
  --radius: 16px;
  --shadow: 0 12px 32px rgba(20, 20, 23, 0.08);
  --container: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.08rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

/* hero -------------------------------------------------------------------- */

.hero {
  padding: clamp(72px, 10vw, 128px) 0;
  text-align: center;
  background: radial-gradient(
    1200px 620px at 50% -10%,
    color-mix(in srgb, var(--accent) 16%, transparent),
    transparent 62%
  );
}

.hero-inner {
  max-width: 780px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.lead {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.86rem;
}

/* sections ---------------------------------------------------------------- */

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-alt {
  background: var(--alt);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.about {
  max-width: 820px;
  text-align: center;
}

.about-body {
  color: var(--muted);
  font-size: 1.05rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stack {
  display: grid;
  gap: 16px;
}

/* contact ----------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-grid > div {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.contact-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-grid a {
  text-decoration: none;
  color: var(--accent);
}

/* cta --------------------------------------------------------------------- */

.cta {
  text-align: center;
}

.cta .lead {
  margin-bottom: 28px;
}

/* forms ------------------------------------------------------------------- */

.form {
  display: grid;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.86rem;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 1px;
}

/* footer ------------------------------------------------------------------ */

.site-footer {
  padding: 64px 0 24px;
  background: #111114;
  color: #e8e8ee;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p {
  margin-top: 8px;
  color: #9b9ba6;
  font-size: 0.92rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
}

.footer-cols h4 {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #fff;
}

.footer-cols a {
  display: block;
  margin-bottom: 8px;
  color: #9b9ba6;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-cols a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  color: #70707a;
  font-size: 0.8rem;
}

/* motion ------------------------------------------------------------------ */

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a {
    padding: 8px 0;
    width: 100%;
  }

  .split,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* site additions ---------------------------------------------------------- */
/* Append small, site-specific rules below. Do not restructure the system. */

/* iPhone landing ---------------------------------------------------------- */

.ip-hero {
  padding: clamp(56px, 8vw, 96px) 0 0;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(
    900px 520px at 50% 0%,
    color-mix(in srgb, var(--accent) 10%, transparent),
    transparent 70%
  );
}

.ip-hero .eyebrow {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.ip-hero h1 {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.ip-hero-sub {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  letter-spacing: -0.01em;
}

.ip-hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 26px;
}

.ip-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.ip-link:hover {
  text-decoration: underline;
}

.ip-link-muted {
  color: var(--ink);
}

.ip-link-muted:hover {
  color: var(--accent);
}

.ip-hero-visual {
  display: flex;
  justify-content: center;
  margin-top: clamp(36px, 6vw, 68px);
}

.ip-hero-visual .phone-frame {
  width: clamp(240px, 46vw, 340px);
}

.phone-frame {
  --frame-1: #8a8a8e;
  --frame-2: #3a3a3d;
  --frame-3: #1c1c1e;
  position: relative;
  width: clamp(210px, 42vw, 290px);
  aspect-ratio: 9 / 19.5;
  padding: 11px;
  border-radius: 54px;
  background: linear-gradient(150deg, var(--frame-1), var(--frame-2) 46%, var(--frame-3));
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.28),
    inset 0 0 18px rgba(0, 0, 0, 0.45);
  transition: background 0.4s ease;
}

.phone-frame[data-color="black"] {
  --frame-1: #4a4a4d;
  --frame-2: #232326;
  --frame-3: #0c0c0e;
}

.phone-frame[data-color="blue"] {
  --frame-1: color-mix(in srgb, var(--accent) 30%, #c3d2e6);
  --frame-2: color-mix(in srgb, var(--accent) 55%, #3f5570);
  --frame-3: color-mix(in srgb, var(--accent) 25%, #0d1a2b);
}

.phone-frame[data-color="silver"] {
  --frame-1: #f0f1f3;
  --frame-2: #c9cbd0;
  --frame-3: #9a9ca3;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 43px;
  overflow: hidden;
  background:
    radial-gradient(110% 70% at 15% 0%, rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(120% 90% at 85% 15%, color-mix(in srgb, var(--accent) 80%, #fff), transparent 60%),
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 55%, #000) 0%, #05060f 78%);
}

.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.22) 0%,
    transparent 38%,
    transparent 70%,
    rgba(255, 255, 255, 0.08) 100%
  );
  pointer-events: none;
}

.phone-island {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 33%;
  height: 20px;
  border-radius: 999px;
  background: #08080a;
  z-index: 2;
}

.ip-section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.ip-alt {
  background: var(--alt);
}

.ip-dark {
  background: #0b0b0d;
  color: #f5f5f7;
}

.ip-section-head {
  max-width: 760px;
  margin: 0 auto clamp(36px, 6vw, 64px);
  text-align: center;
}

.ip-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ip-section-head h2 {
  letter-spacing: -0.033em;
}

.ip-lead {
  margin: 16px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.ip-dark .ip-lead {
  color: #a1a1a6;
}

.ip-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.ip-visual {
  display: flex;
  justify-content: center;
}

.ip-features {
  display: grid;
  gap: 20px;
}

.ip-feature {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
}

.ip-feature h3 {
  margin-bottom: 6px;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.ip-feature p {
  color: var(--muted);
  font-size: 0.95rem;
}

.ip-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.ip-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: #151518;
}

.ip-stat {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, #fff), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ip-card h3 {
  margin-top: 8px;
  color: #fff;
  font-size: 1.05rem;
}

.ip-card p {
  margin-top: 8px;
  color: #a1a1a6;
  font-size: 0.92rem;
}

.ip-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: center;
}

.ip-stat-item {
  padding: 30px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg);
}

.ip-stat-item strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.ip-stat-item span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.ip-colors {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ip-color-name {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.ip-swatches {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.ip-swatch {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--bg);
  cursor: pointer;
}

.ip-swatch[data-color="natural"] {
  background: linear-gradient(145deg, #8a8a8e, #3a3a3d);
}

.ip-swatch[data-color="black"] {
  background: linear-gradient(145deg, #4a4a4d, #0c0c0e);
}

.ip-swatch[data-color="blue"] {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--accent) 30%, #c3d2e6),
    color-mix(in srgb, var(--accent) 55%, #3f5570)
  );
}

.ip-swatch[data-color="silver"] {
  background: linear-gradient(145deg, #f0f1f3, #9a9ca3);
}

.ip-swatch[aria-pressed="true"] {
  border-color: var(--ink);
}

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

.ip-buy {
  padding: clamp(72px, 10vw, 130px) 0;
  text-align: center;
  background: radial-gradient(
    800px 420px at 50% 0%,
    color-mix(in srgb, var(--accent) 14%, transparent),
    transparent 70%
  );
}

.ip-price {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
}

.ip-buy .actions {
  margin-top: 28px;
}

.ip-btn {
  border-radius: 999px;
  padding: 13px 26px;
}

.nav-cta {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
}

.nav-cta:hover {
  color: #fff;
  opacity: 0.9;
}

@media (max-width: 760px) {
  .ip-split {
    grid-template-columns: 1fr;
  }

  .ip-hero-links {
    gap: 20px;
  }
}
