@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  --bg-main: #06080d;
  --bg-card: rgba(13, 17, 27, 0.78);
  --bg-card-hover: rgba(19, 25, 40, 0.92);
  --bg-pill: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.09);
  --border-active: rgba(0, 240, 255, 0.4);
  --cyan: #00f0ff;
  --cyan-dim: #00b4d8;
  --cyan-glow: rgba(0, 240, 255, 0.25);
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --emerald: #10b981;
  --amber: #f59e0b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-card: 0 12px 36px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border);
  --radius: 18px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Ambient glow - fixed without horizontal scrollbar trigger */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: 
    radial-gradient(circle at 50% -10%, rgba(0, 240, 255, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 5% 30%, rgba(59, 130, 246, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 95% 50%, rgba(139, 92, 246, 0.07) 0%, transparent 45%);
}

.shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  min-width: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 13, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #ffffff 40%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
  font-family: var(--font-sans);
}

.btn-primary {
  background: linear-gradient(135deg, #00f0ff 0%, #0088ff 100%);
  color: #05070a;
  box-shadow: 0 4px 16px rgba(0, 240, 255, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.45);
  transform: translateY(-1px);
}

.btn-warp {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.28);
  color: var(--cyan);
}

.btn-warp:hover {
  background: rgba(0, 240, 255, 0.16);
  border-color: rgba(0, 240, 255, 0.5);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-pill);
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 13px 20px;
  font-size: 0.95rem;
  border-radius: 12px;
}

/* Hero Section */
.hero {
  padding: 64px 0 50px;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.hero-content {
  min-width: 0;
  width: 100%;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.22);
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.25); }
}

.hero-title {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
  color: #fff;
  word-break: break-word;
}

.text-gradient {
  background: linear-gradient(135deg, #00f0ff 10%, #38bdf8 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.62;
  margin-bottom: 26px;
  max-width: 540px;
  word-break: break-word;
}

/* Hero Download Hub */
.download-hub {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  min-width: 0;
}

.btn-hero-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%);
  border-radius: 16px;
  color: #040812;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.32);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-hero-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 38px rgba(0, 240, 255, 0.52);
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
}

.btn-download-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.btn-download-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
}

.btn-download-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #040812;
}

.btn-download-sub {
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(4, 8, 18, 0.75);
  margin-top: 2px;
}

.btn-download-arrow {
  font-size: 1.25rem;
  font-weight: 900;
  background: rgba(4, 8, 18, 0.12);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Architecture Chips */
.arch-chips-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
}

.arch-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.18s ease;
  color: var(--text-main);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.arch-chip:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  transform: translateY(-1px);
}

.arch-chip.active {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.08);
}

.arch-chip b {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.arch-chip span {
  font-size: 0.65rem;
  color: var(--cyan);
  font-weight: 600;
  margin-top: 2px;
}

.qr-chip span {
  color: var(--amber);
}

.hub-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

/* ==============================================================================
   Cyber Smartphone Device Mockup
   ============================================================================== */
.mockup-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  perspective: 1000px;
}

.smartphone-chassis {
  width: 100%;
  max-width: 375px;
  background: #090e18;
  border-radius: 46px;
  padding: 10px;
  position: relative;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.95),
    0 0 50px rgba(0, 240, 255, 0.16),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.16),
    inset 0 0 0 4px #151e30;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.smartphone-chassis:hover {
  box-shadow: 
    0 30px 70px -15px rgba(0, 0, 0, 0.98),
    0 0 60px rgba(0, 240, 255, 0.25),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.25),
    inset 0 0 0 4px #1c273e;
}

/* Physical button accents on edge */
.chassis-button {
  position: absolute;
  background: #1f2a40;
  border-radius: 4px;
}
.btn-volume-up {
  left: -3px;
  top: 95px;
  width: 3.5px;
  height: 42px;
}
.btn-volume-down {
  left: -3px;
  top: 145px;
  width: 3.5px;
  height: 42px;
}
.btn-power {
  right: -3px;
  top: 110px;
  width: 3.5px;
  height: 54px;
}

