/* ═══════════════════════════════════════════════════════
   Zero Backup — Landing Page Styles
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0a0a0f;
  --bg-2:         #0f0f1a;
  --bg-card:      #12121e;
  --bg-card-h:    #16162a;
  --border:       rgba(139,92,246,0.15);
  --border-h:     rgba(139,92,246,0.35);
  --primary:      #8b5cf6;
  --primary-2:    #6366f1;
  --accent:       #a78bfa;
  --text:         #e2e8f0;
  --text-2:       #94a3b8;
  --text-3:       #64748b;
  --red:          #ef4444;
  --yellow:       #f59e0b;
  --green:        #34d399;
  --font:         'Inter', system-ui, sans-serif;
  --header-font:  'Rajdhani', sans-serif;
  --mono:         'JetBrains Mono', 'Fira Code', monospace;
  --radius:       14px;
  --shadow:       0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow:  0 0 40px rgba(139,92,246,0.12);
}

html { scroll-behavior: smooth; }

html, body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

a { color: inherit; text-decoration: none; }

/* ── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Utilities ─────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--header-font);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--header-font);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 540px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(6, 182, 212, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  font-family: var(--header-font);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.02);
}

.logo-icon { 
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.4));
  transition: all 0.3s ease;
}

.nav-logo:hover .logo-icon {
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.6));
}

.nav-logo-img {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--text-2);
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover { 
  color: var(--text); 
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  padding: 10px 24px;
  border-radius: 100px;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.nav-cta:hover { 
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
  filter: brightness(1.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  margin-left: auto;
  transition: all 0.3s;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(6, 182, 212, 0.3);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  overflow: visible;
}

/* Animated grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px; height: 500px;
  background: rgba(139,92,246,0.18);
  top: -100px; left: -150px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px; height: 400px;
  background: rgba(16,185,129,0.15);
  top: 200px; right: -100px;
  animation-delay: -3s;
}

.orb-3 {
  width: 300px; height: 300px;
  background: rgba(52,211,153,0.1);
  bottom: 0; left: 40%;
  animation-delay: -6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Split hero layout ──────────────────────────── */
/* Base: left column flexible, right column fixed 350px */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 48px;
  align-items: center;
}

/* LEFT */
.hero-left {
  text-align: left;
}

.hero-left .hero-badge    { animation: fadeUp 0.6s 0.0s ease both; }
.hero-left .hero-title    { animation: fadeUp 0.6s 0.1s ease both; }
.hero-left .hero-subtitle { animation: fadeUp 0.6s 0.2s ease both; }
.hero-left .hero-pills    { animation: fadeUp 0.6s 0.3s ease both; }
.hero-left .hero-actions  { animation: fadeUp 0.6s 0.4s ease both; }
.hero-left .hero-stats    { animation: fadeUp 0.6s 0.5s ease both; }

/* Feature pills */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(139,92,246,0.07);
  border: 1px solid rgba(139,92,246,0.18);
  padding: 4px 9px;
  border-radius: 6px;
}

.hero-pill svg { color: var(--accent); flex-shrink: 0; }

/* RIGHT — browser mockup */
.hero-right {
  position: relative;
  animation: fadeLeft 0.8s 0.3s ease both;
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.mockup-glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(ellipse at 60% 50%, rgba(139,92,246,0.3) 0%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
  z-index: -1;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}

/* Browser chrome */
.browser-mockup {
  position: relative;
  width: 350px;
  background: #0d0d17;
  border: 1px solid rgba(139,92,246,0.35);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(139,92,246,0.12),
    0 32px 100px rgba(0,0,0,0.75),
    0 0 80px rgba(139,92,246,0.18);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px);   }
  50%       { transform: translateY(-12px); }
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(139,92,246,0.15);
}

.browser-dots { display: flex; gap: 6px; }

