:root {
  --bg: #f6efe5;
  --paper: rgba(255, 252, 247, 0.82);
  --paper-strong: #fffaf2;
  --ink: #12212f;
  --muted: #566474;
  --line: rgba(18, 33, 47, 0.1);
  --brand: #0f7f69;
  --brand-deep: #0b5a4a;
  --accent: #dd6b38;
  --accent-soft: #ffd8b7;
  --shadow: 0 20px 50px rgba(18, 33, 47, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(221, 107, 56, 0.2), transparent 30%),
    radial-gradient(circle at top right, rgba(15, 127, 105, 0.15), transparent 28%),
    linear-gradient(180deg, #f9f3ea 0%, #f6efe5 42%, #f3eadf 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 64px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 242, 0.74);
  box-shadow: var(--shadow);
}

.brand,
.hero h1,
.section-heading h2,
.feature-card h3,
.timeline-item h3,
.role-card h3,
.faq-item h3,
.signup-copy h2 {
  font-family: "Outfit", "Segoe UI", sans-serif;
}

.brand {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.topnav,
.topbar-actions,
.hero-actions,
.hero-points,
.trust-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(18, 33, 47, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.lang-button {
  min-width: 40px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lang-button.active {
  background: #123843;
  color: #fffaf2;
}

.topnav a,
.link-button,
.ghost-button {
  color: var(--muted);
}

.solid-button,
.ghost-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.solid-button {
  color: #fff9f0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: 0 14px 24px rgba(15, 127, 105, 0.24);
}

.ghost-button {
  border: 1px solid rgba(18, 33, 47, 0.15);
  background: rgba(255, 255, 255, 0.4);
}

.link-button {
  min-height: auto;
  padding: 0;
}

.large {
  min-height: 54px;
  padding: 0 24px;
}

.full {
  width: 100%;
}

.solid-button:hover,
.ghost-button:hover,
.link-button:hover {
  transform: translateY(-1px);
}

.hero,
.signup-section {
  display: grid;
  gap: 24px;
}

.hero {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  padding: 28px 8px 20px;
}

.eyebrow {
  display: inline-block;
  padding: 7px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(18, 33, 47, 0.08);
  color: var(--brand-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  max-width: 11ch;
}

.hero-text,
.section-heading p,
.feature-card p,
.timeline-item p,
.role-card p,
.signup-copy p,
.faq-item p,
.approval-item p,
.form-hint {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  padding-right: 12px;
}

.hero-points span,
.trust-items span {
  padding: 8px 12px;
  border: 1px solid rgba(18, 33, 47, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  font-size: 0.92rem;
}

.hero-panel,
.feature-card,
.role-card,
.faq-item,
.signup-card,
.timeline-item,
.platform-card,
.platform-note,
.table-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(221, 107, 56, 0.22), transparent 65%);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 16px;
  border-radius: 22px;
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card strong {
  font-size: 2rem;
  font-family: "Outfit", sans-serif;
}

.accent-a {
  background: #123843;
  color: #f4f6f1;
}

.accent-b {
  background: #f7d89c;
}

.accent-c {
  background: #cfe7db;
}

.accent-d {
  background: #f6c2ab;
}

.approval-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.approval-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(18, 33, 47, 0.08);
}

.approval-tag {
  flex: 0 0 auto;
  height: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #8a3f19;
  font-size: 0.8rem;
  font-weight: 700;
}

.trust-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 12px 4px 24px;
}

.trust-strip p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 56px 0 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-heading h2,
.signup-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.feature-grid,
.roles-grid,
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.role-card,
.faq-item {
  padding: 24px;
}

.feature-card h3,
.role-card h3,
.faq-item h3,
.timeline-item h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.split-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 22px;
  align-items: start;
}

.narrow {
  max-width: 520px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 18px;
}

.timeline-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #123843;
  color: #fef8ef;
  font-family: "Outfit", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.roles-section {
  position: relative;
}

.roles-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.signup-section {
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
}

.signup-card {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.signup-card label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.signup-card input,
.signup-card select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(18, 33, 47, 0.14);
  border-radius: 16px;
  background: #fffdfa;
  color: var(--ink);
  font: inherit;
}

.signup-card button,
.signup-card .form-hint {
  grid-column: 1 / -1;
}

.form-hint {
  margin: 0;
  font-size: 0.92rem;
}

.form-hint.success {
  color: var(--brand-deep);
}

.form-hint.error {
  color: #a04216;
}

.platform-layout,
.platform-summary {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.platform-console {
  display: grid;
  gap: 24px;
}

.platform-copy,
.platform-card {
  padding: 24px;
}

.platform-title {
  margin: 0 0 12px;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.platform-text,
.platform-card-text {
  color: var(--muted);
  line-height: 1.7;
}

.platform-notes {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.platform-note {
  padding: 18px;
}

.platform-note strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1.1rem;
}

.platform-note p {
  margin: 0;
  color: var(--muted);
}

.platform-form {
  display: grid;
  gap: 16px;
}

.platform-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.platform-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.platform-form input,
.platform-form select,
.platform-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(18, 33, 47, 0.14);
  border-radius: 16px;
  background: #fffdfa;
  color: var(--ink);
  font: inherit;
}

.platform-form-span-2 {
  grid-column: 1 / -1;
}

.platform-inline-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.platform-section {
  display: grid;
  gap: 14px;
}

.table-card {
  padding: 12px;
  overflow-x: auto;
}

.platform-table {
  width: 100%;
  border-collapse: collapse;
}

.platform-table th,
.platform-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(18, 33, 47, 0.08);
  text-align: left;
  vertical-align: top;
}

.platform-table th {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (max-width: 1080px) {
  .hero,
  .split-section,
  .signup-section,
  .roles-grid,
  .platform-layout,
  .platform-summary {
    grid-template-columns: 1fr;
  }

  .signup-card,
  .feature-grid,
  .faq-list,
  .platform-form-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav,
  .topbar-actions,
  .trust-strip {
    width: 100%;
  }

  .trust-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1200px);
  }

  .hero {
    padding-top: 10px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item span {
    width: 54px;
    height: 54px;
  }
}

.landing-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.78), transparent 28%),
    radial-gradient(circle at right center, rgba(185, 228, 214, 0.45), transparent 26%),
    linear-gradient(180deg, #f3ede2 0%, #efe7d9 100%);
}

