/* ─── Reset & Variables ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #111111;
  --surface:   #1a1a1a;
  --card:      #222222;
  --accent:    #e84500;
  --accent-dim:#b33500;
  --accent-hi: #ff6a2a;
  --green:     #00e676;
  --amber:     #ffb300;
  --red:       #ff3b3b;
  --text:      #f0f0f0;
  --text-mid:  #999999;
  --text-dim:  #555555;
  --border:    #2a2a2a;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(0,0,0,0.55);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .8; }
img { display: block; max-width: 100%; }

/* ─── Typography ─────────────────────────────────────────────────────────── */
.label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; line-height: 1.2; }
h3 { font-size: 1.1rem; font-weight: 700; }

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-hi) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Layout helpers ──────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .label { margin-bottom: 12px; display: block; }
.section-header p {
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 14px auto 0;
}

/* ─── Nav ────────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(21,21,21,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .3s;
}

.nav-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo img {
  height: auto;
  width: 260px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0 auto;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--accent);
  color: #000 !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 24px;
  white-space: nowrap;
  transition: opacity .2s, transform .15s;
}
.nav-cta:hover { opacity: .9; transform: translateY(-1px); }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  padding-top: 64px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(232,69,0,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.hero-text .label { margin-bottom: 16px; display: block; }

.hero-text h1 { margin-bottom: 20px; }

.hero-text .tagline {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-accent  { background: rgba(232,69,0,0.12); border: 1px solid rgba(232,69,0,0.30); color: var(--accent-hi); }
.badge-green   { background: rgba(0,230,118,0.1); border: 1px solid rgba(0,230,118,0.25); color: var(--green); }
.badge-amber   { background: rgba(255,179,0,0.10); border: 1px solid rgba(255,179,0,0.25); color: var(--amber); }

.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent-hi), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  border-radius: 12px;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 0 24px rgba(232,69,0,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(232,69,0,0.55);
  color: #fff;
  opacity: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: border-color .2s, background .2s;
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(0,196,255,0.06);
  color: var(--text);
  opacity: 1;
}

/* ─── Hero diagram ────────────────────────────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 380px;
}

.diagram-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
}

.diag-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex: 1;
  max-width: 150px;
  transition: border-color .3s, box-shadow .3s;
}

.diag-node:hover {
  border-color: rgba(0,196,255,0.4);
  box-shadow: 0 0 20px rgba(0,196,255,0.1);
}

.diag-node .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.icon-phone  { background: rgba(0,196,255,0.12); }
.icon-dongle { background: rgba(0,230,118,0.12); }
.icon-cnc    { background: rgba(255,179,0,0.12);  }

.diag-node span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-mid);
  text-align: center;
  letter-spacing: 0.5px;
}

.diag-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
}

.arrow-line {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--accent-hi), var(--accent));
  position: relative;
}
.arrow-line::after {
  content: '▶';
  font-size: 8px;
  color: var(--accent);
  position: absolute;
  right: -6px;
  top: -6px;
}

.diag-arrow small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-align: center;
  white-space: nowrap;
}

.diag-vert {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0;
}

.vert-line {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  position: relative;
}
.vert-line::after {
  content: '▼';
  font-size: 8px;
  color: var(--accent);
  position: absolute;
  bottom: -8px;
  left: -4px;
}

.diag-vert small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 10px;
}

/* ─── How it works ───────────────────────────────────────────────────────── */
#how-it-works { background: var(--surface); }

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

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
}

.step-card:hover {
  border-color: rgba(0,196,255,0.35);
  transform: translateY(-3px);
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-hi), var(--accent));
  opacity: 0;
  transition: opacity .3s;
}
.step-card:hover::before { opacity: 1; }

.step-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}

.step-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(0,196,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.step-card h3 { margin-bottom: 10px; }
.step-card p { color: var(--text-mid); font-size: 14px; line-height: 1.65; }

/* ─── Features ───────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color .25s, box-shadow .25s;
}

.feature-card:hover {
  border-color: rgba(0,196,255,0.25);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.feat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feat-body h3 { font-size: 14px; margin-bottom: 4px; }
.feat-body p  { font-size: 13px; color: var(--text-mid); line-height: 1.5; }

/* ─── Software section ────────────────────────────────────────────────────── */
#software { background: var(--surface); }

.software-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.sw-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: border-color .25s, transform .2s;
  cursor: default;
}

