:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #12201d;
  background: #f6f8f6;
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(246, 248, 246, 0) 360px),
    #f6f8f6;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent, #0f766e);
  outline-offset: 2px;
}

.site-shell {
  width: 100%;
  min-height: 100vh;
  padding: 24px;
}

.topbar,
.hero,
.section,
.final-cta {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 12px 0 28px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brandmark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #0d211e;
  color: #fff;
  font-weight: 850;
  box-shadow: 0 16px 40px rgba(11, 33, 30, 0.16);
}

.brand-lockup strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.eyebrow {
  display: block;
  margin: 0 0 7px;
  color: #63716d;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0;
}

.topnav,
.legal-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.topnav a,
.legal-nav a,
.nav-cta,
.button,
button,
.download {
  min-height: 44px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.topnav a,
.legal-nav a {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  color: #44524e;
}

.menu-toggle {
  display: none;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #cfdad6;
  background: rgba(255, 255, 255, 0.78);
  color: #10211f;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-cta,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfdad6;
  background: rgba(255, 255, 255, 0.78);
  color: #10211f;
}

.nav-cta {
  padding: 10px 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.74fr);
  gap: 24px;
  align-items: stretch;
  padding: 16px 0 44px;
}

.hero-copy,
.hero-mockup,
.section,
.final-cta {
  border: 1px solid rgba(197, 213, 207, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(18, 32, 29, 0.08);
}

.hero-copy {
  padding: clamp(30px, 5vw, 58px);
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: #0e1f1c;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.95;
}

.hero h2 {
  max-width: 760px;
  margin-top: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
}

.hero-lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: #41534e;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.65;
}

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

.button,
button,
.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 11px 18px;
  border: 1px solid transparent;
  cursor: pointer;
}

.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 36px rgba(15, 118, 110, 0.24);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.trust-row span {
  padding: 8px 10px;
  border: 1px solid #d9e4e0;
  border-radius: 8px;
  background: #f8faf9;
  color: #44524e;
  font-size: 0.92rem;
  font-weight: 750;
}

.hero-mockup {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.hero-mockup::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 118, 110, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(135deg, black, transparent 72%);
  pointer-events: none;
}

.mockup-head,
.mockup-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  position: relative;
}

.mockup-head span,
.mockup-footer span {
  color: #56645f;
  font-weight: 750;
}

.mockup-head strong {
  padding: 6px 9px;
  border-radius: 8px;
  background: #ecf6f3;
  color: #0f766e;
}

.mockup-text,
.mockup-controls {
  position: relative;
  padding: 16px;
  border: 1px solid #d9e4e0;
  border-radius: 8px;
  background: #fbfdfc;
  color: #273631;
  line-height: 1.55;
}

.mockup-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 750;
  color: #56645f;
}

.mockup-wave {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 84px;
  padding: 16px;
  border-radius: 8px;
  background: #10211f;
}

.mockup-wave span {
  display: block;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7dd3c7, #0f766e);
}

.mockup-wave span:nth-child(2) { height: 52px; }
.mockup-wave span:nth-child(3) { height: 34px; }
.mockup-wave span:nth-child(4) { height: 64px; }
.mockup-wave span:nth-child(5) { height: 42px; }
.mockup-wave span:nth-child(6) { height: 28px; }

.mockup-footer button {
  min-width: auto;
  border-color: #bcd7d0;
  background: #ecf6f3;
  color: #0d5e58;
}

.section {
  margin-bottom: 22px;
  padding: clamp(24px, 4vw, 40px);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.section-heading h2,
.final-cta h2 {
  max-width: 820px;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.1;
}

.problem-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: end;
}

.problem-section p,
.control-list p,
.demo-heading + .workspace,
.section-heading + p {
  color: #44534f;
  line-height: 1.65;
}

.use-grid,
.steps,
.audience-grid {
  display: grid;
  gap: 14px;
}

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

.use-card,
.step-card,
.audience-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dbe6e2;
  border-radius: 8px;
  background: #fbfdfc;
}

.use-card span {
  display: block;
  width: 34px;
  height: 6px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--accent);
}

.use-card h3,
.step-card h3,
.audience-grid h3 {
  font-size: 1.08rem;
}

.use-card p,
.step-card p,
.audience-grid p,
.preview-note {
  margin: 10px 0 0;
  color: #5b6965;
  line-height: 1.55;
}

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

