:root {
  --bg: #07061c;
  --bg-elevated: #0e0d2b;
  --shape: #16153f;
  --accent: #0a84ff;
  --text: #ffffff;
  --text-muted: #a3a2c2;
  --border: #211f4d;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

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

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 6, 28, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #2a94ff;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  text-align: center;
}

.hero-shape {
  position: absolute;
  background: var(--shape);
  z-index: 0;
}

.hero-shape.circle {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  right: -120px;
  bottom: -140px;
}

.hero-shape.square {
  width: 160px;
  height: 160px;
  border-radius: 28px;
  transform: rotate(18deg);
  left: -60px;
  top: 40px;
}

.hero-shape.triangle {
  width: 0;
  height: 0;
  border-left: 90px solid transparent;
  border-right: 90px solid transparent;
  border-bottom: 150px solid var(--shape);
  right: 8%;
  top: 10px;
  opacity: 0.6;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero p.tagline {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Apple badge */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid #3a3a3a;
}

.appstore-badge svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.appstore-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.appstore-badge .badge-text small {
  font-size: 0.65rem;
  font-weight: 400;
}

.appstore-badge .badge-text strong {
  font-size: 1.15rem;
  font-weight: 600;
}

/* Section titles */
section {
  padding: 72px 0;
}

section.alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(10, 132, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

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

/* Screenshots */
.screens-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}

.screen-item {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
  text-align: center;
}

.screen-item img {
  border-radius: 20px;
  margin-bottom: 12px;
}

.screen-item span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer */
footer {
  padding: 48px 0 64px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

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

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

footer p {
  margin: 4px 0;
}

@media (max-width: 600px) {
  .hero {
    padding: 72px 0 56px;
  }

  section {
    padding: 56px 0;
  }
}
