:root {
  color-scheme: light dark;
  --bg: #f2f5fb;
  --bg-glow-1: #fff0d3;
  --bg-glow-2: #ffe7cb;
  --aurora-left: #ffefcb;
  --aurora-right: #ffebcc;
  --text: #121a29;
  --heading: #0f1f36;
  --muted: #4f5d75;
  --surface: #ffffff;
  --panel-bg: rgba(255, 255, 255, 0.68);
  --border: #dbe3ef;
  --border-strong: #c7d4e8;
  --shadow: 0 20px 50px rgba(9, 24, 46, 0.1);
  --soft-shadow: 0 14px 32px rgba(9, 24, 46, 0.08);
  --primary: #fab435;
  --primary-dark: #d6920b;
  --primary-text: #241700;
  --ink: #081223;
  --logo-bg: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.74);
  --nav-border: rgba(255, 255, 255, 0.9);
  --nav-link: #243147;
  --nav-hover-bg: #e9f2ff;
  --nav-hover-link: #0e274b;
  --hero-grad-start: #081325;
  --hero-grad-mid: #0f2438;
  --hero-grad-end: #382407;
  --hero-text: #ecf5ff;
  --hero-muted: #d1def0;
  --hero-note: #aac7e4;
  --hero-kicker: #ffd98e;
  --ghost-border: rgba(238, 246, 255, 0.35);
  --ghost-bg: rgba(255, 255, 255, 0.07);
  --ghost-text: #edf5ff;
  --phone-bg: #0b1221;
  --phone-border: rgba(255, 255, 255, 0.26);
  --chip-bg: #fff0cc;
  --chip-text: #7e5200;
  --shot-frame: #091325;
  --install-note: #5c6a80;
  --footer: #6c778a;
}

:root[data-theme="dark"] {
  --bg: #060b14;
  --bg-glow-1: #211806;
  --bg-glow-2: #0f1f36;
  --aurora-left: #302208;
  --aurora-right: #14243a;
  --text: #e5edf9;
  --heading: #f0f6ff;
  --muted: #a6b5cb;
  --surface: #111b2b;
  --panel-bg: rgba(12, 20, 33, 0.72);
  --border: #2a3b55;
  --border-strong: #344a68;
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.45);
  --soft-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  --ink: #f3f7ff;
  --logo-bg: #ffffff;
  --nav-bg: rgba(8, 14, 24, 0.84);
  --nav-border: rgba(67, 88, 118, 0.55);
  --nav-link: #d7e3f7;
  --nav-hover-bg: rgba(250, 180, 53, 0.2);
  --nav-hover-link: #fff5de;
  --hero-grad-start: #070f1e;
  --hero-grad-mid: #10213a;
  --hero-grad-end: #3f2a08;
  --hero-text: #eaf2ff;
  --hero-muted: #c3d2e9;
  --hero-note: #b7cae5;
  --hero-kicker: #ffd98e;
  --ghost-border: rgba(210, 224, 245, 0.4);
  --ghost-bg: rgba(255, 255, 255, 0.12);
  --ghost-text: #f2f7ff;
  --phone-bg: #0f1a2b;
  --phone-border: rgba(255, 255, 255, 0.3);
  --chip-bg: #38290d;
  --chip-text: #ffd98e;
  --shot-frame: #101a2c;
  --install-note: #aebfd8;
  --footer: #9ab0cd;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060b14;
    --bg-glow-1: #211806;
    --bg-glow-2: #0f1f36;
    --aurora-left: #302208;
    --aurora-right: #14243a;
    --text: #e5edf9;
    --heading: #f0f6ff;
    --muted: #a6b5cb;
    --surface: #111b2b;
    --panel-bg: rgba(12, 20, 33, 0.72);
    --border: #2a3b55;
    --border-strong: #344a68;
    --shadow: 0 22px 54px rgba(0, 0, 0, 0.45);
    --soft-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
    --ink: #f3f7ff;
    --logo-bg: #ffffff;
    --nav-bg: rgba(8, 14, 24, 0.84);
    --nav-border: rgba(67, 88, 118, 0.55);
    --nav-link: #d7e3f7;
    --nav-hover-bg: rgba(250, 180, 53, 0.2);
    --nav-hover-link: #fff5de;
    --hero-grad-start: #070f1e;
    --hero-grad-mid: #10213a;
    --hero-grad-end: #3f2a08;
    --hero-text: #eaf2ff;
    --hero-muted: #c3d2e9;
    --hero-note: #b7cae5;
    --hero-kicker: #ffd98e;
    --ghost-border: rgba(210, 224, 245, 0.4);
    --ghost-bg: rgba(255, 255, 255, 0.12);
    --ghost-text: #f2f7ff;
    --phone-bg: #0f1a2b;
    --phone-border: rgba(255, 255, 255, 0.3);
    --chip-bg: #38290d;
    --chip-text: #ffd98e;
    --shot-frame: #101a2c;
    --install-note: #aebfd8;
    --footer: #9ab0cd;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 520px at 0% 0%, var(--bg-glow-1) 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, var(--bg-glow-2) 0%, transparent 52%),
    var(--bg);
  overflow-x: hidden;
}