/* Phone Screen (OLED Glass) */
.phone-screen {
  background: #050810;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  padding: 12px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Dynamic Island / Camera Notch */
.phone-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.island-camera {
  width: 8px;
  height: 8px;
  background: #0d1527;
  border: 1.5px solid #1e293b;
  border-radius: 50%;
}

.island-speaker {
  width: 4px;
  height: 4px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

/* Status Bar */
.phone-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  margin-top: 1px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.status-time {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
}

/* App inside Screen */
.phone-app-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-app-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}

.phone-app-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  display: block;
}

.phone-app-sub {
  font-size: 0.65rem;
  color: var(--cyan);
  font-weight: 600;
}

.phone-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald);
  font-size: 0.7rem;
  font-weight: 700;
}

/* Big Connect Button with Glowing Rings */
.phone-connect-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 12px 0;
}

.phone-ripple-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.phone-ripple-ring.ring-1 {
  width: 120px;
  height: 120px;
  border: 1px solid rgba(0, 240, 255, 0.22);
  animation: phonePulse 2.8s infinite;
}

.phone-ripple-ring.ring-2 {
  width: 150px;
  height: 150px;
  border: 1px solid rgba(0, 240, 255, 0.12);
  animation: phonePulse 2.8s infinite 0.6s;
}

@keyframes phonePulse {
  0% { transform: scale(0.92); opacity: 0.85; }
  50% { transform: scale(1.18); opacity: 0.25; }
  100% { transform: scale(0.92); opacity: 0.85; }
}

.phone-toggle-btn {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #00f0ff, #0284c7);
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.65), inset 0 2px 6px rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #030812;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 2;
}

.phone-toggle-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 45px rgba(0, 240, 255, 0.85);
}

