:root {
  --blue: #1e73c4;
  --blue-dark: #155a9c;
  --blue-soft: #e8f3fb;
  --green: #3cae4a;
  --green-dark: #2e8b3a;
  --green-soft: #eaf7ec;
  --yellow: #e8b80c;
  --yellow-soft: #fff6d6;
  --navy: #16324a;
  --text: #1c3348;
  --muted: #5b6d7c;
  --line: #e4edf3;
  --white: #ffffff;
  --bg: #f6fafc;
  --shadow: 0 16px 40px rgba(22, 50, 74, 0.08);
  --shadow-lg: 0 24px 56px rgba(22, 50, 74, 0.12);
  --radius: 24px;
  --radius-sm: 14px;
  --header-h: 110px;
  --container: 1160px;
  --font: "Inter", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

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

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

button,
input,
textarea,
select {
  font-family: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: radial-gradient(circle at 88% 0%, rgba(232, 184, 12, 0.28), transparent 28%),
  linear-gradient(180deg, #dff0fb 0%, #f6fafc 100%);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

body.is-home .site-header {
  background: transparent;
  backdrop-filter: none;
}

body.is-home .site-header::after {
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.is-home .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

body.is-home .site-header.is-scrolled::after {
  opacity: 1;
}

body.is-home .site-header:not(.is-scrolled) ~ .nav-toggle {
  background: rgba(255, 255, 255, 0.18);
}

body.is-home .site-header:not(.is-scrolled) ~ .nav-toggle span {
  background: var(--white);
}

body.is-home.nav-open .site-header:not(.is-scrolled) ~ .nav-toggle {
  background: var(--white);
}

body.is-home.nav-open .site-header:not(.is-scrolled) ~ .nav-toggle span {
  background: var(--navy);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(22, 50, 74, 0.08);
  border-bottom-color: var(--line);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--yellow));
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 1201;
}

.logo img {
  height: 90px;
  width: auto;
  object-fit: contain;
}

.logo-scrolled {
  display: none;
}

body:not(.is-home) .logo-default {
  display: none;
}

body:not(.is-home) .logo-scrolled {
  display: block;
}

body.is-home .site-header.is-scrolled .logo-default {
  display: none;
}

body.is-home .site-header.is-scrolled .logo-scrolled {
  display: block;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  display: block;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--blue);
  background: var(--white);
}

@media (min-width: 861px) {
  .site-nav {
    position: sticky;
    top: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: var(--header-h);
    width: min(100% - 40px, var(--container));
    margin: calc(-1 * var(--header-h)) auto 0;
    pointer-events: none;
    background: transparent;
    box-shadow: none;
  }

  .site-nav ul {
    pointer-events: auto;
  }

  .site-nav .nav-logo {
    display: none;
  }

  body.is-home .site-header:not(.is-scrolled) ~ .site-nav a {
    color: var(--white);
  }

  body.is-home .site-header:not(.is-scrolled) ~ .site-nav a:hover,
  body.is-home .site-header:not(.is-scrolled) ~ .site-nav a.is-active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
  }
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  background: var(--white);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  z-index: 1201;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav .nav-logo {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(30, 115, 196, 0.28);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--green-dark);
  border: 1.5px solid rgba(60, 174, 74, 0.35);
}

.btn-secondary:hover {
  background: var(--green-soft);
}

/* Hero */
.hero {
  padding: 0;
  margin-top: calc(-1 * var(--header-h));
}

.hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  border-radius: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(232, 184, 12, 0.38), transparent 26%),
    linear-gradient(180deg, #1570b8 0%, #2b8fd4 48%, #2f9a4a 100%);
  background-size: 100% 130%;
  animation: heroSky 16s ease-in-out infinite;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: -10%;
  right: 6%;
  z-index: 0;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 192, 20, 0.5) 0%, rgba(240, 192, 20, 0) 68%);
  pointer-events: none;
  animation: heroSun 12s ease-in-out infinite;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 220px 80px at 16% 26%, rgba(255, 255, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 260px 90px at 70% 18%, rgba(255, 255, 255, 0.16), transparent 72%),
    radial-gradient(ellipse 180px 70px at 42% 14%, rgba(255, 255, 255, 0.14), transparent 70%);
  animation: heroClouds 22s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--header-h) + 24px) 0 48px;
}

