/* ═══════════════════════════════════════════════════════
   CoTrust — style.css
   Design: Dark-tech, electric blue/indigo, Space Grotesk
═══════════════════════════════════════════════════════ */

:root {
  --dark:    #080d1e;
  --dark-2:  #0f172a;
  --dark-3:  #1e293b;
  --sky:     #38bdf8;
  --indigo:  #818cf8;
  --purple:  #a78bfa;
  --teal:    #2dd4bf;
  --light:   #f8fafc;
  --light-2: #f0f9ff;
  --text:    #0f172a;
  --muted:   #64748b;
  --white:   #ffffff;
  --success: #10b981;
  --danger:  #ef4444;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

a { transition: color 0.2s, opacity 0.2s; }

/* ── Shared section rhythm ── */
section { padding: 96px 0; }
.section-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 10px;
  display: block;
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--text);
  margin-bottom: 16px;
}
.section-title-sm {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* ════════════════════════════════
   NAVBAR
════════════════════════════════ */
#mainNav {
  background: rgba(8, 13, 30, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 14px 0;
  transition: background 0.35s, box-shadow 0.35s;
}
#mainNav.scrolled {
  background: rgba(8, 13, 30, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.navbar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--sky), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-logo {
  display: inline-block;
  vertical-align: -5px;
  filter: brightness(2) saturate(1.2);
}

.nav-link {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--sky) !important; background: rgba(56,189,248,0.07); }

.nav-cta {
  background: linear-gradient(135deg, var(--sky), var(--indigo)) !important;
  color: white !important;
  border-radius: 50px !important;
  padding: 8px 22px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
}
.nav-cta:hover { opacity: 0.88; background: none; }

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.04) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.10) 45%, rgba(0,0,0,0.45) 100%),
    linear-gradient(135deg, #080d1e 0%, #10103a 35%, #080d2a 70%, #080d1e 100%);
  position: relative;
  overflow: hidden;
}

/* Grid texture */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,189,248,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

/* Glowing orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.22) 0%, transparent 70%);
  top: -120px; right: -100px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(56,189,248,0.18) 0%, transparent 70%);
  bottom: -80px; left: -80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 44px 36px 40px;
  background: rgba(0,0,0,0.20);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.06);
}

.hero-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--sky);
  display: block;
  margin-bottom: 18px;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8);
}
.hero-title {
  font-size: clamp(3rem, 9vw, 5.8rem);
  color: white;
  margin-bottom: 22px;
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,0.95), 0 0 60px rgba(0,0,0,0.8);
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.72;
  max-width: 580px;
  margin: 0 auto;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.85);
}

/* Word display */
.word-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.word-pill {
  background: linear-gradient(135deg, rgba(56,189,248,0.18), rgba(129,140,248,0.18));
  border: 1px solid rgba(56,189,248,0.45);
  color: white;
  padding: 11px 28px;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-block;
  transition: opacity 0.38s ease, transform 0.38s ease;
}
.word-dot {
  color: rgba(255,255,255,0.35);
  font-size: 1.4rem;
  font-weight: 300;
}
.word-caption {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.9);
}

/* Hero buttons */
.btn-hero-primary {
  background: linear-gradient(135deg, var(--sky), var(--indigo));
  color: white;
  border: none;
  padding: 15px 36px;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 6px 30px rgba(56,189,248,0.35);
  transition: transform 0.25s, box-shadow 0.25s, opacity 0.25s;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(56,189,248,0.45);
  color: white;
}
.btn-hero-secondary {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 15px 36px;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.38);
  color: white;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.3);
  font-size: 1.1rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ════════════════════════════════
   STATS STRIP
════════════════════════════════ */
.stats-strip {
  background: #0a0f24;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.stat-cell {
  padding: 28px 16px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.col-6:last-child .stat-cell,
.col-md-3:last-child .stat-cell { border-right: none; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--sky), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* ════════════════════════════════
   HOW IT WORKS
════════════════════════════════ */
.section-white { background: var(--white); }

/* Comparison cards */
.compare-card {
  border-radius: 20px;
  padding: 36px;
  border: 1px solid transparent;
}
.compare-old {
  background: #fff5f5;
  border-color: rgba(239,68,68,0.15);
}
.compare-new {
  background: #f0f9ff;
  border-color: rgba(56,189,248,0.25);
}
.compare-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}
.badge-bad  { color: var(--danger); }
.badge-good { color: var(--success); }
.compare-code {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.old-code { color: var(--danger); letter-spacing: 0.2em; }
.new-code {
  background: linear-gradient(135deg, var(--sky), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.6rem;
}
.compare-caption {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 20px;
}
.compare-list {
  list-style: none;
  padding: 0;
}
.compare-list li {
  font-size: 0.9rem;
  color: var(--text);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.compare-list i { font-size: 1rem; flex-shrink: 0; }

/* Step cards */
.step-card {
  background: var(--light);
  border-radius: 20px;
  padding: 36px 28px;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(56,189,248,0.12);
}
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--sky);
  margin-bottom: 14px;
}
.step-icon-wrap {
  font-size: 1.9rem;
  color: var(--indigo);
  margin-bottom: 16px;
}
.step-card h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.step-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ════════════════════════════════
   USE CASES
════════════════════════════════ */
.section-dark {
  background: var(--dark-2);
}
.use-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 36px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.use-card:hover {
  border-color: rgba(56,189,248,0.3);
  transform: translateY(-4px);
}
.use-icon-wrap {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.family-icon  { background: linear-gradient(135deg, var(--sky), var(--indigo)); color: white; }
.seniors-icon { background: linear-gradient(135deg, #f59e0b, #ef4444); color: white; }
.biz-icon     { background: linear-gradient(135deg, var(--teal), var(--sky)); color: white; }

.use-card h4 {
  font-size: 1.2rem;
  color: white;
  margin-bottom: 12px;
}
.use-card p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin-bottom: 16px;
}
.use-quote {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--sky);
  border-left: 3px solid rgba(56,189,248,0.4);
  padding: 8px 14px;
  margin: 0;
  border-radius: 0 8px 8px 0;
  background: rgba(56,189,248,0.06);
}

/* Direction cards */
.direction-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 28px;
}
.direction-icon {
  font-size: 1.6rem;
  color: var(--sky);
  flex-shrink: 0;
  margin-top: 2px;
}
.direction-card h5 {
  font-size: 1rem;
  color: white;
  margin-bottom: 6px;
}
.direction-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin: 0;
}

