/* ════════════════════════════════════════════
   DUNE DIGITAL — style.css
   Dark / neon crypto-tech aesthetic
   ════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────── */
:root {
  --bg:           #08070e;
  --bg-2:         #0d0c17;
  --surface:      rgba(255, 255, 255, 0.04);
  --surface-hover:rgba(255, 255, 255, 0.07);
  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 255, 178, 0.3);

  --green:        #00ffb2;
  --green-dim:    rgba(0, 255, 178, 0.15);
  --green-glow:   rgba(0, 255, 178, 0.08);
  --purple:       #7c3aed;
  --purple-dim:   rgba(124, 58, 237, 0.15);
  --purple-glow:  rgba(124, 58, 237, 0.08);

  --text:         #ffffff;
  --text-muted:   #8892a4;
  --text-dim:     #4a5568;

  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --max-w:        1184px;
  --radius:       16px;
  --radius-sm:    10px;

  --nav-h:        72px;
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Container ──────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Gradient Text ──────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--green) 0%, #00c9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: #08070e;
}
.btn-primary:hover {
  background: #00e6a0;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 255, 178, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

.btn-large { padding: 18px 40px; font-size: 17px; }
.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }


/* ══════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════ */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s, backdrop-filter 0.3s, border-bottom 0.3s;
}

.nav-wrapper.scrolled {
  background: rgba(8, 7, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-img { height: 40px; width: auto; object-fit: contain; }

.nav-logo-text {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  transform: translateY(4px);
}

.logo-dune,
.logo-digital {
  color: #25fbff;
  font-family: 'Avenir Next', 'Avenir', 'Century Gothic', 'Trebuchet MS', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta { margin-left: 24px; padding: 10px 22px; font-size: 14px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 80px) 0 100px;
  overflow: hidden;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  animation: pulse 8s ease-in-out infinite;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 255, 178, 0.12) 0%, transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-30%);
  animation-delay: 0s;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  bottom: 0;
  right: 5%;
  animation-delay: -4s;
}

@keyframes pulse {
  0%, 100% { transform: translateX(-30%) scale(1); opacity: 1; }
  50% { transform: translateX(-30%) scale(1.1); opacity: 0.7; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--green-dim);
  border: 1px solid rgba(0, 255, 178, 0.25);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease both;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-headline {
  font-size: clamp(56px, 8vw, 104px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-br { display: block; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.tag {
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  animation: fadeIn 1s ease 1s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}


/* ══════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════ */
.stats-bar {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 24px;
  text-align: center;
}

.stat-number {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-plus {
  font-size: 0.6em;
  vertical-align: super;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 56px;
  background: var(--border);
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════
   SECTION COMMONS
══════════════════════════════════════════════ */
.section { padding: 120px 0; }

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 16px;
  font-family: 'Courier New', monospace;
}

.section-heading {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 64px;
}


/* ══════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
  overflow: hidden;
  cursor: default;
}

.service-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-6px);
}

.service-card-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0, 255, 178, 0.12) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.service-card-glow--purple {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-dim);
  border: 1px solid rgba(0, 255, 178, 0.2);
  border-radius: 12px;
  margin-bottom: 24px;
  color: var(--green);
}

.service-icon svg { width: 24px; height: 24px; }

.service-icon--purple {
  background: var(--purple-dim);
  border-color: rgba(124, 58, 237, 0.25);
  color: #a78bfa;
}

.service-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.service-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.service-tags li {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  transition: gap 0.2s;
}

.service-link:hover { gap: 10px; }


/* ══════════════════════════════════════════════
   WHY US
══════════════════════════════════════════════ */
.why-us {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-card {
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, background 0.3s;
}

.why-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.why-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-dim);
  border: 1px solid rgba(0, 255, 178, 0.2);
  border-radius: 12px;
  color: var(--green);
  margin-bottom: 20px;
}

.why-icon svg { width: 22px; height: 22px; }

.why-icon--purple {
  background: var(--purple-dim);
  border-color: rgba(124, 58, 237, 0.25);
  color: #a78bfa;
}

.why-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.why-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ══════════════════════════════════════════════
   PROCESS
══════════════════════════════════════════════ */
.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 40px;
}

.process-line {
  position: absolute;
  top: 28px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: linear-gradient(to right, var(--green), var(--purple), var(--green));
  opacity: 0.3;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.process-number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: var(--green);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.process-content h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.process-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ══════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════ */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.cta-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 255, 178, 0.1) 0%, transparent 70%);
  top: -100px;
  left: -100px;
}

.cta-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  bottom: -100px;
  right: -50px;
}

.cta-card {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 60px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.cta-card .section-label { justify-content: center; display: flex; }

.cta-heading {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  margin-top: 12px;
}

.cta-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-email {
  font-size: 14px;
  color: var(--text-muted);
}


/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.footer-logo-fallback {
  font-size: 18px;
  font-weight: 700;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: auto;
}

.footer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 32px;
}

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

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

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--green); }


/* ══════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
══════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ══════════════════════════════════════════════
   MOBILE NAVIGATION
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(8, 7, 14, 0.97);
    backdrop-filter: blur(20px);
    padding: 32px 24px;
    flex-direction: column;
    gap: 24px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 18px; }

  .nav-cta { display: none; }
  .hamburger { display: flex; }


  /* Hero */
  .hero-content { max-width: 100%; }
  .hero-sub br.hero-br { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  /* Stats */
  .stats-grid { flex-wrap: wrap; gap: 0; }
  .stat-item { flex: 1 1 50%; }
  .stat-divider:nth-child(4) { display: none; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Why us */
  .why-grid { grid-template-columns: 1fr; }

  /* Process */
  .process-track { grid-template-columns: 1fr; padding-top: 0; }
  .process-line { display: none; }
  .process-step { flex-direction: row; text-align: left; align-items: flex-start; }

  /* CTA */
  .cta-card { padding: 48px 28px; }

  /* Footer */
  .footer-tagline { margin-left: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 52px; }
  .stat-item { flex: 1 1 100%; }
  .stat-divider { width: 80%; height: 1px; }
}
