/* ============================================
   iPad Pro landing — premium dark theme
   ============================================ */

:root {
  --bg: #000;
  --bg-2: #0a0a0c;
  --bg-3: #111114;
  --ink: #f5f5f7;
  --ink-2: #c7c7cf;
  --ink-3: #86868b;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --grad-a: #ff7ad9;
  --grad-b: #8b5cf6;
  --grad-c: #38bdf8;
  --grad-d: #fbbf24;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-lg: 0 30px 120px -20px rgba(139,92,246,.35), 0 18px 60px -10px rgba(0,0,0,.6);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(60px, 12vw, 168px); line-height: .9; letter-spacing: -.045em; }
h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.04; }
h3 { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.18; }

.grad {
  background: linear-gradient(135deg, var(--grad-a) 0%, var(--grad-b) 40%, var(--grad-c) 75%, var(--grad-d) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
  font-weight: 500;
}
.eyebrow--center { text-align: center; }

.lede {
  font-size: clamp(17px, 1.7vw, 21px);
  color: var(--ink-2);
  max-width: 60ch;
  margin: 18px auto 0;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  --pad-y: 12px; --pad-x: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn--lg { --pad-y: 16px; --pad-x: 32px; font-size: 17px; }
.btn--sm { --pad-y: 8px; --pad-x: 16px; font-size: 13px; }
.btn--primary {
  background: linear-gradient(135deg, #0a84ff 0%, #5e5ce6 100%);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(94,92,230,.6);
}
.btn--primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.3); }

/* ============================================
   Nav
   ============================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,12,.6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-scrolled { background: rgba(10,10,12,.85); border-bottom-color: var(--line); }
.nav__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px;
}
.nav__logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.nav__logo svg { opacity: .9; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--ink-2);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__links a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.nav__cta {
  padding: 8px 18px; border-radius: 999px;
  background: var(--ink); color: #000; font-size: 13px; font-weight: 600;
  transition: transform .2s var(--ease);
}
.nav__cta:hover { transform: scale(1.04); }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__inner { padding: 10px 16px; }
}

/* ============================================
   Ribbon
   ============================================ */
.ribbon {
  background: linear-gradient(90deg, rgba(255,122,217,.12), rgba(56,189,248,.12));
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--ink-2);
}
.ribbon strong { color: var(--ink); font-weight: 600; }
.ribbon a { margin-left: 8px; color: #5ac8fa; font-weight: 500; }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: 70px 24px 50px;
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 88vh;
  overflow: hidden;
}
.hero__copy { position: relative; z-index: 2; }
.hero__title { margin-bottom: 12px; }
.hero__tag {
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--ink-2);
  margin: 0 0 24px;
  font-weight: 400;
}
.hero__price { color: var(--ink-2); margin: 0 0 32px; font-size: 15px; }
.hero__price strong { color: var(--ink); font-weight: 600; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__device {
  position: relative; z-index: 2;
  display: grid; place-items: center;
}
.hero__device img {
  max-width: 100%;
  filter: drop-shadow(0 40px 80px rgba(139,92,246,.25)) drop-shadow(0 20px 40px rgba(0,0,0,.6));
  transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
  transition: transform .8s var(--ease);
  border-radius: 18px;
}
.hero__device:hover img { transform: perspective(1400px) rotateY(-3deg) rotateX(2deg); }
.hero__halo {
  position: absolute; inset: 10% 5%;
  background: radial-gradient(closest-side, rgba(139,92,246,.4), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  opacity: .6;
  animation: float 12s ease-in-out infinite;
}
.hero__orb--1 { width: 420px; height: 420px; left: -80px; top: 10%; background: radial-gradient(circle, #ff7ad9, transparent 60%); animation-delay: -2s; }
.hero__orb--2 { width: 360px; height: 360px; right: -60px; top: 60%; background: radial-gradient(circle, #38bdf8, transparent 60%); animation-delay: -5s; }
.hero__orb--3 { width: 280px; height: 280px; left: 40%; bottom: -80px; background: radial-gradient(circle, #fbbf24, transparent 60%); animation-delay: -8s; opacity: .35; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}

.hero__stats {
  grid-column: 1 / -1;
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  position: relative; z-index: 2;
}
.hero__stats li {
  border-left: 1px solid var(--line-2);
  padding-left: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.stat__big { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -.02em; }
.stat__big small { font-size: .5em; font-weight: 500; color: var(--ink-3); }
.stat__sm { font-size: 12px; color: var(--ink-3); max-width: 22ch; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; min-height: auto; }
  .hero__cta { justify-content: center; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero__stats li { padding-left: 12px; }
}

/* ============================================
   Anatomy / Exploded view
   ============================================ */
.anatomy {
  padding: 110px 24px;
  max-width: 1200px; margin: 0 auto;
  text-align: center;
}
.anatomy__head h2 { margin-bottom: 0; }

.anatomy__stage {
  position: relative;
  margin: 56px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(ellipse at top, rgba(139,92,246,.22), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(56,189,248,.18), transparent 60%),
    #0b0b0f;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-lg);
}
.anatomy__placeholder {
  position: absolute; inset: 0;
  display: grid; place-content: center; gap: 14px;
  text-align: center;
  color: var(--ink-2);
}
.anatomy__placeholder p { margin: 0; font-size: 15px; }
.anatomy__placeholder small { color: var(--ink-3); font-size: 12px; }

.loader { display: inline-flex; gap: 8px; justify-content: center; }
.loader span {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-b), var(--grad-c));
  animation: pulse 1.2s ease-in-out infinite;
}
.loader span:nth-child(2) { animation-delay: .15s; }
.loader span:nth-child(3) { animation-delay: .3s; }
@keyframes pulse {
  0%, 100% { transform: scale(.6); opacity: .4; }
  50% { transform: scale(1); opacity: 1; }
}

.anatomy__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.anatomy__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  padding: 20px 24px;
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-2);
}
.anatomy__caption span { white-space: nowrap; }

/* ============================================
   Highlights bento grid
   ============================================ */
.highlights {
  padding: 0 24px 110px;
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 360px;
  gap: 16px;
}
.hl {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, #15151a 0%, #0b0b0f 100%);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .4s var(--ease);
  cursor: pointer;
}
.hl::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), hsl(var(--accent) / .25), transparent 50%);
  opacity: 0; transition: opacity .4s var(--ease);
  pointer-events: none;
}
.hl:hover { transform: translateY(-4px); border-color: hsl(var(--accent) / .4); }
.hl:hover::before { opacity: 1; }
.hl--span2 { grid-column: span 2; }
.hl__copy {
  position: absolute; inset: 0; padding: 32px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 50%, transparent 100%);
  z-index: 2;
}
.hl__copy h3 { max-width: 28ch; }
.hl__copy p { margin: 10px 0 0; color: var(--ink-2); font-size: 14px; max-width: 38ch; }
.hl img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.hl:hover img { transform: scale(1.05); }

@media (max-width: 900px) {
  .highlights { grid-template-columns: 1fr 1fr; grid-auto-rows: 280px; }
  .hl--span2 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .highlights { grid-template-columns: 1fr; }
  .hl--span2 { grid-column: span 1; }
}

/* ============================================
   Deep-dive sections
   ============================================ */
.dive {
  padding: 110px 24px;
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.dive--display { border-top: 1px solid var(--line); }
.dive--chip .dive__copy { order: 2; }
.dive--chip .dive__art { order: 1; }
.dive__copy h2 { margin-bottom: 16px; }
.dive__copy p { color: var(--ink-2); max-width: 50ch; }
.dive__art img { border-radius: var(--radius); border: 1px solid var(--line); }

.spec-bullets {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px;
}
.spec-bullets li {
  padding-left: 18px; position: relative;
  font-size: 14px; color: var(--ink-2);
}
.spec-bullets li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-b), var(--grad-c));
}
.spec-bullets b { color: var(--ink); font-weight: 600; }