.phone-toggle-btn.disconnected {
  background: radial-gradient(circle at 35% 35%, #334155, #1e293b);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.toggle-sub {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  margin-top: 3px;
  text-transform: uppercase;
}

/* Telemetry Grid inside phone */
.phone-telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  background: rgba(13, 18, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 10px;
}

.phone-telemetry-tile {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.p-tile-lbl {
  font-size: 0.6rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.p-tile-val {
  font-size: 0.85rem;
  font-weight: 800;
  font-family: var(--font-sans);
  line-height: 1.2;
}

.p-tile-val small {
  font-size: 0.6rem;
  font-weight: 500;
  opacity: 0.75;
}

.text-cyan { color: var(--cyan); }
.text-purple { color: #c084fc; }
.text-green { color: var(--emerald); }
.text-amber { color: var(--amber); }

/* Protocol Pills inside phone */
.phone-proto-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.proto-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 22, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.proto-pill:hover {
  background: rgba(20, 29, 48, 0.9);
  border-color: rgba(0, 240, 255, 0.3);
}

.proto-pill.active {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
}

.proto-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.proto-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  display: block;
}

.proto-sub {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.proto-state {
  font-size: 0.62rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
}

.phone-hint-text {
  text-align: center;
  font-size: 0.62rem;
  color: var(--text-dim);
  margin-top: -2px;
}

/* Bottom Android Navigation Pill */
.phone-bottom-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 4px;
}

.home-indicator {
  width: 76px;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
}
  align-items: baseline;
  gap: 3px;
  margin-top: 2px;
  min-width: 0;
}

.metric-num {
  font-size: 1.05rem;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1;
}

.metric-unit {
  font-size: 0.62rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.mockup-protocols {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.proto-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-pill);
  border: 1px solid var(--border);
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.proto-pill.active {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.32);
}

.proto-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.proto-icon-box {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.proto-name {
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proto-sub {
  font-size: 0.65rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proto-pill {
  cursor: pointer;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.proto-pill:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(3px);
}

.proto-pill.active {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.12);
}

.mockup-hint {
  font-size: 0.66rem;
  color: var(--cyan-dim);
  text-align: center;
  margin-top: 12px;
  letter-spacing: 0.3px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* QR Install Card (Desktop) */
.qr-install-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 14px;
  transition: all 0.2s ease;
}

.qr-install-card:hover {
  border-color: var(--border-active);
  background: rgba(0, 240, 255, 0.03);
}

.qr-box {
  background: #ffffff;
  padding: 6px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.qr-img {
  width: 76px;
  height: 76px;
  display: block;
}

.qr-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qr-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.qr-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Telemetry Bar */
.telemetry-bar-section {
  padding: 0 0 24px;
  position: relative;
  z-index: 2;
}

.telemetry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 17, 27, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 24px;
  box-shadow: var(--shadow-card);
  gap: 16px;
  flex-wrap: wrap;
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.telemetry-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.telemetry-icon {
  font-size: 1.1rem;
}

.telemetry-info {
  display: flex;
  flex-direction: column;
}

.telemetry-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.telemetry-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
}

.telemetry-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* Comparison Table */
.compare-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 580px;
}

.compare-table th,
.compare-table td {
  padding: 16px 22px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
}

.compare-table .highlight-th {
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  border-left: 1px solid var(--border-active);
  border-right: 1px solid var(--border-active);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.feature-col {
  font-weight: 600;
  color: #fff;
  width: 38%;
}

.bad-col {
  color: #f87171;
  width: 31%;
}

.good-col {
  color: #e2e8f0;
  background: rgba(0, 240, 255, 0.03);
  border-left: 1px solid rgba(0, 240, 255, 0.2);
  border-right: 1px solid rgba(0, 240, 255, 0.2);
  width: 31%;
}

.badge-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  font-size: 0.72rem;
  font-weight: 800;
  margin-right: 6px;
}

.badge-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  font-size: 0.75rem;
  font-weight: 800;
  margin-right: 6px;
}

.badge-free {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid var(--border-active);
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item.active {
  border-color: var(--border-active);
  box-shadow: 0 6px 20px -6px rgba(0, 240, 255, 0.15);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: color 0.15s ease;
}

.faq-question:hover {
  color: var(--cyan);
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--cyan);
  line-height: 1;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 22px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pricing / Tiers Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.featured {
  border-color: rgba(0, 240, 255, 0.4);
  background: linear-gradient(180deg, rgba(13, 22, 38, 0.9) 0%, rgba(13, 17, 27, 0.8) 100%);
  box-shadow: 0 16px 40px -10px rgba(0, 240, 255, 0.2), 0 0 0 1px rgba(0, 240, 255, 0.3);
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  width: fit-content;
  margin-bottom: 16px;
}

.badge-tier-free {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-tier-vip {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.pricing-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
  min-height: 42px;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.pricing-cost {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #fff;
}

.pricing-period {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  flex-grow: 1;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-main);
}

.pricing-feature svg {
  flex-shrink: 0;
}

/* Quick Generator Section */
.quick-gen-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: var(--shadow-card);
  max-width: 860px;
  margin: 0 auto;
}

.quick-gen-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.qg-preset-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.qg-preset-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.qg-preset-btn.active {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.2);
}

.quick-gen-cta-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.quick-gen-result {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: none;
  animation: fadeIn 0.3s ease;
}

.quick-gen-result.active {
  display: block;
}

.qg-result-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.qg-qr-box {
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.qg-qr-img {
  width: 110px;
  height: 110px;
  display: block;
}

.qg-info-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.qg-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Diagnostics Section */
.diag-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
  max-width: 860px;
  margin: 0 auto;
}

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

.diag-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.diag-target-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.diag-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  width: fit-content;
}

.status-checking {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
}

.status-ok {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
}

.status-warn {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
}

.diag-latency-text {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
}

.diag-verdict-box {
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Changelog Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-window {
  background: #090d16;
  border: 1px solid var(--border-active);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  padding: 28px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.2);
  position: relative;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s ease;
}

.modal-close:hover {
  color: var(--cyan);
}

.changelog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.changelog-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-main);
}

.changelog-badge {
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Sections */
.section {
  padding: 70px 0;
  width: 100%;
}

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 44px;
}

.section-tag {
  font-size: 0.76rem;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.65rem, 3.2vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.7px;
  line-height: 1.22;
  margin-bottom: 12px;
  word-break: break-word;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Protocols 3-column Grid */
.protocols-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
}

.proto-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  min-width: 0;
}

.proto-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: var(--shadow-card), 0 10px 30px -10px rgba(0, 240, 255, 0.18);
}

.proto-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.proto-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-warp { background: rgba(0, 240, 255, 0.12); color: var(--cyan); }
.badge-wdtt { background: rgba(245, 158, 11, 0.12); color: var(--amber); }
.badge-xray { background: rgba(168, 85, 247, 0.12); color: #c084fc; }

.proto-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.3;
}