.hero-copy {
  max-width: 560px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: var(--yellow);
}

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

.page-hero h1,
.section-heading h2 {
  color: var(--navy);
}

.hero-copy h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 800;
}

.hero-copy p,
.lead {
  margin: 16px 0 0;
  font-size: 1.06rem;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 500px;
}

.lead {
  color: var(--muted);
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 18px 8px 14px;
  border-radius: 12px;
  background: #111;
  color: var(--white);
  line-height: 1.1;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.store-btn svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-btn small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.82;
}

.store-btn strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.store-btn:hover {
  background: #000;
  transform: translateY(-1px);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.hero-copy .store-btn {
  box-shadow: 0 10px 24px rgba(16, 40, 70, 0.22);
}

.hero-copy .btn-primary {
  background: var(--white);
  color: var(--blue-dark);
  box-shadow: 0 10px 24px rgba(16, 40, 70, 0.18);
}

.hero-copy .btn-primary:hover {
  background: #f3f8fc;
}

.hero-copy .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-copy .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy p,
.hero-copy .hero-actions {
  animation: heroFadeUp 0.8s ease both;
}

.hero-copy .eyebrow { animation-delay: 0.12s; }
.hero-copy h1 { animation-delay: 0.24s; }
.hero-copy p { animation-delay: 0.38s; }
.hero-copy .hero-actions { animation-delay: 0.52s; }

.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 36px;
  animation: heroFloat 4.8s ease-in-out 1s infinite;
}

.hero-phone img {
  position: relative;
  z-index: 1;
  height: auto;
  animation: heroPhoneIn 1s ease both;
  filter:
    drop-shadow(0 12px 10px rgba(8, 18, 32, 0.22))
    drop-shadow(0 28px 24px rgba(8, 18, 32, 0.28))
    drop-shadow(0 48px 36px rgba(8, 18, 32, 0.2));
}

.hero-phone::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 0;
  width: 72%;
  height: 34px;
  border-radius: 50%;
  background: rgba(6, 16, 28, 0.42);
  filter: blur(16px);
  transform: translateX(-50%);
  pointer-events: none;
  animation: heroShadow 4.8s ease-in-out 1s infinite;
}

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

@keyframes heroPhoneIn {
  from {
    opacity: 0;
    transform: translate(36px, 24px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes heroShadow {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.42;
  }
  50% {
    transform: translateX(-50%) scale(0.88);
    opacity: 0.28;
  }
}

.phone {
  position: relative;
  width: 280px;
  height: 572px;
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(180deg, #1b2430, #0d131b);
  box-shadow:
    0 30px 60px rgba(10, 24, 40, 0.35),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 3;
  width: 92px;
  height: 22px;
  border-radius: 999px;
  background: #0d131b;
  transform: translateX(-50%);
}

.phone-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: #111;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: 180px;
  z-index: 1;
  pointer-events: none;
  animation: heroHills 14s ease-in-out infinite;
}

@keyframes heroSky {
  0%,
  100% {
    background-position: center 0;
  }
  50% {
    background-position: center 100%;
  }
}

@keyframes heroSun {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-36px, 24px) scale(1.12);
    opacity: 1;
  }
}

@keyframes heroClouds {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(48px);
  }
}

@keyframes heroHills {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* Sections */
.section {
  padding: 92px 0;
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
}

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

.steps-section {
  background: var(--white);
}

.steps-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.steps-copy {
  max-width: none;
  text-align: left;
}

.steps-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--navy);
}

.steps-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.steps-visual {
  width: 100%;
}

.steps-visual img { 
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  display: block;
  filter: drop-shadow(0 22px 40px rgba(16, 32, 54, 0.18));
}

