/* ============================================
   DATUM PLAN — Landing Page Styles
   Design: Dark construction-tech aesthetic
   ============================================ */

/* --- Design Tokens --- */
:root {
  --bg-base: #080C14;
  --bg-elevated: #0E1422;
  --bg-surface: #141C2E;
  --bg-card: rgba(18, 26, 43, 0.7);
  --bg-card-hover: rgba(24, 34, 55, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(249, 115, 22, 0.35);

  --accent: #F97316;
  --accent-hover: #FB923C;
  --accent-muted: rgba(249, 115, 22, 0.12);
  --accent-glow: rgba(249, 115, 22, 0.2);

  --text-heading: #F8FAFC;
  --text-body: #CBD5E1;
  --text-muted: #64748B;
  --text-accent: #F97316;

  --green: #22C55E;
  --blue: #3B82F6;
  --teal: #14B8A6;
  --purple: #A855F7;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 40px var(--accent-glow);

  --container-max: 1200px;
  --section-pad: 120px;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

/* --- Blueprint Grid Background --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* --- Ambient Gradient Orbs --- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.orb--orange {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 70%);
}

.orb--blue {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
}

.orb--teal {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(20,184,166,0.06) 0%, transparent 70%);
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.section-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-heading) 0%, var(--accent-hover) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-heading);
}

.nav__logo svg {
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--text-heading);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav__cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-heading);
  cursor: pointer;
  padding: 8px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--accent-muted);
  border: 1px solid var(--border-accent);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero__badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  margin-bottom: 20px;
}

.hero__sub {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-body);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn--primary {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-glow), var(--shadow-md);
}

.btn--ghost {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-body);
  border: 1px solid var(--border-medium);
}

.btn--ghost:hover {
  background: var(--bg-glass);
  border-color: rgba(255,255,255,0.2);
  color: var(--text-heading);
  transform: translateY(-1px);
}

.btn--large {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* Hero screenshot */
.hero__screenshot {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.hero__screenshot-inner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xl);
}

/* Browser chrome mockup */
.hero__screenshot-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #1A1A2E;
  border-bottom: 1px solid var(--border-subtle);
}

.hero__screenshot-chrome .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero__screenshot-chrome .dot:nth-child(1) { background: #FF5F57; }
.hero__screenshot-chrome .dot:nth-child(2) { background: #FEBC2E; }
.hero__screenshot-chrome .dot:nth-child(3) { background: #28C840; }

.hero__screenshot-chrome .url {
  flex: 1;
  margin-left: 12px;
  padding: 5px 14px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.hero__screenshot img {
  width: 100%;
  display: block;
}

/* Glow behind screenshot */
.hero__screenshot::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  z-index: -1;
  filter: blur(40px);
}

/* ============================================
   METRICS BAR
   ============================================ */
.metrics {
  padding: 48px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-glass);
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.metric__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.metric__icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.metric__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
}

.metric__detail {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  padding: var(--section-pad) 0;
  position: relative;
}

.features__header {
  text-align: center;
  margin-bottom: 64px;
}

.features__header .section-sub {
  margin: 16px auto 0;
}

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

.feature-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.35s ease;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.feature-card__icon--orange { background: rgba(249,115,22,0.1); color: #F97316; }
.feature-card__icon--blue { background: rgba(59,130,246,0.1); color: #3B82F6; }
.feature-card__icon--green { background: rgba(34,197,94,0.1); color: #22C55E; }
.feature-card__icon--teal { background: rgba(20,184,166,0.1); color: #14B8A6; }
.feature-card__icon--purple { background: rgba(168,85,247,0.1); color: #A855F7; }
.feature-card__icon--red { background: rgba(239,68,68,0.1); color: #EF4444; }

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  padding: var(--section-pad) 0;
  position: relative;
  background: var(--bg-elevated);
}

.how-it-works__header {
  text-align: center;
  margin-bottom: 72px;
}

.how-it-works__header .section-sub {
  margin: 16px auto 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

/* Connecting line */
.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    var(--border-medium) 15%,
    var(--border-medium) 85%,
    transparent
  );
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.step:hover .step__number {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.step h3 {
  margin-bottom: 10px;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================
   SHOWCASE SECTION
   ============================================ */
.showcase {
  padding: var(--section-pad) 0;
  position: relative;
}

.showcase__header {
  text-align: center;
  margin-bottom: 48px;
}

.showcase__header .section-sub {
  margin: 16px auto 0;
}

.showcase__tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.showcase__tab {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.25s;
}

.showcase__tab:hover {
  color: var(--text-body);
  border-color: var(--border-medium);
}

.showcase__tab.active {
  color: var(--text-heading);
  background: var(--accent-muted);
  border-color: var(--border-accent);
}

.showcase__image-wrap {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xl);
}

.showcase__image-wrap img {
  width: 100%;
  display: block;
  transition: opacity 0.4s ease;
}

.showcase__image-wrap img.hidden {
  display: none;
}

.showcase__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.3);
  pointer-events: none;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing {
  padding: var(--section-pad) 0;
  background: var(--bg-elevated);
  position: relative;
}

.pricing__header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing__header .section-sub {
  margin: 16px auto 0;
}

.pricing__card {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover), var(--accent));
}

.pricing__badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-muted);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.pricing__price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing__price-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.pricing__divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0 -40px 28px;
}

.pricing__features {
  text-align: left;
  margin-bottom: 32px;
}

.pricing__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.92rem;
  color: var(--text-body);
}

.pricing__feature svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--green);
}

.pricing__card .btn {
  width: 100%;
  justify-content: center;
}

.pricing__note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  padding: var(--section-pad) 0;
  text-align: center;
  position: relative;
}

.final-cta h2 {
  margin-bottom: 16px;
}

.final-cta .section-sub {
  margin: 0 auto 40px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-subtle);
}

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

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-heading);
}

.footer__tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__link {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--text-body);
}

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-pad: 80px;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2.6rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 64px;
    --nav-height: 64px;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 12, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 40px;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__link {
    font-size: 1.2rem;
  }

  .nav__toggle {
    display: block;
  }

  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn--primary,
  .btn--ghost {
    width: 100%;
    justify-content: center;
  }

  .metrics__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .steps::before {
    display: none;
  }

  .showcase__tabs {
    flex-wrap: wrap;
  }

  .pricing__card {
    padding: 28px 24px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .hero__sub {
    font-size: 0.95rem;
  }

  .hero__badge {
    font-size: 0.75rem;
  }

  .section-label {
    font-size: 0.72rem;
  }

  h2 {
    font-size: 1.6rem;
  }
}
