/* ==========================================================================
   Distinct Intelligence LLC — Stylesheet
   ========================================================================== */

:root {
  --bg: #07080a;
  --bg-alt: #0d0f13;
  --surface: #111318;

  --text: #f3f4f6;
  --text-dim: #9aa0ab;
  --text-faint: #5a5f6b;

  --accent-blue: #5b8cff;
  --accent-violet: #9b6bff;
  --accent-gradient: linear-gradient(120deg, var(--accent-blue), var(--accent-violet));

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  --container: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::selection {
  background: rgba(91, 140, 255, 0.35);
  color: #fff;
}

/* ==========================================================================
   Utility
   ========================================================================== */

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: inline-block;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 20px;
}

/* ==========================================================================
   Particle field background
   ========================================================================== */

#particle-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 0 0 rgba(91, 140, 255, 0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(91, 140, 255, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent-blue);
  color: #fff;
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

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

.btn-small {
  padding: 10px 20px;
  font-size: 13px;
}

.btn-full {
  width: 100%;
}

.btn.is-success {
  background: linear-gradient(120deg, #3ddc84, #2fb96f);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.scrolled {
  background: rgba(7, 8, 10, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-gradient);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--font-mono);
}

.logo-text strong {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text);
}

.logo-text span {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
}

.main-nav a:hover {
  color: var(--text);
}

.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--text);
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

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

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 32px 40px;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero-headline {
  font-size: clamp(42px, 7vw, 96px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 24px 0 28px;
  max-width: 18ch;
}

.hero-subhead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: 44px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-meta {
  max-width: var(--container);
  margin: 80px auto 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.scroll-cue {
  width: 1px;
  height: 44px;
  background: var(--border-strong);
  position: relative;
  overflow: hidden;
}

.scroll-cue-dot {
  position: absolute;
  left: -1.5px;
  top: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue);
  animation: scrollCue 2.4s ease-in-out infinite;
}

@keyframes scrollCue {
  0% { top: -10px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 44px; opacity: 0; }
}

/* fade-up entrance */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--delay, 0) * 0.12s + 0.1s);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Sections (generic)
   ========================================================================== */

.section {
  position: relative;
  z-index: 1;
  padding: 140px 32px;
  border-top: 1px solid var(--border);
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  max-width: 16ch;
  margin-bottom: 24px;
}

.section-intro {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--text-dim);
  max-width: 640px;
  line-height: 1.65;
  margin-bottom: 64px;
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   Overview cards
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  background: #14161c;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.card-text {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
}

/* ==========================================================================
   Product section
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.terminal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

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

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

.terminal-body {
  padding: 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 2.1;
}

.terminal-body .prompt {
  color: var(--accent-blue);
  margin-right: 8px;
}

.terminal-out {
  color: var(--text-dim);
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent-blue);
  margin-left: 8px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

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

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(91, 140, 255, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(91, 140, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 140, 255, 0); }
}

.product-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.product-desc {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 46ch;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 40px;
}

.feature-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-gradient);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-list h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-list p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.product-ctas {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Approach / process
   ========================================================================== */

.process-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 96px;
}

.process-row {
  display: flex;
  gap: 40px;
  align-items: baseline;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.process-row:last-child {
  border-bottom: 1px solid var(--border);
}

.process-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-blue);
  flex-shrink: 0;
  width: 36px;
}

.process-body h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.process-body p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  max-width: 60ch;
}

.section-alt {
  background: var(--bg-alt);
}

.index-row {
  align-items: center;
  gap: 32px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.index-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-faint);
  font-size: 18px;
  transition: transform 0.25s ease, color 0.25s ease;
}

.index-row:hover .index-arrow {
  color: var(--accent-blue);
  transform: translateX(6px);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-value {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.detail-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.detail-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.detail-value {
  font-size: 17px;
  color: var(--text);
}

.detail-value.link {
  transition: color 0.2s ease;
}

.detail-value.link:hover {
  color: var(--accent-blue);
}

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-row input,
.form-row select,
.form-row textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: vertical;
}

.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa0ab' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: #14161c;
}

.form-note {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.6;
  margin-top: -6px;
}

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

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 32px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav {
  display: flex;
  gap: 28px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

.footer-copy a {
  color: var(--text-faint);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.footer-copy a:hover {
  color: var(--text-dim);
}

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

@media (max-width: 900px) {
  .main-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(7, 8, 10, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 32px 24px;
  }

  .site-header.nav-open .main-nav a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .site-header.nav-open .header-cta {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 0 32px 24px;
    margin-top: 158px;
    background: rgba(7, 8, 10, 0.96);
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero-meta .scroll-cue {
    display: none;
  }

  .card-grid,
  .product-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    gap: 40px;
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 36px;
  }

  .section {
    padding: 96px 24px;
  }

  .hero {
    padding: 120px 24px 40px;
  }

  .header-inner {
    padding: 18px 24px;
  }

  .process-row {
    gap: 20px;
  }

  .index-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
  }
}