.proto-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.proto-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.proto-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.proto-feature-item svg {
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Features 4-column Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
  min-width: 0;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.feature-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-title {
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.feature-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* WARP Promo Banner */
.warp-promo-banner {
  background: linear-gradient(135deg, rgba(12, 22, 40, 0.88) 0%, rgba(18, 14, 32, 0.88) 100%);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 22px;
  padding: 36px;
  box-shadow: var(--shadow-card), 0 0 45px -10px rgba(0, 240, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  margin: 20px 0;
  width: 100%;
  min-width: 0;
}

.warp-promo-content {
  max-width: 640px;
  min-width: 0;
}

.warp-promo-title {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.25;
  word-break: break-word;
}

.warp-promo-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  word-break: break-word;
}

.warp-specs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.spec-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

/* Guides Tabs */
.guides-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  width: 100%;
  min-width: 0;
}

.guides-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.guide-tab {
  padding: 14px 20px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
}

.guide-tab:hover {
  color: #fff;
}

.guide-tab.active {
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.06);
  border-bottom: 2px solid var(--cyan);
}

.guide-content {
  display: none;
  padding: 26px;
  width: 100%;
  min-width: 0;
}

.guide-content.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.guide-step {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  min-width: 0;
}

.step-num {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--cyan);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.step-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Community Section */
.community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

.community-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: #fff;
  transition: all 0.2s ease;
  min-width: 0;
}

.community-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 10px 25px -8px rgba(0, 240, 255, 0.2);
}

.comm-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.comm-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.comm-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.45;
}

.comm-link {
  font-size: 0.8rem;
  color: var(--cyan);
  font-weight: 600;
  margin-top: auto;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 30px;
  background: rgba(4, 6, 9, 0.95);
  margin-top: 40px;
  width: 100%;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--cyan);
}

/* ==========================================================================
   Quick Generator Widget
   ========================================================================== */
.quick-gen-box {
  background: linear-gradient(135deg, rgba(13, 20, 35, 0.85) 0%, rgba(8, 12, 22, 0.85) 100%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: var(--shadow-card), 0 0 35px -10px rgba(0, 240, 255, 0.12);
  margin-bottom: 24px;
}

.qg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.qg-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.qg-icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 12px;
}

.qg-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}

.qg-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.quick-gen-presets, .qg-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.qg-presets-label {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-right: 4px;
}

.qg-preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.qg-preset-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.qg-preset-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.qg-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quick-gen-cta-row, .qg-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.qg-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
}

.qg-result {
  display: none;
  background: rgba(10, 15, 26, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 240, 255, 0.1);
  animation: fadeIn 0.3s ease;
  margin-top: 10px;
}

.qg-result.active {
  display: block;
}

.qg-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.qg-status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qg-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.qg-status-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.qg-latency-pill {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.qg-quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.qg-output-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .qg-output-grid {
    grid-template-columns: 1fr;
  }
}

