:root {
  --blueprint-dark: #0b2545;
  --blueprint-mid: #134074;
  --blueprint-accent: #8da9c4;
  --blueprint-light: #e7eff6;
  --surface: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --max-width: 1120px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 40%, #f4f7fb 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  color: var(--surface);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.8;
  text-decoration: none;
}

.nav-link {
  font-weight: 500;
  color: var(--surface);
}

.nav-login {
  margin-left: 0;
}

.hero {
  position: relative;
  background: radial-gradient(85% 95% at 50% 0%, rgba(19, 64, 116, 0.6) 0%, rgba(11, 37, 69, 0.95) 100%);
  color: var(--surface);
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(141, 169, 196, 0.15) 25%, transparent 25%, transparent 50%, rgba(141, 169, 196, 0.15) 50%, rgba(141, 169, 196, 0.15) 75%, transparent 75%, transparent);
  background-size: 40px 40px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding: 0 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

.hero-copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.hero-copy h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-copy .lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blueprint-mid), var(--blueprint-accent));
  color: var(--surface);
  box-shadow: 0 18px 35px -18px rgba(13, 53, 103, 0.9);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px -18px rgba(13, 53, 103, 1);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--surface);
}

.btn[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.download-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-visual .card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 40px -20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6ee7b7, #22c55e);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
}

.screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.grid {
  position: relative;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.grid--preview {
  min-height: 220px;
  background: linear-gradient(135deg, rgba(19, 64, 116, 0.3), rgba(19, 64, 116, 0));
}

.grid-layer--plan {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.grid-layer--symbols {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 10% 25%, rgba(2, 132, 199, 0.9) 0, rgba(2, 132, 199, 0) 55%),
    radial-gradient(circle at 75% 65%, rgba(34, 197, 94, 0.8) 0, rgba(34, 197, 94, 0) 50%),
    radial-gradient(circle at 45% 55%, rgba(248, 113, 113, 0.8) 0, rgba(248, 113, 113, 0) 40%);
  mix-blend-mode: screen;
}

.legend {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot--camera {
  background: #0ea5e9;
}

.legend-dot--alarm {
  background: #f97316;
}

.legend-dot--sensor {
  background: #a855f7;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section--alt {
  background: var(--blueprint-light);
  border-radius: 36px;
  margin: 4rem auto;
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-heading h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 0.75rem;
  color: var(--blueprint-dark);
}

.section-heading p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid rgba(11, 37, 69, 0.08);
  box-shadow: 0 20px 45px -35px rgba(10, 24, 61, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 50px -30px rgba(10, 24, 61, 0.4);
}

.feature-card h3 {
  font-family: "Montserrat", sans-serif;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--blueprint-mid);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  padding: 0 1rem 1rem;
}

.timeline-step {
  background: var(--surface);
  padding: 1.75rem;
  border-radius: 18px;
  border: 1px solid rgba(11, 37, 69, 0.08);
  position: relative;
  box-shadow: 0 18px 45px -35px rgba(11, 37, 69, 0.45);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blueprint-mid), var(--blueprint-accent));
  color: var(--surface);
  font-weight: 600;
  margin-bottom: 1rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--blueprint-dark), var(--blueprint-mid));
  color: var(--surface);
  padding: 2.5rem 2.75rem;
  border-radius: 28px;
  box-shadow: 0 40px 60px -40px rgba(14, 52, 104, 0.7);
}

.cta h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.75rem;
}

.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid rgba(19, 64, 116, 0.1);
  background: var(--blueprint-light);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}

.footer-section h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blueprint-dark);
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer a {
  color: var(--blueprint-mid);
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--blueprint-dark);
  text-decoration: none;
}

.section--signup {
  background: var(--surface);
  border-radius: 32px;
  box-shadow: 0 30px 60px -40px rgba(11, 37, 69, 0.4);
}

.signup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: start;
  padding: 2.75rem;
}

.signup-copy h2 {
  font-family: "Montserrat", sans-serif;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--blueprint-dark);
}

.signup-copy p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.signup-copy ul {
  padding-left: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(231, 239, 246, 0.35);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(19, 64, 116, 0.12);
}

.form-group label,
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--blueprint-dark);
}

.signup-form input {
  border-radius: 12px;
  border: 1px solid rgba(19, 64, 116, 0.25);
  padding: 0.8rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signup-form input:focus {
  outline: none;
  border-color: var(--blueprint-mid);
  box-shadow: 0 0 0 3px rgba(19, 64, 116, 0.15);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-hint .link {
  border: none;
  background: none;
  color: var(--blueprint-mid);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.form-message {
  min-height: 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-message--success {
  color: #0e9f6e;
}

.form-message--error {
  color: #dc2626;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--surface);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(9px, 9px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(9px, -9px);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: relative;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--blueprint-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 2rem 2rem;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.1rem;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-login {
    margin: 1rem 0 0;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: row;
    gap: 0.75rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cta {
    flex-direction: column;
    align-items: stretch;
  }
  .signup {
    padding: 1rem;
  }
}

