@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color: var(--text);
  background: var(--bg);
  color-scheme: light;
  --primary: #153f44;
  --accent: #2ec5ce;
  --highlight: #64e7f5;
  --bg: #f8fafb;
  --surface: #ffffff;
  --surface-soft: #eaf6f7;
  --surface-muted: #eef6f7;
  --text: #13242d;
  --muted: #546770;
  --line: #d7e6e8;
  --line-strong: #b7d7da;
  --on-primary: #ffffff;
  --warning-text: #6a441f;
  --warning-bg: #fff4e6;
  --warning-line: #edcfaa;
  --shadow: 0 14px 34px rgba(19, 36, 45, 0.08);
  --shadow-strong: 0 18px 42px rgba(19, 36, 45, 0.12);
  --page-x: clamp(18px, 7vw, 96px);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #071b22;
  --surface: #0d2730;
  --surface-soft: #102f38;
  --surface-muted: #12333d;
  --text: #eefbfc;
  --muted: #a9c5ca;
  --line: #21464f;
  --line-strong: #2e6972;
  --on-primary: #071b22;
  --warning-text: #ffd9a8;
  --warning-bg: #2b2219;
  --warning-line: #7b5733;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  --shadow-strong: 0 18px 42px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px var(--page-x);
  background: color-mix(in srgb, var(--bg), transparent 6%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.site-header nav,
.hero-actions,
.featured-actions,
.tag-row,
.feature-list {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-weight: 800;
}

.text-logo {
  display: inline-flex;
  align-items: baseline;
  color: var(--primary);
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

:root[data-theme="dark"] .text-logo {
  color: var(--text);
}

.text-logo-accent {
  color: var(--accent);
}

.header-controls {
  display: inline-flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.theme-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--primary);
  background: var(--surface-muted);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-weight: 700;
}

:root[data-theme="dark"] .theme-toggle {
  color: var(--text);
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset -6px -2px 0 var(--accent);
}

:root[data-theme="dark"] .theme-toggle-icon {
  box-shadow: inset 6px -2px 0 var(--bg);
}

.site-header nav {
  justify-content: center;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-header nav a,
.header-action,
.primary-action,
.secondary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
}

.site-header nav a {
  padding: 8px 6px;
}

.header-action,
.secondary-action {
  padding: 10px 16px;
  color: var(--primary);
  background: var(--surface-muted);
  border: 1px solid var(--line-strong);
}

:root[data-theme="dark"] .header-action,
:root[data-theme="dark"] .secondary-action {
  color: var(--text);
}

.primary-action {
  padding: 12px 18px;
  color: #071b22;
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--accent), transparent 70%);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--primary);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 35, 41, 0.92) 0%, rgba(16, 35, 41, 0.76) 45%, rgba(16, 35, 41, 0.2) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 36px));
  margin-left: var(--page-x);
  padding: 56px 0;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 10px;
  color: color-mix(in srgb, var(--primary), #b8793b 52%);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:root[data-theme="dark"] .eyebrow {
  color: var(--highlight);
}

.hero .eyebrow,
.pilot .eyebrow {
  color: var(--highlight);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 6vw, 5.35rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.85rem, 4vw, 3.15rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
}

.hero-copy p:not(.eyebrow),
.contact-hero p {
  max-width: 650px;
  color: #dce9e7;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.section {
  padding: clamp(64px, 9vw, 116px) var(--page-x);
}

.split,
.featured-app,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.pain-list {
  display: grid;
  gap: 12px;
}

.pain-list p,
.contact-panel li {
  margin: 0;
  padding: 16px 0;
  color: var(--text);
  border-top: 1px solid var(--line);
  font-size: 1.02rem;
  line-height: 1.6;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.featured-app {
  background: var(--surface);
}

.featured-copy p,
.feature-panel p,
.tool-grid p,
.contact-panel p,
.pilot p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.feature-list {
  flex-wrap: wrap;
  margin-top: 22px;
}

.featured-actions {
  flex-wrap: wrap;
  margin-top: 24px;
}

.feature-list span,
.tag-row span,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 700;
}

