/* Code for Marketing — redesign prototype
   Dark editorial / technical direction with teal accents. */

:root {
  color-scheme: dark;
  --ink: #071116;
  --ink-elevated: #0c1a22;
  --panel: rgba(10, 28, 36, 0.72);
  --text: #e8f4f2;
  --muted: #9bb5b4;
  --line: rgba(94, 234, 212, 0.18);
  --teal: #2dd4bf;
  --teal-deep: #0f766e;
  --teal-soft: #5eead4;
  --amber: #e7c27d;
  --danger: #f0a8a8;
  --radius: 2px;
  --max: 1120px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Consolas, monospace;
  --space-section: clamp(4.5rem, 10vw, 7.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 55% at 12% -10%, rgba(45, 212, 191, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 88% 8%, rgba(15, 118, 110, 0.22), transparent 50%),
    linear-gradient(180deg, #061016 0%, var(--ink) 42%, #050d12 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(94, 234, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
}

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

a {
  color: var(--teal-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--teal);
  color: #04201c;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— Site header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 17, 22, 0.78);
  border-bottom: 1px solid rgba(94, 234, 212, 0.1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand__mark {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 560;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

.hero__plane {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(7, 17, 22, 0.15) 18%, rgba(7, 17, 22, 0.82) 58%, rgba(7, 17, 22, 0.96) 100%),
    radial-gradient(circle at 72% 42%, rgba(45, 212, 191, 0.2), transparent 36%),
    radial-gradient(circle at 58% 70%, rgba(15, 118, 110, 0.28), transparent 42%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 14px,
      rgba(94, 234, 212, 0.035) 14px,
      rgba(94, 234, 212, 0.035) 15px
    );
}

.hero__brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  font-weight: 560;
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.hero__brand span {
  display: block;
  color: var(--teal-soft);
}

.hero__headline {
  margin: 0 0 1rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero__lede {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--teal);
  color: #04201c;
}

.button--primary:hover {
  background: var(--teal-soft);
  color: #04201c;
}

.button--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.button--ghost:hover {
  border-color: var(--teal);
  color: var(--teal-soft);
}

/* —— Sections —— */
.section {
  padding: var(--space-section) 0;
  border-top: 1px solid rgba(94, 234, 212, 0.08);
}

.section__eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.section__title {
  margin: 0 0 0.85rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section__intro {
  margin: 0 0 2.25rem;
  max-width: 40rem;
  color: var(--muted);
}

/* Methodology */
.method-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: method;
}

.method-item {
  position: relative;
  padding: 1.5rem 0 0.25rem;
  border-top: 1px solid var(--line);
}

.method-item::before {
  counter-increment: method;
  content: counter(method, decimal-leading-zero);
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--teal);
}

.method-item h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 550;
}

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

/* Services */
.service-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.service-list li {
  display: grid;
  grid-template-columns: minmax(10rem, 0.9fr) 1.4fr;
  gap: 1rem 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(94, 234, 212, 0.1);
}

.service-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 550;
}

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

/* Insights */
.insight-stack {
  display: grid;
  gap: 1.5rem;
}

.insight {
  padding-left: 1.15rem;
  border-left: 2px solid var(--teal-deep);
}

.insight h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 550;
}

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

.insight__note {
  margin-top: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--amber);
  letter-spacing: 0.02em;
}

/* Channels */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.channel-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(94, 234, 212, 0.14);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.channel-card:hover {
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(15, 118, 110, 0.16);
  color: inherit;
}

.channel-card__type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.channel-card__name {
  font-weight: 600;
}

.channel-card__meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.channel-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* CTA */
.cta-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(94, 234, 212, 0.16);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.18), transparent 55%),
    rgba(8, 22, 28, 0.85);
}

.cta-panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 550;
  letter-spacing: -0.02em;
}

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

.cta-form {
  display: grid;
  gap: 0.85rem;
}

.cta-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.cta-form input,
.cta-form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: var(--radius);
  background: rgba(4, 14, 18, 0.85);
  color: var(--text);
  font: inherit;
}

.cta-form textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.cta-form__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.cta-form__status {
  min-height: 1.4em;
  margin: 0;
  color: var(--teal-soft);
  font-size: 0.9rem;
}

.cta-form__status[data-tone="error"] {
  color: var(--danger);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid rgba(94, 234, 212, 0.1);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer strong {
  color: var(--text);
  font-weight: 600;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero__brand,
.hero__headline,
.hero__lede,
.hero__actions {
  animation: rise-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__headline {
  animation-delay: 90ms;
}

.hero__lede {
  animation-delay: 160ms;
}

.hero__actions {
  animation-delay: 230ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

  .reveal,
  .hero__brand,
  .hero__headline,
  .hero__lede,
  .hero__actions,
  .button {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .method-grid {
    grid-template-columns: 1fr;
  }

  .service-list li {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 0.75rem 1.25rem 1.1rem;
    background: rgba(7, 17, 22, 0.96);
    border-bottom: 1px solid rgba(94, 234, 212, 0.12);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.85rem;
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }
}
