:root {
  color-scheme: light;
  --deep-water: #0e2928;
  --deep-water-2: #102f2d;
  --moss: #0f6b5f;
  --reed: #f3f6ee;
  --paper: #ffffff;
  --paper-muted: #e7f2ec;
  --text: #12231d;
  --muted: #62746d;
  --line: #dce5dc;
  --contour: #a0dcca;
  --marker: #ff7a3d;
  --warm: #e7bd5d;
  --shadow: 0 24px 70px rgba(14, 41, 40, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 72px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--reed);
  color: var(--text);
  font-family:
    Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial,
    sans-serif;
  line-height: 1.6;
}

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

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

a,
button,
.button {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(255, 122, 61, 0.58);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 56px;
  border-bottom: 1px solid rgba(160, 220, 202, 0.22);
  background: rgba(14, 41, 40, 0.92);
  color: var(--paper);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 800;
}

.brand img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--paper);
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 48px;
  align-items: center;
  min-height: min(820px, calc(100vh - 112px));
  padding: 58px max(32px, calc((100vw - 1180px) / 2)) 68px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14, 41, 40, 0.98), rgba(16, 47, 45, 0.96)),
    var(--deep-water);
  color: var(--paper);
}

.hero-map {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 22% 24%, transparent 0 13%, rgba(160, 220, 202, 0.18) 13.4% 13.8%, transparent 14.2%),
    radial-gradient(ellipse at 74% 34%, transparent 0 10%, rgba(160, 220, 202, 0.13) 10.4% 10.8%, transparent 11.2%),
    radial-gradient(ellipse at 64% 78%, transparent 0 17%, rgba(160, 220, 202, 0.12) 17.3% 17.7%, transparent 18.1%),
    repeating-linear-gradient(0deg, rgba(160, 220, 202, 0.08) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(90deg, rgba(160, 220, 202, 0.08) 0 1px, transparent 1px 58px);
}

.hero-map::before,
.hero-map::after {
  position: absolute;
  content: "";
  inset: auto;
  border: 1px solid rgba(160, 220, 202, 0.2);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.hero-map::before {
  width: 660px;
  height: 260px;
  left: -130px;
  top: 76px;
  box-shadow:
    0 0 0 34px rgba(160, 220, 202, 0.055),
    0 0 0 78px rgba(160, 220, 202, 0.04),
    0 0 0 128px rgba(160, 220, 202, 0.026);
}

.hero-map::after {
  width: 520px;
  height: 210px;
  right: 8%;
  bottom: 84px;
  box-shadow:
    0 0 0 30px rgba(160, 220, 202, 0.05),
    0 0 0 72px rgba(160, 220, 202, 0.034);
}

.hero-copy,
.hero-device {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: 64px;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

.eyebrow,
.feature-meta {
  margin: 0 0 14px;
  color: var(--moss);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-section .eyebrow {
  color: var(--contour);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.button.primary {
  border: 1px solid rgba(255, 122, 61, 0.72);
  background: var(--marker);
  color: #27160f;
  box-shadow: 0 14px 34px rgba(255, 122, 61, 0.24);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #ff8c58;
  box-shadow: 0 18px 42px rgba(255, 122, 61, 0.3);
}

.button.secondary {
  border: 1px solid rgba(160, 220, 202, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(160, 220, 202, 0.72);
  background: rgba(255, 255, 255, 0.14);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-top: 32px;
}

.hero-stat {
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(160, 220, 202, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)),
    rgba(14, 41, 40, 0.5);
}

.hero-stat strong,
.hero-stat span {
  display: block;
}

.hero-stat strong {
  color: var(--paper);
  font-size: 30px;
  line-height: 1.1;
}

.hero-stat span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.device-stack {
  position: relative;
  min-height: 600px;
}

.device-shell {
  position: absolute;
  width: 286px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 36px;
  background:
    linear-gradient(145deg, #192b29, #061716),
    var(--deep-water);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.device-shell::before {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 86px;
  height: 18px;
  border-radius: 999px;
  background: #061716;
  content: "";
  transform: translateX(-50%);
  z-index: 2;
}

.device-shell-1 {
  left: 18px;
  top: 34px;
  z-index: 3;
  transform: rotate(-3deg);
}

.device-shell-2 {
  right: 16px;
  top: 0;
  z-index: 2;
  transform: rotate(4deg);
}

.device-shell-3 {
  left: 110px;
  top: 118px;
  z-index: 1;
  transform: rotate(1deg);
}

.device-image,
.device-shell img {
  width: 100%;
  height: 548px;
  object-fit: cover;
  object-position: top;
  border-radius: 26px;
  background: var(--paper-muted);
}

.spot-card {
  position: absolute;
  right: 0;
  bottom: 44px;
  z-index: 4;
  width: min(286px, 88%);
  padding: 18px;
  border: 1px solid rgba(160, 220, 202, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(231, 242, 236, 0.96)),
    var(--paper);
  color: var(--text);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.25);
}

.spot-card::before {
  position: absolute;
  top: -14px;
  left: 22px;
  width: 24px;
  height: 24px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--marker);
  box-shadow: 0 0 0 6px rgba(255, 122, 61, 0.24);
  content: "";
}

.spot-card > span {
  display: block;
  color: var(--moss);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spot-card strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.35;
}

.spot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.spot-tags span,
.tag {
  padding: 5px 9px;
  border: 1px solid rgba(15, 107, 95, 0.13);
  border-radius: 999px;
  background: var(--paper-muted);
  color: var(--moss);
  font-size: 12px;
  font-weight: 800;
}

.section {
  padding: 92px max(32px, calc((100vw - 1180px) / 2));
}

.section-light {
  background:
    linear-gradient(90deg, rgba(15, 107, 95, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 107, 95, 0.05) 1px, transparent 1px),
    var(--reed);
  background-size: 46px 46px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: 0;
}

.section-heading p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

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

.feature-card {
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(231, 242, 236, 0.72), rgba(255, 255, 255, 0.98)),
    var(--paper);
  box-shadow: 0 16px 42px rgba(14, 41, 40, 0.08);
}

.feature-card-large {
  grid-column: span 2;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.75fr);
  grid-template-rows: auto;
}

.feature-body {
  padding: 24px;
}

.feature-card h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
}

.feature-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.feature-shot {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 30% 20%, transparent 0 32%, rgba(160, 220, 202, 0.26) 32.6% 33.4%, transparent 34%),
    repeating-linear-gradient(0deg, rgba(15, 107, 95, 0.06) 0 1px, transparent 1px 34px),
    var(--paper-muted);
}

