:root {
  --bg: #03050c;
  --bg-elevated: #0a1220;
  --ink: #eef2f6;
  --muted: #8b9aab;
  --accent: #10b080;
  --accent-soft: rgba(16, 176, 128, 0.14);
  --accent-glow: rgba(16, 176, 128, 0.35);
  --line: rgba(238, 242, 246, 0.08);
  --warn: #e8a45a;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(120% 80% at 100% -10%, #0d1f2e 0%, transparent 55%),
    radial-gradient(90% 70% at -10% 110%, #071a18 0%, transparent 50%),
    var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

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

.atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: drift 18s var(--ease) infinite alternate;
}

.orb-a {
  width: 42vw;
  height: 42vw;
  top: -12%;
  right: -8%;
  background: radial-gradient(circle, #123d4a 0%, transparent 70%);
}

.orb-b {
  width: 36vw;
  height: 36vw;
  bottom: -10%;
  left: -10%;
  background: radial-gradient(circle, #0a3a30 0%, transparent 70%);
  animation-delay: -6s;
}

.grid-fade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 176, 128, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 176, 128, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.35;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-3%, 4%, 0) scale(1.08);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1.25rem, 4vw, 3.5rem);
  backdrop-filter: blur(16px);
  background: rgba(3, 5, 12, 0.72);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #03140f;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  box-shadow: none;
  background: var(--accent-soft);
}

.hero {
  min-height: calc(100vh - 4.5rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3.5rem);
}

.brand-mark {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.2vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

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

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.hero-visual {
  position: relative;
}

.cockpit {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(16, 176, 128, 0.08), transparent 40%),
    linear-gradient(180deg, #0c1524, #070d16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transform: translateY(12px);
  opacity: 0;
  animation: rise-in 1s var(--ease) 0.2s forwards;
}

.cockpit-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.cockpit-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a4658;
}

.cockpit-bar span:first-child {
  background: #ff5f57;
}

.cockpit-bar span:nth-child(2) {
  background: #febc2e;
}

.cockpit-bar span:nth-child(3) {
  background: #28c840;
}

.cockpit-bar p {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
}

.cockpit-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  padding: 1.15rem;
}

.metric {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(3, 5, 12, 0.45);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.metric em {
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
  font-size: 0.75rem;
}

.metric .up {
  color: var(--warn);
}

.metric .warn {
  color: var(--warn);
}

.metric .ok {
  color: var(--accent);
}

.stream {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(16, 176, 128, 0.04);
}

.stream-line {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  opacity: 0.55;
  transform-origin: left center;
  animation: stream 2.8s ease-in-out infinite;
}

.stream-line:nth-child(2) {
  width: 78%;
  animation-delay: 0.35s;
  opacity: 0.35;
}

.stream-line:nth-child(3) {
  width: 56%;
  animation-delay: 0.7s;
  opacity: 0.22;
}

.agent-chip {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 1.8s ease-out infinite;
}

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

@keyframes stream {
  0%,
  100% {
    transform: scaleX(0.92);
  }
  50% {
    transform: scaleX(1);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--accent-glow);
  }
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.section {
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.eyebrow::before {
  content: "";
  width: 3px;
  height: 1.1em;
  background: var(--accent);
  border-radius: 2px;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-copy {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 52ch;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

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

.problem-grid article {
  padding-top: 1.25rem;
  border-top: 2px solid var(--accent);
}

.problem-grid h3,
.product-item h3,
.founders h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.problem-grid p,
.product-item p,
.founders p {
  margin: 0;
  color: var(--muted);
}

.product-list {
  display: grid;
  gap: 0;
}

.product-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.product-item:last-child {
  border-bottom: 1px solid var(--line);
}

.product-item .index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
}

.compare {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(10, 18, 32, 0.55);
}

.compare-row {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 1.2fr;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
}

.compare-row:first-child {
  border-top: 0;
}

.compare-head {
  background: var(--accent);
  color: #03140f;
  font-weight: 700;
  font-family: var(--font-display);
}

.compare-row .accent {
  color: var(--accent);
  font-weight: 600;
}

.compare-row:not(.compare-head) > div:first-child {
  color: var(--muted);
  font-weight: 500;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.pricing-tier {
  padding: 1.75rem 0 0;
  border-top: 2px solid var(--line);
}

.pricing-tier.featured {
  border-top-color: var(--accent);
}

.tier-label {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-tier h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.pricing-tier p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}

.pillars li {
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--line);
}

.pillars strong {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.pillars span {
  color: var(--muted);
}

.team-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.team .section-head {
  margin-bottom: 0;
}

.founders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.founders a {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.founders a:hover {
  text-decoration: underline;
}

.founder-photos {
  position: relative;
  min-height: 420px;
}

.photo {
  position: absolute;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.photo-a {
  width: min(68%, 300px);
  aspect-ratio: 4 / 5;
  top: 0;
  left: 0;
  z-index: 1;
  object-position: center 18%;
}

.photo-b {
  width: min(58%, 250px);
  aspect-ratio: 1;
  right: 0;
  bottom: 0;
  z-index: 2;
  object-position: center 20%;
}

.contact {
  text-align: left;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-brand {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.contact h2 {
  margin: 0.2rem 0 0;
  color: var(--accent);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.contact .lede {
  max-width: none;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.locale {
  margin-top: 2rem;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem clamp(1.25rem, 4vw, 3.5rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

@media (max-width: 1100px) {
  .problem-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
  }

  .hero h1 {
    max-width: 20ch;
  }

  .cockpit-body {
    grid-template-columns: 1fr;
  }

  .problem-grid,
  .problem-grid-4,
  .pillars,
  .pricing-grid,
  .founders,
  .team-layout {
    grid-template-columns: 1fr;
  }

  .founder-photos {
    min-height: 340px;
    max-width: 360px;
  }

  .compare-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .compare-head {
    display: none;
  }

  .compare-row:not(.compare-head) > div:first-child {
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
}

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

  .orb,
  .stream-line,
  .pulse,
  .cockpit {
    animation: none;
  }

  .cockpit {
    opacity: 1;
    transform: none;
  }

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