/* =========================================================
   Denebola — design tokens
   ========================================================= */
:root {
  --ink: #0B1220;
  --ink-soft: #101B33;
  --ink-muted: #45506B;
  --paper: #FAFAF7;
  --paper-dim: #F1F0EA;
  --line: #E4E2D8;
  --gold: #E8B44C;
  --gold-deep: #C7912C;
  --white: #FFFFFF;

  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --shadow-card: 0 1px 2px rgba(11, 18, 32, 0.04), 0 8px 24px rgba(11, 18, 32, 0.06);
  --shadow-card-hover: 0 4px 10px rgba(11, 18, 32, 0.06), 0 16px 36px rgba(11, 18, 32, 0.10);

  --wrap: 1120px;
}

/* =========================================================
   Reset / base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

.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;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: var(--radius-s);
  padding: 0.7em 1.3em;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn--large { padding: 0.9em 1.7em; font-size: 1rem; }
.btn--small { padding: 0.5em 1em; font-size: 0.85rem; }

.btn--primary {
  background: var(--gold);
  color: var(--ink);
}
.btn--primary:hover { background: var(--gold-deep); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(250, 250, 247, 0.35);
}
.btn--ghost:hover { border-color: var(--paper); transform: translateY(-1px); }

/* =========================================================
   Header / nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle__bar {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
  position: relative;
  padding: 4px 0;
}
.site-nav__link:hover,
.site-nav__link.is-active { color: var(--ink); }
.site-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gold-deep);
  border-radius: 2px;
}
.site-nav__cta { margin-left: 4px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    border-top: 1px solid var(--line);
  }
  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .site-nav__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .site-nav__cta { margin: 16px 0 0; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, var(--ink-soft) 0%, var(--ink) 60%);
  color: var(--paper);
  padding: 110px 0 130px;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(232,180,76,0.7), transparent),
    radial-gradient(1.5px 1.5px at 80% 15%, rgba(250,250,247,0.5), transparent),
    radial-gradient(1px 1px at 60% 55%, rgba(250,250,247,0.4), transparent),
    radial-gradient(2px 2px at 92% 70%, rgba(232,180,76,0.6), transparent),
    radial-gradient(1px 1px at 35% 80%, rgba(250,250,247,0.35), transparent),
    radial-gradient(1.5px 1.5px at 50% 30%, rgba(250,250,247,0.3), transparent);
  opacity: 0.9;
}

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.9em;
}

.hero__title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  color: var(--white);
  margin-bottom: 0.4em;
}
.hero__lead {
  font-size: 1.1rem;
  color: rgba(250, 250, 247, 0.78);
  max-width: 58ch;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2em;
}

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 88px 0; }
.section--muted { background: var(--paper-dim); }

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  max-width: 30ch;
}
.section__lead {
  color: var(--ink-muted);
  max-width: 56ch;
  font-size: 1.05rem;
  margin-bottom: 2.6em;
}

.page-header {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-header__lead {
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

/* =========================================================
   Card grid
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gold-deep);
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.card p { color: var(--ink-muted); margin: 0; font-size: 0.95rem; }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--paper-dim);
  color: var(--gold-deep);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

/* =========================================================
   Benefits
   ========================================================= */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.benefits__item h3 { font-size: 1.05rem; margin-bottom: 0.5em; }
.benefits__item p { color: var(--ink-muted); font-size: 0.95rem; margin: 0; }

/* =========================================================
   CTA banner
   ========================================================= */
.cta-banner {
  padding: 56px 0;
}
.cta-banner__inner {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-l);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner__inner h2 { color: var(--white); font-size: 1.5rem; margin-bottom: 0.3em; }
.cta-banner__inner p { color: rgba(250,250,247,0.75); margin: 0; }

/* =========================================================
   Solution blocks (Solutions page)
   ========================================================= */
.solution-block { padding: 64px 0; border-bottom: 1px solid var(--line); }
.solution-block--alt { background: var(--paper-dim); }
.solution-block__inner { max-width: 720px; }
.solution-block h2 { font-size: 1.8rem; }
.solution-block > .wrap > .solution-block__text > p { color: var(--ink-muted); font-size: 1.05rem; }

.feature-list { margin-top: 1.4em; display: grid; gap: 12px; }
.feature-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* =========================================================
   Prose (About page)
   ========================================================= */
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-muted); font-size: 1.05rem; }

/* =========================================================
   Contact page
   ========================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 780px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-form {
  display: grid;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.form-row { display: grid; gap: 6px; }
.form-row label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.form-row input,
.form-row textarea {
  font: inherit;
  padding: 0.75em 0.9em;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--gold-deep);
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
}

.contact-aside h2 { font-size: 1.1rem; margin-top: 1.6em; }
.contact-aside h2:first-child { margin-top: 0; }
.contact-aside p { color: var(--ink-muted); }
.contact-aside a { color: var(--gold-deep); font-weight: 600; }

/* =========================================================
   404
   ========================================================= */
.notfound { padding: 140px 0; text-align: center; }
.notfound__inner { max-width: 520px; margin: 0 auto; }
.notfound .btn { margin-top: 1.6em; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(250, 250, 247, 0.8);
  padding: 64px 0 0;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(250,250,247,0.12);
}
@media (max-width: 700px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 28px; }
}
.site-footer .brand { color: var(--white); }
.site-footer__tag {
  color: rgba(250,250,247,0.6);
  font-size: 0.92rem;
  margin-top: 12px;
  max-width: 32ch;
}
.site-footer__col { display: grid; gap: 10px; align-content: start; }
.site-footer__col h3 {
  font-family: var(--font-head);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 4px;
}
.site-footer__col a {
  color: rgba(250,250,247,0.75);
  font-size: 0.92rem;
}
.site-footer__col a:hover { color: var(--white); }

.site-footer__bottom {
  padding: 20px 24px;
  font-size: 0.82rem;
  color: rgba(250,250,247,0.5);
}

/* =========================================================
   Cookie consent banner (see /js/main.js)
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-m);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-card-hover);
  z-index: 100;
}
.cookie-banner p { margin: 0; font-size: 0.88rem; color: rgba(250,250,247,0.85); flex: 1 1 240px; }
.cookie-banner__actions { display: flex; gap: 10px; }

/* =========================================================
   Scroll reveal (see /js/main.js)
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
