:root {
  --bg: #f5f8f7;
  --surface: #ffffff;
  --surface-2: #eef5f2;
  --ink: #101c19;
  --muted: #5f706b;
  --line: #d9e6e1;
  --dark: #0a1512;
  --dark-2: #11221d;
  --lime: #9df247;
  --mint: #ccf6df;
  --teal: #0aa889;
  --blue: #2e63e6;
  --violet: #6d5dfc;
  --amber: #ffbf3d;
  --rose: #ff7a59;
  --shadow: 0 24px 70px rgba(22, 42, 36, 0.14);
  --radius: 10px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245, 248, 247, 0.92);
  border-bottom: 1px solid rgba(217, 230, 225, 0.92);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--lime), #5edfc9);
  color: var(--dark);
  font-size: 0.92rem;
}

.brand-text {
  font-size: 1.06rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #30423e;
  font-size: 0.92rem;
  font-weight: 750;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  background: #e7f0ec;
  color: var(--dark);
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(18, 35, 30, 0.12);
}

.btn-primary {
  background: var(--dark);
  color: white;
}

.btn-primary:hover {
  background: #1d2f2a;
}

.btn-secondary {
  background: var(--lime);
  color: var(--dark);
}

.btn-secondary:hover {
  background: #8be937;
}

.btn-ghost,
.btn-outline {
  background: var(--surface);
  color: var(--dark);
  border-color: var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #31534a;
  font-size: 0.82rem;
  font-weight: 900;
}

.hero {
  padding: 72px 0 82px;
  background:
    radial-gradient(circle at 83% 18%, rgba(157, 242, 71, 0.24), transparent 32%),
    linear-gradient(90deg, #eaf9e9 0%, #f7faf9 48%, #eef5f2 100%);
  background-size: 130% 130%, 100% 100%;
  border-bottom: 1px solid var(--line);
  animation: heroAmbient 14s ease-in-out infinite alternate;
}

.hero-grid,
.page-hero-grid,
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.92fr);
  gap: 56px;
  align-items: center;
}

.hero-grid > *,
.page-hero-grid > *,
.split-grid > *,
.grid-2 > *,
.grid-3 > *,
.grid-4 > * {
  min-width: 0;
}

.hero h1,
.page-hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.4rem, 5.2vw, 5.05rem);
  line-height: 0.98;
  letter-spacing: 0;
  max-width: 820px;
}

.hero p,
.page-hero p,
.section-lead {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.72;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.signal {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.signal:hover {
  transform: translateY(-3px);
  border-color: #bfe7d9;
  box-shadow: 0 16px 38px rgba(18, 35, 30, 0.1);
}

.signal strong {
  display: block;
  font-size: 1.34rem;
}

.signal span {
  color: var(--muted);
  font-size: 0.88rem;
}

.product-console {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #223b34;
  border-radius: var(--radius);
  background: var(--dark);
  color: white;
  box-shadow: var(--shadow);
  animation: consoleFloat 7s ease-in-out infinite;
}

.console-top {
  min-height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #223b34;
}

.dot-row {
  display: flex;
  gap: 6px;
}

.dot-row span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--rose);
}

.dot-row span:nth-child(2) {
  background: var(--amber);
}

.dot-row span:nth-child(3) {
  background: var(--lime);
}

.console-top small,
.panel-label,
.metric span {
  color: #a9c2ba;
  font-size: 0.78rem;
  font-weight: 850;
}

