/* ========================================
   Dalton Landing Page - Bioluminescence Tech Theme
   Dark deep-ocean aesthetic with neon green accents
   ======================================== */

/* --- Override CSS variables for Dalton page --- */

.dalton-page {
  --color-bg: #0A0F14;
  --color-bg-secondary: #121A21;
  --color-bg-tertiary: #1A242E;
  --color-text: #E0F5EB;
  --color-text-secondary: #99BFAD;
  --color-text-tertiary: #7A9B8F;
  --color-accent: #00E68D;
  --color-accent-hover: #00F299;
  --color-border: #264038;
  --color-danger: #FF4059;

  --dalton-glow: rgba(0, 230, 141, 0.12);
  --dalton-glow-strong: rgba(0, 230, 141, 0.25);
  --dalton-font-mono: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Monaco, "Cascadia Mono", monospace;
}

/* Force dark regardless of system preference */
@media (prefers-color-scheme: light) {
  .dalton-page {
    --color-bg: #0A0F14;
    --color-bg-secondary: #121A21;
    --color-bg-tertiary: #1A242E;
    --color-text: #E0F5EB;
    --color-text-secondary: #99BFAD;
    --color-text-tertiary: #7A9B8F;
    --color-accent: #00E68D;
    --color-accent-hover: #00F299;
    --color-border: #264038;
    --color-danger: #FF4059;
  }
}

/* --- Header adaptation --- */

.dalton-page .site-header {
  background: #0A0F14;
  border-bottom-color: #1A2B26;
}

.dalton-page .site-logo {
  color: #E0F5EB;
}

.dalton-page .site-nav a {
  color: #7A9B8F;
}

.dalton-page .site-nav a:hover,
.dalton-page .site-nav a.active {
  color: #00E68D;
}

/* --- Footer adaptation --- */

.dalton-page .site-footer {
  background: #0A0F14;
  border-top-color: #1A2B26;
}

.dalton-page .footer-col h4 {
  color: #7A9B8F;
}

.dalton-page .footer-col a {
  color: #99BFAD;
}

.dalton-page .footer-col a:hover {
  color: #00E68D;
}

.dalton-page .footer-bottom {
  border-top-color: #1A2B26;
}

.dalton-page .footer-bottom p {
  color: #7A9B8F;
}

/* --- Hero --- */

.dalton-hero {
  padding: 80px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dalton-hero-icon {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin: 0 auto 28px;
  box-shadow: 0 0 40px var(--dalton-glow), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.dalton-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--dalton-glow) 0%, transparent 70%);
  pointer-events: none;
}