.step-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: #0f766e;
  font-weight: 850;
}

.demo-section {
  background: #eef5f2;
}

.demo-heading {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  padding: 10px 12px;
  border: 1px solid #d8dfdc;
  border-radius: 8px;
  background: #fff;
  color: #51615c;
  text-align: center;
  font-weight: 750;
}

.status-pill[data-tone="success"] {
  border-color: #9bd2ba;
  color: #0f6b45;
}

.status-pill[data-tone="warning"] {
  border-color: #e9c46a;
  color: #8a5a00;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  width: 100%;
  min-width: 0;
}

.composer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

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

.field,
.panel,
.preview {
  min-width: 0;
  padding: 18px;
  border: 1px solid #d0ded9;
  border-radius: 8px;
  background: #fff;
}

label {
  display: block;
  margin: 14px 0 7px;
  color: #33413d;
  font-weight: 750;
}

textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid #c7d5d0;
  border-radius: 8px;
  background: #fbfdfc;
  color: #17211f;
}

textarea {
  min-height: 260px;
  padding: 14px;
  resize: vertical;
  line-height: 1.55;
}

select {
  min-height: 42px;
  padding: 8px 10px;
}

input[type="range"] {
  width: 100%;
  height: 44px;
  accent-color: var(--accent);
  cursor: pointer;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.meta,
.actions,
.readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meta {
  margin-top: 10px;
  color: #62706b;
  font-size: 0.92rem;
}

.actions {
  flex-wrap: wrap;
  padding: 4px 0;
}

button:disabled {
  opacity: 0.55;
  cursor: progress;
}

.preview {
  align-self: start;
  position: sticky;
  top: 18px;
  overflow: hidden;
}

.readout {
  margin-top: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf0ee;
}

.readout span {
  color: #65736f;
}

.readout strong {
  text-align: right;
  overflow-wrap: anywhere;
}

audio {
  width: 100%;
  max-width: 100%;
  margin: 22px 0 14px;
}

.download {
  width: 100%;
  background: #10211f;
  color: #fff;
}

.download.disabled {
  pointer-events: none;
  opacity: 0.45;
}

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

.control-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.9fr);
  gap: 26px;
  align-items: start;
  background: #10211f;
}

.control-section h2,
.control-section .eyebrow {
  color: #fff;
}

.control-list p {
  margin: 0;
  color: #d8e7e2;
}

.control-list {
  display: grid;
  gap: 14px;
}

.final-cta {
  margin-bottom: 12px;
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(255, 255, 255, 0.92)),
    #fff;
}

.footer {
  margin-bottom: 12px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #62706b;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: #44524e;
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--accent);
}

.aiops-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.aiops-logo {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #0d211e;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
}

.aiops-credit strong {
  color: #0e1f1c;
}

.legal-page h3 {
  margin-top: 26px;
  font-size: 1.1rem;
}

.legal-page p {
  margin: 10px 0 0;
  color: #44534f;
  line-height: 1.65;
}

.legal-page .legal-note {
  margin-top: 30px;
  padding: 14px;
  border: 1px solid #d9e4e0;
  border-radius: 8px;
  background: #fbfdfc;
  color: #62706b;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .topbar,
  .hero,
  .problem-section,
  .control-section,
  .workspace,
  .demo-heading {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: relative;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px;
    right: 0;
  }

  .topnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid rgba(197, 213, 207, 0.9);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(18, 32, 29, 0.16);
  }

  .topnav.open {
    display: flex;
  }

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

  .preview {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding: 14px;
  }

  .topbar,
  .use-grid,
  .steps,
  .audience-grid,
  .composer {
    grid-template-columns: 1fr;
  }

  .brandmark {
    width: 44px;
    height: 44px;
  }

  h1 {
    font-size: 3rem;
    line-height: 1.15;
  }

  .hero-copy,
  .hero-mockup,
  .section,
  .final-cta {
    padding: 18px;
  }

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

  .button,
  button,
  .nav-cta,
  .status-pill {
    width: 100%;
  }

  .span-2 {
    grid-column: auto;
  }

  .mockup-controls {
    grid-template-columns: 1fr;
  }

  .meta,
  .readout {
    align-items: flex-start;
  }

  .readout {
    flex-direction: column;
  }

  .readout strong {
    text-align: left;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
