/* ═══════════════════════════════════════════════════
   EXPLORITAN LANDING PAGE — styles.css
   Modern, clean, dark-mode-first design
   ═══════════════════════════════════════════════════ */

/* ─── Reset & Base ─────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --bg: #09090b;
  --bg-subtle: #111114;
  --bg-muted: #18181b;
  --bg-card: #1c1c20;
  --bg-elevated: #232328;

  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --border: #27272a;
  --border-subtle: #3f3f46;

  --primary: #6366f1;
  --primary-hover: #818cf8;
  --primary-muted: rgba(99, 102, 241, 0.15);

  --accent-green: #22c55e;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-orange: #f97316;

  /* Spacing */
  --section-py: clamp(80px, 10vw, 140px);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-subtle);
}
.btn-outline:hover {
  border-color: var(--text-muted);
  background: var(--bg-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--text); }

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-block { width: 100%; justify-content: center; }

/* ─── Navigation ───────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s var(--ease);
  background: transparent;
}

.nav.scrolled {
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.nav-logo-icon { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── Hero ─────────────────────────────────────── */
.hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-gradient-1 {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  filter: blur(60px);
}

.hero-gradient-2 {
  position: absolute;
  top: 100px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
  filter: blur(60px);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 20%, transparent 80%);
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}


/* ─── Hero Dashboard Mockup ────────────────────── */
.hero-visual {
  margin-top: 64px;
  position: relative;
  z-index: 1;
}

.dashboard-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 20px 60px -10px rgba(0,0,0,0.5),
    0 0 120px -20px rgba(99,102,241,0.15);
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
}

.topbar-dots { display: flex; gap: 6px; }
.topbar-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}
.topbar-dots span:first-child { background: #ef4444; border-color: #ef4444; }
.topbar-dots span:nth-child(2) { background: #eab308; border-color: #eab308; }
.topbar-dots span:last-child { background: #22c55e; border-color: #22c55e; }

.topbar-url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.topbar-spacer { width: 52px; }

.dashboard-body {
  display: flex;
  min-height: 380px;
}

.dash-sidebar {
  width: 200px;
  padding: 16px 12px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  transition: all 0.15s;
}

.dash-sidebar-item.active {
  background: var(--primary-muted);
  color: var(--primary-hover);
}

.dash-main { flex: 1; padding: 20px 24px; }

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dash-header h3 { font-size: 16px; font-weight: 600; }

.dash-date {
  font-size: 13px;
  color: var(--text-muted);
}

.dash-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.dash-card {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
}

.dash-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-card-icon.blue { background: rgba(59,130,246,0.15); color: var(--accent-blue); }
.dash-card-icon.green { background: rgba(34,197,94,0.15); color: var(--accent-green); }
.dash-card-icon.purple { background: rgba(168,85,247,0.15); color: var(--accent-purple); }
.dash-card-icon.orange { background: rgba(249,115,22,0.15); color: var(--accent-orange); }

.dash-card-info { flex: 1; }

.dash-card-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.dash-card-label {
  font-size: 11px;
  color: var(--text-muted);
}

.dash-card-trend {
  font-size: 11px;
  font-weight: 600;
  position: absolute;
  top: 14px;
  right: 14px;
}

.dash-card-trend.up { color: var(--accent-green); }
.dash-card-trend.neutral { color: var(--text-muted); }

/* Dashboard chart */
.dash-chart {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--bg-muted);
}

.dash-chart-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.dash-chart-total {
  font-weight: 600;
  color: var(--text);
}

.dash-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 100px;
}

.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.bar-group span {
  font-size: 11px;
  color: var(--text-muted);
}

.bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--primary), var(--primary-hover));
  opacity: 0.7;
  transition: opacity 0.2s;
}

.bar.highlight { opacity: 1; }
.bar-group:hover .bar { opacity: 1; }

/* ─── Section Common ──────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ─── Features ─────────────────────────────────── */
.features {
  padding: var(--section-py) 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  transition: all 0.3s var(--ease);
}

.feature-card:hover {
  border-color: var(--border-subtle);
  background: var(--bg-muted);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -8px rgba(0,0,0,0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-muted);
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Platform ─────────────────────────────────── */
.platform {
  padding: var(--section-py) 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.platform-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.platform-text .section-tag { margin-bottom: 12px; }

.platform-text h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.platform-text > p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 40px;
}

.platform-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.platform-feature {
  display: flex;
  gap: 16px;
}

.platform-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary-muted);
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-feature strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.platform-feature span {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Phone mockup */
.platform-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  border-radius: 36px;
  border: 3px solid var(--border-subtle);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 20px 60px -10px rgba(0,0,0,0.5);
  position: relative;
}

.phone-notch {
  width: 120px;
  height: 28px;
  background: var(--bg);
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.phone-screen { padding: 0 20px 24px; }

.phone-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0 16px;
  font-size: 16px;
  font-weight: 700;
}

.phone-logo { width: 20px; height: 20px; border-radius: 5px; }

.phone-greeting {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.phone-cards {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.phone-card {
  flex: 1;
  padding: 12px 8px;
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  text-align: center;
}

.phone-card-emoji {
  font-size: 20px;
  margin-bottom: 4px;
}

.phone-card span {
  display: block;
  font-size: 11px;
  font-weight: 600;
}

.phone-card small {
  font-size: 9px;
  color: var(--text-muted);
}

.phone-upcoming {
  margin-top: 4px;
}

.phone-upcoming strong {
  display: block;
  font-size: 13px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.phone-event {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.phone-event-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-hover);
  width: 36px;
  flex-shrink: 0;
  padding-top: 1px;
}

.phone-event-details span {
  display: block;
  font-size: 13px;
  font-weight: 500;
}

.phone-event-details small {
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── Integrations ────────────────────────────── */
.integrations {
  padding: var(--section-py) 0;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.integration-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  transition: all 0.3s var(--ease);
}

.integration-card:hover {
  border-color: var(--border-subtle);
  transform: translateY(-2px);
}

.integration-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.integration-card span {
  font-size: 14px;
  font-weight: 500;
}

/* ─── CTA / Contact ───────────────────────────── */
.cta {
  padding: var(--section-py) 0;
}

.cta-box {
  padding: clamp(48px, 6vw, 80px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(168,85,247,0.1) 100%);
  border: 1px solid rgba(99,102,241,0.2);
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-content p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── Footer ───────────────────────────────────── */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 16px; }

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-developer {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom span {
  font-size: 13px;
  color: var(--text-muted);
}


/* ─── Animations ───────────────────────────────── */
.animate-fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s var(--ease-out) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.45s; }
.delay-5 { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-body { flex-direction: column; }
  .dash-sidebar {
    width: 100%;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    padding: 8px 12px;
  }
  .dash-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-mobile-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }

  .hero { padding: 120px 0 40px; }

  .features-grid { grid-template-columns: 1fr; }

  .platform-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .integrations-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: span 2; }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .dash-sidebar { display: none; }
  .dash-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .phone-mockup { width: 240px; }
}
