/* Nightcall AI Agency — public site. Mobile-first, airy, blue/black. */

:root {
  --bg: #05070d;
  --ink: #f4f7fb;
  --muted: #c9d5e6;
  --faint: #9aadc4;
  --blue: #3d8bff;
  --cyan: #7ee0ff;
  --line: rgba(150, 196, 255, 0.42);
  --display: "Syne", "Avenir Next", system-ui, sans-serif;
  --sans: "Outfit", "Avenir Next", system-ui, sans-serif;
  --max: 1080px;
  --gutter: 1.15rem;
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(880px 420px at 88% -8%, rgba(47, 111, 224, 0.2), transparent 58%),
    radial-gradient(640px 360px at -12% 18%, rgba(20, 50, 120, 0.18), transparent 62%),
    var(--bg);
  color-scheme: dark;
}

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

a { color: inherit; }

button, input, textarea { font: inherit; color: inherit; }

::selection { background: #1d4ed8; color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: #fff;
  color: #06101c;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-weight: 600;
}

.skip:focus { top: 0.75rem; }

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

.form-error {
  margin: 0;
  color: #ffb4b4;
  font-size: 0.95rem;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 7, 13, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner,
.wrap {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.25rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
  min-width: 0;
}

.brand-lockup {
  gap: 0.75rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.brand-wording {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.brand-name {
  font-family: "Michroma", "Outfit", system-ui, sans-serif;
  font-size: clamp(0.9rem, 2.3vw, 1.08rem);
  line-height: 1;
  letter-spacing: 0.105em;
  color: #fff;
  white-space: nowrap;
}

.brand-sub {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.58rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.36em;
  color: #d7e7ff;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-bars {
  width: 1rem;
  height: 1px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.nav-toggle-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-menu {
  display: none;
  position: absolute;
  z-index: 30;
  left: calc(var(--gutter) * -1);
  right: calc(var(--gutter) * -1);
  top: 100%;
  padding: 0.35rem var(--gutter) 1.15rem;
  background: #05070d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.nav-menu.is-open { display: grid; gap: 0.35rem; }

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0.2rem;
  display: grid;
}

.nav-links a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.7rem 0.15rem;
}

.nav-links a:hover,
.nav-links a[aria-current="true"] { color: var(--ink); }

.nav-cta { justify-self: start; margin-top: 0.35rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, #f7fbff, #d5e6ff);
  color: #07111f;
  box-shadow: 0 10px 28px -16px rgba(126, 190, 255, 0.95);
}

.btn-primary:hover { background: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover { background: rgba(61, 139, 255, 0.1); }

main { position: relative; }

.hero {
  position: relative;
  isolation: isolate;
  padding: 3.5rem 0 3rem;
}

/* Full-width atmosphere: cropped within the hero, with a quiet field under copy. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.72), transparent 90%),
    url("assets/hero-atmosphere.svg") 58% 50% / auto 100% no-repeat,
    radial-gradient(ellipse at 80% 40%, rgba(24, 62, 130, 0.22), transparent 70%);
  mask-image: linear-gradient(transparent, #000 12%, #000 70%, transparent);
}

.hero-copy {
  position: relative;
}

.hero h1 {
  max-width: 18ch;
  font-size: clamp(2.3rem, 5.2vw, 4.25rem);
  text-wrap: balance;
}

.hero .lede {
  max-width: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #d5e6ff;
}

.eyebrow i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; }

h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.9rem, 7vw, 3.05rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h2 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.55rem, 4.2vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.lede {
  margin: 1rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.section {
  padding: 3.6rem 0;
}

section[id] { scroll-margin-top: 5.2rem; }

.section-h { margin-bottom: 1.6rem; max-width: 40rem; }

.section-h .lede { margin-top: 0.85rem; }

.contact-section .section-h,
.contact-section .message {
  max-width: none;
}

.contact-section .lede {
  max-width: none;
}

.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.cartridge {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  gap: 0.75rem 0.85rem;
  align-items: start;
  padding: 1rem 0.95rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(120, 186, 255, 0.55);
  background: linear-gradient(180deg, rgba(14, 28, 58, 0.45), rgba(6, 10, 20, 0.25));
  box-shadow:
    0 0 0 1px rgba(61, 126, 255, 0.12),
    0 0 32px -14px rgba(61, 150, 255, 0.75);
}

.ico {
  width: 2.75rem;
  height: 2.75rem;
  margin-top: 0.05rem;
  color: var(--cyan);
  display: grid;
  place-items: center;
}

.ico svg { width: 2.5rem; height: 2.5rem; }

.cartridge h3 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.cartridge p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.num {
  align-self: start;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: rgba(186, 214, 255, 0.42);
}

.section.promise {
  padding-block: clamp(5rem, 10vw, 9rem);
  text-align: center;
}

.promise h2 {
  width: 100%;
  max-width: 24em;
  margin-inline: auto;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.3;
  text-wrap: balance;
}

.promise h2 span {
  display: inline-block;
  max-width: 100%;
}

.channels {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  max-width: 40rem;
}

.channels li {
  display: grid;
  gap: 0.15rem;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.channels li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

.channels strong {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.channels span {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.message {
  display: grid;
  gap: 0.85rem;
  max-width: 40rem;
  margin-top: 1.7rem;
}

.message label { display: grid; gap: 0.4rem; }

.message label span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.message input[type="text"],
.message input[type="email"],
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(150, 196, 255, 0.35);
  background: rgba(3, 6, 14, 0.55);
  padding: 0.9rem 1rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.message input[type="text"],
.message input[type="email"] {
  min-height: 3.25rem;
}

textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.message input[type="text"]:focus,
.message input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(61, 139, 255, 0.28);
}

.message .btn { justify-self: start; }

.fine {
  margin: 0;
  color: var(--faint);
  font-size: 0.95rem;
  line-height: 1.5;
}

.done {
  max-width: 38rem;
  margin-top: 1.5rem;
}

.done h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}

.done p { margin: 0; color: var(--muted); }

.legal-copy {
  max-width: 760px;
}
.legal-copy h1 {
  margin-bottom: 2rem;
}
.legal-copy h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}
.legal-copy p {
  color: var(--muted);
  margin: 0.7rem 0;
}
.legal-copy a {
  color: var(--cyan);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.6rem 0 2.2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: space-between;
  align-items: end;
}

.footer-inline {
  justify-content: flex-start;
  align-items: center;
}

.footer-brand {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.footer-meta {
  margin: 0.35rem 0 0;
  max-width: 38rem;
  color: var(--faint);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (min-width: 720px) {
  :root { --gutter: 1.5rem; }

  body { font-size: 1.125rem; }

  .hero .lede {
    white-space: nowrap;
    font-size: clamp(1rem, 1.7vw, 1.125rem);
  }

  .lede, .cartridge p, .channels span { font-size: 1.125rem; }

  .brand-mark { width: 46px; height: 46px; }

  .nav-toggle { display: none; }

  .nav-menu {
    display: flex;
    position: static;
    align-items: center;
    gap: 1.35rem;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    padding: 0;
  }

  .nav-links a { padding: 0.25rem 0; font-size: 1rem; }

  .nav-cta { margin-top: 0; }

  .hero { padding: 5rem 0 4rem; }

  .cartridge {
    grid-template-columns: 3.25rem minmax(0, 1fr) auto;
    gap: 1rem 1.35rem;
    padding: 1.25rem 1.4rem;
  }

  .ico, .ico svg { width: 3rem; height: 3rem; }

  .section { padding: 5rem 0; }
}

@media (min-width: 980px) {
  :root { --gutter: 2rem; }

  .hero {
    padding: 6.5rem 0 5.5rem;
  }

  .hero h1 {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(3.4rem, 4.8vw, 4rem);
  }


  .hero::before {
    background-size: auto, cover, auto;
    background-position: center;
  }

  .section { padding: 6.5rem 0; }

  .cartridge { padding: 1.4rem 1.6rem; }

}

@media (hover: hover) {
  .cartridge:hover { border-color: rgba(190, 224, 255, 0.8); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