.console-body {
  min-width: 0;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.ai-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.flow-step {
  min-width: 0;
  min-height: 70px;
  padding: 12px;
  border: 1px solid #2a453e;
  border-radius: 8px;
  background: #11231f;
  animation: stepIn 720ms ease both;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.flow-step:nth-child(2) { animation-delay: 90ms; }
.flow-step:nth-child(3) { animation-delay: 180ms; }
.flow-step:nth-child(4) { animation-delay: 270ms; }
.flow-step:nth-child(5) { animation-delay: 360ms; }

.flow-step:hover {
  transform: translateY(-3px);
  border-color: #4f7d70;
  background: #18342e;
}

.flow-step strong {
  display: block;
  margin-top: 8px;
  font-size: 0.86rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric,
.dark-panel {
  min-width: 0;
  border: 1px solid #2a453e;
  border-radius: 8px;
  background: #11231f;
}

.metric {
  padding: 15px;
  animation: metricPulse 4.8s ease-in-out infinite;
}

.metric:nth-child(2) {
  animation-delay: 0.45s;
}

.metric:nth-child(3) {
  animation-delay: 0.9s;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.58rem;
}

.metric em {
  display: block;
  margin-top: 5px;
  color: var(--lime);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
}

.console-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.dark-panel {
  padding: 16px;
}

.bar-chart {
  height: 132px;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 7px;
  align-items: end;
  border-bottom: 1px solid #35524a;
}

.bar-chart i {
  display: block;
  min-height: 18px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--lime), #23c79e);
  transform-origin: bottom;
  animation: barGrow 920ms ease-out both, barBreathe 3.8s ease-in-out 1.1s infinite alternate;
}

.bar-chart i:nth-child(1) { height: 38%; }
.bar-chart i:nth-child(2) { height: 31%; }
.bar-chart i:nth-child(3) { height: 49%; }
.bar-chart i:nth-child(4) { height: 56%; }
.bar-chart i:nth-child(5) { height: 44%; }
.bar-chart i:nth-child(6) { height: 68%; }
.bar-chart i:nth-child(7) { height: 62%; }
.bar-chart i:nth-child(8) { height: 78%; }
.bar-chart i:nth-child(9) { height: 72%; }
.bar-chart i:nth-child(10) { height: 92%; }
.bar-chart i:nth-child(11) { height: 85%; }
.bar-chart i:nth-child(12) { height: 100%; }

.bar-chart i:nth-child(2) { animation-delay: 80ms, 1.18s; }
.bar-chart i:nth-child(3) { animation-delay: 130ms, 1.23s; }
.bar-chart i:nth-child(4) { animation-delay: 180ms, 1.28s; }
.bar-chart i:nth-child(5) { animation-delay: 230ms, 1.33s; }
.bar-chart i:nth-child(6) { animation-delay: 280ms, 1.38s; }
.bar-chart i:nth-child(7) { animation-delay: 330ms, 1.43s; }
.bar-chart i:nth-child(8) { animation-delay: 380ms, 1.48s; }
.bar-chart i:nth-child(9) { animation-delay: 430ms, 1.53s; }
.bar-chart i:nth-child(10) { animation-delay: 480ms, 1.58s; }
.bar-chart i:nth-child(11) { animation-delay: 530ms, 1.63s; }
.bar-chart i:nth-child(12) { animation-delay: 580ms, 1.68s; }

.recommendation {
  display: grid;
  gap: 10px;
}

.rec-card {
  padding: 13px;
  border-radius: 8px;
  background: #18342e;
  border: 1px solid #31584f;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rec-card:hover {
  transform: translateX(3px);
  border-color: #65a895;
}

.rec-card strong {
  display: block;
  font-size: 0.98rem;
}

.rec-card span {
  display: block;
  margin-top: 6px;
  color: #c5d8d1;
  font-size: 0.82rem;
  line-height: 1.45;
}

.section {
  padding: 86px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-header h2,
.split-grid h2 {
  margin: 16px 0 0;
  max-width: 780px;
  font-size: clamp(2rem, 3vw, 2.85rem);
  line-height: 1.08;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(18, 35, 30, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #bfe7d9;
  box-shadow: 0 22px 52px rgba(18, 35, 30, 0.1);
}

.icon-box {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 9px;
  background: var(--mint);
  color: var(--teal);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.17rem;
  line-height: 1.25;
}

.card p,
.card li {
  color: var(--muted);
  line-height: 1.65;
}

.card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.module-card {
  min-height: 100%;
}

.module-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f9fbfa;
  color: #31534a;
  font-size: 0.78rem;
  font-weight: 800;
}

.page-hero {
  padding: 72px 0 54px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.app-map {
  display: grid;
  gap: 12px;
}

.app-node {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.app-node span:first-child {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--lime);
  font-weight: 900;
}

.app-node strong {
  display: block;
}

.app-node small {
  color: var(--muted);
}

.app-node em {
  color: var(--teal);
  font-style: normal;
  font-weight: 900;
}

.data-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.data-row {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.data-row:last-child {
  border-bottom: 0;
}

.data-row strong {
  color: var(--dark);
}

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

.price-card {
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: #9fdc7b;
  box-shadow: 0 24px 70px rgba(81, 150, 64, 0.18);
}

.plan {
  color: var(--teal);
  font-weight: 950;
}

.price {
  margin: 18px 0 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price strong {
  font-size: 3rem;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-weight: 800;
}

.price-card .btn {
  margin-top: auto;
}

.pricing-toggle {
  width: fit-content;
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.pricing-toggle button {
  border: 0;
  padding: 9px 13px;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.pricing-toggle button.is-active {
  color: white;
  background: var(--dark);
}

.form-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(157, 242, 71, 0.2), transparent 34%),
    var(--surface);
  background-size: 130% 130%, 100% 100%;
  animation: heroAmbient 14s ease-in-out infinite alternate;
}

.auth-panel h2 {
  margin: 0 0 8px;
  font-size: 1.65rem;
}

.auth-panel > p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-submit {
  width: 100%;
  margin-top: 18px;
}

.auth-error {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #ffc4b3;
  border-radius: 8px;
  background: #fff1ec;
  color: #82311e;
  font-weight: 850;
  line-height: 1.5;
}

.auth-error.is-visible {
  display: block;
  animation: formNotice 260ms ease both;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.auth-links a {
  color: var(--teal);
  font-weight: 850;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #334943;
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: white;
  box-shadow: 0 0 0 4px rgba(10, 168, 137, 0.12);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-message {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #afe48d;
  border-radius: 8px;
  background: #effce8;
  color: #254b2b;
  font-weight: 850;
}

.form-message.is-visible {
  display: block;
  animation: formNotice 260ms ease both;
}

.form-message-error {
  border-color: #ffc4b3;
  background: #fff1ec;
  color: #82311e;
}

.cta-band {
  padding: 76px 0;
  color: white;
  background: linear-gradient(90deg, #0b1714, #153d33 58%, #22684e);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.cta-grid h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.08;
}

.cta-grid p {
  margin: 0;
  max-width: 720px;
  color: #cfe1dc;
  line-height: 1.65;
}

.site-footer {
  padding: 56px 0 28px;
  background: var(--dark);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 30px;
}

.site-footer p,
.site-footer a {
  color: #bad0c8;
  line-height: 1.72;
}

.site-footer h4 {
  margin: 0 0 12px;
}

.site-footer div:not(.footer-grid):not(.footer-bottom):not(.container):not(.brand):not(.brand-mark) > a {
  display: block;
  margin: 7px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #223b34;
  color: #93aaa1;
}

.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 640ms ease, transform 640ms ease;
}

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

@keyframes heroAmbient {
  from {
    background-position: 0% 42%, 0 0;
  }

  to {
    background-position: 100% 58%, 0 0;
  }
}

@keyframes consoleFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes metricPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(157, 242, 71, 0);
  }

  50% {
    box-shadow: 0 0 0 1px rgba(157, 242, 71, 0.22), 0 0 28px rgba(157, 242, 71, 0.08);
  }
}

@keyframes barGrow {
  from {
    transform: scaleY(0.18);
    opacity: 0.72;
  }

  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes barBreathe {
  from {
    transform: scaleY(0.92);
  }

  to {
    transform: scaleY(1.04);
  }
}

@keyframes formNotice {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .primary-nav {
    position: absolute;
    top: 77px;
    left: 24px;
    right: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  body.nav-open .primary-nav {
    display: flex;
  }

  .hero-grid,
  .page-hero-grid,
  .split-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body {
    overflow-x: hidden;
  }

  .container,
  .nav-shell {
    width: min(100% - 36px, var(--max));
  }

  .desktop-only,
  .nav-actions .btn-primary {
    display: none;
  }

  .hero {
    padding: 48px 0 54px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.15rem;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .hero p,
  .page-hero p,
  .section-lead {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .signal span,
  .card p,
  .card li,
  .rec-card span,
  .app-node small {
    overflow-wrap: anywhere;
  }

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

  .signal-row,
  .metrics-grid,
  .console-split,
  .grid-4,
  .grid-3,
  .grid-2,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ai-flow {
    grid-template-columns: 1fr;
  }

  .console-top small {
    max-width: 190px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .data-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .section-header {
    display: block;
  }

  .field.full {
    grid-column: auto;
  }

  .auth-links {
    display: grid;
  }
}
