:root {
  --bg: #0b0d10;
  --panel: #12161c;
  --panel-2: #181d24;
  --text: #eef2f7;
  --muted: #9aa4b2;
  --line: #27303a;
  --accent: #5aa9ff;
  --accent-2: #8bc4ff;
  --success: #45d483;
  --soft: #f5f7fa;
  --soft-text: #111827;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

button, input, textarea { font: inherit; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(11, 13, 16, 0.82);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07111f;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(90,169,255,.22);
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
  color: #c6d0dc;
}

.nav a:hover { color: white; }

.nav-cta {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.03);
}

.menu-toggle {
  display: none;
  color: white;
  background: transparent;
  border: 0;
  font-size: 26px;
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 25%, rgba(90,169,255,.15), transparent 28%),
    radial-gradient(circle at 15% 15%, rgba(90,169,255,.08), transparent 30%),
    var(--bg);
}

.hero-grid {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 70px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-2);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: -.04em;
}

h1 {
  max-width: 760px;
  font-size: clamp(52px, 7vw, 88px);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(38px, 5vw, 58px);
  margin-bottom: 20px;
}

h3 { font-size: 24px; }

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 32px 0 42px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #07111f;
}

.btn-primary:hover { filter: brightness(1.07); }

.btn-secondary {
  border-color: var(--line);
  background: rgba(255,255,255,.03);
  color: white;
}

.btn-disabled {
  background: #d9dee6;
  color: #7d8794;
  cursor: not-allowed;
}

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

.hero-meta div {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

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

.hero-meta span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.hero-panel { position: relative; }

.terminal-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24,29,36,.95), rgba(13,16,20,.95));
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0,0,0,.45);
  overflow: hidden;
  transform: perspective(1100px) rotateY(-4deg) rotateX(2deg);
}

.terminal-top {
  padding: 16px;
  display: flex;
  gap: 7px;
  border-bottom: 1px solid var(--line);
}

.terminal-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #46515e;
}

.terminal-body {
  padding: 30px;
  font-family: Consolas, monospace;
  font-size: 14px;
}

.terminal-body div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.muted { color: #728092; }
.status-good { color: var(--success); }

.floating-card {
  position: absolute;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  background: #151a20;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(0,0,0,.25);
  font-size: 13px;
}

.fc-one { top: -25px; right: -10px; }
.fc-two { bottom: -24px; left: -20px; }

.dot, .device-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.section {
  padding: 110px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 45px;
}

.section-heading p,
.about-copy p,
.split > div > p,
.account-panel p {
  color: var(--muted);
  font-size: 17px;
}

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

.feature-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  min-height: 330px;
  display: flex;
  flex-direction: column;
}

.feature-card p {
  color: var(--muted);
  flex: 1;
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}

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

.pill, .online-badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(90,169,255,.12);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
}

.text-button {
  border: 0;
  background: transparent;
  color: white;
  padding: 0;
  cursor: pointer;
}

.dark-section {
  background: #090b0e;
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 30px;
  color: #cfd7e1;
}

.dashboard-preview {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  overflow: hidden;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.online-badge {
  background: rgba(69,212,131,.12);
  color: var(--success);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 20px;
  gap: 12px;
}

.metric {
  padding: 18px;
  background: #0f1318;
  border: 1px solid #202833;
  border-radius: 12px;
}

.metric span, .metric strong { display: block; }
.metric span { color: var(--muted); font-size: 12px; }
.metric strong { font-size: 30px; margin-top: 5px; }

.device-list { padding: 0 20px 20px; }

.device-list div {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 4px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #cbd4df;
}

.device-list div span:last-child { color: var(--muted); font-size: 12px; }

.soft-section {
  background: var(--soft);
  color: var(--soft-text);
}

.soft-section .eyebrow { color: #276db7; }
.soft-section p { color: #5f6b78; }

.account-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.account-panel > div { max-width: 760px; }

.contact-form {
  max-width: 820px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #cbd4df;
}

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: white;
  border-radius: 10px;
  padding: 14px 15px;
  outline: none;
}

input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90,169,255,.1);
}

.form-status {
  color: var(--accent-2);
  font-size: 13px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 50px;
  align-items: center;
}

.footer p, .footer-copy {
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 20px;
  color: #b8c2ce;
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 500;
}

.modal.open { display: grid; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), 520px);
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 100px rgba(0,0,0,.5);
}

.modal-card p { color: var(--muted); }

.modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #101419;
  }

  .nav.open { display: flex; }
  .nav a { padding: 12px; }

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

  .hero-grid {
    min-height: auto;
    gap: 65px;
    padding-top: 95px;
  }

  .hero-meta { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .account-panel { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 26px), var(--max)); }
  .section { padding: 78px 0; }
  .hero-grid { padding-bottom: 90px; }
  h1 { font-size: 48px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .floating-card { display: none; }
}