.landing-shell {
  padding-bottom: 36px;
}

.landing-topbar {
  top: 14px;
  margin-bottom: 40px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 28px;
  align-items: center;
  padding: 18px 0 28px;
}

.landing-copy h1,
.landing-heading h2,
.claim-form h2 {
  font-family: "Outfit", "Segoe UI", sans-serif;
}

.landing-kicker {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.landing-copy h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3.2rem, 6.6vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.landing-copy h1 span {
  color: var(--brand-deep);
}

.landing-copy h2 {
  max-width: 58ch;
  margin: 18px 0 0;
  font-size: 1.16rem;
  line-height: 1.65;
  font-weight: 500;
  color: var(--muted);
}

.claim-button {
  padding-inline: 26px;
}

.hero-note {
  margin: 14px 0 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.hero-note a {
  color: var(--brand-deep);
  font-weight: 600;
}

.hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 18px;
  align-items: end;
}

.chaos-panel,
.app-panel,
.story-card,
.claim-form {
  border: 1px solid rgba(18, 33, 47, 0.1);
  border-radius: 30px;
  background: rgba(255, 251, 246, 0.8);
  box-shadow: var(--shadow);
}

.chaos-panel {
  position: relative;
  min-height: 500px;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 239, 225, 0.95), rgba(250, 230, 216, 0.88)),
    rgba(255, 251, 246, 0.9);
}

.chaos-cross {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: #d24f3b;
}

.paper-card,
.chat-card,
.app-phone {
  border-radius: 28px;
  border: 1px solid rgba(18, 33, 47, 0.12);
}

.paper-card {
  position: relative;
  width: 78%;
  padding: 18px;
  background: #fff8ef;
  transform: rotate(-7deg);
}

.paper-card__header,
.chat-card__title,
.story-label,
.app-screen__header,
.app-card strong {
  font-weight: 700;
}

.paper-card__header,
.chat-card__title {
  margin-bottom: 12px;
}

