/* === Fonts === */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d1a;
  --bg-light: #1a1a2e;
  --bg-card: #16213e;
  --accent: #e94560;
  --accent-glow: rgba(233, 69, 96, 0.3);
  --turquoise: #00d4aa;
  --turquoise-glow: rgba(0, 212, 170, 0.2);
  --text: #e0e0e0;
  --text-muted: #8892a4;
  --text-bright: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { color: var(--text-bright); line-height: 1.2; }
h2 { font-size: 2.2rem; font-weight: 800; text-align: center; margin-bottom: 16px; }
a { color: var(--turquoise); text-decoration: none; }
a:hover { text-decoration: underline; }

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 8px 32px var(--accent-glow); }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-secondary:hover { background: var(--bg-light); }

.gh-icon { width: 20px; height: 20px; }

/* === Phone Mockup === */
.phone {
  position: relative;
  background: #000;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 0 0 2px rgba(255,255,255,0.08);
  width: 220px;
  flex-shrink: 0;
}
.phone img {
  width: 100%;
  border-radius: 24px;
  display: block;
}
.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #000;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

/* === Hero === */
.hero {
  padding: 80px 0 40px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(233,69,96,0.08) 0%, transparent 60%);
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--turquoise-glow);
  color: var(--turquoise);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(0,212,170,0.2);
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.accent { color: var(--accent); }
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 24px;
  align-items: flex-end;
  padding-bottom: 20px;
}
.hero-phones::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  max-width: 1200px;
  height: calc(100% + 200px);
  background:
    radial-gradient(ellipse 40% 45% at 50% 50%, rgba(233,69,96,0.5) 0%, transparent 100%),
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(233,69,96,0.2) 0%, transparent 100%),
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(100,20,50,0.15) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-phones .phone {
  position: relative;
  z-index: 1;
}
.hero-phones .phone { width: 200px; opacity: 0.85; transform: scale(0.92); }
.hero-phones .phone-front { opacity: 1; transform: scale(1.05); width: 230px; z-index: 2; box-shadow: 0 30px 80px rgba(233,69,96,0.15), 0 20px 60px rgba(0,0,0,0.5), inset 0 0 0 2px rgba(255,255,255,0.08); }

/* === How It Works === */
.how-it-works {
  padding: 80px 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.step {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.05);
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* === Features === */
.features { padding: 80px 0; }

.feature-row {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-bottom: 80px;
}
.feature-row.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-text h3 { font-size: 1.6rem; margin-bottom: 12px; }
.feature-text p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.05rem; }
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-list li {
  padding-left: 24px;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 0 8px var(--turquoise-glow);
}
.feature-phone { flex-shrink: 0; }
.feature-phone .phone { width: 260px; }

/* === Plugins === */
.plugins {
  padding: 80px 0;
  background: var(--bg-light);
}
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.plugin-card {
  background: var(--bg);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color 0.2s, transform 0.2s;
}
.plugin-card:hover {
  border-color: var(--turquoise);
  transform: translateY(-3px);
}
.plugin-card h4 {
  color: var(--turquoise);
  font-size: 1rem;
  margin-bottom: 8px;
}
.plugin-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* === Built for Stage === */
.stage { padding: 80px 0; }
.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stage-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.05);
}
.stage-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.stage-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.stage-card p { color: var(--text-muted); font-size: 0.9rem; }

/* === CTA === */
.cta {
  padding: 80px 0;
  text-align: center;
  background: radial-gradient(ellipse at 50% 100%, rgba(233,69,96,0.08) 0%, transparent 60%);
}
.install-block {
  margin: 32px auto 40px;
  max-width: 700px;
}
.install-block p {
  color: var(--text-muted);
  margin-bottom: 12px;
}
.code-box {
  background: var(--bg-light);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 16px 24px;
  overflow-x: auto;
  text-align: left;
}
.code-box code {
  color: var(--turquoise);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* === Footer === */
footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-brand { color: var(--text-bright); font-weight: 700; }
.footer-sep { opacity: 0.3; }
.footer-right {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
}
.footer-right a { color: var(--text-muted); }
.footer-right a:hover { color: var(--text-bright); }

/* === Imprint Dialog === */
dialog {
  background: var(--bg-light);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 480px;
  width: 90%;
}
dialog::backdrop { background: rgba(0,0,0,0.7); }
.dialog-content h2 { text-align: left; margin-bottom: 20px; font-size: 1.5rem; }
.dialog-content p { margin-bottom: 12px; color: var(--text-muted); }
.dialog-content .btn { margin-top: 16px; }

/* === Responsive === */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.4rem; }
  .hero-subtitle { font-size: 1rem; }
  h2 { font-size: 1.7rem; }

  .hero-phones { gap: 12px; }
  .hero-phones .phone { width: 140px; border-radius: 24px; padding: 8px; }
  .hero-phones .phone-front { width: 160px; }
  .hero-phones .phone-notch { width: 56px; height: 16px; top: 6px; border-radius: 0 0 10px 10px; }
  .hero-phones .phone img { border-radius: 16px; }

  .steps { grid-template-columns: 1fr; gap: 16px; }

  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 56px;
  }
  .feature-phone .phone { width: 220px; }

  .plugin-grid { grid-template-columns: 1fr; }
  .stage-grid { grid-template-columns: 1fr; gap: 16px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: 48px 0 24px; }
  .hero h1 { font-size: 2rem; }
  .hero-phones .phone { width: 110px; border-radius: 20px; padding: 6px; }
  .hero-phones .phone-front { width: 130px; }
  .phone { width: 180px !important; border-radius: 28px; padding: 10px; }
  .phone img { border-radius: 18px; }
  .phone-notch { width: 60px; height: 18px; }
  .btn { padding: 12px 22px; font-size: 0.9rem; }
}
