:root {
  --bg: #f6fdf8;
  --bg-strong: #e5f4ef;
  --text: #173d36;
  --text-soft: #486b64;
  --primary: #2a9d8f;
  --primary-strong: #1b7f73;
  --primary-dark: #1b4332;
  --accent: #f59f00;
  --accent-soft: #fff2d2;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --line: rgba(27, 67, 50, 0.14);
  --shadow: 0 24px 70px rgba(21, 65, 57, 0.15);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(
      circle at 10% 6%,
      rgba(42, 157, 143, 0.16),
      transparent 32%
    ),
    radial-gradient(circle at 90% 12%, rgba(245, 159, 0, 0.17), transparent 34%),
    linear-gradient(150deg, #f6fdf8 0%, #edf9f5 48%, #f9fbf2 100%);
}

img {
  display: block;
  max-width: 100%;
}

.bg-shape {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.5;
}

.bg-shape-left {
  width: 460px;
  height: 460px;
  left: -240px;
  top: 140px;
  background: rgba(42, 157, 143, 0.2);
}

.bg-shape-right {
  width: 360px;
  height: 360px;
  right: -160px;
  top: 40px;
  background: rgba(245, 159, 0, 0.17);
}

.site-header,
.page,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(27, 67, 50, 0.16);
  border-radius: 50%;
  background: var(--surface-solid);
  box-shadow: 0 10px 24px rgba(21, 65, 57, 0.12);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 9% 68%;
}

.brand-text {
  display: grid;
  gap: 0.12rem;
}

.brand-text strong {
  font-size: 1.15rem;
  line-height: 1.1;
}

.brand-text small {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.78rem;
}

.header-actions a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.header-actions a:not(.btn):hover {
  color: var(--primary-strong);
}

.header-action-feedback {
  display: none;
}

.page {
  width: min(1180px, calc(100% - 2.2rem));
  margin: 0 auto;
  padding-bottom: 3rem;
}