.how-section {
  padding-top: 56px;
}

.how-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.how-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  text-transform: uppercase;
}

.how-steps {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: how-step;
}

.how-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.02rem;
  counter-increment: how-step;
}

.how-steps li:last-child {
  border-bottom: 0;
}

.how-steps li::before {
  content: counter(how-step);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.how-visual {
  display: flex;
  justify-content: center;
}

.how-visual img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  border-radius: 28px;
  box-shadow:
    0 22px 40px rgba(16, 32, 54, 0.18),
    0 8px 16px rgba(16, 32, 54, 0.1);
}

.alarm-config {
  margin: 0;
  padding: 0;
  border: 0;
}

.alarm-config h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--navy);
}

.alarm-config ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.alarm-config li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.02rem;
}

.alarm-config li:last-child {
  border-bottom: 0;
}

.alarm-config li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.about-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.about-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.about-copy .btn {
  margin-top: 28px;
}

.about-panel {
  position: relative;
  min-height: 380px;
  padding: 36px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 18%, rgba(232, 184, 12, 0.45), transparent 24%),
    linear-gradient(180deg, #4ea0dc 0%, #9fd0a3 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--white);
}

.about-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: #49b15d;
  border-radius: 80% 80% 0 0;
}

.about-stat {
  position: relative;
  z-index: 1;
  max-width: 230px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.about-stat strong {
  display: block;
  color: var(--blue);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.about-stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.alarm-section {
  background: var(--white);
}

.alarm-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.alarm-visual {
  display: flex;
  justify-content: center;
}

.alarm-visual img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  border-radius: 28px;
  box-shadow:
    0 22px 40px rgba(16, 32, 54, 0.18),
    0 8px 16px rgba(16, 32, 54, 0.1);
}

/* Settings */
.settings-section {
  background: transparent;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.settings-visual {
  display: flex;
  justify-content: center;
}

.settings-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  text-transform: uppercase;
}

.settings-copy p {
  margin: 14px 0 8px;
  color: var(--muted);
  font-size: 1.05rem;
}

.settings-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.settings-copy li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.02rem;
}

.settings-copy li:last-child {
  border-bottom: 0;
}

.settings-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* Page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 0 16px; 
}

.page-hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
}

.page-hero p {
  max-width: 560px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.page-hero .eyebrow {
  margin-bottom: 6px;
}

.page-hero + .prose,
.page-hero + .contact-layout,
.page-hero + .about-page {
  padding-top: 24px;
}

.prose,
.contact-layout,
.about-page {
  padding: 72px 0 64px;
}

.prose-card,
.about-page-card,
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.prose-card {
  padding: 48px;
}

.prose-card h2 {
  margin: 32px 0 10px;
  font-size: 1.35rem;
  color: var(--navy);
}

.prose-card h2:first-child {
  margin-top: 0;
}

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

.prose-card a,
.info-item a {
  color: var(--blue);
  font-weight: 600;
}

.prose-card a:hover,
.info-item a:hover {
  color: var(--blue-dark);
}

:focus-visible {
  outline: 3px solid rgba(30, 115, 196, 0.35);
  outline-offset: 3px;
}

.prose-card ul {
  padding-left: 18px;
  list-style: disc;
}

.prose-card li + li {
  margin-top: 8px;
}

/* About page */
.about-story {
  position: relative;
  display: block;
}

.about-visual {
  width: 62%;
  margin-left: auto;
}

.about-visual img {
  width: 100%;
  height: 540px;
  display: block;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 28px;
  box-shadow:
    0 22px 40px rgba(16, 32, 54, 0.18),
    0 8px 16px rgba(16, 32, 54, 0.1);
}

.about-page-card {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 2;
  width: calc(38% + 62% * 0.3);
  padding: 40px;
  transform: translateY(-50%);
}

.about-page-card h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.about-page-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.about-missions {
  margin-top: 28px;
}

.about-mission {
  padding: 0 0 48px;
}

.about-why {
  padding: 24px 0 96px;
}

.about-why .section-heading {
  max-width: none;
  margin: 0 0 32px;
  text-align: left;
}

.about-why .section-heading h2 {
  color: var(--navy);
  letter-spacing: -0.03em;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.why-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.why-icon {
  display: block;
  margin-bottom: 10px;
  font-size: 1.5rem;
  line-height: 1;
}

.why-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.05rem;
}

.why-card p {
  margin: 0;
  color: var(--muted);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.mission-card {
  padding: 24px;
  background: var(--bg);
  border-radius: 18px;
}

.mission-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.mission-card p {
  margin: 0;
  color: var(--muted);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contact-details,
.contact-card {
  padding: 36px;
}

.contact-details h2,
.contact-card h2 {
  margin: 0 0 10px;
  color: var(--navy);
}

.contact-details p {
  margin: 0 0 24px;
  color: var(--muted);
}

.info-list {
  display: grid;
  gap: 14px;
}

.info-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--bg);
  border-radius: 16px;
}

.info-item strong {
  display: block;
  color: var(--navy);
}

.info-item span,
.info-item a {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.form-row label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  background: #fbfdfe;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 115, 196, 0.12);
}

.form-success,
.form-error {
  display: none;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
}

.form-success {
  background: var(--green-soft);
  color: var(--green-dark);
}

.form-error {
  background: #fdeeee;
  color: #b42318;
}

.form-success.is-visible,
.form-error.is-visible {
  display: block;
}

.contact-form .btn[disabled] {
  opacity: 0.7;
  pointer-events: none;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #d5e4ef;
  padding: 40px 0 36px;
}

.footer-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(213, 228, 239, 0.16);
  text-align: center;
}

