/* ═══════════════════════════════════════════════
   NOVA TERRA DIGITAL
   Sharp Agency · Warm Near-Black · Neon-Blue Accent
════════════════════════════════════════════════ */

:root {
  /* ── New palette ─────────────────────────── */
  --bg:        #080807;
  --bg-2:      #0f0f0e;
  --bg-3:      #161615;
  --bg-4:      #1e1e1c;
  --bg-5:      #242422;

  --text:      #FFFFFF;
  --text-2:    #D0D0CE;
  --text-3:    #888887;
  --text-4:    #444442;

  --accent:        #00C8FF;
  --accent-2:      #1E90FF;
  --accent-bright: #5BD6FF;
  --accent-dim:    rgba(0,200,255,0.10);

  --border:        rgba(255,255,255,0.07);
  --border-2:      rgba(255,255,255,0.13);
  --border-3:      rgba(255,255,255,0.22);
  --border-accent: rgba(0,200,255,0.35);

  --dot: rgba(255,255,255,0.05);

  /* ── Legacy aliases (so older markup + form JS keep working) ── */
  --black:       var(--bg);
  --black-2:     var(--bg-2);
  --black-3:     var(--bg-3);
  --black-4:     var(--bg-4);
  --black-5:     var(--bg-5);

  --blue:        var(--accent-2);
  --blue-bright: var(--accent-bright);
  --blue-neon:   var(--accent);
  --blue-dim:    rgba(0,200,255,0.40);
  --blue-glow:   var(--accent-dim);
  --blue-glow-2: var(--accent-dim);

  --silver:      var(--text-2);
  --white:       var(--text);
  --off-white:   var(--text-2);
  --muted:       var(--text-3);
  --muted-2:     var(--text-4);

  /* ── Type + tokens ───────────────────────── */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Space Grotesk', system-ui, sans-serif;
  --font-ui:      'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'Space Mono', monospace;

  --nav-h:     64px;
  --radius:    10px;
  --radius-lg: 16px;
  --ease:      cubic-bezier(0.4,0,0.2,1);
  --ease-std:  cubic-bezier(0.4,0,0.2,1);
  --ease-expo: cubic-bezier(0.16,1,0.3,1);
}

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--text); font-weight: 700; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ── Scroll Reveal ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-expo), transform 0.7s var(--ease-expo);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.16s; }
.reveal--delay-3 { transition-delay: 0.24s; }
.reveal--delay-4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  * { animation: none !important; }
}

/* ── Section Label (line-before) ─────────────── */
.sys-label {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.sys-label::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  margin-right: 12px;
  vertical-align: middle;
  background: currentColor;
  flex: none;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn--primary {
  background: var(--accent);
  color: #04181f;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 10px 30px rgba(0,200,255,0.22);
  transform: translateY(-2px);
}
.btn--primary:active { transform: translateY(0); }

.btn--neon {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-accent);
}
.btn--neon:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn--neon:active { transform: translateY(0); }

.btn--sm  { padding: 9px 18px;  font-size: 13px; }
.btn--lg  { padding: 15px 30px; font-size: 15.5px; }
.btn--xl  { padding: 18px 38px; font-size: 16px; }
.btn--full { width: 100%; }

