:root {
  --color-bg: #000000;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.72);
  --color-overlay: rgba(0, 0, 0, 0.6);
  --font-heading: ivypresto-headline, serif;
  --font-body: neue-haas-grotesk-display, sans-serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: normal;
  color: var(--color-text);
  background: var(--color-bg);
}

/* ── Animations ───────────────────────────────────── */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Hero ─────────────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  background: url('/assets/porsche-background.png') center center / cover no-repeat;
  background-color: #080808;
  overflow: hidden;
  padding-top: 90px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1.4s cubic-bezier(0.25, 0, 0.15, 1) 0s forwards;
}

/* ── Top Bar ──────────────────────────────────────── */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 38px;
  background: transparent;
  transition: background 0.5s cubic-bezier(0.25, 0, 0.15, 1),
              padding 0.5s cubic-bezier(0.25, 0, 0.15, 1);
}

.topbar.scrolled {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 38px;
}

.topbar-phone {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.03em;
  color: var(--color-text);
  text-decoration: none;
  opacity: 0;
  animation: fadeIn 1.2s cubic-bezier(0.25, 0, 0.15, 1) 0.6s forwards;
}

.topbar-phone:hover {
  opacity: 0.7;
}

.topbar-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 1.2s cubic-bezier(0.25, 0, 0.15, 1) 0.2s forwards;
}

.logo-img {
  height: 62px;
  width: auto;
  display: block;
  transition: opacity 0.5s cubic-bezier(0.25, 0, 0.15, 1);
}

.logo-secondary {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.topbar.scrolled .logo-primary {
  opacity: 0;
}

.topbar.scrolled .logo-secondary {
  opacity: 1;
}

/* ── Hamburger Animation ──────────────────────────── */

.hamburger span {
  transition: transform 0.4s cubic-bezier(0.25, 0, 0.15, 1),
              opacity 0.3s ease;
  transform-origin: center;
}

.topbar.menu-open .hamburger span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.topbar.menu-open .hamburger span:nth-child(2) {
  opacity: 0;
}

.topbar.menu-open .hamburger span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ── Slide-out Menu ───────────────────────────────── */

.menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.25, 0, 0.15, 1);
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.menu-link {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 300;
  font-style: normal;
  color: var(--color-text);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0, 0.15, 1),
              transform 0.6s cubic-bezier(0.25, 0, 0.15, 1);
}

.menu-overlay.open .menu-link {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay.open .menu-link:nth-child(1) {
  transition-delay: 0.15s;
}

.menu-overlay.open .menu-link:nth-child(2) {
  transition-delay: 0.3s;
}

.menu-link:hover {
  opacity: 0.6;
}

.topbar-menu {
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  animation: fadeIn 1.2s cubic-bezier(0.25, 0, 0.15, 1) 0.6s forwards;
}

.menu-label {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.1em;
  color: var(--color-text);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.hamburger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--color-text);
}

/* ── Hero Content ─────────────────────────────────── */

.hero-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  margin-top: -20px;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(48px, 8.5vw, 120px);
  font-weight: 300;
  font-style: normal;
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: var(--color-text);
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1.2s cubic-bezier(0.25, 0, 0.15, 1) 0.3s forwards;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 780px;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 1.2s cubic-bezier(0.25, 0, 0.15, 1) 0.6s forwards;
}

.hero-sub .accent {
  color: var(--color-text);
  font-weight: 700;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text);
  background: transparent;
  text-decoration: none;
  padding: 20px 46px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition: background 0.3s ease, color 0.3s ease;
  opacity: 0;
  animation: fadeUp 1.2s cubic-bezier(0.25, 0, 0.15, 1) 0.9s forwards;
}

.hero-cta:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* ── Scroll Reveal ─────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.8s cubic-bezier(0.25, 0, 0.15, 1),
              transform 1.8s cubic-bezier(0.25, 0, 0.15, 1);
}

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

.reveal-delay-1 { transition-delay: 0.25s; }
.reveal-delay-2 { transition-delay: 0.5s; }
.reveal-delay-3 { transition-delay: 0.75s; }

/* ── The Problem ──────────────────────────────────── */

.problem {
  background: #f5f5f5;
  padding: 110px 90px;
}

.problem-grid {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 60px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.problem-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  font-style: normal;
  line-height: 1.1;
  color: #111;
  margin-bottom: 28px;
}

.problem-body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1.5em;
}

.problem-body:last-child {
  margin-bottom: 0;
}

.problem-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

/* ── The Apex System ──────────────────────────────── */

.apex-system {
  background: #000;
  padding: 110px 90px;
}

.apex-system-grid {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 60px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.apex-system-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.apex-system-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  font-style: normal;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 28px;
}

.apex-system-body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

/* ── Testimonials ─────────────────────────────────── */

.testimonials {
  background: #2a2a2a;
  padding: 70px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
  min-height: 280px;
}

