:root {
  --df-bg: #050711;
  --df-bg-alt: #080a18;
  --df-surface: rgba(16, 20, 36, 0.96);
  --df-border-subtle: rgba(122, 138, 185, 0.35);
  --df-border-strong: rgba(145, 168, 235, 0.55);
  --df-primary: #0099ff; /* Updated to Bright Blue based on images */
  --df-primary-dark: #0077cc;
  --df-accent: #37e2ff;
  --df-text: #ffffff;
  --df-text-soft: #c4c7dd;
  --df-text-muted: #878ba6;
  --df-radius-lg: 24px;
  --df-radius-md: 16px;
  --df-radius-sm: 8px;
  --df-radius-pill: 999px;
  --df-shadow-soft: 0 30px 90px rgba(0, 0, 0, 0.55);
  --df-shell: min(1200px, 100% - 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #050711;
  color: var(--df-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

img {
  max-width: 100%;
  display: block;
}

.df-shell {
  width: var(--df-shell);
  margin-inline: auto;
}

/* Header */
.df-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 7, 17, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.df-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.df-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: white;
}

.df-nav {
  display: flex;
  gap: 24px;
}

.df-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--df-text);
  opacity: 0.9;
}

.df-nav-link:hover {
  opacity: 1;
  color: var(--df-primary);
}

/* Hero Section */
.df-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* Header space */
  background-color: #000;
  overflow: hidden;
}

.df-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.df-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.df-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding-bottom: 100px; /* Space for ribbon */
}

.df-hero-eyebrow {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

.df-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}

.df-hero-sub {
  font-size: 20px;
  font-weight: 300;
  opacity: 0.9;
}

.df-hero-ribbon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  z-index: 2;
  overflow-x: auto;
}

.df-ribbon-list {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  min-width: max-content;
  padding-inline: 40px;
}

.df-ribbon-item {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
}

/* Sections General */
.df-section {
  padding-block: 80px;
  position: relative;
}

.df-section-title {
  text-align: center;
  margin-bottom: 60px;
}

.df-section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.df-section-title p {
  color: var(--df-text-soft);
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.6;
}

.df-eyebrow-blue {
  color: var(--df-primary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

/* Stats Section */
.df-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.df-stat-card {
  background: #0b0e1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--df-radius-md);
  padding: 30px;
  text-align: center;
  transition: transform 0.2s;
}

.df-stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 153, 255, 0.3);
}

.df-stat-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--df-primary);
  margin-bottom: 12px;
  display: block;
}

.df-stat-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
}

.df-stat-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--df-text-soft);
}

/* Feature Section (Centered) */
.df-feature-centered {
  text-align: center;
  padding-block: 100px;
  background: radial-gradient(circle at center, rgba(0, 153, 255, 0.05), transparent 70%);
}

.df-feature-headline {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--df-primary);
  line-height: 1.2;
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 30px;
}

.df-feature-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--df-text-soft);
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 40px;
}

/* Sectors (Carousel/Grid) */
.df-sectors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.df-sector-card {
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--df-radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: all 0.2s;
  background: transparent;
}

.df-sector-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--df-primary);
}

.df-sector-icon {
  width: 40px;
  height: 40px;
  color: var(--df-primary);
}

.df-sector-label {
  font-size: 14px;
  font-weight: 500;
}

/* Device Grid */
.df-device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.df-device-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: #0b0e1e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--df-radius-sm);
  gap: 16px;
  transition: all 0.2s;
}

.df-device-card:hover {
  background: #11152b;
  border-color: var(--df-primary);
}

.df-device-icon {
  width: 32px;
  height: 32px;
  color: var(--df-primary);
}

.df-device-label {
  font-size: 14px;
  font-weight: 600;
}

/* Buttons */
.df-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--df-primary);
  color: white;
  padding: 12px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s;
}

.df-btn-pill:hover {
  background: var(--df-primary-dark);
}

/* Footer (Keep existing but align) */
.df-footer {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Auth Overlay (Keep existing) */
.df-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #050711;
  display: grid;
  place-items: center;
  padding: 20px;
}
.df-auth-box {
  width: min(100%, 400px);
  background: #0b0e1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}
.df-auth-input {
  width: 100%;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: 0.2em;
  padding: 10px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  border-radius: 8px;
}
.df-auth-error {
  color: #ff4b81;
  font-size: 13px;
  margin-top: 12px;
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .df-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .df-device-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .df-nav { display: none; }
  .df-hero h1 { font-size: 40px; }
  .df-ribbon-list { overflow-x: auto; padding-inline: 20px; gap: 20px; }
  .df-stats-grid { grid-template-columns: 1fr; }
  .df-sectors-grid { gap: 10px; }
  .df-sector-card { width: calc(50% - 10px); }
  .df-device-grid { grid-template-columns: 1fr; }
}