.browser-url {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-family: var(--mono);
  color: var(--text-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 3px 10px;
  border-radius: 5px;
  flex: 1;
}

/* Browser body — contains the pd-shell directly */
.browser-body {
  position: relative;
  overflow: hidden;
  line-height: 1;
}

/* Scan-line sweep animation */
.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(139,92,246,0.6) 40%,
    rgba(16,185,129,0.8) 50%,
    rgba(139,92,246,0.6) 60%,
    transparent 100%);
  top: 0;
  animation: scanDown 4s cubic-bezier(0.4,0,0.6,1) infinite 1.5s;
  pointer-events: none;
  z-index: 10;
  border-radius: 2px;
}

@keyframes scanDown {
  0%   { top: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Floating badges over the mockup */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(15,15,26,0.92);
  border: 1px solid rgba(139,92,246,0.35);
  padding: 6px 12px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  z-index: 5;
}

.fb-top-right {
  top: 12px; right: -12px;
  animation: badgeBob 3s ease-in-out infinite;
}

.fb-bottom-left {
  bottom: 20px; left: -12px;
  animation: badgeBob 3s ease-in-out infinite 1s;
}

.fb-mid-right {
  top: 50%; right: -16px;
  transform: translateY(-50%);
  animation: badgeBob 3s ease-in-out infinite 2s;
}

@keyframes badgeBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

.fb-mid-right {
  top: 55%; right: -16px;
  transform: none;
  animation: badgeBobMid 3s ease-in-out infinite 2s;
}

@keyframes badgeBobMid {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

.pulse-green {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.float-badge svg { color: var(--accent); flex-shrink: 0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.25);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
  animation: fadeUp 0.6s ease both;
  max-width: 100%;
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--header-font);
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  text-transform: uppercase;
  animation: fadeUp 0.6s 0.1s ease both;
  max-width: 100%;
  word-wrap: break-word;
}

.hero-subtitle {
  font-size: clamp(0.8rem, 1.1vw, 0.92rem);
  color: var(--text-2);
  max-width: 420px;
  margin: 0 0 20px;
  line-height: 1.65;
  animation: fadeUp 0.6s 0.2s ease both;
  word-wrap: break-word;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-3);
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.25s ease both;
  flex-wrap: wrap;
}

.hero-proof-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-proof strong {
  color: var(--text-2);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  animation: fadeUp 0.6s 0.3s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  padding: 11px 24px;
  border-radius: 9px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(139,92,246,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139,92,246,0.5);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-2);
  border: 1px solid var(--border-h);
  padding: 11px 22px;
  border-radius: 9px;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(139,92,246,0.5);
  transform: translateY(-2px);
}

/* ── Terminal card (used in API section) ───────── */
.terminal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow), var(--shadow-glow);
  animation: fadeUp 0.6s 0.4s ease both;
}

.hero-terminal { display: none; } /* replaced by browser mockup */

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  font-family: var(--header-font);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  font-size: 0.75rem;
}

.terminal-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red    { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green  { background: #22c55e; }

.terminal-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-3);
  margin-left: 4px;
}

.terminal-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.9;
}

.terminal-line { opacity: 0; animation: lineReveal 0.4s ease forwards; }
.terminal-line:nth-child(1) { animation-delay: 0.8s; }
.terminal-line:nth-child(2) { animation-delay: 1.4s; }
.terminal-line:nth-child(3) { animation-delay: 1.9s; }
.terminal-line:nth-child(4) { animation-delay: 2.4s; }
.terminal-line:nth-child(5) { animation-delay: 2.9s; }

@keyframes lineReveal {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.t-prompt { color: var(--primary); font-weight: 700; margin-right: 8px; }
.t-cmd    { color: var(--text); }
.t-info   { color: var(--text-2); }
.t-success { color: var(--accent); }
.t-cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Hero stats ─────────────────────────────────── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--text-3);
  margin-top: 3px;
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  margin: 0 18px;
}