.sw-card:hover {
  border-color: rgba(0,196,255,0.3);
  transform: translateY(-2px);
}

.sw-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.sw-card h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.sw-card p {
  font-size: 11px;
  color: var(--text-dim);
}

.sw-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}

.sw-tag-custom {
  background: rgba(0,196,255,0.12);
  color: var(--accent);
}

.sw-tag-limited {
  background: rgba(255,179,0,0.12);
  color: var(--amber);
}

/* ─── Safety section ──────────────────────────────────────────────────────── */
.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.safety-text .label { display: block; margin-bottom: 14px; }
.safety-text h2 { margin-bottom: 16px; }
.safety-text p { color: var(--text-mid); line-height: 1.7; margin-bottom: 24px; }

.safety-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.safety-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-mid);
}

.safety-list .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0,230,118,0.5);
}

.safety-visual {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.arm-demo {
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 3px solid;
}

.arm-demo.armed {
  background: rgba(0,230,118,0.08);
  border-color: var(--green);
}

.arm-demo.disarmed {
  background: rgba(255,59,59,0.08);
  border-color: var(--red);
}

.arm-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.armed .arm-dot   { background: var(--green);  box-shadow: 0 0 8px rgba(0,230,118,0.6); }
.disarmed .arm-dot { background: var(--red); }

.arm-demo-label {
  flex: 1;
}

.arm-demo-label strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}

.arm-demo-label span {
  font-size: 11px;
  color: var(--text-mid);
}

.arm-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.arm-btn.green { background: var(--green);  color: #000; }
.arm-btn.red   { background: var(--red);    color: #fff; }

/* ─── FAQ ─────────────────────────────────────────────────────────────────── */
#faq { background: var(--surface); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}

.faq-item.open {
  border-color: rgba(0,196,255,0.4);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  line-height: 1.4;
  transition: color .2s;
}

.faq-q:hover { color: var(--accent); }

.faq-chevron {
  font-size: 18px;
  color: var(--text-dim);
  transition: transform .25s, color .2s;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(0.4,0,0.2,1), padding .3s;
  padding: 0 20px;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.7;
}

.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 20px 18px;
}

/* ─── Download / CTA section ─────────────────────────────────────────────── */
#download {
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(0,196,255,0.04) 50%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.download-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,69,0,0.09) 0%, transparent 65%);
  pointer-events: none;
}

#download .label { display: block; margin-bottom: 14px; }
#download h2 { margin-bottom: 16px; }
#download p { color: var(--text-mid); font-size: 1rem; margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto; }

.store-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  transition: border-color .2s, background .2s, transform .15s;
}

.store-btn:hover {
  border-color: var(--accent);
  background: rgba(0,196,255,0.07);
  color: var(--text);
  transform: translateY(-2px);
  opacity: 1;
}

.store-btn .store-icon { font-size: 26px; }

.store-btn-text {
  text-align: left;
  line-height: 1.3;
}

.store-btn-text small {
  display: block;
  font-size: 10px;
  color: var(--text-mid);
  font-weight: 400;
}

.store-btn-text strong {
  font-size: 15px;
  font-weight: 700;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand img { width: 240px; height: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: var(--text-dim); line-height: 1.6; max-width: 240px; }

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a  { font-size: 13px; color: var(--text-mid); transition: color .2s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: 12px; color: var(--text-dim); }

/* ─── Scroll animations ───────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }
.reveal-delay-5 { transition-delay: .40s; }
.reveal-delay-6 { transition-delay: .48s; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
    padding: 60px 24px;
  }
  .hero-text .tagline { margin-left: auto; margin-right: auto; }
  .hero-badges, .hero-cta-row { justify-content: center; }
  .hero-visual { order: -1; }

  .steps-grid  { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .software-grid { grid-template-columns: repeat(2, 1fr); }
  .safety-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  section { padding: 64px 0; }

  .nav-links { display: none; }

  .features-grid { grid-template-columns: 1fr; }
  .software-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
