:root {
  --bg: #05070c;
  --bg-2: #0a1018;
  --card: rgba(14, 20, 32, 0.72);
  --line: rgba(80, 220, 255, 0.16);
  --text: #e9f2ff;
  --muted: #8ea0b8;
  --cyan: #3ee8ff;
  --coral: #e25a45;
  --gold: #f2c27a;
  --radius: 18px;
  --nav-h: 68px;
  --max: 1160px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

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

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

.noise,
.orb {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.noise {
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orb-a {
  background: radial-gradient(circle at 15% 10%, rgba(62, 232, 255, 0.16), transparent 32%);
}

.orb-b {
  background: radial-gradient(circle at 90% 80%, rgba(226, 90, 69, 0.14), transparent 34%);
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.nav,
main,
.footer,
.drawer {
  position: relative;
  z-index: 1;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--nav-h);
  padding: calc(10px + env(safe-area-inset-top)) 20px 10px;
  background: rgba(5, 7, 12, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(226, 90, 69, 0.45);
}

.brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.brand small,
.brand p {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
}

.btn-nav,
.btn-primary {
  background: linear-gradient(135deg, var(--coral), #ff8a6b);
  color: #fff;
  box-shadow: 0 0 24px rgba(226, 90, 69, 0.28);
}

.btn-ghost {
  border-color: rgba(62, 232, 255, 0.4);
  color: var(--cyan);
  background: rgba(62, 232, 255, 0.06);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.drawer {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 auto;
  z-index: 19;
  padding: 16px 20px 24px;
  background: rgba(5, 7, 12, 0.96);
  border-bottom: 1px solid var(--line);
}

.drawer.open {
  display: grid;
  gap: 6px;
}

.drawer a {
  padding: 12px 4px;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 36px 0 28px;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) brightness(0.55);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(62, 232, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 232, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 90%);
}

.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.86) 0%, rgba(5, 7, 12, 0.35) 58%, rgba(5, 7, 12, 0.7) 100%),
    linear-gradient(180deg, transparent 40%, #05070c 96%);
}

.hero-inner {
  position: relative;
  padding-bottom: 12px;
}

.chip,
.kicker {
  display: inline-block;
  color: var(--cyan);
  letter-spacing: 0.16em;
  font-size: 12px;
  text-transform: uppercase;
}

.chip {
  padding: 6px 12px;
  border: 1px solid rgba(62, 232, 255, 0.35);
  border-radius: 999px;
  background: rgba(5, 7, 12, 0.45);
  margin-bottom: 18px;
}

h1,
h2,
h3 {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #fff 10%, var(--cyan) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(26px, 5vw, 42px);
  margin: 8px 0 12px;
}

.lead,
.section-head p,
.glass p,
.agent-card p,
.biz-card p,
.pain-card p {
  color: var(--muted);
}

.lead {
  max-width: 680px;
  margin: 18px 0 26px;
  font-size: 16px;
}

.hero-cta,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  list-style: none;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.stats b {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(22px, 4vw, 32px);
  color: #fff;
}

.stats span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 88px 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(10, 16, 24, 0.7), transparent);
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.split,
.loop {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}

.media-card,
.agent-card,
.industry-card,
.loop {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}

.media-card img,
.agent-card img,
.industry-card img,
.loop img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.media-card figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 13px;
}

.stack {
  display: grid;
  gap: 14px;
}

.glass,
.biz-card,
.pain-card,
.eco-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(12px);
}

.glass h3,
.biz-card h3,
.pain-card h3,
.agent-card h3 {
  margin-bottom: 8px;
}

.agent-grid,
.biz-grid,
.industry-grid,
.eco-grid,
.pain-grid {
  display: grid;
  gap: 16px;
}

.agent-grid {
  grid-template-columns: repeat(3, 1fr);
}

.agent-card img {
  height: 180px;
}

.agent-card > div,
.industry-card h3 {
  padding: 16px 18px 20px;
}

