/* ============================================================
   ABDIEL AI — RESPONSIVE DESIGN
   ============================================================ */

/* ── LARGE DESKTOP (1440px+) ── */
@media (min-width: 1440px) {
  .hero-container {
    gap: 6rem;
  }

  .services-grid {
    gap: 2rem;
  }

  .results-grid {
    gap: 2rem;
  }
}

/* ── TABLET LANDSCAPE (1024px – 1279px) ── */
@media (max-width: 1279px) {
  .hero-container {
    gap: 2.5rem;
  }

  .hero-visual {
    height: 480px;
  }

  .services-grid {
    gap: 1.25rem;
  }

  .service-card {
    padding: 2.5rem 2rem;
  }

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

  .process-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-connector {
    flex-direction: row;
    padding-top: 0;
    padding: 1rem 0;
    justify-content: center;
  }

  .process-connector-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), var(--blue-bright));
  }

  .founder-grid {
    grid-template-columns: 300px 1fr;
    gap: 4rem;
  }

  .audit-breakdown-items {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ── TABLET (768px – 1023px) ── */
@media (max-width: 1023px) {
  /* Nav */
  .nav-links { display: none; }
  .btn-nav   { display: none; }
  .nav-toggle { display: flex; }

  /* Hero — stack on tablet */
  .hero-container {
    grid-template-columns: 1fr;
    padding-top: 9rem;
    padding-bottom: 4rem;
    gap: 3rem;
  }

  .hero-visual {
    height: 380px;
    order: -1;
  }

  .hero-headline { font-size: clamp(2.4rem, 6vw, 4rem); }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  /* Help */
  .help-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .help-position {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .help-position-line {
    width: 60px;
    height: 1px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  /* Systems */
  .systems-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Results */
  .results-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .result-card--cta {
    grid-column: 1 / -1;
  }

  /* Founder */
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .founder-visual {
    order: -1;
  }

  .founder-values {
    justify-content: center;
  }

  .founder-grid .btn {
    margin: 0 auto;
  }

  /* Process */
  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-connector {
    flex-direction: row;
    padding: 0.75rem 0;
    justify-content: center;
  }

  .process-connector-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, var(--gold), var(--blue-bright));
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-links-group {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── MOBILE (max 767px) — DISTINCT DESIGN ── */
@media (max-width: 767px) {

  /* ── Body & cursor ── */
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none; }

  /* ── Scroll progress ── */
  .scroll-progress { height: 2px; }

  /* ── Nav ── */
  .nav { padding: 1rem 0; }
  .nav-container { gap: 1rem; }
  .nav-logo-img { height: 40px; }
  .section-progress { display: none; }
  .back-to-top { right: 1rem; bottom: 5.5rem; width: 40px; height: 40px; }
  .nav.scrolled { padding: 0.75rem 0; }

  /* ── Hero ── */
  .hero {
    min-height: 100svh;
    padding: 0;
    position: relative;
    overflow: hidden;
  }

  /* Rich atmospheric background on mobile */
  .hero::before {
    background:
      radial-gradient(ellipse 120% 50% at 50% 0%, rgba(30,58,138,0.18) 0%, transparent 55%),
      radial-gradient(ellipse 80% 40% at 100% 80%, rgba(212,175,55,0.08) 0%, transparent 55%),
      radial-gradient(ellipse 60% 30% at 0% 60%, rgba(30,58,138,0.08) 0%, transparent 50%);
  }

  .hero-container {
    grid-template-columns: 1fr;
    padding: 7rem 1.5rem 6rem;
    gap: 0;
    text-align: center;
  }

  .hero-visual {
    display: none;
  }

  .hero-img, .hero-img-overlay {
    display: none;
  }

  /* Availability badge */
  .hero-eyebrow {
    justify-content: center;
    font-size: 10px;
    letter-spacing: 0.12em;
    margin-bottom: 1.75rem;
    gap: 0.5rem;
  }

  .avail-badge {
    padding: 0.35rem 0.75rem;
  }

  /* Bold impactful headline */
  .hero-headline {
    font-size: clamp(2.6rem, 11vw, 3.6rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
  }

  .hero-sub {
    font-size: 1rem;
    line-height: 1.65;
    max-width: 100%;
    margin: 0 auto 1.75rem;
    color: rgba(255,255,255,0.72);
  }

  .hero-body {
    display: none;
  }

  /* Full-width stacked CTAs */
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Stats as a 3-col grid — no scroll */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
  }

  .hero-stat {
    padding: 1.1rem 0.5rem;
    border-right: 1px solid rgba(255,255,255,0.08);
    flex-shrink: unset;
  }

  .hero-stat:last-child { border-right: none; }

  .hero-stat-divider { display: none; }

  .hero-stat-num { font-size: 1.6rem; }

  .hero-stat-label {
    font-size: 9px;
    line-height: 1.4;
    opacity: 0.55;
  }

  .hero-scroll-indicator { display: none; }

  /* ── Ticker ── */
  .ticker-track { gap: 1.5rem; }

  /* ── Section base ── */
  .section { padding: 4.5rem 0; }

  .section-label {
    font-size: 10px;
    letter-spacing: 0.14em;
    margin-bottom: 0.75rem;
  }

  .section-heading {
    font-size: clamp(1.9rem, 7.5vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .section-sub {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0.75;
  }

  /* ── Who We Help ── */
  .help-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .help-card {
    padding: 1.75rem 1.5rem;
    border-radius: 14px;
    border-left: 2px solid rgba(212,175,55,0.25);
  }

  .help-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

  .help-position {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
  }

  .help-position-line {
    width: 24px;
    height: 1px;
    background: rgba(212,175,55,0.35);
  }

  /* ── Services ── */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 100%;
  }

  .service-card {
    padding: 1.75rem 1.5rem;
    border-radius: 14px;
  }

  .service-card--featured {
    border-color: rgba(212,175,55,0.3);
    background: rgba(212,175,55,0.04);
  }

  .service-number {
    font-size: 2.2rem;
    opacity: 0.2;
    margin-bottom: 0.5rem;
  }

  .service-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
  }

  .service-desc {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  /* ── AI Systems — peek horizontal scroll ── */
  .section-systems .container {
    padding-right: 0;
  }

  .systems-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem;
    padding: 0.25rem 1.5rem 1rem;
    scrollbar-width: none;
    margin: 0 -1.5rem;
  }

  .systems-grid::-webkit-scrollbar { display: none; }

  .system-card {
    min-width: 78vw;
    scroll-snap-align: start;
    flex-shrink: 0;
    padding: 1.75rem 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.07);
  }

  .system-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
  }

  .system-name {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
  }

  .system-desc {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  /* ── Process ── */
  .process-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-step {
    padding: 1.75rem 1.5rem;
    border-radius: 14px;
    position: relative;
  }

  .process-step-num {
    font-size: 2rem;
    opacity: 0.15;
  }

  .process-step-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .process-step-desc {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .process-connector {
    flex-direction: row;
    justify-content: center;
    padding: 0.4rem;
  }

  .process-connector-line {
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, var(--gold), var(--blue-bright));
  }

  .process-connector-dot { display: none; }

  /* ── Results ── */
  .results-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .result-card--cta { grid-column: 1; }

  .result-card {
    padding: 1.75rem 1.5rem;
    border-radius: 14px;
  }

  .result-metrics {
    gap: 1.25rem;
    flex-wrap: wrap;
  }

  .metric-num {
    font-size: 2rem;
  }

  .metric-label {
    font-size: 0.8rem;
  }

  /* ── Founder ── */
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .founder-visual {
    order: -1;
  }

  .founder-image-frame {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(212,175,55,0.12), 0 0 0 8px rgba(212,175,55,0.05);
  }

  .founder-heading {
    font-size: clamp(1.65rem, 6vw, 2.1rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .founder-body {
    font-size: 0.92rem;
    line-height: 1.75;
    opacity: 0.8;
  }

  .founder-values {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .founder-value {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
  }

  .founder-grid .btn {
    margin: 0 auto;
    width: 100%;
    justify-content: center;
  }

  .founder-name-block {
    text-align: center;
  }

  /* ── Final CTA ── */
  .section-final-cta .container {
    padding: 0 1.5rem;
  }

  .final-cta-heading {
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
  }

  .final-cta-sub {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.75;
  }

  .audit-breakdown {
    padding: 1.5rem;
    border-radius: 14px;
    margin-bottom: 2rem;
  }

  .audit-breakdown-title {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .audit-breakdown-items {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .audit-breakdown-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.88rem;
  }

  .final-cta-actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .final-cta-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
  }

  .final-cta-guarantee {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.65;
  }

  /* ── Footer ── */
  .footer { padding: 3rem 0 2rem; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    text-align: center;
    align-items: center;
  }

  .footer-logo-img { height: 40px; }

  .footer-tagline {
    font-size: 0.85rem;
    text-align: center;
    max-width: 260px;
  }

  .footer-links-group {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-links-col-title {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
  }

  .footer-link {
    font-size: 0.88rem;
    padding: 0.3rem 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    font-size: 0.78rem;
    padding-top: 1.5rem;
  }

  .footer-social-row {
    justify-content: center;
    gap: 0.75rem;
  }

  /* ── Mobile sticky CTA bar ── */
  .mobile-cta-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.875rem 1.25rem calc(0.875rem + env(safe-area-inset-bottom));
    background: rgba(13,13,13,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(212,175,55,0.12);
    z-index: 500;
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out-expo);
  }

  .mobile-cta-bar.visible {
    transform: translateY(0);
  }

  .mobile-cta-bar .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
  }
}

/* ── TINY MOBILE (max 375px) ── */
@media (max-width: 375px) {
  .hero-headline { font-size: 2.3rem; }
  .hero-stat-num { font-size: 1.4rem; }
  .section-heading { font-size: 1.8rem; }
  .service-card, .help-card { padding: 1.5rem 1.25rem; }
  .system-card { min-width: 85vw; padding: 1.5rem 1.25rem; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .ticker-track { animation: none; }
  .hero-scroll-line { animation: none; }
  .hero-visual-glow { animation: none; }
  .founder-image-glow { animation: none; }
  .systems-bg-glow { animation: none; }
  .final-cta-glow--gold { animation: none; }
}

/* ── HIGH CONTRAST ── */
@media (forced-colors: active) {
  .btn-gold {
    forced-color-adjust: none;
    background: ButtonText;
    color: ButtonFace;
  }
}