.qg-terminal-card {
  background: #050810;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.qg-terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.t-red { background: #ef4444; }
.t-yellow { background: #f59e0b; }
.t-green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.terminal-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.qg-code-block {
  padding: 14px 16px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  color: #a5f3fc;
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  background: transparent;
}

.qg-qr-card {
  background: #050810;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.qg-qr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 12px;
}

.qg-qr-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.qg-qr-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.qg-qr-box {
  background: #ffffff;
  padding: 8px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qg-qr-img {
  width: 130px;
  height: 130px;
  display: block;
}

.qg-qr-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.qg-troubleshoot-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: #fde68a;
  line-height: 1.45;
}

.qg-troubleshoot-note a {
  color: var(--cyan);
  text-decoration: underline;
}

.qg-note-icon {
  font-size: 1rem;
  line-height: 1;
}

.qg-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
}

.pricing-card-featured {
  background: linear-gradient(135deg, rgba(23, 20, 36, 0.85) 0%, rgba(14, 18, 28, 0.85) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: var(--shadow-card), 0 0 35px -10px rgba(245, 158, 11, 0.15);
}

.pricing-card-featured:hover {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: var(--shadow-card), 0 0 45px -8px rgba(245, 158, 11, 0.25);
}

.pricing-popular-tag {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.pricing-card-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.badge-tier-free {
  display: inline-block;
  background: rgba(0, 240, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.badge-tier-vip {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.pricing-plan-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pricing-period {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  font-family: var(--font-sans);
}

.pricing-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: #e2e8f0;
  line-height: 1.45;
}

.pricing-check {
  color: var(--emerald);
  font-weight: 800;
  flex-shrink: 0;
}

.pricing-card-footer {
  margin-top: auto;
}

/* ==========================================================================
   Live Diagnostics Section
   ========================================================================== */
.diag-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
}

.diag-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.diag-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.diag-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
}

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

.diag-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.diag-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.diag-item-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.diag-item-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.diag-item-desc {
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin-top: auto;
}

.diag-verdict-box {
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Changelog Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 35px -10px rgba(0, 240, 255, 0.15);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #0b0f19;
  z-index: 2;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.modal-sub {
  font-size: 0.76rem;
  color: var(--text-dim);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.changelog-release {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.cl-ver-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cl-ver {
  font-weight: 800;
  color: #fff;
  font-size: 0.96rem;
}

.cl-date {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.cl-tag.current {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.cl-list {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.cl-list b {
  color: #e2e8f0;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: #090c14;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .protocols-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .community-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .warp-promo-banner {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .nav-menu {
    display: none;
  }
  .qr-install-card {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 0 16px;
  }
  .hero {
    padding: 32px 0 24px;
  }
  .header-inner {
    height: 56px;
    gap: 8px;
  }
  .brand-logo {
    width: 32px;
    height: 32px;
  }
  .brand-title {
    font-size: 0.95rem;
  }
  .brand-subtitle {
    display: none;
  }
  .header-actions .btn-primary {
    display: none;
  }
  .header-actions .btn-warp {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
  .arch-buttons {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hub-actions-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .guide-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .community-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .guides-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
  }
  .guide-tab {
    padding: 12px 10px;
    font-size: 0.8rem;
    justify-content: center;
    text-align: center;
    border-bottom: 2px solid transparent;
  }
  .guide-tab.active {
    border-bottom: 2px solid var(--cyan);
    background: rgba(0, 240, 255, 0.06);
  }
  .guide-content {
    padding: 18px 14px;
  }
  .warp-promo-banner {
    padding: 22px 16px;
  }
  .mockup-card {
    padding: 16px;
    border-radius: 18px;
  }
  .mockup-metrics {
    padding: 10px;
    gap: 4px;
  }
  .metric-num {
    font-size: 0.92rem;
  }
  .metric-unit {
    font-size: 0.58rem;
  }
  .proto-pill {
    padding: 9px 10px;
  }
  .proto-name {
    font-size: 0.78rem;
  }
  .proto-sub {
    display: none;
  }
  .telemetry-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 14px 16px;
  }
  .telemetry-divider {
    display: none;
  }
  .telemetry-item:last-child {
    grid-column: span 2;
  }
  .telemetry-val {
    font-size: 0.84rem;
  }
  .compare-table th,
  .compare-table td {
    padding: 12px 14px;
    font-size: 0.8rem;
  }
  .faq-question {
    padding: 14px 16px;
    font-size: 0.88rem;
  }
  .faq-answer {
    padding: 0 16px;
    font-size: 0.82rem;
  }
  .faq-item.active .faq-answer {
    padding: 0 16px 14px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pricing-card {
    padding: 24px 20px;
  }
  .quick-gen-box {
    padding: 20px 16px;
  }
  .quick-gen-presets {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .quick-gen-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .qg-result-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .diag-box {
    padding: 20px 16px;
  }
  .diag-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .diag-verdict-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==============================================================================
   QR Code Quick Scan Modal
   ============================================================================== */
.qr-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(3, 6, 12, 0.88);
  backdrop-filter: blur(18px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.qr-modal-backdrop.active {
  display: flex;
  animation: qrModalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes qrModalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.qr-modal-card {
  background: #090e18;
  border: 1px solid var(--border-active);
  border-radius: 24px;
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 240, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
}

.qr-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.qr-modal-close:hover {
  color: #fff;
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.15);
}

.qr-modal-img-wrap {
  width: 200px;
  height: 200px;
  background: #ffffff;
  padding: 12px;
  border-radius: 18px;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-modal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}

.qr-modal-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