.feature-card-large .feature-shot {
  min-height: 100%;
  border-top: 0;
  border-left: 1px solid var(--line);
}

.feature-shot-image {
  width: min(190px, 72%);
  height: 330px;
  margin: 24px auto -54px;
  object-fit: cover;
  object-position: top;
  border: 8px solid #12231d;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

#contact.site-footer {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: 28px;
  padding: 34px max(32px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 14px;
}

.contact-title {
  color: var(--text);
  font-size: 24px;
  line-height: 1.3;
}

.contact-block {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  padding-top: 4px;
}

.footer-legal {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #74857f;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 1180px) {
  .hero-section {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
    gap: 34px;
    min-height: min(720px, calc(100vh - 128px));
    padding-top: 42px;
    padding-bottom: 48px;
  }

  .hero-copy h1 {
    font-size: 54px;
  }

  .hero-lead {
    margin-top: 20px;
    font-size: 18px;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-stats {
    margin-top: 28px;
  }

  .device-stack {
    min-height: 500px;
  }

  .device-shell {
    width: 246px;
  }

  .device-shell-1 {
    left: 0;
    top: 24px;
  }

  .device-shell-2 {
    right: 0;
  }

  .device-shell-3 {
    left: 84px;
    top: 92px;
  }

  .device-image,
  .device-shell img {
    height: 468px;
  }

  .spot-card {
    width: min(260px, 82%);
  }
}

@media (max-width: 1020px) {
  .site-header {
    padding: 0 32px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: auto;
    padding-top: 30px;
    padding-bottom: 30px;
  }

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

  .hero-copy h1 {
    max-width: 14ch;
    font-size: 46px;
    line-height: 1.08;
  }

  .hero-lead {
    max-width: 680px;
    margin-top: 16px;
    font-size: 17px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-stats {
    margin-top: 24px;
  }

  .hero-stat {
    min-height: 82px;
    padding: 14px;
  }

  .hero-stat strong {
    font-size: 26px;
  }

  .device-stack {
    min-height: 330px;
    max-width: 620px;
    margin: 0 auto;
  }

  .device-shell {
    width: 182px;
    padding: 8px;
    border-radius: 26px;
  }

  .device-shell::before {
    top: 7px;
    width: 58px;
    height: 12px;
  }

  .device-shell-1 {
    left: 0;
    top: 18px;
  }

  .device-shell-2 {
    right: 0;
    top: 0;
  }

  .device-shell-3 {
    left: 50%;
    top: 64px;
    transform: translateX(-50%) rotate(1deg);
  }

  .device-image,
  .device-shell img {
    height: 332px;
    border-radius: 20px;
  }

  .spot-card {
    right: 8px;
    bottom: 0;
    width: min(240px, 76%);
    padding: 14px;
  }

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

  .screenshot-rail {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 64px;
  }

  .site-header {
    min-height: 64px;
    padding: 0 20px;
  }

  .site-nav {
    display: none;
  }

  .brand {
    font-size: 17px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .hero-section,
  .section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero-section {
    gap: 18px;
    padding-top: 22px;
    padding-bottom: 24px;
  }

  .hero-copy,
  .hero-device,
  .device-stack,
  .hero-stat {
    min-width: 0;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy h1 {
    max-width: 13ch;
    overflow-wrap: anywhere;
    word-break: break-all;
    font-size: 31px;
    line-height: 1.12;
  }

  .hero-lead {
    margin-top: 14px;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
  }

  .button {
    min-width: 0;
    min-height: 42px;
    padding: 0 12px;
    font-size: 14px;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
  }

  .hero-stat {
    min-height: 0;
    padding: 10px;
  }

  .hero-stat strong {
    font-size: 22px;
  }

  .hero-stat span {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .hero-device {
    margin-top: -6px;
  }

  .device-stack {
    min-height: 272px;
  }

  .device-shell {
    width: min(132px, 42vw);
    padding: 7px;
    border-radius: 22px;
  }

  .device-shell::before {
    top: 7px;
    width: 58px;
    height: 12px;
  }

  .device-shell-1 {
    left: 0;
    top: 18px;
  }

  .device-shell-2 {
    right: 0;
    top: 0;
  }

  .device-shell-3 {
    left: 50%;
    top: 62px;
    transform: translateX(-50%) rotate(1deg);
  }

  .device-image,
  .device-shell img {
    height: 250px;
    border-radius: 17px;
  }

  .spot-card {
    right: 0;
    bottom: 0;
    width: min(206px, 72%);
    padding: 12px;
  }

  .spot-card strong {
    font-size: 16px;
  }

  .section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .section-heading h2 {
    font-size: 31px;
  }

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

  .feature-card,
  .feature-card-large {
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(210px, 1fr);
  }

  .feature-card-large .feature-shot {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  #contact.site-footer {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