/* ── Fade up animation ───────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════ */
.features { background: var(--bg-2); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover { 
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow), var(--shadow-glow);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-large {
  grid-column: span 2;
}

.feature-icon-wrap {
  width: 48px; height: 48px;
  background: rgba(139,92,246,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon {
  width: 24px; height: 24px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* Mini dashboard inside feature card */
.mini-dashboard {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-metric {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
}

.mini-label { color: var(--text-3); width: 32px; }
.mini-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}

.mini-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.16,1,0.3,1);
}

.feature-card.in-view .mini-fill { width: var(--w); }

.mini-val { color: var(--text); font-weight: 600; font-family: var(--mono); font-size: 0.75rem; }

/* Device badges */
.device-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.badge-device {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid;
}

.badge-device.junos   { color: #84cc16; border-color: rgba(132,204,22,0.3);   background: rgba(132,204,22,0.07); }
.badge-device.huawei  { color: #ef4444; border-color: rgba(239,68,68,0.3);    background: rgba(239,68,68,0.07); }
.badge-device.ssh     { color: var(--primary); border-color: rgba(139,92,246,0.3); background: rgba(139,92,246,0.07); }
.badge-device.telnet  { color: #f59e0b; border-color: rgba(245,158,11,0.3);   background: rgba(245,158,11,0.07); }

/* Schedule badge */
.schedule-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.8rem;
  font-family: var(--mono);
  color: var(--accent);
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.2);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Roles row */
.roles-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.role-chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.role-chip.super  { background: rgba(139,92,246,0.15); color: var(--primary); }
.role-chip.admin  { background: rgba(52,211,153,0.12); color: var(--accent); }
.role-chip.read   { background: rgba(100,116,139,0.15); color: var(--text-3); }

/* ═══════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════ */
.how-it-works { background: var(--bg); }

.steps-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.steps-line {
  position: absolute;
  left: 50%;
  top: 40px; bottom: 40px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  transform: translateX(-50%);
}

.step-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

.step-card.reverse {
  direction: rtl;
}

.step-card.reverse > * { direction: ltr; }

.step-num {
  font-size: 0.7rem;
  font-weight: 800;
  font-family: var(--mono);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 0 6px var(--bg), 0 0 20px rgba(139,92,246,0.4);
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-content p {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Step visuals */
.terminal-mini {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.9;
}

.t-line { color: var(--text-2); }
.t-line .tp { color: var(--primary); margin-right: 6px; }
.t-line.t-ok { color: var(--accent); }

.device-list-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dlp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}

.dlp-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dlp-dot.green  { background: var(--green); }
.dlp-dot.yellow { background: var(--yellow); }

.dlp-host { font-family: var(--mono); font-weight: 600; flex: 1; }

.dlp-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(132,204,22,0.1);
  color: #84cc16;
  border: 1px solid rgba(132,204,22,0.25);
}

.dlp-tag.huawei {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  border-color: rgba(239,68,68,0.25);
}

.dlp-ip { font-family: var(--mono); color: var(--text-3); font-size: 0.78rem; }

.collect-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.82rem;
  font-family: var(--mono);
}

.cp-row { display: flex; align-items: center; gap: 8px; }
.cp-row.success { color: var(--accent); }
.cp-row.fail    { color: var(--red); }

.diff-preview {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.9;
}

.dp-line.add { color: #4ade80; background: rgba(74,222,128,0.05); padding: 0 4px; }
.dp-line.rem { color: #f87171; background: rgba(248,113,113,0.05); padding: 0 4px; }
.dp-line.ctx { color: var(--text-3); padding: 0 4px; }

/* ═══════════════════════════════════════════════════════
   DEVICES
   ═══════════════════════════════════════════════════════ */
.devices-section { background: var(--bg-2); }

.devices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.device-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.device-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.device-card-future {
  border-style: dashed;
}

.device-logo { margin-bottom: 20px; display: flex; justify-content: center; }

.device-icon-box {
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.vendor-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.device-card:hover .vendor-logo {
  transform: scale(1.1);
}

.device-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.device-card p {
  font-size: 0.88rem;
  color: var(--text-2);
  margin-bottom: 20px;
  line-height: 1.65;
}

.device-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-2);
}

.device-list li::before {
  content: '→ ';
  color: var(--primary);
}

/* ═══════════════════════════════════════════════════════
   API SECTION
   ═══════════════════════════════════════════════════════ */
.api-section { background: var(--bg); }

.api-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.api-text .section-tag { display: inline-flex; text-align: left; }
.api-text .section-title { text-align: left; }
.api-text > p {
  font-size: 0.95rem;
  color: var(--text-2);
  margin-bottom: 28px;
  line-height: 1.7;
}

.api-groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.api-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s;
  font-size: 0.82rem;
}

.api-group:hover { border-color: var(--border-h); }

.ag-method {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  min-width: 40px;
  text-align: center;
}

.ag-method.get    { background: rgba(52,211,153,0.12); color: var(--accent); }
.ag-method.post   { background: rgba(139,92,246,0.12); color: var(--primary); }
.ag-method.delete { background: rgba(239,68,68,0.12);  color: var(--red); }

.ag-path {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text);
  flex: 1;
}

.ag-desc { font-size: 0.78rem; color: var(--text-3); }

.api-code-wrap .terminal-card { animation: none; }

.code-body {
  padding: 24px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.9;
  overflow-x: auto;
}

.code-body pre { white-space: pre; }

.c-comment { color: #4a5568; }
.c-cmd     { color: var(--accent); }
.c-flag    { color: var(--primary); }
.c-str     { color: #f59e0b; }
.c-key     { color: var(--primary); }
.c-val     { color: var(--accent); }
.c-num     { color: #f59e0b; }

/* ═══════════════════════════════════════════════════════
   SECURITY
   ═══════════════════════════════════════════════════════ */
.security-section { background: var(--bg-2); }

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s;
}

.sec-card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
}

.sec-icon { font-size: 1.8rem; margin-bottom: 14px; display: block; }

.sec-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.sec-card p { font-size: 0.88rem; color: var(--text-2); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════
   ROLES TABLE
   ═══════════════════════════════════════════════════════ */
.roles-section { background: var(--bg); }

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.roles-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.roles-table th,
.roles-table td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.roles-table th:first-child,
.roles-table td:first-child { text-align: left; }

.roles-table thead th {
  background: rgba(255,255,255,0.03);
  font-weight: 600;
  color: var(--text-2);
  font-size: 0.82rem;
}

.roles-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.roles-table tbody tr:last-child td { border-bottom: none; }
.roles-table td:first-child { color: var(--text-2); }

.roles-table td.yes { color: var(--accent); font-weight: 700; font-size: 1rem; }
.roles-table td.no  { color: var(--text-3); font-size: 1rem; }

/* ═══════════════════════════════════════════════════════
   GET STARTED
   ═══════════════════════════════════════════════════════ */
.get-started { background: var(--bg-2); }

.gs-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-h);
  border-radius: 20px;
  padding: 64px 48px;
  text-align: center;
}

.gs-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.gs-orb1 {
  width: 300px; height: 300px;
  background: rgba(139,92,246,0.2);
  top: -80px; left: -80px;
}

.gs-orb2 {
  width: 250px; height: 250px;
  background: rgba(52,211,153,0.12);
  bottom: -60px; right: -60px;
}

.gs-content { position: relative; z-index: 1; }

.gs-card h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.gs-card > .gs-content > p {
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.gs-features-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 0;
}

.gs-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 8px;
}

.gs-feat-icon { font-size: 1rem; }

/* ═══════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════ */
.contact-section { background: var(--bg-2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

/* — Info side — */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  transition: border-color 0.25s, transform 0.25s;
}

.contact-card:hover {
  border-color: var(--border-h);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-card-label {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.contact-card-value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.contact-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 14px 18px;
  background: rgba(52,211,153,0.06);
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.5;
}

.contact-proof strong { color: var(--accent); }

.contact-proof-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

/* — Form side — */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cf-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.03em;
}

.cf-field input,
.cf-field textarea {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 0.88rem;
  color: var(--text);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder { color: var(--text-3); }

.cf-field input:focus,
.cf-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.12);
}

.cf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border: none;
  border-radius: 10px;
  padding: 13px 28px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 20px rgba(139,92,246,0.35);
  align-self: flex-start;
}

