:root {
  color-scheme: light;
  --bg: #07111f;
  --bg-soft: #0e1c31;
  --card: #ffffff;
  --card-muted: #f4f7fb;
  --text: #102033;
  --muted: #5f6f85;
  --primary: #0ea5e9;
  --primary-dark: #0369a1;
  --accent: #22c55e;
  --border: #dbe5ef;
  --danger: #dc2626;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f7fbff;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  background: rgba(7, 17, 31, 0.9);
  backdrop-filter: blur(16px);
  color: #fff;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 18px max(24px, calc((100vw - 1180px) / 2));
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  font-size: 20px;
  font-weight: 800;
  gap: 10px;
}

.logo {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.nav {
  align-items: center;
  display: flex;
  gap: 20px;
}

.nav a {
  color: #d8e8f8;
  font-size: 14px;
}

.hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.3), transparent 28%),
    linear-gradient(145deg, #07111f 0%, #0c2546 56%, #0b3b57 100%);
  color: #fff;
  overflow: hidden;
  padding: 86px max(24px, calc((100vw - 1180px) / 2)) 110px;
}

.hero-grid,
.section,
.footer {
  margin: 0 auto;
  max-width: 1180px;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
}

.eyebrow {
  color: #7dd3fc;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  margin: 18px 0;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 16px;
}

h3 {
  margin: 0 0 10px;
}

.lead {
  color: #d7e7f7;
  font-size: 19px;
  line-height: 1.8;
  max-width: 720px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  align-items: center;
  background: var(--primary);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.button.light {
  background: #fff;
  color: var(--primary-dark);
}

.phone-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 36px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  padding: 18px;
}

.phone-screen {
  background: #08111f;
  border-radius: 28px;
  min-height: 560px;
  overflow: hidden;
  padding: 22px;
}

.statusbar {
  color: #9edcff;
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin-bottom: 30px;
}

.screen-panel {
  background: linear-gradient(180deg, #0ea5e9, #0f172a);
  border-radius: 24px;
  color: #fff;
  padding: 24px;
}

.screen-panel strong {
  display: block;
  font-size: 26px;
  margin-bottom: 10px;
}

.device-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.device {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  padding: 16px;
}

.section {
  padding: 84px 24px;
}

.section-title {
  max-width: 760px;
}

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 35, 65, 0.08);
  padding: 26px;
}

.card p,
.muted {
  color: var(--muted);
  line-height: 1.75;
}

.download-box {
  align-items: center;
  background: linear-gradient(135deg, #08345c, #0ea5e9);
  border-radius: 28px;
  color: #fff;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto;
  padding: 34px;
}

.release-meta {
  color: #d7efff;
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.form {
  display: grid;
  gap: 14px;
}

.form input,
.form textarea {
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
  padding: 14px 16px;
  width: 100%;
}

.form textarea {
  min-height: 110px;
  resize: vertical;
}

.split {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.table {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 14px;
}

.row:nth-child(odd) {
  background: var(--card-muted);
}

.message {
  border-radius: 14px;
  margin-top: 12px;
  padding: 12px 14px;
}

.message.ok {
  background: #dcfce7;
  color: #166534;
}

.message.error {
  background: #fee2e2;
  color: var(--danger);
}

.footer-wrap {
  background: var(--bg);
  color: #cfe4f5;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  padding: 38px 24px;
}

.footer a {
  color: #eaf7ff;
  margin-right: 16px;
}

/* Hero stats bar */
.hero-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  gap: 28px;
  margin-top: 32px;
  padding-top: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat b {
  color: #7dd3fc;
  font-size: 22px;
  font-weight: 800;
}

.stat span {
  color: #c8ddf0;
  font-size: 12px;
  margin-top: 2px;
}

/* Feature cards with icon */
.feat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feat-icon {
  border-radius: 14px;
  font-size: 22px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  width: 48px;
}

.feat-icon--blue { background: #e0f2fe; }
.feat-icon--green { background: #dcfce7; }
.feat-icon--purple { background: #f3e8ff; }
.feat-icon--orange { background: #fff7ed; }
.feat-icon--red { background: #fee2e2; }
.feat-icon--cyan { background: #e0f7fa; }

/* Screenshot placeholders & grid */
.screenshot-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.screenshot-grid.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.screenshot-placeholder {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-direction: column;
  font-size: 13px;
  justify-content: center;
  min-height: 200px;
  padding: 20px;
  text-align: center;
}

.screenshot-placeholder.tall {
  min-height: 320px;
}

.screenshot-item figcaption {
  color: #b0cce0;
  font-size: 13px;
  text-align: center;
}

.screenshot-note {
  font-size: 13px;
  margin-top: 16px;
}

/* Dark & light section variants */
.section--dark {
  background: var(--bg);
  color: #d8eaf8;
}

.section--dark .section-title h2 {
  color: #fff;
}

.section--light {
  background: var(--card-muted);
}

/* Tech table */
.tech-table {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.tech-row {
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 16px;
  grid-template-columns: 140px 1fr;
  padding: 14px 18px;
}

.tech-row:last-child {
  border-bottom: none;
}

.section--dark .tech-table {
  border-color: rgba(255, 255, 255, 0.12);
}

.section--dark .tech-row {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.tech-label {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.section--dark .tech-label {
  color: #7dd3fc;
}

.tech-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.section--dark .tech-desc {
  color: #b0cce0;
}

/* Feature blocks */
.feature-block {
  align-items: start;
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr 360px;
  margin-bottom: 64px;
}

.feature-block--reverse {
  grid-template-columns: 360px 1fr;
}

.feature-block--reverse .feature-block-text {
  order: 2;
}

.feature-block--reverse .feature-block-img {
  order: 1;
}

.feature-list {
  color: var(--muted);
  line-height: 2;
  padding-left: 20px;
}

/* Scenario cards */
.scenario-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scenario-icon {
  font-size: 32px;
}

/* Compat table */
.compat-table .row {
  grid-template-columns: 1.4fr 1fr 1fr 2fr;
}

.row--header {
  background: var(--bg-soft);
  color: #7dd3fc;
  font-weight: 700;
}

/* Download actions */
.dl-actions {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .hero-grid,
  .grid,
  .download-box,
  .split,
  .feat-grid,
  .feature-block,
  .feature-block--reverse,
  .compat-table .row {
    grid-template-columns: 1fr;
  }

  .feature-block--reverse .feature-block-text,
  .feature-block--reverse .feature-block-img {
    order: unset;
  }

  .phone-screen {
    min-height: 420px;
  }

  .screenshot-grid,
  .screenshot-grid.four-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }
}
