/* DropColour — landing page styles.
   Tokens mirror design-tokens.json (source of truth: Views/Theme/Theme.swift).
   When a visual value changes in the app, change it here too. */

:root {
  /* Colour — surfaces */
  --bg-top: #0B2A6B;
  --bg-bottom: #2A1B5E;
  --surface-fill: rgba(255, 255, 255, .10);
  --surface-stroke: rgba(255, 255, 255, .14);

  /* Colour — ink */
  --ink: #FFFFFF;
  --ink-secondary: rgba(255, 255, 255, .72);
  --ink-tertiary: rgba(255, 255, 255, .45);

  /* Colour — accent */
  --action: #6BE01A;
  --ranking: #54C7C7;
  --danger: #E82654;
  --on-accent: #0B2A6B;
  --gold: #FAD961;

  /* Colour — pieces */
  --piece-purple: #C86DD7;
  --piece-blue: #00C7FF;
  --piece-orange: #FAD961;
  --piece-red: #E92578;
  --piece-turquoise: #3CFFB7;
  --piece-green: #A5E01A;

  /* Shape */
  --radius-slot: 6px;
  --radius-control: 18px;
  --radius-panel: 26px;
  --gutter: 20px;
  --max-width: 1080px;

  /* Motion */
  --spring: cubic-bezier(.2, .8, .2, 1);

  /* Type — one family, like the app */
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
          "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg-bottom);
  background-image:
    radial-gradient(circle at 12% 10%, rgba(200, 109, 215, .38), transparent 55%),
    radial-gradient(circle at 95% 24%, rgba(0, 199, 255, .38), transparent 55%),
    radial-gradient(circle at 85% 88%, rgba(60, 255, 183, .38), transparent 55%),
    radial-gradient(circle at 5% 82%, rgba(250, 217, 97, .38), transparent 55%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Ring pattern — the same decorative grid the app draws behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 50% 50%, transparent 0 25px, rgba(255, 255, 255, .055) 25px 26.5px, transparent 26.5px),
    radial-gradient(circle at 50% 50%, transparent 0 25px, rgba(255, 255, 255, .055) 25px 26.5px, transparent 26.5px);
  background-size: 74px 74px;
  background-position: 0 0, 37px 37px;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(11, 42, 107, .55);
  border-bottom: 1px solid var(--surface-stroke);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.brand img { width: 34px; height: 34px; border-radius: 9px; }

.nav a.nav-link {
  color: var(--ink-secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 4px;
  transition: color .18s var(--spring);
}

.nav a.nav-link:hover { color: var(--ink); }

.lang-switch {
  display: flex;
  border: 1px solid var(--surface-stroke);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch a {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--ink-tertiary);
}

.lang-switch a[aria-current="page"] {
  background: var(--surface-fill);
  color: var(--ink);
}

/* ------------------------------------------------------------------ hero */

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 48px;
  padding: 72px 0 64px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.25rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -.01em;
  margin: 0 0 20px;
}

h1 .accent { color: var(--action); }

.lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: var(--ink-secondary);
  margin: 0 0 28px;
  max-width: 46ch;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--radius-control);
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--spring), box-shadow .18s var(--spring);
}

.btn-primary {
  background: var(--action);
  color: var(--on-accent);
  box-shadow: 0 10px 28px rgba(107, 224, 26, .32);
}

.btn-ghost {
  background: var(--surface-fill);
  color: var(--ink);
  border-color: var(--surface-stroke);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }

.btn[aria-disabled="true"] { opacity: .6; cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; }

.hero-visual { display: flex; justify-content: center; }

/* ----------------------------------------------------------------- device */

.device {
  position: relative;
  padding: 10px;
  background: #0B0B12;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .09) inset,
    0 34px 70px rgba(0, 0, 0, .5),
    0 0 90px rgba(60, 255, 183, .18);
}

.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 8px);
}

.device-phone {
  --radius: 46px;
  width: min(300px, 74vw);
  border-radius: var(--radius);
  transform: rotate(-3deg);
}

.device-tablet {
  --radius: 30px;
  width: min(360px, 84vw);
  border-radius: var(--radius);
}

/* --------------------------------------------------------------- sections */

.section { padding: 56px 0; }

.section-title {
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -.005em;
  margin: 0 0 12px;
}

.section-lead {
  color: var(--ink-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 60ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface-fill);
  border: 1px solid var(--surface-stroke);
  border-radius: var(--radius-panel);
  padding: 22px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card h3 {
  font-size: 17px;
  font-weight: 900;
  margin: 14px 0 6px;
}

.card p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-slot);
  font-size: 17px;
  font-weight: 900;
  color: var(--on-accent);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .3);
}

.tile svg { width: 20px; height: 20px; display: block; }

/* steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step {
  background: var(--surface-fill);
  border: 1px solid var(--surface-stroke);
  border-radius: var(--radius-panel);
  padding: 22px;
}

.step .tile { margin-bottom: 14px; }
.step h3 { font-size: 17px; font-weight: 900; margin: 0 0 6px; }
.step p { margin: 0; color: var(--ink-secondary); font-size: 15px; line-height: 1.55; }

/* gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  align-items: start;
  justify-items: center;
}

.shot { text-align: center; }

.shot figcaption {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--ink-secondary);
}

figure { margin: 0; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--surface-stroke);
  margin-top: 40px;
  padding: 40px 0 56px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-grid p { margin: 6px 0 0; color: var(--ink-secondary); font-size: 14px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

.footer-links a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

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

.copyright {
  margin-top: 28px;
  color: var(--ink-tertiary);
  font-size: 13px;
}

/* ------------------------------------------------------------ legal pages */

.prose {
  max-width: 74ch;
  padding: 48px 0 24px;
}

.prose h1 { font-size: clamp(2rem, 5vw, 3rem); }

.prose h2 {
  font-size: 1.25rem;
  font-weight: 900;
  margin: 40px 0 10px;
}

.prose h3 { font-size: 1rem; font-weight: 800; margin: 24px 0 6px; }

.prose p, .prose li {
  color: var(--ink-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.prose ul { padding-left: 20px; }

.prose a { color: var(--ranking); }

.prose strong { color: var(--ink); }

.updated {
  color: var(--ink-tertiary);
  font-size: 14px;
  margin: 0 0 28px;
}

.callout {
  background: var(--surface-fill);
  border: 1px solid var(--surface-stroke);
  border-left: 3px solid var(--action);
  border-radius: var(--radius-control);
  padding: 16px 20px;
  margin: 24px 0;
}

.callout p { margin: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--surface-stroke);
  color: var(--ink-secondary);
}

th { color: var(--ink); font-weight: 800; }

/* --------------------------------------------------------------- responsive */

@media (max-width: 780px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 0;
    gap: 36px;
  }

  .lead { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  .nav { gap: 10px; }
  .nav a.nav-link { display: none; }
}

/* Mirrors the app's "Reduce Motion" support: no sliding, no bouncing. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .device-phone { transform: none; }
  .btn:hover { transform: none; }
}
