:root {
  --graphite-900: #1c1c1e;
  --graphite-800: #2b2b2e;
  --graphite-700: #3a3a3c;
  --violet: #6a41e6;
  --violet-light: #8e6bff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --hairline: rgba(0, 0, 0, 0.1);
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --radius: 18px;
  --maxw: 1180px;
  --header-h: 56px;
  font-synthesis: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--violet); text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  height: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.header-logo { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; font-size: 17px; }
.header-logo img { width: 26px; height: 26px; border-radius: 6px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); font-size: 14px; font-weight: 450; opacity: 0.85; }
.nav a:hover { opacity: 1; color: var(--violet); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 980px; font-size: 16px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-light); }
.btn-secondary { background: transparent; color: var(--violet); border-color: var(--violet); }
.btn-secondary:hover { background: rgba(106, 65, 230, 0.08); }
.btn-ghost { background: var(--bg-alt); color: var(--ink); }
.btn-lg { padding: 16px 34px; font-size: 18px; }

/* ---------- Hero ---------- */
.hero {
  text-align: center; padding: 96px 24px 80px;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(142, 107, 255, 0.16), transparent 60%);
}
.hero-icon { width: 132px; height: 132px; margin: 0 auto 28px; border-radius: 30px; box-shadow: 0 20px 50px rgba(28,28,30,.28); }
.hero h1 { font-size: clamp(42px, 6vw, 80px); line-height: 1.04; letter-spacing: -0.02em; font-weight: 700; }
.hero h1 .accent { background: linear-gradient(120deg, var(--violet), var(--violet-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(19px, 2.4vw, 26px); color: var(--muted); max-width: 720px; margin: 22px auto 0; line-height: 1.4; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ---------- Section scaffolding ---------- */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--graphite-900); color: #fff; }
.section--dark .feature-text p, .section--dark .eyebrow { color: rgba(255,255,255,.7); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature--reverse .feature-text { order: 2; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 600; color: var(--violet); margin-bottom: 14px; }
.feature-text h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.feature-text p { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin-top: 18px; line-height: 1.5; }

/* Decorative media panel (placeholder visual until real screenshots) */
.media-card {
  border-radius: 24px; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--graphite-700), var(--graphite-900));
  box-shadow: 0 24px 60px rgba(28,28,30,.22); overflow: hidden; position: relative;
}
.media-card.is-light { background: linear-gradient(150deg, #fff, var(--bg-alt)); box-shadow: 0 24px 60px rgba(28,28,30,.12); }
.media-card img { width: 64%; height: auto; }
.media-card .waveform { display: flex; gap: 10px; align-items: center; height: 120px; }
.media-card .waveform span { width: 12px; border-radius: 6px; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
.media-card.is-light .waveform span { background: var(--graphite-800); }
@keyframes pulse { 0%,100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }

/* Centered statement section (apple-style big line) */
.statement { text-align: center; max-width: 920px; margin: 0 auto; }
.statement h2 { font-size: clamp(32px, 5vw, 60px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
.statement p { font-size: clamp(18px, 2vw, 22px); color: var(--muted); margin-top: 22px; }

/* ---------- Feature grid (small cards) ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.card { background: var(--bg); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 30px; }
.section--alt .card { background: #fff; }
.card .ic { width: 44px; height: 44px; border-radius: 11px; background: rgba(106,65,230,.1); color: var(--violet); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 22px; }
.card h3 { font-size: 19px; font-weight: 600; }
.card p { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 28px; justify-content: center; margin-top: 56px; }
.price-card { background: #fff; border: 1px solid var(--hairline); border-radius: 22px; padding: 38px 32px; text-align: center; position: relative; }
.price-card.is-featured { border-color: var(--violet); box-shadow: 0 18px 50px rgba(106,65,230,.16); }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--violet); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 980px; }
.price-card h3 { font-size: 20px; font-weight: 600; }
.price-amount { font-size: 52px; font-weight: 700; letter-spacing: -0.02em; margin: 14px 0 4px; }
.price-amount span { font-size: 18px; font-weight: 500; color: var(--muted); }
.price-card .save { color: var(--violet); font-size: 14px; font-weight: 500; }
.price-card ul { list-style: none; text-align: left; margin: 26px 0; display: grid; gap: 12px; }
.price-card li { display: flex; gap: 10px; font-size: 15px; color: var(--ink); }
.price-card li::before { content: "✓"; color: var(--violet); font-weight: 700; }
.price-card .btn { width: 100%; }

/* ---------- Tutorials ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.video-card { border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; background: #fff; }
.video-thumb { aspect-ratio: 16 / 9; background: linear-gradient(150deg, var(--graphite-700), var(--graphite-900)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); }
.video-thumb .play { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.video-card .meta { padding: 18px 20px; }
.video-card h3 { font-size: 16px; font-weight: 600; }
.video-card p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.coming-soon { text-align: center; color: var(--muted); margin-top: 40px; font-size: 15px; }

/* ---------- Footer ---------- */
.footer { background: var(--graphite-900); color: rgba(255,255,255,.7); padding: 60px 0 40px; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 17px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; font-weight: 600; }
.footer-col a { display: block; color: rgba(255,255,255,.7); margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 80px 24px; }
.legal h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.legal .updated { color: var(--muted); margin: 8px 0 36px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal li { color: #333; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .media-card .waveform span { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature--reverse .feature-text { order: 0; }
  .grid3, .video-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: rgba(255,255,255,.98); flex-direction: column; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--hairline); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--hairline); width: 100%; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
  .nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
}