.footer-download-title {
  margin: 0;
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 700;
}

.footer-download .store-buttons {
  justify-content: center;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: #d5e4ef;
}

.footer-nav a:hover {
  color: var(--yellow);
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid,
  .how-grid,
  .alarm-grid,
  .settings-grid,
  .steps-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-story {
    display: flex;
    flex-direction: column;
  }

  .about-visual {
    order: -1;
    width: 100%;
    margin-left: 0;
  }

  .about-visual img {
    height: 320px;
  }

  .about-page-card {
    position: relative;
    top: auto;
    left: auto;
    width: calc(100% - 32px);
    margin: calc(-320px * 0.3) auto 0;
    transform: none;
  }

  .hero-grid {
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(var(--header-h) + 28px) 0 56px;
    gap: 28px;
  }

  .hero-banner {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .phone {
    width: 240px;
    height: 490px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
    position: fixed;
    top: 32px;
    right: 20px;
    z-index: 1300;
  }

  body.nav-open .nav-toggle {
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1400;
  }

  body.nav-open .nav-toggle span {
    background: var(--navy);
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(22, 50, 74, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1100;
  }

  .nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1200;
    width: min(320px, 86vw);
    height: 100vh;
    padding: 0 0 32px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav .nav-logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0 0 12px;
    padding: 12px 72px 12px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .nav-logo img {
    height: 72px;
    width: auto;
    object-fit: contain;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 24px 0;
  }

  .site-nav a {
    padding: 14px 16px;
    font-size: 1.05rem;
    border-radius: 0;
  }

  .logo {
    z-index: 1;
  }

  .logo img {
    height: 90px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 110px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .section,
  .prose,
  .contact-layout,
  .about-page {
    padding: 64px 0;
  }

  .prose-card,
  .about-page-card,
  .contact-card,
  .contact-details {
    padding: 24px;
  }

  .phone {
    width: 220px;
    height: 450px;
    border-radius: 36px;
  }

  .phone {
    width: 220px;
    height: 450px;
    border-radius: 36px;
  }

  .mission-grid,
  .why-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .about-visual img {
    height: 250px;
  }

  .about-page-card {
    width: calc(100% - 0px);
    margin-top: calc(-110px * 0.3);
  }

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

  .about-panel {
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
