:root {
  color-scheme: dark;
  --bg: #0d1110;
  --surface: #151b18;
  --surface-2: #1d2520;
  --text: #f5f8f6;
  --muted: #aeb8b2;
  --line: rgba(255, 255, 255, 0.1);
  --green: #4caf50;
  --green-soft: rgba(76, 175, 80, 0.18);
  --amber: #ff9800;
  --red: #f44336;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(76, 175, 80, 0.18), transparent 30rem),
    radial-gradient(circle at 88% 2%, rgba(255, 152, 0, 0.1), transparent 26rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header {
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--text);
}

.hero,
.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 54px;
  align-items: center;
  padding: 36px 0 84px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

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

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.hero-text {
  max-width: 610px;
  color: var(--muted);
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 14px;
}

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

.button.primary {
  background: var(--green);
  color: white;
  box-shadow: 0 18px 42px rgba(76, 175, 80, 0.25);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
}

.trust-line,
.preview-label,
.widget-mockup p,
.download-section p {
  color: var(--muted);
}

.phone-stage {
  display: grid;
  place-items: center;
}

.phone-frame {
  width: min(360px, 100%);
  aspect-ratio: 9 / 18.5;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 42px;
  padding: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.phone-top {
  width: 88px;
  height: 22px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
}

.app-preview {
  height: calc(100% - 34px);
  border-radius: 32px;
  padding: 24px 18px;
  background: var(--surface);
  text-align: center;
  overflow: hidden;
}

.preview-dog {
  width: 132px;
  border-radius: 50%;
  margin: 32px auto 16px;
  box-shadow: 0 0 70px rgba(76, 175, 80, 0.28);
}

.preview-location {
  color: var(--muted);
}

.app-preview h2 {
  margin: 20px 0 8px;
  color: var(--green);
  font-size: 1.8rem;
}

.preview-temp {
  color: var(--text);
  font-size: 2.1rem;
  font-weight: 900;
}

.preview-card {
  margin-top: 28px;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface-2);
}

.preview-card span,
.preview-card strong {
  display: block;
}

.section {
  padding: 72px 0;
}

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

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

.status-card,
.steps-grid article,
.safety-section,
.download-section,
.widget-mockup {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(21, 27, 24, 0.76);
  box-shadow: var(--shadow);
}

.status-card {
  padding: 24px;
}

.status-card img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin-bottom: 18px;
}

.status-card.safe h3 {
  color: var(--green);
}

.status-card.caution h3 {
  color: var(--amber);
}

.status-card.danger h3 {
  color: var(--red);
}

.status-card p,
.steps-grid p,
.split p,
.safety-section p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: center;
}

.check-list {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-list li::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin-right: 10px;
  background: var(--green);
}

.widget-mockup {
  min-height: 330px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  padding: 26px;
}

.small-widget,
.large-widget {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.48);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.small-widget {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  display: grid;
  place-items: center;
}

.small-widget img {
  width: 58px;
}

.small-widget strong {
  color: var(--green);
}

.large-widget {
  width: min(360px, 100%);
  display: flex;
  gap: 18px;
  align-items: center;
  border-radius: 28px;
  padding: 18px;
}

.large-widget img {
  width: 82px;
  border-radius: 50%;
}

.large-widget strong,
.large-widget span {
  display: block;
}

.large-widget strong {
  color: var(--green);
}

.large-widget span {
  font-size: 1.9rem;
  font-weight: 900;
}

.steps-grid article {
  padding: 24px;
}

.steps-grid span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-bottom: 18px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}

.safety-section,
.download-section {
  padding: 36px;
}

.download-section {
  text-align: center;
}

.site-footer {
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
}

.legal-page {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 92px;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  background: rgba(21, 27, 24, 0.78);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  max-width: none;
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.legal-card h2 {
  margin: 28px 0 10px;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.2;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

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

.form-row label,
.checkbox-row {
  color: var(--text);
  font-weight: 700;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
}

.form-row textarea {
  min-height: 168px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(102, 227, 153, 0.85);
  box-shadow: 0 0 0 3px rgba(102, 227, 153, 0.16);
  outline: none;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.checkbox-row input {
  margin-top: 4px;
}

.hidden-field {
  display: none;
}

.contact-form .button:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 860px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero,
  .split,
  .status-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 18px;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .safety-section,
  .download-section,
  .legal-card {
    padding: 22px;
  }
}