.testimonial-slide {
  text-align: center;
  max-width: 700px;
  transition: opacity 0.4s cubic-bezier(0.25, 0, 0.15, 1);
}

.testimonial-slide.fade-out {
  opacity: 0;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.testimonial-business {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

.testimonial-arrow {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.testimonial-arrow:hover {
  border-color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
}

.testimonial-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease;
}

.testimonial-dot.active {
  background: var(--color-text);
}

/* ── Who We Work With ─────────────────────────────── */

.who-we-work-with {
  background: #fafafa;
  padding: 110px 60px;
}

.www-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  font-style: normal;
  line-height: 1.1;
  color: #111;
  text-align: center;
  margin-bottom: 60px;
}

.www-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1300px;
  margin: 0 auto;
}

.www-card {
  background: #f0f0f0;
  border-radius: 14px;
  padding: 44px;
}

.www-card-title {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 500;
  color: #111;
  margin-bottom: 20px;
}

.www-card-niches {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
  color: #333;
}

/* ── How It Works ─────────────────────────────────── */

.how-it-works {
  background: #0a0a0a;
  padding: 110px 60px;
}

.hiw-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  font-style: normal;
  line-height: 1.1;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 80px;
}

.hiw-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.hiw-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.hiw-step {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
}

.hiw-step:last-child {
  margin-bottom: 0;
}

.hiw-step-left {
  justify-content: flex-end;
  text-align: right;
}

.hiw-step-right {
  justify-content: flex-start;
  text-align: left;
}

.hiw-content {
  width: calc(50% - 60px);
}

.hiw-marker {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.hiw-title {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 14px;
}

.hiw-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #aaa;
}

/* ── Contact Form ─────────────────────────────────── */

.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 5, 5, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.25, 0, 0.15, 1);
  overflow-y: auto;
}

.contact-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.contact-modal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 80px;
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  transform: translateY(16px);
  transition: transform 0.6s cubic-bezier(0.25, 0, 0.15, 1);
}

.contact-overlay.open .contact-modal {
  transform: translateY(0);
}

.contact-close {
  position: fixed;
  top: 30px;
  right: 40px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 32px;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
  z-index: 210;
}

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

.contact-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 16px;
}

.contact-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  margin-bottom: 56px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  padding: 24px 0;
  outline: none;
  transition: border-color 0.4s ease;
  -webkit-appearance: none;
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}

.contact-form select {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}

.contact-form select option {
  background: #111;
  color: var(--color-text);
}

.contact-form select:valid {
  color: var(--color-text);
  font-weight: 400;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.5);
}

.contact-form textarea {
  resize: none;
  min-height: 100px;
  margin-bottom: 16px;
}

.contact-submit {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 0;
  padding: 20px 46px;
  cursor: pointer;
  margin-top: 48px;
  align-self: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.contact-submit:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* ── Final CTA ────────────────────────────────────── */

.final-cta {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
              url('/assets/eyes1.jpg') center center / cover no-repeat;
  background-color: #080808;
}

.final-cta-content {
  text-align: center;
  padding: 80px 40px;
}

.final-cta-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 5.5vw, 5.2rem);
  font-weight: 300;
  font-style: normal;
  line-height: 1.1;
  color: var(--color-text);
  text-transform: uppercase;
  white-space: nowrap;
}

.final-cta-content .hero-cta {
  margin-top: 60px;
}

/* ── Footer ───────────────────────────────────────── */

.site-footer {
  background: #000;
  padding: 80px 60px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  height: 44px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
}

.footer-center,
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Responsive ───────────────────────────────────── */

@media (max-width: 768px) {
  .topbar {
    padding: 20px 24px;
  }

  .logo-img {
    height: 40px;
  }

  .hero-content {
    margin-top: -16px;
  }

  .hero-sub {
    max-width: 340px;
  }

  .hero-cta {
    padding: 14px 30px;
  }

  .problem {
    padding: 60px 24px;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .apex-system {
    padding: 60px 24px;
  }

  .apex-system-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .testimonials {
    padding: 50px 20px 44px;
    gap: 16px;
  }

  .testimonial-arrow {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .who-we-work-with {
    padding: 70px 24px;
  }

  .www-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .www-card {
    padding: 32px;
  }

  .how-it-works {
    padding: 70px 24px;
  }

  .hiw-timeline::before {
    left: 28px;
  }

  .hiw-step,
  .hiw-step-left,
  .hiw-step-right {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }

  .hiw-step-left {
    flex-direction: row-reverse;
  }

  .hiw-content {
    width: auto;
    flex: 1;
  }

  .hiw-marker {
    width: 48px;
    height: 48px;
    font-size: 13px;
  }

  .final-cta-content {
    padding: 60px 24px;
  }

  .site-footer {
    padding: 60px 24px 30px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 36px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 16px 18px;
  }

  .hero-heading {
    letter-spacing: 0;
  }

  .hero-sub {
    max-width: 280px;
  }
}