.dalton-hero h1 {
  font-family: var(--dalton-font-mono);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #E0F5EB;
  margin-bottom: 16px;
  position: relative;
  max-width: 15em;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.dalton-hero h1 span {
  color: #00E68D;
}

.dalton-hero .subtitle {
  font-size: 1.125rem;
  color: #99BFAD;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.dalton-hero .btn-primary {
  background: #00E68D;
  color: #0A0F14;
  font-weight: 700;
  padding: 14px 32px;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.dalton-hero .btn-primary:hover {
  background: #00F299;
  box-shadow: 0 0 24px var(--dalton-glow-strong);
}

.dalton-hero .btn-secondary {
  background: #1A242E;
  color: #99BFAD;
  border: 1px solid #264038;
}

.dalton-hero-availability {
  font-family: var(--dalton-font-mono);
  font-size: 0.875rem;
  color: #7A9B8F;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
}

/* --- Store badges --- */

.dalton-hero-badges,
.dalton-cta-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dalton-badge {
  width: auto;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.dalton-badge--appstore {
  height: 40px;
}

.dalton-badge--googleplay {
  height: 40px;
}

.dalton-badge--mac-appstore {
  height: 40px;
}

.dalton-badge:hover {
  opacity: 0.7;
}

/* --- Hero product screenshot --- */

.dalton-hero-product {
  margin-top: 48px;
  position: relative;
  max-height: 360px;
  overflow: hidden;
}

.dalton-hero-product img {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 64px var(--dalton-glow);
}

.dalton-hero-product::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, #0A0F14);
  pointer-events: none;
}

/* --- Section styling --- */

.dalton-section {
  padding: 64px 0;
  border-top: 1px solid #1A2B26;
}

.dalton-section-header {
  font-family: var(--dalton-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #00E68D;
  margin-bottom: 12px;
}

.dalton-section h2 {
  font-family: var(--dalton-font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: #E0F5EB;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
  border: none;
  padding: 0;
}

/* --- Toolkit feature list --- */

.dalton-toolkit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.dalton-toolkit-label {
  font-family: var(--dalton-font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #00E68D;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1A2B26;
}

.dalton-toolkit-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dalton-toolkit-item h3 {
  font-family: var(--dalton-font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: #E0F5EB;
  margin: 0 0 4px;
}

.dalton-toolkit-item p {
  font-size: 0.9375rem;
  color: #99BFAD;
  line-height: 1.55;
  margin: 0;
}

/* --- Trust section --- */

.dalton-trust {
  background: #121A21;
  border-top: 1px solid #1A2B26;
  border-bottom: 1px solid #1A2B26;
}

.dalton-trust-showcase {
  text-align: center;
  margin-bottom: 40px;
  max-height: 360px;
  overflow: hidden;
  position: relative;
}

.dalton-trust-showcase img {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 48px rgba(0, 230, 141, 0.06);
}

.dalton-trust-showcase::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, #121A21);
  pointer-events: none;
}

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

.dalton-trust-item h3 {
  font-family: var(--dalton-font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: #E0F5EB;
  margin-bottom: 8px;
}

.dalton-trust-item p {
  font-size: 0.9375rem;
  color: #99BFAD;
  line-height: 1.55;
}

/* --- Specs list --- */

.dalton-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
  margin-top: 32px;
}

.dalton-spec {
  font-size: 0.9375rem;
  color: #99BFAD;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.dalton-spec::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #00E68D;
  opacity: 0.6;
}

/* --- CTA section --- */

.dalton-cta {
  text-align: center;
  padding: 80px 0;
  border-top: 1px solid #1A2B26;
}

.dalton-cta h2 {
  font-family: var(--dalton-font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: #E0F5EB;
  margin-bottom: 12px;
  border: none;
  padding: 0;
}

.dalton-cta p {
  font-size: 1rem;
  color: #99BFAD;
  margin-bottom: 24px;
}

.dalton-cta-changelog {
  margin-top: 24px;
  margin-bottom: 0;
}

.dalton-cta-changelog a {
  font-family: var(--dalton-font-mono);
  font-size: 0.875rem;
  color: #7A9B8F;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.dalton-cta-changelog a:hover {
  color: #00E68D;
}

/* --- Disclaimer --- */

.dalton-disclaimer {
  text-align: center;
  padding: 0 0 64px;
  font-size: 0.8125rem;
  color: #7A9B8F;
  font-style: italic;
}

/* --- Changelog --- */

.dalton-page .changelog-hero {
  padding: 64px 0 32px;
  text-align: center;
  border-bottom: 1px solid #1A2B26;
}

.dalton-page .changelog-back-link {
  display: inline-block;
  font-family: var(--dalton-font-mono);
  font-size: 0.8125rem;
  color: #00E68D;
  text-decoration: none;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.dalton-page .changelog-back-link:hover {
  color: #00F299;
}

.dalton-page .changelog-hero h1 {
  font-family: var(--dalton-font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: #E0F5EB;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.dalton-page .changelog-subtitle {
  font-size: 1rem;
  color: #99BFAD;
  margin-bottom: 16px;
}

.dalton-page .changelog-rss {
  font-size: 0.875rem;
  color: #7A9B8F;
}

.dalton-page .changelog-rss a {
  color: #00E68D;
  text-decoration: none;
}

.dalton-page .changelog-rss a:hover {
  color: #00F299;
}

.dalton-page .changelog-content {
  padding: 48px 0 64px;
}

.dalton-page .changelog-version {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #1A2B26;
}

.dalton-page .changelog-version:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.dalton-page .changelog-version-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}

.dalton-page .changelog-version-number {
  font-family: var(--dalton-font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: #E0F5EB;
  margin: 0;
  border: none;
  padding: 0;
}

.dalton-page .changelog-version-date {
  font-family: var(--dalton-font-mono);
  font-size: 0.875rem;
  color: #7A9B8F;
}

.dalton-page .changelog-notes {
  font-size: 0.9375rem;
  color: #99BFAD;
  line-height: 1.7;
}

.dalton-page .changelog-notes p {
  margin: 0 0 16px;
}

.dalton-page .changelog-notes p:last-child {
  margin-bottom: 0;
}

.dalton-page .changelog-notes ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.dalton-page .changelog-notes ul:last-child {
  margin-bottom: 0;
}

.dalton-page .changelog-notes li {
  padding: 4px 0 4px 20px;
  position: relative;
}

.dalton-page .changelog-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #264038;
}

/* --- Responsive --- */

@media (max-width: 768px) {
  .dalton-hero {
    padding: 56px 0 0;
  }

  .dalton-hero h1 {
    font-size: 1.875rem;
  }

  .dalton-hero .subtitle {
    font-size: 1rem;
  }

  .dalton-hero-product {
    max-height: 280px;
  }

  .dalton-hero-product img {
    max-width: 260px;
  }

  .dalton-toolkit {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .dalton-trust-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .dalton-trust-showcase {
    max-height: 280px;
  }

  .dalton-trust-showcase img {
    max-width: 240px;
  }

  .dalton-specs {
    grid-template-columns: 1fr;
  }

  .dalton-section {
    padding: 48px 0;
  }

  .dalton-cta {
    padding: 56px 0;
  }

  .dalton-cta h2 {
    font-size: 1.5rem;
  }
}
