:root {
  --amber: #ffb627;
  --amber-deep: #f5860a;
  --radius: 14px;
  --maxw: 1080px;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* ---- dark theme (default) ---- */
  --grad: linear-gradient(160deg, #013350 0%, #0d1a1c 50%, #271e08 100%);
  --bg: #0e131b;
  --surface: #161d27;
  --surface-2: #1d2733;
  --text: #eef2f7;
  --muted: #9aa7b6;
  --border: #2a3644;
  --header-bg: rgba(10, 15, 22, 0.8);
  --footer-bg: #0a0f16;
  --input-bg: #161d27;
  --placeholder: #65748a;
}

:root[data-theme="light"] {
  --grad: linear-gradient(160deg, #e3edf4 0%, #eef0ec 50%, #f6efe1 100%);
  --bg: #eef2f6;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --text: #16212e;
  --muted: #586675;
  --border: #d3dde7;
  --header-bg: rgba(255, 255, 255, 0.82);
  --footer-bg: #d9e1ea;
  --input-bg: #ffffff;
  --placeholder: #8b97a6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--grad) fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: color .2s ease;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  color: #1a1205;
  box-shadow: 0 6px 20px rgba(245, 134, 10, .25);
}
.btn-primary:hover { box-shadow: 0 8px 26px rgba(245, 134, 10, .4); }
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); }

/* ---- Header ---- */
.site-header {
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem;
  padding: 1.6rem 1.5rem 1rem;
  text-align: center;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand-logo { height: 64px; width: auto; display: block; }
.logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }
.nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1.5rem; }
.nav a { color: var(--muted); font-weight: 600; }
.nav a:hover { color: var(--text); }
.nav .btn-ghost { color: var(--text); }

/* ---- Theme toggle ---- */
.theme-toggle {
  position: fixed;
  top: 1rem; right: 1rem;
  z-index: 50;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle:active { transform: translateY(1px); }
.theme-toggle svg { width: 20px; height: 20px; display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem 5rem;
  background:
    radial-gradient(900px 400px at 70% -10%, rgba(255, 182, 39, .12), transparent 60%),
    radial-gradient(700px 500px at 10% 10%, rgba(245, 134, 10, .08), transparent 55%);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
.coming-soon {
  margin: 0 0 1.25rem;
  font-size: clamp(2.6rem, 9vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 8px 40px rgba(245, 134, 10, .25);
  animation: comingsoon-pulse 3.2s ease-in-out infinite;
}
@keyframes comingsoon-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .82; }
}
@media (prefers-reduced-motion: reduce) {
  .coming-soon { animation: none; }
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.accent {
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.2rem; color: var(--muted); margin: 0 auto 2rem; max-width: 620px; }

/* ---- Notify form ---- */
.notify {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center;
  max-width: 520px; margin: 0 auto;
}
.notify input[type="email"] {
  flex: 1 1 260px;
  padding: .8rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 1rem;
}
.notify input::placeholder { color: var(--placeholder); }
.notify input:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.form-msg { flex-basis: 100%; margin: .25rem 0 0; min-height: 1.2rem; font-weight: 600; }
.form-msg.ok { color: #2e9e6b; }
.form-msg.err { color: #d94b4b; }
.hero-note { color: var(--muted); font-size: .9rem; margin-top: 1rem; }

/* ---- Sections ---- */
section h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 2rem;
}
.features, .steps, .cta { max-width: var(--maxw); margin: 0 auto; padding: 4rem 1.5rem; }

/* ---- Feature cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 182, 39, .5); }
.card-icon { font-size: 2rem; margin-bottom: .75rem; }
.card h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }

/* ---- Steps ---- */
.step-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; max-width: 720px; margin-inline: auto; }
.step-list li { display: flex; flex-direction: column; gap: .75rem; align-items: center; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem 1.5rem; }
.step-num {
  flex: 0 0 auto;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; color: #1a1205;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
}
.step-list h3 { margin: .2rem 0 .3rem; font-size: 1.15rem; }
.step-list p { margin: 0; color: var(--muted); }

/* ---- CTA ---- */
.cta { text-align: center; }
.cta p { color: var(--muted); margin: 0 0 1.5rem; font-size: 1.1rem; }

/* ---- Footer (always dark) ---- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .6rem;
  padding: 3rem 1.5rem;
  color: var(--muted);
}
.footer-logo { height: 56px; width: auto; opacity: .95; margin-bottom: .5rem; }
.site-footer p { margin: 0; }
.disclaimer { font-size: .8rem; opacity: .7; max-width: 560px; }
.copyright { font-size: .9rem; }
.mirmillo-credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-size: .9rem;
  margin-top: .25rem;
}
.mirmillo-credit a { display: inline-flex; align-items: center; opacity: .9; transition: opacity .15s ease; }
.mirmillo-credit a:hover { opacity: 1; }
.mirmillo-credit img { height: 22px; width: auto; vertical-align: middle; }

@media (max-width: 560px) {
  .nav a:not(.btn) { display: none; }
}
