/* ==========================================================================
   Matter AI — Main Stylesheet
   ========================================================================== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background: #F5F8FC; color: #0B1629; font-family: 'DM Sans', sans-serif; overflow-x: hidden; min-height: 100vh; }

/* ==========================================================================
   Layout
   ========================================================================== */

.page-row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 48px);
}

.content-col {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 48px);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.section--white { background: #FFFFFF; }
.section--light { background: #F5F8FC; }

.section--hero {
  background: #FFFFFF;
  min-height: 600px;
  height: calc(100vh - 95px - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.section--cta { padding: 128px 0; }

.section--journey { padding: 96px 0 80px; }

.section-content {
  position: relative;
  z-index: 1;
}

.section-content--center { text-align: center; }

/* ==========================================================================
   Typography
   ========================================================================== */

.section-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(0,180,220,0.65);
  margin-bottom: 28px;
}

.section-h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(24px, 3.8vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.7px;
  color: #0B1629;
  margin-bottom: 48px;
}

.section-h2--large {
  font-size: clamp(24px, 3.8vw, 40px);
  font-weight: 800;
  line-height: 1.15;
}

.body-text {
  font-size: 17px;
  line-height: 1.85;
  color: rgba(30,55,100,0.7);
  font-weight: 300;
}

.body-text-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gradient-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.7px;
  background: linear-gradient(135deg, #7B5CF6 0%, #3B82F6 50%, #00B4DC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text--statement {
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
}

.gradient-text--cta {
  font-size: clamp(26px, 4.5vw, 48px);
  letter-spacing: -1px;
  line-height: 1.18;
  margin-bottom: 24px;
  padding-bottom: 4px;
}

.feature-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #00A3C8;
  line-height: 1.3;
  white-space: pre-line;
  padding-top: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s, box-shadow 0.22s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,180,220,0.22);
}

.btn-primary {
  display: inline-block;
  padding: 16px 48px;
  background: linear-gradient(135deg, #7B5CF6 0%, #3B82F6 50%, #00B4DC 100%);
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 20px rgba(0,180,220,0.18);
}

.btn-outline {
  padding: 8px 20px;
  border: 1px solid rgba(0,180,220,0.28);
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  color: #00B4DC;
  background: transparent;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.85);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(255,255,255,0.92);
  border-bottom-color: rgba(13,27,62,0.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.nav-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { height: 28px; width: auto; }

/* ==========================================================================
   Trust Bar
   ========================================================================== */

.trust-bar {
  background: rgba(0,180,220,0.03);
  border-bottom: 1px solid rgba(13,27,62,0.08);
  padding: 10px clamp(24px,4vw,48px);
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: rgba(0,180,220,0.52);
}

.trust-bar a { color: inherit; }
.trust-bar-sep { margin: 0 8px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero-h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: #0B1629;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.78;
  color: rgba(30,55,100,0.7);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto 64px;
}

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

.cta-prompt {
  font-size: 15px;
  color: rgba(30,55,100,0.65);
  font-style: italic;
  font-weight: 400;
}

/* ==========================================================================
   Two-Column Layout
   ========================================================================== */

.two-col {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  max-width: 1280px;
}

.two-col-row {
  padding: 28px 0;
  border-top: 1px solid rgba(13,27,62,0.06);
}

/* ==========================================================================
   Wave Backgrounds
   ========================================================================== */

.wave-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.wave-wrap svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Journey Section
   ========================================================================== */

.journey-track { display: flex; align-items: flex-start; gap: 40px; }
.journey-stage { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.stage-header { display: flex; align-items: center; width: 100%; margin-bottom: 18px; }
.stage-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #00A3C8; flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0,163,200,0.45);
}
.stage-connector {
  flex: 1; height: 1px; margin: 0 8px;
  background: linear-gradient(to right, rgba(0,163,200,0.3), rgba(0,163,200,0.1));
}

.journey-h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0B1629;
  line-height: 1.3;
  margin-bottom: 14px;
}

.journey-p {
  font-size: 15px;
  font-weight: 300;
  color: rgba(30,55,100,0.7);
  line-height: 1.75;
  max-width: 280px;
}

/* ==========================================================================
   Flow Diagram
   ========================================================================== */

.diagram-container {
  margin-top: 64px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(24px, 4vw, 48px);
  box-sizing: border-box;
}

.matter-diagram {
  width: 100%;
  background: #0B1629;
  border-radius: 16px;
  padding: 40px 40px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(123,92,246,0.15);
}

.matter-diagram::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(123,92,246,0.15) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.matter-diagram::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 240px;
  background: radial-gradient(ellipse, rgba(123,92,246,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.diagram-inner { position: relative; z-index: 1; }
.diagram-svg { width: 100%; display: block; overflow: visible; }
.diagram-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid rgba(13,27,62,0.08);
  background: #FFFFFF;
  padding: 24px 0;
}

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

.footer-logo { height: 22px; width: auto; opacity: 0.45; }

.footer-text {
  font-size: 12.5px;
  color: rgba(30,55,100,0.32);
  letter-spacing: 0.3px;
  font-family: 'DM Sans', sans-serif;
}

.footer-text a,
.cta-closer-link { color: inherit; }

.cta-footer-text {
  margin-top: 48px;
  font-size: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(0,180,220,0.3);
}

/* ==========================================================================
   Palantir highlight
   ========================================================================== */

.text-highlight {
  color: #0B1629;
  font-weight: 500;
}

/* ==========================================================================
   Animations & Reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col-row { padding: 32px 0; }
  .hero-h1 { font-size: 32px !important; letter-spacing: -1px !important; }
  .page-row, .content-col { padding: 0 24px !important; }
  .footer-inner { flex-direction: column !important; gap: 14px !important; align-items: flex-start !important; }
  .journey-track { flex-direction: column; }
  .journey-stage { padding-bottom: 36px; }
  .journey-stage:last-child { padding-bottom: 0; }
  .stage-connector { display: none; }
  .journey-stage:not(:last-child)::after {
    content: '';
    display: block;
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, rgba(0,163,200,0.25), rgba(0,163,200,0.05));
    margin: 16px 0 0 4px;
  }
  .matter-diagram { padding: 32px 24px 28px; border-radius: 12px; }
  .diagram-scroll { min-width: 0; }
  .diagram-svg { min-width: 700px; }
}

@media (max-width: 540px) {
  .trust-bar { display: flex; flex-direction: column; gap: 2px; }
  .trust-bar-sep { display: none; }
}
