/* Shared variables and base styles */
:root {
  --bg-dark: #050814;
  --bg-darker: #02030a;
  --bg-card: rgba(10, 14, 32, 0.9);
  --accent: #ff6a3d;
  --accent-soft: rgba(255, 106, 61, 0.25);
  --accent-alt: #4fd1c5;
  --text-main: #f7fafc;
  --text-muted: #a0aec0;
  --border-soft: rgba(255, 255, 255, 0.06);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.5);
  --max-width: 1120px;
  --transition-fast: 180ms ease-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", sans-serif;
  background: radial-gradient(circle at top, #151a3a 0, #050814 45%, #000 100%);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

main {
  position: relative;
  overflow: hidden;
}

.shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top nav */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 20, 0.9),
    rgba(5, 8, 20, 0.4),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 35% 65% 45% 55%;
  background: radial-gradient(circle at 30% 20%, #ffffff, #ffb199, #ff6a3d);
  box-shadow:
    0 0 24px rgba(255, 106, 61, 0.8),
    0 0 60px rgba(79, 209, 197, 0.6);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: inherit;
  border: 1px solid rgba(0, 0, 0, 0.24);
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.5), transparent);
  mix-blend-mode: soft-light;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-muted);
  transition: color var(--transition-fast), opacity var(--transition-fast);
  opacity: 0.9;
}

.nav-links a:hover {
  color: var(--text-main);
  opacity: 1;
}

.nav-cta {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), #050814);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.nav-cta span {
  font-size: 1.1rem;
}

/* Hero */

.hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at top left, rgba(79, 209, 197, 0.3), transparent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.hero-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle, #4fd1c5, #00bfb3);
  box-shadow: 0 0 12px rgba(79, 209, 197, 0.9);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  70% { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

h1 {
  font-size: clamp(2.4rem, 3.4vw + 1rem, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

h1 span.highlight {
  background: linear-gradient(120deg, #ffb199, #ff6a3d, #ffd86f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(255, 106, 61, 0.5);
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 1.6rem;
}

.hero-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  font-size: 0.87rem;
  color: var(--text-muted);
  margin-bottom: 2.1rem;
}

.hero-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 8, 20, 0.7);
}

.hero-list span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #ffb199;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.btn-primary,
.btn-ghost {
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast),
    opacity var(--transition-fast);
}

.btn-primary {
  background: radial-gradient(circle at top left, #ffb199, #ff6a3d);
  color: #12060a;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.7),
    0 0 26px rgba(255, 106, 61, 0.7);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.85),
    0 0 34px rgba(255, 106, 61, 0.9);
}

.btn-ghost {
  background: rgba(10, 14, 32, 0.9);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 209, 197, 0.9);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(79, 209, 197, 0.8);
}

