/* ============================================================
   DELOS DYNAMICS — Design System
   Navy + Gold palette · Dark tech aesthetic · Lead-gen focus
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --navy:       #0a0f1e;
  --navy-2:     #0d1526;
  --navy-3:     #111d35;
  --navy-4:     #162040;
  --navy-card:  #0f1a30;
  --blue:       #1a6fc4;
  --blue-light: #2d8de8;
  --sky:        #38bdf8;
  --gold:       #e85d04;
  --gold-light: #fb8500;
  --gold-glow:  rgba(232,93,4,0.15);
  --teal:       #0d9488;
  --white:      #ffffff;
  --text-1:     #f0f4ff;
  --text-2:     #a8b8d8;
  --text-3:     #6b7fa8;
  --border:     rgba(255,255,255,0.07);
  --border-gold:rgba(232,93,4,0.3);
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-gold:0 4px 32px rgba(232,93,4,0.2);
  --radius:     10px;
  --radius-lg:  16px;
  --transition: 0.25s ease;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--navy);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { color: var(--text-2); font-size: 1rem; line-height: 1.75; }

.label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-title { color: var(--text-1); }
.section-sub { color: var(--text-2); max-width: 560px; margin: 12px auto 0; font-size: 1rem; }

/* ── Layout Helpers ──────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn-outline {
  background: transparent;
  color: var(--text-1);
  border: 1.5px solid var(--border-gold);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-1);
}
.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: 12px; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.card-header { margin-bottom: 16px; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition);
}
.nav.scrolled {
  background: rgba(10,15,30,0.95);
  backdrop-filter: blur(16px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
/* backdrop-filter on .nav creates a containing block that traps the
   fixed mobile menu overlay inside the ~76px nav bar. Drop it while the
   menu is open so the overlay can fill the viewport. */
.nav:has(.nav-links.open) {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  /* .nav has `transition: all` — without this, backdrop-filter animates
     blur→none over 0.25s, keeping the containing block alive and trapping
     the overlay at 76px for that frame window before it snaps full-screen.
     Kill the transition so the overlay opens full-screen instantly. */
  transition: none;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text-1);
}
.nav-logo img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(232,93,4,0.35));
}
.logo-text span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--text-1); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta { margin-left: 8px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: transparent; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-1); border-radius: 2px; transition: all var(--transition); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,93,4,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,93,4,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,93,4,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  bottom: -200px; left: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,111,196,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: 100px;
  padding: 6px 16px 6px 8px;
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-badge span { font-size: 0.78rem; font-weight: 600; color: var(--gold); letter-spacing: 0.04em; }
.hero h1 { color: var(--text-1); margin-bottom: 8px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-sub { font-size: 1.1rem; color: var(--text-2); max-width: 580px; margin: 20px 0 36px; line-height: 1.8; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-device-card {
  background: var(--navy-card);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 32px;
  width: 380px;
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.hero-device-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.device-metrics { display: flex; flex-direction: column; gap: 16px; }
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.metric-label { font-size: 0.8rem; color: var(--text-3); font-weight: 500; }
.metric-value { font-size: 0.95rem; font-weight: 700; color: var(--gold); }
.metric-value.green { color: #4ade80; }
.metric-value.blue { color: var(--sky); }
.device-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

/* ── Protocol Badges ─────────────────────────────────────── */
.protocol-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.protocol-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.04em;
  transition: all var(--transition);
}
.protocol-badge:hover {
  border-color: var(--sky);
  color: var(--sky);
  background: rgba(56,189,248,0.05);
}
.protocol-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }

/* ── Icons (inline SVG sprite, replaces emoji) ───────────── */
.ico {
  width: 1em; height: 1em;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  display: inline-block; vertical-align: -0.125em; flex-shrink: 0;
}
.feature-icon .ico { width: 24px; height: 24px; }
.feature-icon.icon-gold { color: var(--gold); }
.feature-icon.icon-blue { color: var(--blue-light); }
.feature-icon.icon-teal { color: var(--teal); }
.metric-label .ico { width: 15px; height: 15px; margin-right: 8px; color: var(--text-3); vertical-align: -0.18em; }
.tech-pill .ico { width: 17px; height: 17px; margin-right: 2px; }
.ai-insight-ico { width: 16px; height: 16px; color: var(--gold); vertical-align: -0.18em; margin-right: 6px; }

/* ── Feature / Value Cards ───────────────────────────────── */
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.icon-gold { background: var(--gold-glow); border: 1px solid var(--border-gold); }
.icon-blue { background: rgba(26,111,196,0.15); border: 1px solid rgba(26,111,196,0.3); }
.icon-teal { background: rgba(13,148,136,0.15); border: 1px solid rgba(13,148,136,0.3); }

/* ── Product Cards ───────────────────────────────────────── */
.product-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}
.product-card-img {
  background: var(--navy-3);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  font-size: 60px;
}
.product-card-img img { max-height: 160px; object-fit: contain; }
.product-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-category {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.product-card-body h3 { color: var(--text-1); margin-bottom: 10px; }
.product-card-body p { font-size: 0.9rem; color: var(--text-2); flex: 1; }
.product-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.spec-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-3);
}
.spec-pill.gold { background: var(--gold-glow); border-color: var(--border-gold); color: var(--gold); }

/* ── Stats ───────────────────────────────────────────────── */
.stats-strip {
  background: var(--navy-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-label { font-size: 0.85rem; color: var(--text-3); margin-top: 8px; }

/* ── Filter Bar ──────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

/* ── Form ────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-1);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--gold); background: rgba(232,93,4,0.04); }
.form-control::placeholder { color: var(--text-3); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ── Section Backgrounds ─────────────────────────────────── */
.bg-navy-2 { background: var(--navy-2); }
.bg-navy-3 { background: var(--navy-3); }
.bg-gradient { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-3) 100%); }

/* ── Dividers ────────────────────────────────────────────── */
.gold-line {
  width: 48px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 16px auto;
}
.gold-line-left { margin: 16px 0; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--navy-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.88rem; color: var(--text-3); margin-top: 16px; max-width: 260px; line-height: 1.8; }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; color: var(--text-1); margin-bottom: 16px; letter-spacing: 0.04em; }
.footer-col a { display: block; font-size: 0.85rem; color: var(--text-3); margin-bottom: 10px; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-3); }
.footer-bottom a { color: var(--text-3); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold); }

/* ── Page Hero (inner pages) ─────────────────────────────── */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero .hero-grid { opacity: 0.5; }
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { margin-top: 12px; }
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-3);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: var(--text-3); }

/* ── Benefit List ────────────────────────────────────────── */
.benefit-list { list-style: none; margin-top: 16px; }
.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-2);
  margin-bottom: 10px;
  line-height: 1.6;
}
.benefit-list li::before {
  content: '→';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Tech Pills ──────────────────────────────────────────── */
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.04em;
  transition: all var(--transition);
}
.tech-pill:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-device-card { width: 100%; max-width: 380px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy-2);
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 999;
  }
  .nav-links.open .nav-link { font-size: 1.4rem; }
  .nav-cta { display: none; }
  .hamburger { display: flex; z-index: 1001; }
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}
@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero-ctas { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ── Mobile Menu Close Button ────────────────────────────── */
.nav-close { display: none; }
@media (max-width: 900px) {
  .nav-links.open .nav-close { display: block; }
}
