/* ROOT THEMES */
:root {
  --bg: #0b0d10;
  --fg: #ffffff;
  --muted: #9aa0a6;
  --accent: #4ea1ff;
  --accent2: #9b4dff;
  --card-bg: #14171c;
  --border: rgba(255,255,255,0.08);
}

html.light {
  --bg: #f7f7f7;
  --fg: #111;
  --muted: #555;
  --card-bg: #ffffff;
  --border: rgba(0,0,0,0.08);
}

html.futuristic {
  --bg: #050510;
  --fg: #d0e0ff;
  --muted: #7a8cff;
  --accent: #00e0ff;
  --accent2: #ff00e0;
  --card-bg: #0d0d1a;
  --border: rgba(0,255,255,0.15);
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

/* THEME TOGGLE — BOTTOM LEFT */
.theme-toggle {
  position: fixed;
  bottom: 18px;
  left: 18px;
  background: var(--card-bg);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  z-index: 2000;
  transition: 0.25s ease;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 30px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark-inner .tree {
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 4px;
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* NAVIGATION */
nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: 0.25s ease;
}
.nav-link:hover {
  opacity: 1;
  color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: #000;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}
.nav-cta:hover {
  background: var(--accent2);
  color: #fff;
}

/* CONVERSION ENGINE BELOW HEADER */
.nav-right-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 30px auto;
  max-width: 1200px;
  padding: 0 20px;
  z-index: 998;
}

.nav-item {
  background: var(--card-bg);
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  justify-content: center;
  transition: 0.25s ease;
}

.nav-item:hover {
  background: var(--accent);
  color: #000;
}

.nav-icon {
  font-size: 22px;
  color: var(--accent);
}

.nav-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.nav-phone {
  font-size: 0.9rem;
  color: var(--accent2);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 900px) {
  .nav-right-row {
    flex-direction: column;
    align-items: stretch;
    padding: 0 10px;
  }
}

/* HERO */
.hero {
  margin-top: 40px;
  margin-bottom: 80px;
  text-align: left;
  padding: 0 30px;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
  font-size: 0.9rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.hero-title {
  font-size: 2.3rem;
  line-height: 1.4;
  margin-top: 20px;
  margin-bottom: 20px;
  max-width: 900px;
}

.hero-title span {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  opacity: 0.85;
  line-height: 1.6;
  max-width: 900px;
}

.hero-sub a {
  color: var(--accent2);
  text-decoration: none;
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  border: none;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: var(--accent2);
  color: #fff;
}

.btn-secondary {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--fg);
}
.btn-secondary:hover {
  background: var(--accent);
  color: #000;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
  padding: 0 30px;
}

.card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  background: var(--border);
  border-radius: 20px;
  margin: 6px 6px 0 0;
  font-size: 0.8rem;
}

.pill-accent {
  background: var(--accent);
  color: #000;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px 0;
  opacity: 0.7;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* FUTURISTIC MODE — SHOW SPECIAL SECTIONS */
.futuristic-only {
  display: none;
}
html.futuristic .futuristic-only {
  display: block;
}

/* ENERGY SWITCH — ONLY IN FUTURISTIC MODE */
.energy-switch-wrap {
  display: none;
}
html.futuristic .energy-switch-wrap {
  display: flex;
}

/* FUTURISTIC GLOW — CLEAN */
html.futuristic body {
  background: radial-gradient(circle at top, #0a0a1a, #050510 60%, #000008);
}

html.futuristic .card,
html.futuristic .nav-item,
html.futuristic header,
html.futuristic .theme-toggle {
  box-shadow: 0 0 12px rgba(0,255,255,0.25),
              inset 0 0 12px rgba(255,0,255,0.15);
  border-color: rgba(0,255,255,0.25);
}

html.futuristic .nav-link:hover,
html.futuristic .nav-cta:hover {
  color: #00e0ff;
  text-shadow: 0 0 8px #00e0ff;
}

html.futuristic .hero-title span {
  color: #00e0ff;
  text-shadow: 0 0 10px #00e0ff;
}

html.futuristic .pill-accent {
  background: #00e0ff;
  color: #000;
  box-shadow: 0 0 10px #00e0ff;
}

html.futuristic .nav-icon {
  color: #00e0ff;
  text-shadow: 0 0 6px #00e0ff;
}

/* FUTURISTIC — NEON GRID + DIAGONAL LATTICE */
html.futuristic body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(0,255,255,0.06) 0px, rgba(0,255,255,0.06) 2px, transparent 2px, transparent 20px),
    repeating-linear-gradient(-45deg, rgba(255,0,255,0.06) 0px, rgba(255,0,255,0.06) 2px, transparent 2px, transparent 20px),
    linear-gradient(90deg, rgba(0,255,255,0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0,255,255,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
  animation: gridShift 4s ease-in-out infinite;
}

/* ORB‑SYNCED BACKGROUND PULSE */
html.futuristic body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,255,255,0.18), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(255,0,255,0.12), transparent 70%);
  animation: orbPulse 4s ease-in-out infinite;
}

/* Pulse synced to orbFloat */
@keyframes orbPulse {
  0%   { opacity: 0.25; transform: scale(1); }
  50%  { opacity: 0.55; transform: scale(1.06); }
  100% { opacity: 0.25; transform: scale(1); }
}

/* Grid movement synced to orb */
@keyframes gridShift {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

/* FLOATING SQUARES — FUTURISTIC ONLY */
html.futuristic .floating-square {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0,255,255,0.25);
  animation: floatSquare 12s infinite ease-in-out;
  z-index: -1;
}

@keyframes floatSquare {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-40px) rotate(180deg); opacity: 0.6; }
  100% { transform: translateY(0) rotate(360deg); opacity: 0.3; }
}
