/* public/styles.css */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0e1014;
  --bg2: #14161c;
  --fg: #e8e8ec;
  --muted: #9aa0aa;
  --accent: #ffd200;       /* Ukrainian yellow */
  --accent2: #0057b7;      /* Ukrainian blue */
  --border: rgba(255,255,255,.08);
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* HEADER / HERO */
.hero {
  background:
    radial-gradient(ellipse at top right, rgba(0,87,183,.25), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(255,210,0,.12), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  padding-bottom: 80px;
}
.hero .container:first-child {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
}
.logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
}
nav { display: flex; gap: 8px; align-items: center; }
nav a { color: var(--muted); margin-right: 12px; font-size: 14px; }
nav a:hover { color: var(--fg); text-decoration: none; }

.hero-body {
  padding-top: 80px;
  text-align: center;
}
.hero-body h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 22px;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 36px;
}
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* BUTTONS */
.btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { background: rgba(255,255,255,.04); }
.btn-primary {
  background: var(--accent);
  color: #0a0a0d;
  border-color: var(--accent);
}
.btn-primary:hover { background: #ffdd33; }
.btn-ghost { color: var(--fg); }
.btn.big { padding: 13px 22px; font-size: 16px; }
.btn.block { width: 100%; }

/* SECTIONS */
.section { padding: 80px 0; }
.section.dark { background: var(--bg2); }
.section h2 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.three-col h3 { font-size: 18px; margin-bottom: 8px; font-weight: 600; }
.three-col p { color: var(--muted); font-size: 15px; }
@media (max-width: 720px) {
  .three-col { grid-template-columns: 1fr; }
  .hero-body h1 { font-size: 36px; }
}

.steps {
  list-style: none;
  counter-reset: step;
  max-width: 700px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 16px 12px 48px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px; top: 12px;
  width: 24px; height: 24px;
  background: var(--accent2);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}
code {
  background: rgba(255,255,255,.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .9em;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 400px;
  position: relative;
}
.modal-card h2 { margin-bottom: 18px; font-size: 22px; }
.modal-card label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.modal-card input {
  display: block;
  width: 100%;
  margin-top: 4px;
  background: rgba(0,0,0,.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  text-transform: none;
  letter-spacing: 0;
}
.modal-card input:focus { border-color: var(--accent); }
.form-err {
  color: #ff6b6b;
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 8px;
}
.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.modal-close:hover { background: rgba(255,255,255,.06); color: var(--fg); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