.btn-ghost span {
  font-size: 1.2rem;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* Hero visual */

.hero-visual {
  position: relative;
  min-height: 260px;
}

.hero-card {
  position: relative;
  background: radial-gradient(circle at top, #151a3a, #050814 60%, #02030a);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.4rem 1.4rem 1.8rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  isolation: isolate;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.2rem;
  font-size: 0.86rem;
}

.hero-pill {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  background: rgba(5, 8, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #4fd1c5;
  box-shadow: 0 0 10px rgba(79, 209, 197, 0.9);
}

.hero-card-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.hero-card-title strong {
  color: var(--text-main);
}

.hero-card-main {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  align-items: center;
}

.hero-card-list {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: grid;
  gap: 0.35rem;
}

.hero-card-list span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-card-list span::before {
  content: "•";
  color: #ffb199;
}

/* Neuro starfield */

.neuro-background {
  position: absolute;
  inset: -20%;
  z-index: -1;
  opacity: 0.9;
  filter: blur(0.2px);
}

.neuro-node {
  animation: node-float 11s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes node-float {
  0% { transform: translateY(0px); opacity: 0.55; }
  100% { transform: translateY(-14px); opacity: 1; }
}

.neuro-line {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: line-travel 7s ease-in-out infinite;
}

@keyframes line-travel {
  0% { stroke-dashoffset: 80; opacity: 0; }
  20% { opacity: 0.8; }
  80% { stroke-dashoffset: 0; opacity: 0.9; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Hot loop diagram */

.hero-diagram-wrap {
  position: relative;
}

.hotloop-diagram {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: block;
}

.loop-path {
  stroke-dasharray: 628;
  stroke-dashoffset: 0;
  animation: loop-spin 9s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes loop-spin {
  to { stroke-dashoffset: -628; }
}

.loop-dot {
  animation: loop-orbit 9s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes loop-orbit {
  from { transform: rotate(0deg) translateX(0); }
  to { transform: rotate(360deg) translateX(0); }
}

.loop-label {
  font-size: 9px;
  fill: #cbd5f5;
}

/* Sections */

section {
  padding: 3.5rem 0;
  position: relative;
}

section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.018), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 2.4rem;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

h2 {
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Cold vs hot loop */

.loop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  align-items: stretch;
}

.loop-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  position: relative;
  overflow: hidden;
}

.loop-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), transparent);
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.loop-card:hover::before {
  opacity: 1;
}

.loop-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.loop-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.loop-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.loop-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.loop-pill span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.loop-pill.cold span {
  background: #718096;
}

.loop-pill.hot span {
  background: #ff6a3d;
  box-shadow: 0 0 16px rgba(255, 106, 61, 0.9);
}

.loop-card.cold {
  border-color: rgba(148, 163, 184, 0.4);
  opacity: 0.85;
}

.loop-card.hot {
  border-color: var(--accent-soft);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.9),
    0 0 48px rgba(255, 106, 61, 0.4);
}

/* 1–2–3 steps */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.step-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem 1.3rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.step-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.step-card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.step-orbit {
  position: absolute;
  inset: -40%;
  border-radius: 999px;
  border: 1px dashed rgba(79, 209, 197, 0.18);
  opacity: 0.5;
  animation: step-spin 22s linear infinite;
  pointer-events: none;
}

@keyframes step-spin {
  to { transform: rotate(360deg); }
}

/* What good looks like loop */

.good-loop-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.good-loop-diagram-wrap {
  display: flex;
  justify-content: center;
}

.good-loop-diagram {
  max-width: 320px;
  width: 100%;
}

.good-loop-label {
  font-size: 9px;
  fill: #e2e8f0;
}

.good-loop-label-centre {
  font-size: 10px;
  fill: #e2e8f0;
}

.good-loop-orbit {
  animation: good-loop-orbit-spin 14s linear infinite;
  transform-origin: 130px 110px;
}

@keyframes good-loop-orbit-spin {
  to { transform: rotate(360deg); }
}

.good-loop-copy h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.good-loop-copy p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Services & loops */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: flex-start;
}

.bullet-list {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: grid;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.bullet-list li::marker {
  color: #ffb199;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
}

.pill {
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 8, 20, 0.9);
  color: var(--text-muted);
}

/* Contact */

.contact-card {
  background: radial-gradient(circle at top, #151a3a, #050814 60%, #02030a);
  border-radius: 24px;
  padding: 1.8rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.contact-fields {
  display: grid;
  gap: 0.8rem;
}

label {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.1rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 8, 20, 0.95);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(79, 209, 197, 0.9);
  box-shadow: 0 0 0 1px rgba(79, 209, 197, 0.5);
  background: rgba(5, 8, 20, 1);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.contact-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

footer span {
  opacity: 0.9;
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 450ms ease-out, transform 450ms ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 4.4rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-card {
    margin-bottom: 1.2rem;
  }

  .two-col,
  .contact-card,
  .steps-grid,
  .loop-grid,
  .good-loop-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-links {
    gap: 0.9rem;
    font-size: 0.8rem;
  }

  .nav-links .hide-mobile {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-card {
    padding: 1.1rem 1.1rem 1.3rem;
  }

  section {
    padding: 3rem 0;
  }
}
