/* wordyssey.arcadoo.org: η σελίδα παρουσίασης. Τα χρώματα και οι γραμματοσειρές είναι του παιχνιδιού
   (app/lib/ui/theme.dart): νυχτερινό μωβ, χρυσό, μάρμαρο, Literata και Manrope. */
:root {
  --ink: #110C20;
  --wine: #2A1638;
  --surface: #1C1530;
  --surface2: #261D3F;
  --surface3: #33284F;
  --line: rgba(236, 226, 255, .13);
  --text: #F3EEE5;
  --muted: #AEA6C6;
  --gold: #E9B44F;
  --gold-deep: #B8842C;
  --gold-soft: rgba(233, 180, 79, .16);
  --marble: #F6F1E8;
  --marble2: #E6DDCE;
  --marble-edge: #C4B6A0;
  --tile-ink: #241B35;
  --foam: #7FD7C2;
  --coral: #F28C6F;
  --sky: #93B9E6;
  --display: 'Literata', Georgia, 'Times New Roman', serif;
  --ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 22px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 400 17px/1.65 var(--ui); color: var(--text); background: var(--ink);
  background-image:
    radial-gradient(900px 520px at 85% -10%, rgba(123, 47, 99, .42), transparent 70%),
    radial-gradient(700px 480px at -10% 20%, rgba(42, 22, 56, .9), transparent 70%),
    radial-gradient(800px 600px at 50% 110%, rgba(233, 180, 79, .07), transparent 70%);
  background-attachment: fixed;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #F3C870; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--tile-ink); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---- κεφαλίδα */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 8px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font: 700 1.45rem/1 var(--display); }
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.brand:hover { color: var(--text); }
.langs { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.langs button {
  font: 800 .85rem/1 var(--ui); letter-spacing: .06em; color: var(--muted); background: none; border: 0;
  padding: 10px 14px; border-radius: 999px; cursor: pointer; min-width: 48px;
}
.langs button[aria-pressed="true"] { background: var(--gold); color: var(--tile-ink); }

/* ---- κουμπιά, ετικέτες */
.eyebrow { font: 800 .78rem/1.3 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: #DCD5E8; max-width: 34em; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 26px; padding: 0; list-style: none; }
.pills li { font: 700 .82rem/1 var(--ui); color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); padding: 9px 13px; border-radius: 999px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 16px; font: 800 1rem/1 var(--ui); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.button:active { transform: translateY(1px) scale(.99); }
.button.primary { background: var(--gold); color: var(--tile-ink); box-shadow: 0 10px 28px rgba(233, 180, 79, .28), inset 0 -3px 0 var(--gold-deep); }
.button.primary:hover { background: #F3C870; color: var(--tile-ink); }
.button.ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.button.ghost:hover { background: var(--surface2); color: var(--text); }
.button .arrow { transition: transform .2s ease; }
.button:hover .arrow { transform: translateX(3px); }
.soon { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border-radius: 16px; border: 1px dashed var(--line); color: var(--muted); font: 700 .92rem/1.2 var(--ui); }
.soon svg { width: 22px; height: 22px; flex: none; }

/* ---- hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center; padding: 34px 0 20px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.stage { position: relative; border-radius: 32px; overflow: hidden; border: 1px solid var(--line); background: #2B1640; aspect-ratio: 1; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.stage .art { width: 100%; height: 100%; object-fit: cover; }

/* ---- κινητό */
.phone { aspect-ratio: 720 / 1488; border-radius: 36px; border: 9px solid #0A0714; background: #0A0714; overflow: hidden; box-shadow: 0 28px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); }
.phone img { width: 100%; height: 100%; object-fit: cover; }

/* ---- αριθμοί */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 10px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
.fact strong { display: block; font: 700 1.9rem/1.1 var(--display); color: var(--gold); }
.fact span { color: var(--muted); font-size: .95rem; }

/* ---- ενότητες */
.section { padding: 64px 0 12px; }
.section-head { max-width: 46em; margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mode { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 18px; }
.mode .phone { width: min(230px, 80%); margin: 0 auto; border-width: 7px; border-radius: 28px; }
.mode h3 { margin-bottom: .3em; }
.mode p { color: var(--muted); margin: 0; }
.mode .tag { font: 800 .75rem/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--foam); margin-bottom: 8px; }

.journey { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: st; }
.stop { margin: 0; position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 4.4; border: 1px solid var(--line); background: var(--wine); }
.stop img { width: 100%; height: 100%; object-fit: cover; }
.stop figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 12px 12px; background: linear-gradient(180deg, transparent, rgba(17, 12, 32, .92)); font: 700 1.02rem/1.2 var(--display); }
.stop figcaption small { display: block; font: 800 .68rem/1.4 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.stop.final { outline: 2px solid var(--gold); outline-offset: -2px; }
.stop img { object-position: 50% 45%; }
.route-note { margin-top: 18px; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; }
.feature p { color: var(--muted); margin: 0; }
.feature .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); margin-bottom: 16px; }
.feature .icon svg { width: 26px; height: 26px; }
.feature .new { display: inline-block; vertical-align: middle; margin-left: 8px; font: 800 .66rem/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--tile-ink); background: var(--foam); padding: 5px 8px; border-radius: 999px; }

/* ---- πώς παίζεται + δείγμα */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 34px; align-items: center; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; color: #DCD5E8; }
.steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--marble); color: var(--tile-ink); font: 700 1.15rem/1 var(--display); box-shadow: inset 0 -4px 0 var(--marble-edge); }
.demo { background: radial-gradient(circle at 50% 60%, var(--surface3), var(--surface2) 70%); border: 1px solid var(--line); border-radius: 26px; padding: 22px 18px 20px; text-align: center; }
.slots { display: flex; justify-content: center; gap: 8px; margin: 4px 0 10px; }
.slot { width: 46px; height: 50px; border-radius: 12px; border: 2px solid var(--line); background: rgba(255, 255, 255, .04); display: grid; place-items: center; font: 700 1.5rem/1 var(--display); color: var(--tile-ink); transition: background .25s ease, border-color .25s ease, transform .3s ease; }
.slot.on { background: var(--marble); border-color: var(--marble); box-shadow: inset 0 -4px 0 var(--marble-edge); }
.demo.won .slot.on { background: var(--gold); border-color: var(--gold); box-shadow: inset 0 -4px 0 var(--gold-deep); animation: pop .5s ease both; }
.demo.won .slot:nth-child(2) { animation-delay: .06s; } .demo.won .slot:nth-child(3) { animation-delay: .12s; }
.demo.won .slot:nth-child(4) { animation-delay: .18s; } .demo.won .slot:nth-child(5) { animation-delay: .24s; }
@keyframes pop { 40% { transform: translateY(-8px) scale(1.08); } }
.word { min-height: 1.6em; font: 800 1rem/1.6 var(--ui); letter-spacing: .3em; color: var(--gold); }
.wheel { position: relative; width: 236px; height: 236px; margin: 6px auto 14px; border-radius: 50%; background: rgba(17, 12, 32, .55); border: 2px solid rgba(233, 180, 79, .35); touch-action: none; user-select: none; -webkit-user-select: none; }
.wheel svg.trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wheel svg.trail polyline { fill: none; stroke: var(--gold); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.letter {
  position: absolute; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--marble); color: var(--tile-ink); font: 700 1.7rem/1 var(--display);
  box-shadow: inset 0 -5px 0 var(--marble-edge), 0 6px 14px rgba(0, 0, 0, .35); transition: background .15s ease, transform .15s ease;
}
.letter.on { background: var(--gold); box-shadow: inset 0 -5px 0 var(--gold-deep), 0 6px 14px rgba(0, 0, 0, .35); transform: scale(1.06); }
.meaning { min-height: 3.2em; margin: 0; color: #DCD5E8; font-size: .98rem; }
.meaning b { font-family: var(--display); color: var(--gold); }
.demo-caption { color: var(--muted); font-size: .82rem; margin: 10px 0 0; }
.soft { margin-top: 12px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; font: 700 .9rem/1 var(--ui); cursor: pointer; }
.soft:hover { background: var(--surface3); }

/* ---- λεξικό */
.learn { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.learn .shots { display: flex; justify-content: center; gap: 18px; }
.learn .phone { width: min(220px, 46%); border-width: 7px; border-radius: 28px; }
.learn .phone:nth-child(2) { margin-top: 48px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: #DCD5E8; }
.checks li::before { content: "✓"; width: 26px; height: 26px; border-radius: 50%; background: rgba(127, 215, 194, .16); color: var(--foam); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }

.note { padding: 26px 28px; border-left: 4px solid var(--foam); border-radius: 0 var(--radius) var(--radius) 0; }
.note h2 { font-size: 1.5rem; }
.note p { color: var(--muted); margin: 0; }
.help p { color: var(--muted); }

/* ---- υποσέλιδο */
footer { margin-top: 70px; padding: 26px 0 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; color: var(--muted); font-size: .92rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--text); text-decoration: none; }
footer a:hover { color: var(--gold); }

/* ---- σελίδες κειμένου (απόρρητο, όροι, διαγραφή) */
.doc { max-width: 780px; margin: 24px auto 0; padding: 36px 40px 30px; }
.doc h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin-top: 1.6em; }
.doc p, .doc li { color: #DCD5E8; }
.doc .updated { color: var(--muted); font-size: .92rem; }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--gold); font-weight: 800; }
.doc .steps { margin: 12px 0 18px; }
.back { display: inline-block; margin-top: 20px; }

/* ---- εμφάνιση στο σκρολάρισμα (μόνο με JS· χωρίς κίνηση αν το ζητά το σύστημα) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .journey { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero, .how, .learn { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .mode { flex-direction: row; align-items: center; }
  .mode .phone { width: 42%; flex: none; margin: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .learn .shots { order: 2; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand { font-size: 1.25rem; }
  .brand img { width: 38px; height: 38px; }
  .langs button { padding: 9px 11px; min-width: 44px; }
  .hero { padding-top: 18px; }
  .stage { border-radius: 26px; }
  .features { grid-template-columns: 1fr; }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .how { padding: 22px 16px; }
  .mode { flex-direction: column; }
  .mode .phone { width: min(220px, 70%); }
  .doc { padding: 26px 18px; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { padding: 4px 0; border: 0; }
  .doc tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .doc td:first-child { color: var(--gold); font-weight: 800; }
  .cta .button, .soon { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .demo.won .slot.on { animation: none; }
}
