:root {
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --bg-canvas: #000000;
  --bg-surface: #121214;
  --bg-card: #1C1C1E;
  --bg-glass: rgba(18, 18, 20, 0.78);
  --text-primary: #F5F5F7;
  --text-secondary: #98989D;
  --text-tertiary: #636366;
  --hairline: rgba(255, 255, 255, 0.12);
  --hairline-soft: rgba(255, 255, 255, 0.06);
  --apple-blue: #007AFF;
  --apple-emerald: #34C759;
  --apple-amber: #FF9500;
  --apple-red: #FF453A;
}

[data-theme="light"] {
  --bg-canvas: #F5F5F7;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(251, 251, 253, 0.82);
  --text-primary: #1D1D1F;
  --text-secondary: #86868B;
  --text-tertiary: #AEAEB2;
  --hairline: rgba(0, 0, 0, 0.08);
  --hairline-soft: rgba(0, 0, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-text);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Apple Global Nav */
.apple-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 48px;
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-container {
  max-width: 1120px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  transition: color 0.2s ease;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-pill-small {
  padding: 0.35rem 0.85rem;
  border-radius: 980px;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-blue {
  background: var(--apple-blue);
  color: #FFFFFF;
}

.btn-blue:hover {
  filter: brightness(1.1);
}

.btn-glass {
  background: rgba(125, 125, 125, 0.12);
  color: var(--text-primary);
  border: 1px solid var(--hairline-soft);
}

.btn-glass:hover {
  background: rgba(125, 125, 125, 0.2);
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 1.25rem 3rem;
  text-align: center;
  max-width: 1120px;
  margin: 0 auto;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  border-radius: 980px;
  background: rgba(0, 122, 255, 0.12);
  color: var(--apple-blue);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(0, 122, 255, 0.28);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.034em;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 2.25rem;
  line-height: 1.45;
  letter-spacing: -0.012em;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 980px;
  background: var(--apple-blue);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
  box-shadow: 0 4px 18px rgba(0, 122, 255, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: scale(1.02);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 980px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--hairline);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(125, 125, 125, 0.15);
  transform: scale(1.02);
}

/* Titanium Device Stage */
.device-stage-wrapper {
  position: relative;
  max-width: 436px;
  margin: 0 auto 5rem;
  perspective: 1200px;
}

.titanium-frame {
  position: relative;
  background: linear-gradient(145deg, #2E2E32 0%, #171719 50%, #2A2A2E 100%);
  border-radius: 54px;
  padding: 12px;
  box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

.screen-bezel {
  position: relative;
  background: var(--bg-canvas);
  border-radius: 44px;
  overflow: hidden;
  width: 100%;
  height: 840px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
}

@media (max-width: 480px) {
  .device-stage-wrapper {
    max-width: 100%;
  }
  .screen-bezel {
    height: 720px;
  }
}

.ios-status-bar {
  height: 36px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  user-select: none;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}

.status-time {
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  width: 45px;
}

.dynamic-island {
  position: relative;
  width: 92px;
  height: 22px;
  background: #000000;
  border-radius: 20px;
  box-shadow: 0 0 1px rgba(255, 255, 255, 0.2);
}

.status-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 45px;
}

.kura-app-frame {
  flex: 1;
  width: 100%;
  height: calc(100% - 36px);
  border: none;
  background: var(--bg-canvas);
}

.stage-badge-footer {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* 12-Column Bento Grid */
.section-wrapper {
  max-width: 1120px;
  margin: 0 auto 6rem;
  padding: 0 1.25rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-eyebrow {
  color: var(--apple-blue);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.026em;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.45;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.bento-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: 2rem;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.col-7 { grid-column: span 7; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .col-7, .col-5, .col-4 { grid-column: span 12; }
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1.5rem;
}

/* Bento Graphics & Visuals */
.visual-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.82rem;
}

.bar-label {
  width: 90px;
  font-weight: 500;
}

.bar-track {
  flex: 1;
  height: 22px;
  background: rgba(125, 125, 125, 0.1);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding-left: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #FFFFFF;
}

.bar-kura {
  width: 14%;
  background: linear-gradient(90deg, #007AFF, #34C759);
}

.bar-electron {
  width: 100%;
  background: #FF453A;
}

.bar-flutter {
  width: 58%;
  background: #FF9500;
}

/* Monospace Receipt Graphic */
.receipt-graphic {
  background: #FFFFFF;
  color: #1D1D1F;
  border-radius: 12px;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.4;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Architecture & Download Cards */
.arch-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.download-box {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.download-box:hover {
  transform: translateY(-2px);
  border-color: var(--apple-blue);
  box-shadow: 0 12px 30px rgba(0, 122, 255, 0.15);
}

.download-icon {
  font-size: 1.75rem;
}

.download-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.download-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Apple Footer */
.apple-footer {
  border-top: 1px solid var(--hairline);
  padding: 3rem 1.25rem 4rem;
  background: var(--bg-surface);
  color: var(--text-tertiary);
  font-size: 0.82rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

.footer-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline-soft);
}