.aurora {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

.aurora-left {
  top: -110px;
  left: -120px;
  background: var(--aurora-left);
}

.aurora-right {
  right: -140px;
  bottom: -120px;
  background: var(--aurora-right);
}

.page-shell {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 26px 0 52px;
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.header-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand img {
  width: 56px;
  height: auto;
  object-fit: contain;
  background: var(--logo-bg);
  border-radius: 12px;
  padding: 4px;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  padding: 6px;
}

.site-nav a {
  color: var(--nav-link);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--nav-hover-bg);
  color: var(--nav-hover-link);
  outline: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--nav-border);
  background: var(--nav-bg);
  color: var(--nav-link);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--nav-hover-bg);
  color: var(--nav-hover-link);
  transform: translateY(-1px);
  outline: none;
}

.theme-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(250, 180, 53, 0.25);
}

.hero {
  border-radius: 28px;
  background: linear-gradient(140deg, var(--hero-grad-start) 0%, var(--hero-grad-mid) 42%, var(--hero-grad-end) 100%);
  color: var(--hero-text);
  padding: clamp(28px, 4vw, 46px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  box-shadow: 0 32px 58px rgba(8, 19, 37, 0.32);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -25% -48% 35%;
  height: 320px;
  background: radial-gradient(closest-side, rgba(250, 180, 53, 0.24) 0%, rgba(250, 180, 53, 0) 72%);
  pointer-events: none;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

.kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--hero-kicker);
}

h1,
h2,
h3 {
  font-family: "Sora", "Segoe UI", sans-serif;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3.3vw, 3.1rem);
  line-height: 1.15;
}

.hero-text {
  margin: 0;
  max-width: 610px;
  color: var(--hero-muted);
  line-height: 1.65;
}

.hero-cta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 11px;
  font-weight: 800;
  padding: 12px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  color: var(--primary-text);
  background: linear-gradient(130deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 26px rgba(223, 151, 6, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(223, 151, 6, 0.42);
  outline: none;
}

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

.btn-ghost:hover,
.btn-ghost:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.hero-note {
  margin: 16px 0 0;
  color: var(--hero-note);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  min-height: 430px;
}

.phone {
  margin: 0;
  position: absolute;
  --tilt: 0deg;
  width: min(230px, 50%);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--phone-border);
  box-shadow: 0 24px 36px rgba(0, 0, 0, 0.35);
  background: var(--phone-bg);
}

.phone img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.phone-front {
  right: 16px;
  top: 8px;
  z-index: 2;
  --tilt: 2deg;
  transform: rotate(var(--tilt));
  animation: float 6s ease-in-out infinite;
}

.phone-back {
  left: 22px;
  bottom: 0;
  z-index: 1;
  --tilt: -5deg;
  transform: rotate(var(--tilt));
  animation: float 7s ease-in-out infinite reverse;
}

.content-panel {
  margin-top: 34px;
  border-radius: 22px;
  padding: 24px;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(12px);
}

.section-head {
  margin-bottom: 18px;
}

.section-label {
  margin: 0 0 8px;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 0.78rem;
}

h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.3;
  color: var(--heading);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.chip {
  margin: 0 0 12px;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.77rem;
  font-weight: 800;
  background: var(--chip-bg);
  color: var(--chip-text);
}

h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--heading);
}

.app-text {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.feature-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.shot-card {
  margin: 0;
  background: var(--shot-frame);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.shot-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 18;
  object-fit: cover;
  display: block;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.download-item {
  text-decoration: none;
  color: var(--primary-text);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 16px;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 92px;
  box-shadow: 0 16px 30px rgba(214, 146, 11, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.download-item:hover,
a.download-item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(214, 146, 11, 0.36);
  outline: none;
}

.download-title {
  font-weight: 800;
  line-height: 1.35;
}

.download-item.coming-soon {
  background: var(--surface);
  color: var(--heading);
  border: 1px dashed var(--border-strong);
  box-shadow: none;
}

.coming-text {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.install-note {
  margin: 14px 0 0;
  color: var(--install-note);
}

.site-footer {
  margin-top: 34px;
  text-align: center;
  color: var(--footer);
  font-size: 0.92rem;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--tilt));
  }
  50% {
    transform: translateY(-8px) rotate(calc(var(--tilt) + 1deg));
  }
}

@media (max-width: 1080px) {
  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .phone {
    width: min(220px, 46%);
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(1120px, 94vw);
    padding-top: 18px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-controls {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .site-nav {
    flex: 1;
    justify-content: space-between;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .content-panel {
    padding: 20px;
  }

  .app-grid,
  .shot-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 300px;
  }

  .phone {
    width: min(190px, 48%);
  }
}