.feature-list span,
.tag-row span {
  color: var(--text);
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.feature-panel,
.tool-grid article,
.contact-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-panel {
  border-top: 5px solid var(--accent);
}

.tools-section {
  background: var(--surface-soft);
}

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

.guide-steps {
  display: grid;
  gap: 16px;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.docs-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.docs-nav strong {
  margin-bottom: 6px;
}

.docs-nav a {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 7px 8px;
  color: var(--accent);
  border-radius: 8px;
  font-weight: 700;
}

.docs-nav a:hover {
  background: var(--surface-muted);
}

.docs-content {
  display: grid;
  gap: 18px;
}

.docs-section {
  display: grid;
  gap: 12px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  scroll-margin-top: 96px;
}

.docs-section h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.docs-section ol {
  margin: 0;
  padding-left: 24px;
  color: var(--text);
  line-height: 1.7;
}

.docs-section li + li {
  margin-top: 8px;
}

.docs-callout {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 18px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.docs-callout p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.guide-steps article {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.guide-steps p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

pre {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  color: #e7f7f4;
  background: var(--primary);
  border-radius: 8px;
  white-space: pre-wrap;
}

code {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.tool-grid article {
  position: relative;
  min-height: 310px;
}

.tool-card-link {
  position: absolute;
  inset: 0;
  border-radius: 8px;
}

.status {
  width: fit-content;
  color: var(--warning-text);
  background: var(--warning-bg);
  border: 1px solid var(--warning-line);
}

.audience {
  color: var(--accent) !important;
  font-weight: 700;
}

.tag-row {
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  margin-top: auto;
}

.download-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-row a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  color: #071b22;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.download-row small,
.download-grid small {
  color: color-mix(in srgb, currentColor, transparent 20%);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.tool-grid article:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-strong);
}

.pilot {
  display: grid;
  justify-items: start;
  background: var(--primary);
  color: #ffffff;
}

.pilot p {
  max-width: 760px;
  margin-bottom: 24px;
  color: #d4e7e6;
  font-size: 1.1rem;
}

.contact-hero {
  min-height: 520px;
  display: grid;
  align-content: center;
  padding: clamp(80px, 13vw, 150px) var(--page-x);
  color: #ffffff;
  background: linear-gradient(110deg, var(--primary) 0%, #1a6d73 58%, var(--accent) 100%);
}

.tool-hero {
  min-height: min(720px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(56px, 8vw, 104px) var(--page-x);
  color: #ffffff;
  background: var(--primary);
}

.tool-hero p:not(.eyebrow) {
  max-width: 620px;
  color: #d7e8e7;
  font-size: 1.14rem;
  line-height: 1.65;
}

.tool-hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.download-section {
  background: var(--surface);
}

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

.download-grid a {
  min-height: 128px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  color: #071b22;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 16px 36px color-mix(in srgb, var(--accent), transparent 70%);
}

.download-grid strong {
  font-size: 1.15rem;
}

.download-grid span {
  color: color-mix(in srgb, #071b22, var(--primary) 30%);
}

.download-note {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact-hero h1 {
  max-width: 850px;
}

.contact-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-form-panel {
  gap: 18px;
}

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

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .wide,
.contact-form button {
  grid-column: 1 / -1;
}

.contact-form button {
  border: 0;
}

.form-note {
  font-size: 0.92rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px var(--page-x);
  color: var(--muted);
  background: var(--bg);
  border-top: 1px solid var(--line);
}

footer span:first-child {
  color: var(--text);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(16, 35, 41, 0.94), rgba(16, 35, 41, 0.62));
  }

  .split,
  .featured-app,
  .contact-layout,
  .tool-hero,
  .download-grid,
  .tool-grid,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-nav {
    position: static;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --page-x: 18px;
  }

  .site-header {
    min-height: 64px;
    gap: 12px;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-copy {
    margin: 0;
    padding: 40px var(--page-x);
  }

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

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .tool-grid article {
    min-height: auto;
  }

  footer {
    flex-direction: column;
  }
}
