/* ═══════════════════════════════════════════════════════
   DETAILER AI — Premium Landing Page
   3D Effects · Glassmorphism · Bento Grid · Premium Feel
   ═══════════════════════════════════════════════════════ */

/* ─── NOISE TEXTURE ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
}

/* ─── AMBIENT GLOW (Static, Premium) ─── */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.04) 0%, transparent 60%);
}

.ambient-glow::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -30%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.025) 0%, transparent 60%);
}

/* ─── NAVIGATION (Glassmorphic) ─── */
.nav {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 1000;
  border-radius: 16px;
  transition: all 0.5s var(--ease-out-expo);
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase;
  padding: 10px 24px;
  background: var(--accent-primary);
  border-radius: 100px;
  color: #000 !important;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── HERO (Premium, Centered, Dramatic) ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 100px 24px 80px;
  overflow: hidden;
}

/* Gold radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

/* Horizontal gold accent line */
.hero-line {
  position: absolute;
  top: 30%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(201, 168, 76, 0.15) 40%, rgba(201, 168, 76, 0.25) 50%, rgba(201, 168, 76, 0.15) 60%, transparent 90%);
  transform: rotate(-4deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px 8px 12px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 36px;
  animation: fadeInUp 0.8s var(--ease-out-expo) both;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--accent-primary); }
  50% { opacity: 0.5; box-shadow: 0 0 24px var(--accent-primary); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -3px;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s both;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 44px;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s both;
}

/* ─── SOCIAL PROOF BAR ─── */
.social-proof {
  padding: 48px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}

.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.proof-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -2px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.proof-label {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ─── HOW IT WORKS (Premium Steps) ─── */
.how-it-works {
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.step-card {
  position: relative;
  padding: 44px 32px 40px;
  background: rgba(20, 20, 20, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  transition: all 0.5s var(--ease-out-expo);
  overflow: hidden;
  cursor: default;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* 3D hover tilt via perspective */
.step-card:hover {
  background: rgba(25, 25, 25, 0.7);
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(201, 168, 76, 0.05);
}

.step-card:hover::before {
  opacity: 1;
}

.step-number {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.2) 0%, rgba(201, 168, 76, 0.02) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 24px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.step-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── FEATURES (Bento Grid) ─── */
.features-section {
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.035) 0%, transparent 65%);
  pointer-events: none;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 64px;
}

/* Row 1: wide + narrow (7 + 5) */
.bento-grid .feature-card:nth-child(1) { grid-column: span 7; }
.bento-grid .feature-card:nth-child(2) { grid-column: span 5; }

/* Row 2: equal thirds (4 + 4 + 4) */
.bento-grid .feature-card:nth-child(3) { grid-column: span 4; }
.bento-grid .feature-card:nth-child(4) { grid-column: span 4; }
.bento-grid .feature-card:nth-child(5) { grid-column: span 4; }

/* Row 3: narrow + wide - mirrors row 1 (5 + 7) */
.bento-grid .feature-card:nth-child(6) { grid-column: span 5; }
.bento-grid .feature-card:nth-child(7) { grid-column: span 7; }

.feature-card {
  position: relative;
  padding: 40px 32px;
  background: rgba(20, 20, 20, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  transition: all 0.4s var(--ease-out-expo);
  cursor: default;
  overflow: hidden;
}

/* Shimmering border effect on hover */
.feature-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, transparent 40%, rgba(201, 168, 76, 0.25) 50%, transparent 60%);
  background-size: 300% 300%;
  background-position: 100% 100%;
  z-index: -1;
  transition: background-position 0.6s ease;
  opacity: 0;
}

.feature-card:hover {
  background: rgba(25, 25, 25, 0.6);
  border-color: rgba(201, 168, 76, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.feature-card:hover::after {
  opacity: 1;
  background-position: 0% 0%;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.25);
  box-shadow: 0 0 24px rgba(201, 168, 76, 0.1);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── CTA SECTION (Premium Glass Card) ─── */
.cta-section {
  position: relative;
  text-align: center;
}

.cta-box {
  position: relative;
  padding: 88px 48px;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.6) 0%, rgba(30, 30, 30, 0.3) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 32px;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

/* Gold top accent line */
.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-light), var(--accent-primary), transparent);
}

/* Radial glow behind CTA */
.cta-box::after {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.cta-section .section-title,
.cta-section .section-desc,
.cta-section .section-label,
.cta-section .btn-primary {
  position: relative;
  z-index: 1;
}

.cta-section .section-desc {
  margin: 0 auto 40px;
}

/* ─── BOOKING SECTION ─── */
.booking-section {
  position: relative;
}

.booking-wrapper {
  max-width: 900px;
  margin: 48px auto 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(12px);
}

.calendly-inline-widget {
  min-width: 320px;
  height: 700px;
}

/* ─── FOOTER (Premium, Clean) ─── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 72px 0 40px;
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 300px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-brand-logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0.8;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 56px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-grid .feature-card:nth-child(n) {
    grid-column: span 1;
  }

  .proof-grid {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .nav {
    top: 8px;
    left: 8px;
    right: 8px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 80px;
    left: 8px;
    right: 8px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 28px 24px;
    gap: 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero h1 {
    letter-spacing: -1.5px;
  }

  .section-spacer {
    padding: 80px 0;
  }

  .steps-grid,
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid .feature-card:nth-child(n) {
    grid-column: span 1;
  }

  .proof-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-box {
    padding: 56px 24px;
    border-radius: 24px;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-badge {
    font-size: 12px;
  }

  .step-card, .feature-card {
    padding: 28px 22px;
  }

  .nav {
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
  }

  .nav.scrolled {
    border-radius: 0;
  }
}