/* ════════════════════════════════
   PHONE MOCKUP FEATURE SECTION
════════════════════════════════ */
.section-feature {
  background: var(--light);
  padding: 96px 0;
}

.phone-mockup {
  width: 240px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-radius: 36px;
  border: 2px solid rgba(255,255,255,0.12);
  padding: 20px 18px 28px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 30px 80px rgba(0,0,0,0.35),
    0 60px 120px rgba(56,189,248,0.1);
  position: relative;
}
.phone-notch {
  width: 72px;
  height: 5px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  margin: 0 auto 20px;
}
.phone-screen {
  padding: 4px 0;
}
.phone-app-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-align: center;
  background: linear-gradient(135deg, var(--sky), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}
.phone-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.phone-words {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.phone-word-pill {
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.3);
  color: white;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.04em;
  transition: opacity 0.38s ease, transform 0.38s ease;
}
.phone-timer {
  margin-bottom: 14px;
}
.phone-timer-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--indigo));
  border-radius: 2px;
  width: 60%;
  margin-bottom: 5px;
  animation: timerShrink 3s linear infinite;
}
@keyframes timerShrink {
  0%   { width: 95%; }
  100% { width: 5%; }
}
.phone-timer span {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
}
.phone-action {
  background: linear-gradient(135deg, var(--sky), var(--indigo));
  color: white;
  border-radius: 10px;
  padding: 11px;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

/* Feature list */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-dot {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(56,189,248,0.15), rgba(129,140,248,0.15));
  border: 1px solid rgba(56,189,248,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--sky);
  flex-shrink: 0;
}
.feature-item strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  display: block;
  margin-bottom: 3px;
}
.feature-item p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ════════════════════════════════
   VIDEO / WHY SECTION
════════════════════════════════ */
.section-video {
  background: linear-gradient(135deg, #080d1e 0%, #10103a 50%, #080d2a 100%);
  padding: 96px 0;
}
.why-body {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 16px;
}
.why-body em {
  color: var(--sky);
  font-style: normal;
  font-weight: 600;
}
.why-yt-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--sky);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}
.why-yt-link:hover { opacity: 0.75; color: var(--sky); }
.video-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(56,189,248,0.1);
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}
.video-caption {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-top: 12px;
  line-height: 1.5;
}

/* ════════════════════════════════
   DOWNLOAD SECTION
════════════════════════════════ */
.section-download {
  background: var(--white);
  padding: 96px 0;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--dark-2);
  color: white;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn-store:hover {
  background: linear-gradient(135deg, #0b4f6c, #3730a3);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56,189,248,0.2);
  color: white;
}
.btn-store i {
  font-size: 1.9rem;
  color: var(--sky);
  flex-shrink: 0;
}
.btn-store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.btn-store-text small {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  margin-bottom: 1px;
}
.btn-store-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: white;
}
.download-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.site-footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0;
}
.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, var(--sky), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 6px;
}
.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.footer-links a:hover { color: var(--sky); }
.footer-powered {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}
.footer-powered a {
  color: var(--sky);
  font-weight: 600;
  text-decoration: none;
}
.footer-powered a:hover { opacity: 0.8; }
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  margin: 0;
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(8,13,30,0.97);
    border-radius: 12px;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid rgba(255,255,255,0.07);
  }
  .nav-cta { margin-top: 6px; display: inline-block; }
}

@media (max-width: 767px) {
  section { padding: 72px 0; }
  .hero-content { padding: 32px 20px; }
  .word-pill { font-size: 1rem; padding: 9px 20px; }
  .hero-title { letter-spacing: 0; }
  .compare-card { padding: 24px; }
  .compare-code { font-size: 1.4rem; }
  .new-code { font-size: 1.1rem; }
  .step-card, .use-card { padding: 28px 22px; }
  .phone-mockup { width: 200px; }
  .phone-word-pill { font-size: 0.88rem; padding: 9px; }
  .stat-cell { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .col-6:nth-child(2) .stat-cell { border-right: none; }
  .col-md-3:last-child .stat-cell { border-bottom: none; }
}

@media (max-width: 575px) {
  .word-display { gap: 6px; }
  .word-dot { display: none; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
  .footer-links { gap: 14px; }
  .btn-store { width: 100%; justify-content: flex-start; }
  .direction-card { flex-direction: column; gap: 12px; }
}