.section-shell {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  gap: clamp(1.3rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  overflow: hidden;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1rem;
  max-width: 12ch;
  font-size: clamp(2.45rem, 5.2vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.22rem;
}

.lead,
.section-heading p,
.contact-copy p,
.feature-card p,
.journey-grid p,
.privacy-grid p,
.preview-card p {
  color: var(--text-soft);
  line-height: 1.62;
}

.lead {
  max-width: 60ch;
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 1.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.78rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.82rem 1.16rem;
  color: var(--primary-dark);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.56rem 0.9rem;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(120deg, var(--primary), var(--primary-strong));
  box-shadow: 0 14px 28px rgba(42, 157, 143, 0.28);
}

.btn-secondary {
  background: #ffffff;
  border-color: rgba(42, 157, 143, 0.24);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(27, 67, 50, 0.12);
}

.hero-metrics {
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.hero-metrics div {
  min-width: 0;
  padding: 0.86rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-metrics dt {
  margin-bottom: 0.28rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.hero-metrics dd {
  margin-bottom: 0;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.hero-showcase {
  position: relative;
  min-height: 640px;
}

.device-frame {
  --frame-radius: 32px;
  position: absolute;
  margin: 0;
  padding: 10px;
  overflow: hidden;
  background: #102d28;
  border-radius: var(--frame-radius);
  box-shadow: 0 30px 80px rgba(15, 53, 47, 0.28);
}

.device-frame img {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--frame-radius) - 16px);
  background: var(--bg);
  object-fit: cover;
}

.device-desktop img,
.device-tablet img {
  object-fit: contain;
}

.device-frame::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: inherit;
}

.device-desktop {
  --frame-radius: 30px;
  right: 0;
  top: 28px;
  z-index: 1;
  width: 430px;
  padding: 34px 10px 10px;
  aspect-ratio: 16 / 10;
  transform: rotate(2deg);
}

.device-desktop::before {
  position: absolute;
  top: 13px;
  left: 18px;
  z-index: 1;
  width: 46px;
  height: 9px;
  content: "";
  background: radial-gradient(circle at 4px 50%, #f26f5e 0 4px, transparent 5px),
    radial-gradient(circle at 23px 50%, #f8c15b 0 4px, transparent 5px),
    radial-gradient(circle at 42px 50%, #67c46c 0 4px, transparent 5px);
}

.device-tablet {
  --frame-radius: 34px;
  left: 0;
  bottom: 78px;
  z-index: 2;
  width: 315px;
  aspect-ratio: 4 / 3;
  transform: rotate(-3deg);
}

.device-phone {
  --frame-radius: 36px;
  right: 56px;
  bottom: 0;
  z-index: 3;
  width: 190px;
  padding: 9px;
  aspect-ratio: 390 / 760;
  transform: rotate(-4deg);
}

.brand-strip {
  margin-top: 1.2rem;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.brand-strip h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.token-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.token-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(27, 67, 50, 0.16);
}

.swatch-primary {
  background: var(--primary);
}

.swatch-bg {
  background: var(--bg);
}

.swatch-surface {
  background: #ffffff;
}

.app-preview,
.features,
.journey,
.privacy,
.contact {
  margin-top: 1.2rem;
}

.section-heading {
  max-width: 730px;
  margin: 0 auto 1rem;
  text-align: center;
}

.section-heading-left {
  margin-left: 0;
  text-align: left;
}

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

.preview-card {
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(170px, 0.72fr) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: center;
}

.preview-card img {
  width: min(100%, 210px);
  margin: 0 auto;
  padding: 8px;
  border-radius: 30px;
  background: #102d28;
  box-shadow: 0 18px 45px rgba(15, 53, 47, 0.18);
}

.preview-card p {
  margin-bottom: 0;
}

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

.feature-card {
  padding: 1.15rem;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.85rem;
  border-radius: 16px;
  color: var(--primary-strong);
  background: #dff3ef;
  font-weight: 900;
}

.feature-card p {
  margin-bottom: 0;
}

.journey {
  padding: 1.35rem;
}

.journey-grid,
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.journey-grid article,
.privacy-grid article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.journey-grid span,
.tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(119, 87, 10, 0.18);
  border-radius: 999px;
  background: #fff6dc;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.32rem 0.62rem;
}

.journey-grid h3 {
  margin-top: 0.8rem;
}

.journey-grid p {
  margin-bottom: 0;
}

.privacy {
  padding: 1.35rem;
}

.privacy .section-heading {
  max-width: 820px;
}

.privacy-grid h3 {
  margin-top: 0.8rem;
}

.privacy-grid p {
  margin-bottom: 0;
}

.contact {
  padding: 1.35rem;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 1.2rem;
  align-items: start;
}

.contact-copy p {
  margin-bottom: 0;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

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

.form-field label {
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.91rem;
}

.form-field label span,
.privacy-field strong {
  color: #77570a;
  font-size: 0.76rem;
  font-weight: 800;
}

.contact-form.was-validated .shake {
  animation: fieldShake 0.38s ease-in-out;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(27, 67, 50, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font: inherit;
  padding: 0.82rem 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(42, 157, 143, 0.68);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.13);
}

.contact-form.was-validated input:invalid,
.contact-form.was-validated select:invalid,
.contact-form.was-validated textarea:invalid {
  border-color: rgba(172, 65, 44, 0.72);
  box-shadow: 0 0 0 4px rgba(172, 65, 44, 0.1);
}

.privacy-field {
  display: flex;
  align-items: flex-start;
  gap: 0.68rem;
  padding: 0.82rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-soft);
  line-height: 1.45;
}

.privacy-field input {
  width: 1.08rem;
  height: 1.08rem;
  flex: 0 0 auto;
  margin-top: 0.12rem;
  accent-color: var(--primary);
}

.contact-form.was-validated .privacy-field:has(input:invalid) {
  border-color: rgba(172, 65, 44, 0.72);
  box-shadow: 0 0 0 4px rgba(172, 65, 44, 0.1);
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.form-actions .btn {
  border: 0;
}

.form-status {
  min-height: 1.35rem;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.42;
}

.form-status.is-error {
  color: #8f2d1f;
  font-weight: 800;
}

.form-status.is-success {
  color: var(--primary-strong);
  font-weight: 800;
}

.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.1rem 2rem;
}

.site-footer p {
  margin: 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(27, 67, 50, 0.16);
  color: var(--text-soft);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fieldShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-showcase {
    min-height: 590px;
  }

  .device-desktop {
    left: 16%;
    right: auto;
    width: min(560px, 72vw);
    top: 0;
  }

  .device-tablet {
    left: 5%;
    bottom: 45px;
    width: min(340px, 48vw);
  }

  .device-phone {
    right: 8%;
    bottom: 0;
    width: min(210px, 30vw);
  }

  .brand-strip,
  .contact {
    grid-template-columns: 1fr;
  }

  .token-list {
    justify-content: flex-start;
  }

  .preview-grid,
  .features,
  .journey-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
    padding: 0.85rem 0.8rem;
    gap: 0.65rem;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-text strong {
    font-size: 1rem;
    white-space: nowrap;
  }

  .header-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 0.42rem;
    margin-left: auto;
  }

  .header-actions a {
    display: none;
  }

  .header-actions .header-action-app,
  .header-actions .header-action-feedback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.52rem 0.64rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.76rem;
    line-height: 1;
    white-space: nowrap;
  }

  .header-actions .header-action-app {
    color: #ffffff;
    background: linear-gradient(120deg, var(--primary), var(--primary-strong));
    box-shadow: 0 10px 20px rgba(42, 157, 143, 0.24);
  }

  .header-actions .header-action-feedback {
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(27, 67, 50, 0.14);
  }

  .page {
    width: min(100% - 1rem, 1180px);
  }

  .hero {
    padding: 1rem;
    border-radius: 24px;
  }

  .hero-actions {
    display: none;
  }

  .hero-screenshots-link {
    display: none;
  }

  h1 {
    max-width: 13ch;
  }

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

  .hero-showcase {
    min-height: 520px;
  }

  .device-desktop {
    left: 0;
    width: min(100%, 550px);
  }

  .device-tablet {
    left: 0;
    bottom: 72px;
    width: min(300px, 64vw);
  }

  .device-phone {
    right: 0;
    bottom: 12px;
    width: min(180px, 42vw);
  }

  .preview-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .preview-card img {
    width: min(230px, 74vw);
  }

  .section-heading {
    text-align: left;
  }

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

@media (max-width: 460px) {
  .brand-text small {
    display: none;
  }

  .hero-showcase {
    min-height: 390px;
  }

  .device-desktop {
    width: min(100%, 340px);
  }

  .device-tablet {
    bottom: 55px;
    width: 220px;
  }

  .device-phone {
    width: 136px;
    bottom: 0;
  }

  .brand-strip,
  .journey,
  .privacy,
  .contact {
    padding: 1rem;
    border-radius: 22px;
  }
}
