:root {
  --bg: #1A1A2E;
  --bg-elevated: #22223c;
  --card: #242438;
  --text: #FFFFFF;
  --text-muted: #A9A9C2;
  --accent: #5B7CFA;
  --accent-soft: rgba(91, 124, 250, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

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

.brand-name strong {
  color: var(--accent);
  font-weight: 800;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.main-nav a:hover { color: var(--text); }

.main-nav a.nav-cta {
  color: #fff;
  background: var(--accent);
  padding: 8px 18px;
  border-radius: 999px;
}

.main-nav a.nav-cta:hover { color: #fff; opacity: 0.9; }

/* Standalone /activate page */
.activate-page {
  min-height: calc(100vh - 72px - 90px);
  display: flex;
  align-items: center;
  padding: 64px 0;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(91, 124, 250, 0.16) 0%, rgba(91, 124, 250, 0) 70%),
    var(--bg);
}

.activate-page .subscribe-card { margin: 0 auto; }

/* Hero */
.hero {
  padding: 88px 0 96px;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(91, 124, 250, 0.16) 0%, rgba(91, 124, 250, 0) 70%),
    var(--bg);
}

.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy {
  max-width: 640px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 22px;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

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

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

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

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* Subscribe / activate card */
.subscribe-card {
  width: 100%;
  max-width: 1120px;
  margin: 48px auto 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  text-align: center;
}

.subscribe-card h2 {
  text-align: center;
  font-size: 1.3rem;
  margin: 0 0 8px;
}

.subscribe-lead {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 560px;
  margin: 0 auto 24px;
}

.ticket-card {
  max-width: 680px;
}

.ticket-block {
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 0 0 20px;
}

.ticket-block h3 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}

.ticket-block.ticket-reply {
  background: var(--accent-soft);
  border-color: rgba(91, 124, 250, 0.3);
}

.ticket-body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.subscribe-form {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  text-align: left;
}

.subscribe-form .field-device { flex: 2 1 240px; }
.subscribe-form .field-plan { flex: 1 1 130px; }
.subscribe-form .field-email { flex: 1.5 1 200px; }
.subscribe-form .field-card { flex: 1.5 1 200px; }
.subscribe-form .field-expiry { flex: 0.6 1 100px; }
.subscribe-form .field-cvv { flex: 0.5 1 80px; }

.subscribe-form .field-name { flex: 1 1 220px; }
.subscribe-form .field-subject { flex: 1 1 100%; }
.subscribe-form .field-message { flex: 1 1 100%; }

/* On the support form, device ID is a secondary/optional field, not the
   dominant one like on /activate — override its wider activate-page flex. */
.support-form .field-device { flex: 1 1 200px; }

.subscribe-form label {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subscribe-form input,
.subscribe-form select,
.subscribe-form textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
}

.subscribe-form textarea {
  resize: vertical;
}

.subscribe-form input:focus,
.subscribe-form select:focus,
.subscribe-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.subscribe-form-submit {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subscribe-form-label-spacer {
  font-size: 0.85rem;
  visibility: hidden;
}

.subscribe-form button {
  justify-content: center;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .subscribe-form { flex-direction: column; align-items: stretch; }
  .subscribe-form-submit { width: 100%; }
  .subscribe-form-label-spacer { display: none; }
  .subscribe-form button { width: 100%; }
}

.subscribe-optional {
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: normal;
}

.subscribe-form-notice {
  font-style: italic;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 16px 0 0;
}

.subscribe-form-notice a,
.subscribe-error a,
.subscribe-success a {
  color: var(--accent);
  font-weight: 600;
}

.input-with-check {
  position: relative;
  display: block;
}

.input-with-check input {
  width: 100%;
  padding-right: 42px;
}

.input-check-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #34d399;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.input-with-check.match .input-check-icon { opacity: 1; }

.subscribe-success {
  background: rgba(91, 124, 250, 0.12);
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin: 0;
}

.subscribe-error {
  background: rgba(255, 90, 90, 0.12);
  color: #ff8a8a;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin: 0 0 16px;
}

/* Hero shots (tilted screenshot tile grid above the headline) */
.hero-shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 20px 20px 64px;
  max-width: 1360px;
  margin: 0 auto;
}

.shot-card {
  flex: 0 1 400px;
  perspective: 900px;
}

.shot-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  cursor: pointer;
}

.shot-card:nth-child(odd)  img { transform: rotateY(18deg); }
.shot-card:nth-child(even) img { transform: rotateY(-18deg); }

.shot-card:hover img {
  transform: rotateY(0deg) scale(1.04);
  box-shadow: 0 40px 80px -20px rgba(91, 124, 250, 0.4);
}

@media (max-width: 640px) {
  .shot-card:nth-child(odd) img, .shot-card:nth-child(even) img {
    transform: none;
  }
  .hero-shots { gap: 20px; padding-top: 12px; }
}

/* Sections */
section { padding: 88px 0; }

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 12px;
  text-align: center;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

.features h2 { margin-bottom: 48px; }

/* Deepdive: alternating screenshot + copy rows */
.deepdive-row {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 48px 0;
}

.deepdive-row + .deepdive-row {
  border-top: 1px solid var(--border);
}

.deepdive-row.reverse { flex-direction: row-reverse; }

.deepdive-media {
  flex: 1 1 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}

.deepdive-media img {
  display: block;
  width: 100%;
  height: auto;
}

.deepdive-copy {
  flex: 1 1 320px;
}

.deepdive-copy h3 {
  font-size: 1.4rem;
  margin: 0 0 12px;
}

.deepdive-copy p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
  max-width: 420px;
}

@media (max-width: 820px) {
  .deepdive-row, .deepdive-row.reverse {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  .deepdive-copy p { margin: 0 auto; }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

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

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

/* Platforms */
.platforms { background: var(--bg-elevated); }

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.platform-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.platform-name { font-weight: 700; }

.platform-badge {
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
}

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.steps li {
  display: flex;
  gap: 16px;
}

.step-num {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* FAQ */
.faq-item {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.faq-item h3 { margin: 0 0 8px; font-size: 1.05rem; }
.faq-item p { margin: 0; color: var(--text-muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--text); }
.footer-links { display: flex; gap: 18px; }

/* Standalone /privacy page */
.legal-page {
  padding: 64px 0 96px;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(91, 124, 250, 0.16) 0%, rgba(91, 124, 250, 0) 70%),
    var(--bg);
}

.legal-wrap {
  max-width: 760px;
}

.lang-switch {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
}

.lang-switch a {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
}

.lang-switch a:hover { color: var(--text); }

.lang-switch a.lang-switch-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 8px;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 32px;
}

.legal-page h2 {
  font-size: 1.15rem;
  margin: 36px 0 12px;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-page ul { padding-left: 22px; margin: 0 0 16px; }
.legal-page li { margin-bottom: 6px; }
.legal-page strong { color: var(--text); }
.legal-page a { color: var(--accent); }

@media (max-width: 760px) {
  .main-nav { display: none; }
  .hero-inner { flex-direction: column-reverse; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-note { margin-left: auto; margin-right: auto; }
}
