/* Aneva · «Έρχεται σύντομα»
   Χρώματα, γράμματα και κίνηση ορίζονται μόνο στο :root. */

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/inter-tight-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/inter-tight-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Serif Display';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/noto-serif-display-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Noto Serif Display';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/noto-serif-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0E1115;
  --paper: #F4F2EC;
  --mist: #9BA1A8;
  --line: rgba(244, 242, 236, 0.16);
  --lime-press: #B6E33B;
  --error: #FF8A7A;
  --lime: #C6F24E;

  --serif: 'Noto Serif Display', 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --t-display: clamp(2.5rem, 1.4rem + 4.2vw, 5.2rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.25rem, 4.5vw, 3rem);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ink);
  color: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

h1, p { margin: 0; }

/* ---------- Η σκηνή 3D (πίσω από όλα) ---------- */

.scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100lvh;                 /* σταθερό ύψος: η μπάρα του κινητού δεν «κουνάει» τη σκηνή */
  display: block;
  touch-action: pan-y;            /* το σύρσιμο δεξιά-αριστερά γυρίζει το «Α», πάνω-κάτω μένει για scroll */
}
.js .scene { opacity: 0; transition: opacity 900ms var(--ease); }
.is-ready .scene { opacity: 1; }
.no-3d .scene { display: none; }

/* ---------- Διάταξη: πάνω το όνομα, στη μέση το «Α», κάτω το κείμενο ---------- */

.page {
  position: relative;
  min-height: 100svh;
  display: grid;
  /* Όνομα πάνω· το «Α» και ο τίτλος μαζί, σαν ένα σύνολο, στη μέση (λίγο πιο ψηλά από το κέντρο). */
  grid-template-columns: minmax(0, 1fr);   /* η στήλη δεν «φουσκώνει» πέρα από την οθόνη στα μικρά κινητά */
  grid-template-rows: auto 1fr min(48svh, 30rem, 80vw) auto 1.25fr;   /* χωράει και το κουτάκι χωρίς κύλισμα */
  padding: max(var(--pad), env(safe-area-inset-top)) var(--pad) max(var(--pad), env(safe-area-inset-bottom));
  pointer-events: none;           /* τα «άδεια» σημεία αφήνουν το σύρσιμο να φτάσει στη σκηνή */
}

.top { grid-row: 1; display: flex; justify-content: center; }
.wordmark {
  font-weight: 600;
  font-size: var(--t-small);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
}

.stage { grid-row: 3; display: grid; place-items: center; }
.fallback-mark { display: none; width: min(42vw, 15rem); height: auto; }
.no-3d .fallback-mark { display: block; }
.mark-outer { fill: var(--lime); }
.mark-inner { fill: var(--paper); }

.copy {
  grid-row: 4;
  display: grid;
  justify-items: center;
  text-align: center;
  pointer-events: none;
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--t-display);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}


/* ---------- Το κουτάκι για email ---------- */

.lead {
  width: min(100%, 26rem);
  margin-top: 1.5rem;
  display: grid;
  gap: 0.5rem;
  text-align: center;
  pointer-events: auto;
}
.lead-label { font-size: var(--t-body); color: var(--mist); }
.lead-field {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(244, 242, 236, 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 160ms var(--ease);
}
.lead-field:focus-within { box-shadow: inset 0 0 0 1px var(--lime); }
.lead.is-invalid .lead-field { box-shadow: inset 0 0 0 1px var(--error); }
.lead-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 0.8rem;
  border: 0;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 1rem;                 /* 16px: αλλιώς το iPhone κάνει μόνο του zoom */
  outline: none;
}
.lead-input::placeholder { color: rgba(155, 161, 168, 0.6); }
.lead-btn {
  min-height: 44px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms var(--ease), transform 120ms var(--ease);
}
.lead-btn:active { transform: scale(0.97); }
.lead-btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.lead-btn[disabled] { cursor: progress; opacity: 0.7; }
@media (hover: hover) {
  .lead-btn:hover { background: var(--lime-press); }
}
.lead-status { font-size: var(--t-small); min-height: 1.4em; }
.lead.is-invalid .lead-status, .lead.is-error .lead-status { color: var(--error); }
.lead.is-sent .lead-label, .lead.is-sent .lead-field { display: none; }
.lead.is-sent .lead-status { color: var(--lime); font-size: var(--t-body); }

/* Παγίδα για ρομπότ: εκτός οθόνης για τους ανθρώπους, τα ρομπότ τη βλέπουν και τη συμπληρώνουν. */
.lead-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Σελίδα «Ευχαριστούμε» (για όσους δεν έχουν JavaScript) ---------- */

.page--simple { grid-template-rows: auto 1fr auto 1.25fr; }
.page--simple .copy { grid-row: 3; gap: 1rem; }
.thanks-text { color: var(--mist); }
.thanks-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--lime);
  pointer-events: auto;
  text-underline-offset: 0.3em;
}
.thanks-back:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ---------- Είσοδος κειμένου ---------- */

.js .copy > * { opacity: 0; transform: translateY(14px); }
.is-ready .copy > * { opacity: 1; transform: none; transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.is-ready .copy > :nth-child(1) { transition-delay: 900ms; }
.is-ready .copy > :nth-child(2) { transition-delay: 1200ms; }

/* Αν το 3D αργήσει πολύ (κακό internet), το κείμενο φαίνεται έτσι κι αλλιώς. */
.js:not(.is-ready) .copy > * { animation: show-anyway 0s 4s forwards; }
@keyframes show-anyway { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js .scene, .is-ready .copy > * { transition: none; }
  .js .copy > * { transform: none; }
}