.agent-card span {
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.agent-card.featured {
  border-color: rgba(226, 90, 69, 0.55);
  box-shadow: 0 0 0 1px rgba(226, 90, 69, 0.18), 0 16px 40px rgba(226, 90, 69, 0.12);
}

.biz-grid,
.eco-grid {
  grid-template-columns: repeat(4, 1fr);
}

.biz-card b {
  font-family: "Orbitron", sans-serif;
  color: var(--coral);
}

.loop {
  margin-top: 22px;
  grid-template-columns: 1fr 1fr;
}

.loop img {
  height: 100%;
  min-height: 260px;
}

.loop > div {
  padding: 28px;
}

.loop ol {
  margin: 16px 0 0 18px;
  color: var(--muted);
}

.pain-grid {
  grid-template-columns: repeat(6, 1fr);
}

.pain-card {
  grid-column: span 2;
}

.pain-card.wide {
  grid-column: span 2;
}

.industry-grid {
  grid-template-columns: repeat(3, 1fr);
}

.industry-card {
  position: relative;
}

.industry-card img {
  height: 220px;
  filter: brightness(0.72);
}

.industry-card h3 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  background: linear-gradient(transparent, rgba(5, 7, 12, 0.92));
}

.eco-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.mission {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(62, 232, 255, 0.08), rgba(14, 20, 32, 0.7)),
    url("../images/loop-globe.jpg") center/cover;
}

.mission h3,
.mission p {
  max-width: 36em;
}

.mission p:last-child {
  color: #d5e4f5;
}

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fact-grid b {
  font-family: "Orbitron", sans-serif;
  color: var(--cyan);
  font-size: 22px;
}

.consult-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 8px 0 20px;
}

.consult-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.consult-form input,
.consult-form select,
.consult-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 7, 12, 0.55);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.consult-form textarea {
  min-height: 88px;
  resize: vertical;
}

.consult-form .full,
.consult-form button.full {
  grid-column: 1 / -1;
}

.form-ok {
  grid-column: 1 / -1;
  color: var(--cyan);
  font-size: 14px;
}

.contact {
  position: relative;
  padding: 100px 0;
}

.contact-bg {
  position: absolute;
  inset: 0;
}

.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.28) saturate(1.2);
}

.contact-box {
  position: relative;
  max-width: 860px;
  padding: 36px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(16px);
}

.fine {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .nav-links,
  .btn-nav {
    display: none;
  }

  .menu-btn {
    display: flex;
    margin-left: auto;
  }

  .stats,
  .split,
  .loop,
  .about-grid,
  .agent-grid,
  .biz-grid,
  .industry-grid,
  .eco-grid,
  .pain-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pain-card,
  .pain-card.wide {
    grid-column: span 2;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max), calc(100% - 24px));
  }

  .hero {
    padding: 24px 0 20px;
  }

  h1 {
    font-size: 34px;
  }

  .split,
  .loop,
  .about-grid,
  .fact-grid,
  .consult-form,
  .agent-grid,
  .biz-grid,
  .industry-grid,
  .eco-grid,
  .pain-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }

  .pain-card,
  .pain-card.wide {
    grid-column: auto;
  }

  .hero-cta .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .media-card img,
  .loop img,
  .agent-card img,
  .industry-card img {
    height: 200px;
  }

  .contact-box {
    padding: 24px 18px;
  }
}

.legal {
  padding: 40px 0 80px;
}

.legal h1 {
  font-size: clamp(32px, 6vw, 48px);
  margin: 10px 0 8px;
}

.legal-meta,
.legal-doc {
  color: var(--muted);
}

.legal-meta {
  margin-bottom: 28px;
  font-size: 14px;
}

.legal-doc {
  max-width: 780px;
}

.legal-doc h2 {
  font-size: 20px;
  color: var(--text);
  margin: 28px 0 10px;
}

.legal-doc p,
.legal-doc li {
  margin-bottom: 10px;
}

.legal-doc ul {
  padding-left: 1.2em;
}

.legal-doc a {
  color: var(--cyan);
}

.footer-inner a {
  color: var(--cyan);
}

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

  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
