:root {
  --bg: #eef3ea;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --text: #102019;
  --muted: #54645c;
  --line: rgba(16, 32, 25, 0.09);
  --accent: #2d6a4f;
  --accent-strong: #193d2d;
  --accent-soft: #cadcca;
  --navy: #0b0e1d;
  --navy-soft: #11162b;
  --shadow: 0 20px 70px rgba(20, 35, 29, 0.11);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(80, 135, 103, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(219, 231, 218, 0.75), transparent 22%),
    linear-gradient(180deg, #f2f7ef 0%, #e9f0e6 100%);
  font-family: "Avenir Next", "SF Pro Display", "Segoe UI", sans-serif;
}

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

button {
  font: inherit;
}

code {
  font-family: "SF Mono", "IBM Plex Mono", "Menlo", monospace;
  font-size: 0.95em;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-xl) + 8px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 250, 245, 0.78)),
    linear-gradient(135deg, rgba(45, 106, 79, 0.07), rgba(255, 255, 255, 0));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar,
.hero-grid,
.metrics,
.features,
.trust,
.flow,
.footer {
  margin-left: auto;
  margin-right: auto;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 18px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
}

.brand-mark img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}

.brand-copy strong {
  font-size: 2rem;
  letter-spacing: 0.12em;
}

.brand-copy span,
.topbar-links a,
.hero-text,
.hero-points,
.metrics article span,
.feature-card p,
.trust-card p,
.flow-step p,
.footer span {
  color: var(--muted);
}

.brand-copy span {
  font-family: "SF Mono", "IBM Plex Mono", "Menlo", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
}

.topbar-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.topbar-links a {
  padding-top: 10px;
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgba(16, 32, 25, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.lang-button {
  min-width: 52px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.lang-button:hover {
  transform: translateY(-1px);
}

.lang-button.is-active {
  background: linear-gradient(180deg, var(--accent), #1f523b);
  color: #f3f7f0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: 28px;
  align-items: center;
  padding: 34px 18px 18px;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: "SF Mono", "IBM Plex Mono", "Menlo", monospace;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  max-width: 13ch;
  font-size: clamp(2.9rem, 8vw, 5.8rem);
}

.hero-text {
  max-width: 60ch;
  margin: 22px 0 0;
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(180deg, var(--accent), #1d4d38);
  color: #f5f8f2;
  box-shadow: 0 14px 30px rgba(45, 106, 79, 0.24);
}

.button-secondary {
  border: 1px solid rgba(25, 61, 45, 0.14);
  background: rgba(255, 255, 255, 0.66);
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  font-size: 0.95rem;
}

.hero-points li,
.panel-card,
.chat-preview,
.metrics article,
.feature-card,
.trust-card,
.flow-step,
.footer,
.logo-card {
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.hero-points li {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.logo-card,
.panel-card,
.chat-preview,
.metrics article,
.feature-card,
.trust-card,
.flow-step {
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(20, 34, 27, 0.06);
}

.logo-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  background: linear-gradient(180deg, #0f1327, #090c19);
  color: #f3f4ef;
}

.logo-card-emblem {
  width: min(100%, 240px);
}

.logo-card-emblem img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.logo-card strong {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  letter-spacing: 0.1em;
}

.logo-card span {
  font-family: "SF Mono", "IBM Plex Mono", "Menlo", monospace;
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  color: rgba(243, 244, 239, 0.8);
}

.panel-card,
.chat-preview,
.metrics article,
.feature-card,
.trust-card,
.flow-step,
.footer {
  background: var(--surface);
}

.panel-card {
  padding: 20px;
}

.panel-label {
  margin-bottom: 16px;
  font-family: "SF Mono", "IBM Plex Mono", "Menlo", monospace;
  color: var(--muted);
  font-size: 0.82rem;
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(16, 32, 25, 0.08);
}

.panel-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

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

.chat-preview {
  padding: 20px;
}

.chat-preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: "SF Mono", "IBM Plex Mono", "Menlo", monospace;
  color: var(--muted);
  font-size: 0.82rem;
}

.chat-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #5cae7f;
  box-shadow: 0 0 0 8px rgba(92, 174, 127, 0.12);
}

.bubble {
  width: fit-content;
  max-width: 88%;
  padding: 12px 14px;
  margin-top: 10px;
  border-radius: 18px;
  line-height: 1.55;
}

.bubble-in {
  background: rgba(255, 255, 255, 0.92);
}

.bubble-out {
  margin-left: auto;
  background: linear-gradient(180deg, #2f7d58, #23553f);
  color: #eff6ef;
}

.metrics,
.features,
.trust,
.flow,
.account-delete {
  margin-top: 28px;
}

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

.metrics article,
.feature-card,
.trust-card,
.flow-step {
  padding: 22px;
}

.metrics article strong,
.feature-card h3,
.trust-card h3,
.flow-step h3 {
  display: block;
  margin: 0 0 10px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.feature-grid,
.trust-grid,
.flow-steps {
  display: grid;
  gap: 16px;
}

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

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

.trust-index,
.flow-step span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: "SF Mono", "IBM Plex Mono", "Menlo", monospace;
  font-size: 0.92rem;
}

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

.delete-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
}

.delete-copy,
.delete-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(20, 34, 27, 0.06);
}

.delete-copy p,
.delete-notes,
.delete-status {
  color: var(--muted);
}

.delete-notes {
  margin: 16px 0 0;
  padding-left: 18px;
  line-height: 1.65;
}

.delete-mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  padding: 6px;
  border-radius: 18px;
  background: rgba(45, 106, 79, 0.08);
}

.delete-mode-button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.delete-mode-button.is-active {
  background: linear-gradient(180deg, var(--accent), #1d4d38);
  color: #f4f7f0;
}

.field-label {
  display: block;
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 0.94rem;
  font-weight: 700;
}

.field-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(16, 32, 25, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

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

.delete-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  line-height: 1.5;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  margin-top: 28px;
}

@media (max-width: 1080px) {
  .topbar {
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .section-heading,
  .metrics,
  .trust-grid,
  .flow-steps,
  .feature-grid,
  .delete-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
  }

  .topbar,
  .hero-grid {
    padding-left: 12px;
    padding-right: 12px;
  }

  .topbar-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-links {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  .button {
    width: 100%;
  }

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