:root {
  --accent: #ffc738;
  --accent-secondary: #ff8c1a;
  --accent-glow: rgba(255, 199, 56, 0.35);
  --bg-deep: #0a0e14;
  --bg-mid: #1a1d2e;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eef4;
  --text-muted: #8b9cb3;
  --text-dim: #5c6b80;
  --radius: 16px;
  --radius-sm: 10px;
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

/* Background glow */
.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 85% 0%, var(--accent-glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 100%, rgba(80, 100, 180, 0.12), transparent 50%),
    linear-gradient(160deg, #0a0b12 0%, #12151f 45%, #0d0f18 100%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10, 14, 20, 0.8);
  border-bottom: 1px solid var(--border);
}

.site-nav-top {
  padding: 0.55rem 0 0;
}

.back-home {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.back-home:hover {
  color: var(--text);
  text-decoration: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:focus-visible,
.brand:focus-visible,
.back-home:focus-visible {
  outline: 2px solid #4a9eff;
  outline-offset: 3px;
  border-radius: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #1a1200;
  box-shadow: 0 4px 24px rgba(255, 199, 56, 0.25);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Hero */
.hero {
  padding: 4.5rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 199, 56, 0.12);
  border: 1px solid rgba(255, 199, 56, 0.25);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), #ffe08a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.hero-meta strong {
  color: var(--text-muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  position: relative;
  width: min(280px, 100%);
  aspect-ratio: 9 / 19;
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(145deg, #2a2d3a, #14161f);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 60px var(--accent-glow);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: var(--bg-mid);
}

.phone-screen-shot {
  padding: 0;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-screen img:not(.phone-screenshot) {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.phone-screen h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.phone-screen p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.phone-frame-hero {
  width: min(300px, 100%);
  transform: rotate(-2deg);
}

.phone-frame-hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  z-index: -1;
  filter: blur(24px);
}

/* App preview gallery */
.preview-section {
  padding-top: 1rem;
  overflow: hidden;
}

.preview-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  align-items: end;
  max-width: 720px;
  margin-inline: auto;
}

.preview-card {
  margin: 0;
  text-align: center;
}

.preview-card-offset-left {
  transform: translateY(24px) rotate(-3deg);
}

.preview-card-offset-right {
  transform: translateY(0) rotate(3deg);
}

.preview-phone {
  position: relative;
  padding: 10px;
  border-radius: 32px;
  background: linear-gradient(145deg, #2a2d3a, #14161f);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(255, 199, 56, 0.12);
}

.preview-phone img {
  width: 100%;
  border-radius: 24px;
  display: block;
}

.preview-card figcaption {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 16rem;
  margin-inline: auto;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-label {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(255, 199, 56, 0.2);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 199, 56, 0.12);
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.feature-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.feature-card li {
  margin-bottom: 0.25rem;
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.pillar {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.pillar-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.pillar-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Learning list */
.learning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.learning-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.learning-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.learning-item h4 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
}

.learning-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Requirements */
.requirements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.req-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.req-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.req-list li:last-child {
  border-bottom: none;
}

.req-list strong {
  color: var(--text);
}

.disclaimer {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 199, 56, 0.06);
  border: 1px solid rgba(255, 199, 56, 0.15);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CTA */
.cta {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 199, 56, 0.08), rgba(255, 140, 26, 0.04));
  border: 1px solid rgba(255, 199, 56, 0.15);
  margin-bottom: 2rem;
}

.cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta p {
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-meta {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .phone-frame {
    width: 260px;
    aspect-ratio: 9 / 19.5;
  }

  .phone-frame-hero {
    transform: none;
  }

  .preview-gallery {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 280px;
  }

  .preview-card-offset-left,
  .preview-card-offset-right {
    transform: none;
  }

  .nav-links {
    display: none;
  }

  .requirements {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.5rem, var(--max-width));
  }

  .hero {
    padding-top: 2.5rem;
  }
}