/* ═══════════════════════════════════════════════
   NAV — pill, glass
════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1180px;
  z-index: 100;
  background: rgba(15,15,14,0.72);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(8,8,7,0.9);
  border-color: var(--border-3);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  padding: 0 14px 0 22px;
  position: relative;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.nav__logo img {
  height: 46px;
  width: auto;
  filter: brightness(1.55) contrast(1.2) saturate(1.25) drop-shadow(0 0 6px rgba(120, 200, 255, 0.55));
}
.nav__logo span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links a:not(.btn) {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  padding: 8px 14px;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__links a.active { color: var(--accent); }
.nav__links .btn { margin-left: 6px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border-radius: 10px;
  transition: background 0.2s;
}
.nav__toggle:hover { background: rgba(255,255,255,0.05); }
.nav__toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════
   HERO
════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 150px 0 96px;
  overflow: hidden;
  background: var(--bg);
}
.hero__dot-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 28% 32%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 65% at 28% 32%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero__left { max-width: 620px; }
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--text);
  margin: 22px 0 0;
}
.hero__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-2);
  line-height: 1.6;
  max-width: 520px;
  margin-top: 24px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 34px;
}
.trust-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

/* Audit preview card */
.hero__right { display: flex; justify-content: center; }
.audit-preview {
  width: 100%;
  max-width: 420px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.audit-preview__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: var(--bg-4);
  border-bottom: 1px solid var(--border);
}
.ap-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.ap-dot--red    { background: #ff5f57; }
.ap-dot--yellow { background: #febc2e; }
.ap-dot--green  { background: #28c840; }
.ap-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}
.audit-preview__body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.ap-line {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-2);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
}
.ap-line span { color: var(--text-4); }
.ap-line em   { font-style: normal; color: var(--text-2); }
.ap-ok   { color: #28c840 !important; }
.ap-warn { color: #febc2e !important; }
.ap-bad  { color: #ff5f57 !important; }
.audit-preview__footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}
.ap-cta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════
   TICKER
════════════════════════════════════════════════ */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 14px 0;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  white-space: nowrap;
  animation: ticker-scroll 38s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ticker__dot { color: var(--accent); }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════
   SECTIONS
════════════════════════════════════════════════ */
.section { padding: 110px 0; }
.section--alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section__header { max-width: 760px; margin-bottom: 58px; }
.section__header h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-top: 18px;
}
.section__sub {
  margin-top: 20px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 620px;
}

/* Shared legacy section header (service pages) */
.section-header { max-width: 760px; margin-bottom: 56px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 16px;
}
.section-title em { font-style: normal; color: var(--accent); }
.section-sub {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 600px;
}

/* ═══════════════════════════════════════════════
   SERVICES GRID
════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
.service-card:hover {
  border-color: var(--border-2);
  background: var(--bg-3);
  transform: translateY(-3px);
}
.service-card__icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--accent);
  margin-bottom: 22px;
}
.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.service-card p {
  color: var(--text-3);
  font-size: 14.5px;
  line-height: 1.6;
  flex: 1;
}
.service-card__link {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.service-card--cta {
  background: var(--bg-3);
  border-color: var(--border-2);
  justify-content: center;
}
.service-card--cta:hover { transform: none; }
.service-card--cta .btn { margin-top: 22px; align-self: flex-start; }

/* ═══════════════════════════════════════════════
   PROCESS STEPS
════════════════════════════════════════════════ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.process-step {
  padding: 36px 32px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.25s var(--ease);
}
.process-step:hover { border-color: var(--border-2); }
.process-step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-4);
  margin-bottom: 22px;
}
.process-step h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.process-step p {
  color: var(--text-3);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════
   WHY US
════════════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.why-card {
  padding: 34px 30px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.25s var(--ease);
}
.why-card:hover { border-color: var(--border-2); }
.why-card h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.why-card p {
  color: var(--text-3);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════
   AUDIT CTA SECTION
════════════════════════════════════════════════ */
.cta-section {
  padding: 110px 0;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-section__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.cta-section__inner h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
}
.cta-section__inner p {
  margin: 22px 0 34px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding: 72px 0 48px;
}
.footer__brand .nav__logo { margin-bottom: 16px; }
.footer__brand p {
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.6;
  max-width: 300px;
}
.footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--accent); }

.footer__bottom { border-top: 1px solid var(--border); padding: 24px 0; }
.footer__bottom p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-4);
  text-align: center;
}

/* Compact footer (service / pricing / audit pages) */
.footer__bottom--compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: none;
  padding: 30px 0;
}
.footer__copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-4);
  letter-spacing: 0.02em;
}
.footer__socials { display: flex; gap: 6px; align-items: center; }
.social-link {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-3);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.social-link:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-dim);
}

/* ═══════════════════════════════════════════════
   FORMS
════════════════════════════════════════════════ */
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__group { margin-bottom: 16px; }
.form__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.form__label span { color: var(--accent); }
.form__input {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  appearance: none;
}
.form__input::placeholder { color: var(--text-4); }
.form__input:focus {
  border-color: var(--border-accent);
  background: var(--bg-3);
}
.form__input:hover:not(:focus) { border-color: var(--border-3); }
.form__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888887' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.form__select option { background: var(--bg-3); color: var(--text); }
.form__textarea { resize: vertical; min-height: 110px; }
.form__privacy {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-4);
  margin-top: 12px;
  letter-spacing: 0.02em;
}

/* Spam honeypot — visually hidden, off-screen (global) */
.form__honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__right { justify-content: flex-start; }
  .audit-preview { max-width: 460px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    background: rgba(15,15,14,0.98);
    border: 1px solid var(--border-2);
    border-radius: 20px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a:not(.btn) { padding: 12px 16px; font-size: 15px; }
  .nav__links .btn { margin-left: 0; margin-top: 6px; width: 100%; }

  .hero { padding: 130px 0 80px; }
  .section { padding: 76px 0; }
  .cta-section { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__links { grid-template-columns: 1fr 1fr; }
  .footer__bottom--compact { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero__headline { font-size: clamp(38px, 11vw, 52px); }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .audit-preview__body .ap-line { font-size: 11.5px; }
  .footer__links { grid-template-columns: 1fr; }
}