.paper-line {
  height: 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(18, 33, 47, 0.12);
}

.paper-line.short {
  width: 56%;
}

.paper-stamp {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 12px;
  border: 2px dashed #c56544;
  border-radius: 999px;
  color: #b3522f;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.chat-card {
  width: 94%;
  margin: 26px 0 0 auto;
  padding: 18px;
  background: #fbf4ec;
  transform: rotate(4deg);
}

.chat-bubble {
  width: fit-content;
  max-width: 88%;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.chat-bubble.left {
  background: #ffffff;
}

.chat-bubble.right {
  margin-left: auto;
  background: #dcefe7;
}

.chat-bubble.faded {
  color: #6f7a85;
}

.app-panel {
  display: grid;
  place-items: center;
  min-height: 500px;
  padding: 24px 16px;
  background:
    radial-gradient(circle at top, rgba(15, 127, 105, 0.18), transparent 36%),
    rgba(245, 249, 246, 0.92);
}

.app-phone {
  width: min(270px, 100%);
  padding: 14px;
  background: #1b252d;
  box-shadow: 0 22px 40px rgba(18, 33, 47, 0.22);
}

.app-phone__notch {
  width: 44%;
  height: 20px;
  margin: 0 auto 12px;
  border-radius: 0 0 16px 16px;
  background: #0d1318;
}

.app-screen {
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbf9 0%, #edf4ef 100%);
}

.app-screen__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.85rem;
}

.app-card {
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
}

.app-card--accent {
  background: linear-gradient(135deg, #123843 0%, #0f7f69 100%);
  color: #f4faf6;
}

.app-card p,
.story-card p,
.landing-footer p,
.claim-form label span,
.claim-form .form-hint {
  margin: 0;
}

.app-card p {
  margin-top: 6px;
  color: inherit;
  opacity: 0.9;
  line-height: 1.45;
  font-size: 0.92rem;
}

.story-section {
  padding-top: 36px;
}

.landing-heading {
  margin-bottom: 18px;
}

.landing-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -0.04em;
}

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

.story-card {
  padding: 26px;
}

.story-card--problem {
  background: linear-gradient(180deg, rgba(255, 238, 231, 0.92), rgba(255, 248, 243, 0.88));
}

.story-card--solution {
  background: linear-gradient(180deg, rgba(228, 246, 239, 0.96), rgba(246, 251, 248, 0.92));
}

.story-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.story-card--problem .story-label {
  color: #9a3f28;
  background: rgba(210, 79, 59, 0.12);
}

.story-card--solution .story-label {
  color: #0e6d58;
  background: rgba(15, 127, 105, 0.12);
}

.story-card p {
  font-size: 1.12rem;
  line-height: 1.55;
}

.landing-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 28px 0 6px;
  color: var(--muted);
}

.landing-footer a {
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.claim-dialog {
  width: min(560px, calc(100% - 24px));
  padding: 0;
  border: 0;
  background: transparent;
}

.claim-dialog::backdrop {
  background: rgba(18, 33, 47, 0.42);
  backdrop-filter: blur(6px);
}

.claim-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: #fffaf4;
}

.claim-form__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.claim-form h2 {
  margin: 4px 0 0;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.dialog-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 33, 47, 0.08);
  color: var(--ink);
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.claim-form label {
  display: grid;
  gap: 8px;
}

.claim-form label span {
  font-size: 0.92rem;
  font-weight: 600;
}

.claim-form input,
.claim-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(18, 33, 47, 0.14);
  border-radius: 16px;
  background: #fffdfa;
  color: var(--ink);
  font: inherit;
}

@media (max-width: 1080px) {
  .landing-hero,
  .hero-visual,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .landing-copy h1 {
    max-width: 12.5ch;
  }
}

@media (max-width: 820px) {
  .landing-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .chaos-panel,
  .app-panel {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .landing-topbar {
    flex-direction: row;
    align-items: center;
  }

  .landing-copy h1 {
    max-width: none;
    font-size: 2.9rem;
  }

  .landing-copy h2,
  .story-card p {
    font-size: 1rem;
  }

  .paper-card,
  .chat-card {
    width: 100%;
    transform: none;
  }

  .claim-form {
    padding: 18px;
  }
}