.bars { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.bar__label { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.bar__track {
  height: 28px; border-radius: 6px;
  background: rgba(255,255,255,.04);
  margin-bottom: 6px;
  overflow: hidden;
  position: relative;
}
.bar__fill {
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--grad-b), var(--grad-c));
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 10px;
  font-size: 11px; font-weight: 600; color: #fff;
  animation: barIn 1.2s var(--ease);
}
.bar__fill--mid { background: linear-gradient(90deg, #6e6e76, #9b9ba3); }
.bar__fill--low { background: linear-gradient(90deg, #3a3a40, #525258); }
@keyframes barIn { from { width: 0; } to { width: var(--w); } }

@media (max-width: 900px) {
  .dive { grid-template-columns: 1fr; gap: 32px; padding: 70px 24px; }
  .dive--chip .dive__copy { order: 2; }
  .dive--chip .dive__art { order: 1; }
  .spec-bullets { grid-template-columns: 1fr; }
}

/* ============================================
   Trio (feature cards grid)
   ============================================ */
.trio {
  padding: 0 24px 110px;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.trio__card {
  background: linear-gradient(180deg, #14141a 0%, #0a0a0e 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.trio__card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.trio__card h3 { margin: 16px 0 8px; font-size: 20px; }
.trio__card p { margin: 0; color: var(--ink-2); font-size: 14px; }
.trio__icon {
  width: 48px; height: 48px;
  display: grid; place-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  font-size: 22px;
}

@media (max-width: 900px) { .trio { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trio { grid-template-columns: 1fr; } }

/* ============================================
   Buy
   ============================================ */
.buy {
  padding: 110px 24px;
  max-width: 980px; margin: 0 auto;
}
.buy__head { text-align: center; margin-bottom: 48px; }

.buy__configurator {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  background: linear-gradient(180deg, #131318 0%, #08080a 100%);
  display: flex; flex-direction: column; gap: 28px;
}
.cfg-group {
  border: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.cfg-group legend {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3); padding: 0; margin-bottom: 4px;
}
.cfg-group > legend + * { margin-top: 0; }

.chip, .swatch {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  cursor: pointer;
  transition: all .2s var(--ease);
  flex: 1;
  min-width: 0;
  background: transparent;
}
.swatch { flex-direction: row; align-items: center; gap: 12px; }
.chip span { font-weight: 600; font-size: 15px; }
.chip small { color: var(--ink-3); font-size: 12px; }
.chip input, .swatch input { display: none; }
.chip:has(input:checked), .swatch:has(input:checked) {
  border-color: #5e5ce6;
  background: linear-gradient(135deg, rgba(94,92,230,.15), rgba(56,189,248,.08));
  box-shadow: 0 0 0 3px rgba(94,92,230,.15);
}
.cfg-group { flex-direction: row; flex-wrap: wrap; }
.cfg-group legend { flex-basis: 100%; }

.dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); }
.dot--black { background: linear-gradient(135deg, #1a1a1c, #000); }
.dot--silver { background: linear-gradient(135deg, #e5e5e7, #b6b6bb); }

.buy__summary {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding-top: 28px;
  gap: 20px; flex-wrap: wrap;
}
.buy__total-label { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .2em; margin: 0 0 6px; }
.buy__total { font-size: 36px; font-weight: 600; margin: 0; letter-spacing: -.02em; }
.buy__emi { font-size: 13px; color: var(--ink-3); margin: 4px 0 0; }

.buy__perks {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
}
.buy__perks li::before { content: "✓"; margin-right: 6px; color: #5ac8fa; }

/* ============================================
   Specs table
   ============================================ */
.specs {
  padding: 60px 24px 110px;
  max-width: 1000px; margin: 0 auto;
}
.specs h2 { text-align: center; margin-bottom: 32px; }
.specs__table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.specs__table th, .specs__table td {
  padding: 16px 12px; text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.specs__table th {
  color: var(--ink-3); font-weight: 500; font-size: 12px;
  text-transform: uppercase; letter-spacing: .15em;
  width: 28%;
}

/* ============================================
   Footer
   ============================================ */
.foot {
  padding: 60px 24px 120px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 13px;
}
.foot p { margin: 0 0 8px; }
.foot__fine { font-size: 11px; max-width: 60ch; margin: 12px auto 0; line-height: 1.6; }

/* ============================================
   Mobile sticky buy bar
   ============================================ */
.stickybuy {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(10,10,12,.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  justify-content: space-between; align-items: center;
  font-size: 13px;
}
@media (max-width: 760px) {
  .stickybuy { display: flex; }
  body { padding-bottom: 70px; }
}