.cf-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(139,92,246,0.5);
}

.cf-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.cf-success {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.25);
  padding: 12px 16px;
  border-radius: 9px;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  background: #05050a;
  border-top: 1px solid rgba(6, 182, 212, 0.1);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.3;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-3);
  margin-top: 20px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-family: var(--header-font);
}

.fl-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fl-group a {
  font-size: 0.9rem;
  color: var(--text-3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fl-group a:hover { 
  color: var(--primary);
  transform: translateX(4px);
}

.footer-newsletter p {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.85rem;
  flex: 1;
  outline: none;
  transition: border-color 0.3s;
}

.newsletter-form input:focus {
  border-color: var(--primary);
}

.newsletter-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.newsletter-btn:hover {
  filter: brightness(1.2);
  transform: scale(1.05);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-3);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: var(--text);
}

.footer-stack {
  font-family: var(--mono);
  font-size: 0.7rem;
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   PORTAL DASHBOARD REPLICA — Hero Section Right Side
   ═══════════════════════════════════════════════════════ */

/* — Shell layout — */
.pd-shell {
  display: flex;
  height: 440px;
  width: 100%;
  overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  background: #f1f5f9;
}

.hero-right {
  display: flex;
  flex-direction: column;
  height: auto;
  width: 350px;
  flex-shrink: 0;
}

/* — Sidebar — */
.pd-sidebar {
  width: 120px;
  flex-shrink: 0;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  padding: 12px 8px;
  border-right: 1px solid #1e293b;
}

.pd-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 0 4px;
}

.pd-brand-icon {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: linear-gradient(135deg, #7c3aed, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pd-brand-name {
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.pd-brand-sub {
  font-size: 6px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.1em;
}

.pd-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.pd-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.pd-nav-link:hover { background: #1e293b; color: #e2e8f0; }
.pd-active { background: #7c3aed !important; color: #fff !important; }

.pd-nav-sep {
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #334155;
  text-transform: uppercase;
  padding: 8px 8px 4px;
}

.pd-user-card {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1e293b;
  border-radius: 8px;
  padding: 6px 8px;
  margin-top: 8px;
}

.pd-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #38bdf8);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pd-user-name { font-size: 7.5px; font-weight: 600; color: #fff; line-height: 1.3; }
.pd-user-role { font-size: 6.5px; color: #f59e0b; }

.pd-footer-date {
  font-size: 6px;
  color: #334155;
  padding: 6px 4px 0;
  border-top: 1px solid #1e293b;
  margin-top: 6px;
}

/* — Main area — */
.pd-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #f1f5f9;
  overflow: hidden;
}

.pd-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pd-topbar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  flex-shrink: 0;
}

.pd-page-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 500;
  color: #64748b;
  flex: 1;
}

.pd-topbar-btns { display: flex; gap: 5px; }

.pd-btn-success, .pd-btn-primary {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 7.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.pd-btn-success { background: #059669; color: #fff; }
.pd-btn-primary { background: #7c3aed; color: #fff; }

/* — Content scroll area — */
.pd-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-content::-webkit-scrollbar { width: 3px; }
.pd-content::-webkit-scrollbar-track { background: transparent; }
.pd-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }

/* — Row 1: 4 stat cards — */
.pd-row4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.pd-stat-card {
  border-radius: 9px;
  padding: 9px 10px;
  color: #fff;
}

.pd-card-dark   { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); }
.pd-card-blue   { background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%); }
.pd-card-green  { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }
.pd-card-amber  { background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%); }
.pd-card-sky    { background: linear-gradient(135deg, #0369a1, #0ea5e9); }
.pd-card-pink   { background: linear-gradient(135deg, #be185d, #ec4899); }

.pd-stat-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 4px;
}

.pd-clock {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
}

.pd-clock-date { font-size: 7px; opacity: 0.6; margin-bottom: 1px; }
.pd-clock-day  { font-size: 7px; color: #38bdf8; }

.pd-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.pd-stat-label {
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.pd-stat-icon {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-stat-num {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}

.pd-stat-sub { font-size: 6px; opacity: 0.6; }

/* — Row 2: 5 cards — */
.pd-row5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.pd-sys-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 9px 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pd-sys-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.pd-sys-label {
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.pd-sys-val {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin-bottom: 4px;
}

.pd-sys-num {
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
}

.pd-sys-unit { font-size: 7px; color: #94a3b8; margin-bottom: 1px; }

.pd-bar-wrap {
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.pd-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.16,1,0.3,1);
}

.pd-bar-blue   { background: #8b5cf6; }
.pd-bar-purple { background: #7c3aed; }
.pd-bar-green  { background: #059669; }

.pd-sys-note { font-size: 6px; color: #94a3b8; }

/* — Device table — */
.pd-table-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pd-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
}

.pd-table-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  font-weight: 600;
  color: #334155;
}

.pd-badge-blue {
  background: #dbeafe;
  color: #7c3aed;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 700;
}

.pd-view-all { font-size: 7px; color: #8b5cf6; cursor: pointer; }

.pd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 7.5px;
}

.pd-table thead tr {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.pd-table thead th {
  padding: 5px 8px;
  font-size: 6.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
}

.pd-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.1s;
}

.pd-table tbody tr:last-child { border-bottom: none; }
.pd-table tbody tr:hover { background: #f8fafc; }

.pd-table tbody td {
  padding: 5px 8px;
  color: #334155;
  vertical-align: middle;
}

.pd-table tbody td code {
  font-size: 6.5px;
  background: #f1f5f9;
  padding: 1px 4px;
  border-radius: 3px;
  color: #475569;
  font-family: 'JetBrains Mono', monospace;
}

.pd-link { color: #2563eb; font-weight: 600; cursor: pointer; }

.pd-badge-n {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 6.5px;
  font-weight: 600;
}

/* — Animated row highlight — */
@keyframes rowFlash {
  0%   { background: rgba(139,92,246,0.1); }
  100% { background: transparent; }
}

.pd-row-flash { animation: rowFlash 1.8s ease forwards; }


.df-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #111827;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.7rem;
}

.df-logo { font-weight: 700; color: var(--text); }

.df-btns { display: flex; gap: 6px; }

.df-btn {
  padding: 4px 10px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.65rem;
}

.df-btn.green { background: rgba(52,211,153,0.15); color: var(--accent); border: 1px solid rgba(52,211,153,0.3); }
.df-btn.blue  { background: rgba(139,92,246,0.15); color: var(--primary); border: 1px solid rgba(139,92,246,0.3); }

.df-body {
  display: flex;
  height: 340px;
}

.df-sidebar {
  width: 110px;
  flex-shrink: 0;
  background: #0f1117;
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.df-nav-item {
  padding: 7px 12px;
  font-size: 0.65rem;
  color: var(--text-3);
  cursor: default;
  border-radius: 5px;
  margin: 0 4px;
  transition: background 0.2s;
}

.df-nav-item.active {
  background: rgba(139,92,246,0.2);
  color: var(--primary);
  font-weight: 600;
}

.df-nav-sep {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 10px 12px 4px;
  text-transform: uppercase;
}

.df-main {
  flex: 1;
  padding: 10px 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.df-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.df-card {
  border-radius: 7px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.06);
}

.df-card-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.df-card-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.blue-card   { background: linear-gradient(135deg, #1e3a8a, #2563eb22); }
.green-card  { background: linear-gradient(135deg, #064e3b, #05966922); }
.orange-card { background: linear-gradient(135deg, #7c2d12, #ea580c22); }
.pink-card   { background: linear-gradient(135deg, #4a044e, #c026d322); }

.df-table-header {
  font-family: var(--header-font);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-2);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.df-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.df-tr {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
  gap: 4px;
  padding: 5px 6px;
  font-size: 0.62rem;
  color: var(--text-3);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.df-tr.header {
  font-family: var(--header-font);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(255,255,255,0.02);
}

.df-link { color: var(--primary); font-weight: 500; }

/* ── Dashboard page-view swap container ────────────── */
.pd-page-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  overflow: hidden;
}

/* Smooth metric bar transitions */
.pd-bar { transition: width 0.8s cubic-bezier(0.16,1,0.3,1), background 0.4s ease; }

/* ═══════════════════════════════════════════════════════
   BROWSER MOCKUP — Fixed 350px width
   ═══════════════════════════════════════════════════════ */

/* The hero-right column and browser mockup are fixed at 350px */
.hero-right {
  width: 350px;
  flex-shrink: 0;
}

.browser-mockup {
  width: 350px;
}

/* The pd-shell (inner dashboard) fills the 350px browser */
.pd-shell {
  width: 100%;
  max-width: 100%;
  height: 440px;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ═══════════════════════════════════════════════════════ */

/* ── Large Desktop — hero split respects 350px mockup ── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 48px;
  align-items: center;
}

/* ── Tablets (max 1100px) ────────────────────────── */
@media (max-width: 1100px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .hero-subtitle {
    margin: 0 auto 24px;
    max-width: 600px;
  }

  .hero-pills  { justify-content: center; }
  .hero-actions { justify-content: center; }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat-divider { display: none; }

  /* Center the 350px-wide mockup */
  .hero-right {
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-large {
    grid-column: span 2;
  }

  .api-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .api-code-wrap {
    order: -1;
    display: none;
  }

  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Tablets (max 768px) ─────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .hero { padding: 90px 0 50px; }

  .container, .hero-container, .nav-container {
    padding: 0 20px;
  }

  /* Nav */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10,10,15,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .nav-cta { display: none; }

  .hamburger { display: flex; }

  /* Hero */
  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .stat-item {
    flex: 1 1 80px;
    text-align: center;
  }

  /* Mockup — still 350px, just centered */
  .hero-right {
    width: 350px;
    margin: 0 auto;
  }

  .browser-mockup {
    width: 350px;
  }

  /* Float badges */
  .fb-top-right { right: -4px; }
  .fb-bottom-left { left: -4px; }

  /* Grids → single column */
  .features-grid,
  .devices-grid,
  .security-grid,
  .contact-grid,
  .footer-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-large { grid-column: span 1; }

  /* Contact form row → stack */
  .cf-row {
    grid-template-columns: 1fr;
  }

  /* Table scroll */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Footer */
  .footer { padding: 60px 0 32px; }

  .footer-brand {
    text-align: center;
  }

  .footer-socials { justify-content: center; }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  /* Get started */
  .gs-card { padding: 40px 24px; }

  .gs-features-row { gap: 10px; }
  .gs-feat { font-size: 0.8rem; padding: 8px 14px; }

  /* Section titles */
  .section-title { font-size: clamp(1.6rem, 5vw, 2.4rem); }
}

/* ── Small Mobile (max 480px) ────────────────────── */
@media (max-width: 480px) {
  .section { padding: 48px 0; }

  .container, .hero-container, .nav-container {
    padding: 0 16px;
  }

  .hero { padding: 80px 0 40px; }

  .hero-title { font-size: clamp(1.5rem, 8vw, 2rem); }

  .hero-subtitle { font-size: 0.85rem; }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn-primary, .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .stat-item {
    flex: 1 1 80px;
    text-align: center;
    padding: 8px;
  }

  /* Mockup — scale down slightly on very small screens but keep 350px container */
  .hero-right {
    width: 100%;
    max-width: 350px;
  }

  .browser-mockup {
    width: 100%;
    max-width: 350px;
  }

  .pd-shell {
    height: 400px;
  }

  /* Float badges smaller or tighter */
  .fb-top-right  { right: 0; font-size: 0.64rem; padding: 4px 8px; }
  .fb-bottom-left { left: 0; font-size: 0.64rem; padding: 4px 8px; }

  .section-title { font-size: clamp(1.4rem, 6vw, 1.8rem); }

  .section-tag { font-size: 0.75rem; }

  .gs-card { padding: 32px 16px; }

  .gs-card h2 { font-size: 1.5rem; }

  .contact-form-wrap { padding: 24px 16px; }

  /* Features */
  .feature-card { padding: 24px 18px; }

  /* Security grid → already 1-col via 768px, keep it */

  /* Footer */
  .footer-top { gap: 28px; }
  .footer-bottom-links { gap: 8px; }

  /* Roles table */
  .roles-table th,
  .roles-table td { padding: 12px 10px; font-size: 0.8rem; }

  /* API groups */
  .ag-desc { display: none; }

  /* Navbar hamburger visible */
  .hamburger { display: flex; }
}
