:root {
  color-scheme: dark;
  --bg: #07111d;
  --bg-soft: #0d1726;
  --surface: rgba(15, 24, 38, 0.9);
  --surface-strong: rgba(9, 16, 27, 0.96);
  --text: #f7f9fd;
  --muted: #aeb8c8;
  --line: rgba(255, 255, 255, 0.11);
  --gold: #ffd35c;
  --amber: #ffad32;
  --orange: #ff7b22;
  --teal: #22c7b8;
  --blue: #58a8ff;
  --purple: #8e5cff;
  --red: #ff4f6a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(34, 199, 184, 0.08), transparent 32%),
    linear-gradient(225deg, rgba(255, 123, 34, 0.12), transparent 34%),
    linear-gradient(180deg, #091525 0%, #050914 100%);
  color: var(--text);
  font: 16px/1.55 "Segoe UI", "Inter", "Helvetica Neue", sans-serif;
}

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

code {
  padding: 0.14rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.92em;
}

.site-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(6, 12, 23, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  font-size: 1.1rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.topnav a {
  color: var(--muted);
  font-weight: 650;
}

.topnav a:hover,
.topnav a.is-active {
  color: var(--gold);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-copy,
.device-card,
.section,
.policy-card,
.stats-strip,
.footer {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(17, 27, 44, 0.95), rgba(8, 14, 26, 0.94));
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
}

.hero-art {
  min-height: 100%;
}

.device-card {
  min-height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    linear-gradient(160deg, rgba(16, 27, 44, 0.96), rgba(8, 14, 26, 0.94));
}

.phone-bar,
.language-row,
.action-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-bar {
  justify-content: space-between;
}

.mode-pill,
.language-card,
.action-primary,
.action-secondary,
.toolbar-dot,
.swap-button,
.keyboard-preview span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 850;
}

.toolbar-dot {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  position: relative;
}

.toolbar-dot::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--purple));
}

.language-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

.language-card {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 18px;
  font-weight: 850;
}

.swap-button {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  font-size: 2rem;
  font-weight: 900;
}

.draft-box {
  min-height: 112px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  padding: 18px;
}

.cursor {
  display: inline-block;
  width: 4px;
  height: 34px;
  border-radius: 99px;
  background: var(--teal);
  box-shadow: 0 0 18px rgba(34, 199, 184, 0.7);
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.action-primary,
.action-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 850;
}

.action-primary {
  background: linear-gradient(90deg, var(--teal), var(--purple));
  color: #07111d;
}

.keyboard-preview {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 7px;
}

.keyboard-preview span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #182131;
  font-weight: 850;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
}

.keyboard-preview .wide-key {
  grid-column: span 2;
  background: rgba(223, 229, 238, 0.94);
}

.keyboard-preview .space-key {
  grid-column: span 5;
  font-size: 0.84rem;
}

.keyboard-preview .send-key {
  grid-column: span 3;
  background: linear-gradient(90deg, var(--teal), var(--purple));
  color: white;
  font-size: 1.5rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.3rem;
}

.lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 62ch;
}

.pill-row,
.cta-row,
.feature-grid,
.two-column,
.footer-links,
.plan-grid {
  display: flex;
  flex-wrap: wrap;
}

.pill-row {
  gap: 10px;
  margin-top: 20px;
}

.pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #eef3ff;
  font-weight: 750;
  font-size: 0.92rem;
}

.cta-row {
  gap: 14px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(90deg, var(--gold), var(--orange), var(--teal));
  color: #101522;
  box-shadow: 0 12px 28px rgba(255, 122, 34, 0.22);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 24px;
}

.stat-card {
  padding: 20px 22px;
  background: rgba(8, 14, 26, 0.72);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
}

.stat-card span {
  color: var(--muted);
}

.section,
.policy-card {
  padding: 28px;
  margin-bottom: 24px;
}

.section-heading {
  margin-bottom: 20px;
}

.feature-grid,
.two-column,
.plan-grid {
  gap: 16px;
}

.feature-card,
.info-panel,
.plan-card {
  flex: 1 1 280px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}

.feature-card {
  min-height: 180px;
}

.feature-card p,
.info-panel p,
.policy-card p,
.policy-card li,
.plan-card li {
  color: var(--muted);
}

.feature-gold { box-shadow: inset 0 0 0 1px rgba(255, 211, 92, 0.22); }
.feature-teal { box-shadow: inset 0 0 0 1px rgba(34, 199, 184, 0.24); }
.feature-purple { box-shadow: inset 0 0 0 1px rgba(142, 92, 255, 0.24); }
.feature-orange { box-shadow: inset 0 0 0 1px rgba(255, 123, 34, 0.24); }
.feature-red { box-shadow: inset 0 0 0 1px rgba(255, 79, 106, 0.24); }
.feature-blue { box-shadow: inset 0 0 0 1px rgba(88, 168, 255, 0.24); }

.highlight-section {
  background:
    linear-gradient(135deg, rgba(34, 199, 184, 0.08), transparent 45%),
    linear-gradient(160deg, rgba(17, 27, 44, 0.96), rgba(8, 14, 26, 0.94));
}

.plan-card ul,
.policy-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.plan-card li + li,
.policy-card li + li {
  margin-top: 8px;
}

.plan-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  font-weight: 850;
}

.plan-pro {
  background:
    linear-gradient(135deg, rgba(142, 92, 255, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 0 0 1px rgba(142, 92, 255, 0.24);
}

.support-section {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
}

.support-character {
  width: 180px;
  max-width: 100%;
  height: auto;
  display: block;
}

.policy-page {
  display: grid;
  gap: 20px;
}

.policy-hero {
  padding: 14px 4px 4px;
}

.policy-card a {
  color: var(--gold);
  font-weight: 750;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
}

.footer span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.footer-links {
  gap: 16px;
}

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

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

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

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .support-section {
    grid-template-columns: 1fr;
  }

  .support-character {
    width: 140px;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max));
    padding-top: 16px;
  }

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

  .topnav {
    gap: 8px 14px;
  }

  .hero-copy,
  .device-card,
  .section,
  .policy-card {
    padding: 22px;
  }

  .keyboard-preview {
    gap: 5px;
  }

  .keyboard-preview span {
    min-height: 36px;
    border-radius: 10px;
  }

  .language-row,
  .action-row {
    grid-template-columns: 1fr;
  }

  .swap-button {
    justify-self: center;
  }

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