:root {
  --bg: #f6f8fb;
  --white: #ffffff;
  --text: #0d1730;
  --muted: #5f6b84;
  --line: #dfe5ee;
  --line-soft: #e9edf3;
  --primary: #082a67;
  --primary-2: #0b347d;
  --green: #38a84f;
  --blue: #2c67f6;
  --orange: #ef8d3c;
  --yellow: #f4b000;
  --red: #e54f41;
  --purple: #7a3ff2;
  --teal: #11a8a1;
  --shadow: 0 12px 28px rgba(16, 33, 74, 0.08);
  --radius: 18px;
  --radius-sm: 14px;
  --container: 1250px;
}

* { 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: var(--bg);
  color: var(--text);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}
.section { padding: 18px 0 8px; }
.section-tight { padding-top: 8px; }
.section-title {
  margin: 8px 0 28px;
  text-align: center;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.section-note {
  margin: 10px 0 0;
  text-align: center;
  color: #677489;
  font-size: .98rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(223,229,238,.9);
}
.nav-wrap {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 42px;
  height: auto;
  flex: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.02;
}
.brand-text strong {
  font-size: 2rem;
  letter-spacing: -0.03em;
  color: #0e1b36;
}
.brand-text small {
  margin-top: 4px;
  font-size: 1rem;
  color: #6f7b91;
}
.main-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
}
.main-nav a {
  font-weight: 600;
  color: #28334b;
}
.main-nav a:hover { color: var(--primary); }
.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  transition: .18s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  box-shadow: 0 10px 22px rgba(8,42,103,.16);
}
.btn-primary:hover { background: linear-gradient(180deg, #0d377f, #082761); }
.btn-secondary {
  color: var(--primary);
  border-color: #163c84;
  background: var(--white);
}
.btn-secondary:hover { background: #f7faff; }
.btn-icon img { width: 18px; }
.btn-block { width: 100%; }
.nav-cta { min-width: 170px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr;
  align-items: start;
  gap: 36px;
  padding-top: 28px;
}
.hero-copy h1 {
  margin: 12px 0 24px;
  font-size: clamp(1.2rem, 2.35vw, 2.4rem);
  line-height: 1.03;
  letter-spacing: -0.042em;
}
.hero-copy p {
  margin: 0;
  max-width: 640px;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  gap: 18px;
  margin: 34px 0 26px;
  flex-wrap: wrap;
}
.hero-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.hero-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.08rem;
  color: #42506b;
}
.hero-benefits img { width: 24px; }
.frame-card,
.panel,
.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-dashboard-card {
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
}
.hero-dashboard-card img { width: 100%; height: auto; }

.register-panel {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  padding: 28px 30px;
}
.register-intro {
  display: flex;
  align-items: center;
  gap: 16px;
}
.register-icon {
  width: 92px;
  height: 92px;
  flex: none;
}
.register-intro h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.1;
}
.register-intro p {
  margin: 0;
  color: #677489;
  line-height: 1.6;
}
.register-form { align-self: center; }
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 1fr);
  gap: 14px 22px;
  align-items: start;
}
.form-field label {
  display: block;
  margin-bottom: 8px;
  color: #24314d;
  font-weight: 600;
}
.form-field label span {
  color: #6c7690;
  font-weight: 500;
}
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="text"] {
  width: 100%;
  height: 56px;
  border: 1px solid #d7deea;
  border-radius: 12px;
  padding: 0 16px;
  background: #fff;
  color: #0d1730;
}
.form-field input::placeholder { color: #94a0b3; }
.input-with-icon {
  position: relative;
}
.input-with-icon input { padding-right: 54px; }
.password-toggle {
  position: absolute;
  top: 50%; right: 12px;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border: 0; background: transparent; padding: 0;
  display: grid; place-items: center; cursor: pointer;
}
.password-toggle img { width: 20px; }
.checkbox-field { align-self: end; }
.checkbox-wrap {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font-weight: 500;
  color: #63708a;
}
.checkbox-wrap input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}
.checkbox-wrap a { color: var(--blue); }
.submit-cell { align-self: end; }
.submit-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #7a8497;
  font-weight: 500;
  min-height: 56px;
}
.submit-hint img { width: 16px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature-card {
  min-height: 164px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 24px;
}
.feature-card img { width: 64px; height: 64px; flex: none; }
.feature-card h3 {
  margin: 2px 0 8px;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
.feature-card p {
  margin: 0;
  color: #63708a;
  line-height: 1.55;
  font-size: 1.03rem;
}

.section-devices { padding-top: 24px; }
.device-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.device-card {
  padding: 18px 18px 20px;
}
.device-card h3 {
  margin: 2px 0 16px;
  font-size: 1.24rem;
  letter-spacing: -0.02em;
}
.device-card-body {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: start;
}
.device-card-body img {
  width: 78px;
  height: 110px;
  object-fit: contain;
  object-position: center top;
}
.device-card ul {
  margin: 0;
  padding-left: 18px;
  color: #4f5d77;
  line-height: 1.75;
  font-size: .96rem;
}
.protocols {
  margin-top: 18px;
  padding: 18px 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.protocol-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 12px 18px;
  border: 1px solid #e3e8f1;
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
}
.protocol-blue { color: #2669f5; }
.protocol-green { color: #34a853; }
.protocol-gray { color: #6f7587; }
.protocol-purple { color: #7a3ff2; }
.protocol-cyan { color: #1aa7b5; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}
.step-card {
  position: relative;
  min-height: 250px;
  padding: 0 8px;
}
.step-card::after {
  content: "→";
  position: absolute;
  right: -18px;
  top: 88px;
  color: #7d8aa0;
  font-size: 2rem;
  font-weight: 700;
}
.step-card-final::after { display: none; }
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #3ca34a;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 14px;
  box-shadow: 0 8px 18px rgba(60,163,74,.2);
}
.step-copy h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  line-height: 1.2;
}
.step-copy p {
  margin: 0;
  max-width: 330px;
  color: #667489;
  line-height: 1.6;
}
.step-image { margin-top: 16px; }
.step-raspi { width: 200px; }
.step-display { width: 240px; margin-left: auto; }
.step-circle-icons {
  margin-top: 18px;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  border: 1px solid #e1e6ef;
  display: grid;
  place-items: center;
  gap: 0;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  color: #0f1730;
  font-size: 1.5rem;
}

.section-cta { padding-bottom: 18px; }
.cta-panel {
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cta-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
}
.cta-copy p {
  margin: 0;
  color: #677489;
  line-height: 1.6;
  font-size: 1.06rem;
}
.cta-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer {
  background: linear-gradient(180deg, #08204d 0%, #071a43 100%);
  color: #fff;
  padding: 28px 0 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .75fr .75fr .75fr;
  gap: 32px;
}
.brand-footer .brand-text strong,
.brand-footer .brand-text small { color: #fff; }
.brand-footer .brand-text small { opacity: .75; }
.footer-brand p {
  max-width: 330px;
  color: rgba(255,255,255,.82);
  line-height: 1.65;
  margin: 16px 0 18px;
}
.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.14);
}
.footer-col h3 {
  margin: 10px 0 16px;
  font-size: 1.12rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,.82);
  margin-bottom: 10px;
}
.footer-bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  color: rgba(255,255,255,.84);
}

@media (max-width: 1180px) {
  .hero-grid,
  .register-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card::after { display: none; }
  .cta-panel { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 960px) {
  .nav-wrap {
    grid-template-columns: auto auto;
    gap: 18px;
  }
  .mobile-nav-toggle { display: inline-flex; justify-self: end; }
  .main-nav,
  .nav-cta {
    display: none;
  }
  .main-nav.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    padding: 18px;
    flex-direction: column;
    gap: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(2.2rem, 8.5vw, 4rem); }
  .form-grid,
  .feature-grid,
  .device-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-text strong { font-size: 1.5rem; }
  .brand-text small { font-size: .88rem; }
  .btn { width: 100%; }
  .hero-actions,
  .cta-actions { flex-direction: column; }
  .protocols { justify-content: flex-start; }
  .device-card-body { grid-template-columns: 68px 1fr; }
  .register-panel,
  .cta-panel { padding: 22px 18px; }
}
