/* ==========================================================================
   Superinterviews Design System
   Shared stylesheet for all pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
  --cream: #f4f1ee;
  --cream-dark: #f1ebe5;
  --green-light: #dfe8d8;
  --green-mid: #dee7d9;
  --neon: #b0fa7b;
  --dark: #1a1615;
  --dark-text: #21231e;
  --brown: #453f3d;
  --gray: #757170;
  --border: #e4e2e2;
  --dark-card: #2a2a2a;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --------------------------------------------------------------------------
   Base Typography
   -------------------------------------------------------------------------- */
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--brown);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { color: var(--dark-text); }
h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.2; }
h3 { font-size: clamp(24px, 2.5vw, 36px); font-weight: 700; letter-spacing: -1px; line-height: 1.2; }

.section-label, .label, .eyebrow, .feature-label {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gray);
}
.feature-label { color: var(--brown); margin-bottom: 16px; font-size: 13px; }

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.section-dark { background-color: var(--dark); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5, .section-dark h6 { color: #fff; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav-wrapper {
  position: sticky; top: 16px; z-index: 1000;
  display: flex; justify-content: center; padding: 0 24px;
}
nav {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1200px;
  background: #fff; border-radius: 100px;
  padding: 12px 12px 12px 24px;
  box-shadow: 0 4px 50px rgba(97,74,68,0.06);
}
.logo-link { display: flex; align-items: center; }
.logo-svg { height: 29px; width: auto; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Nav Dropdown */
.nav-dropdown-wrap { position: relative; }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 200px; background: #fff; border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12); padding: 8px 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1001;
}
.nav-dropdown::before {
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.nav-dropdown-wrap:hover .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block; padding: 10px 20px; font-size: 14px; font-weight: 500;
  color: var(--dark-text); transition: background 0.15s;
}
.nav-dropdown a:hover { background: var(--cream); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 100px;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.3s;
}
.btn:hover { transform: scale(1.04); }
.btn-outline { background: transparent; color: var(--dark-text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--dark-text); }
.btn-ghost { background: transparent; color: var(--dark-text); border: 1.5px solid transparent; }
.btn-ghost:hover { border-color: var(--border); }
.btn-primary { background: var(--dark-text); color: #fff; }
.btn-primary:hover { box-shadow: 0 4px 20px rgba(33,35,30,0.3); }
.btn-neon { background: var(--neon); color: var(--dark-text); }
.btn-neon:hover { box-shadow: 0 4px 20px rgba(176,250,123,0.4); }
.btn-neon-outline { background: transparent; color: var(--dark-text); border: 1.5px solid var(--dark-text); }
.btn-dark { background: var(--dark); color: #fff; }

/* --------------------------------------------------------------------------
   Hero (shared across all pages)
   -------------------------------------------------------------------------- */
.hero {
  position: relative; text-align: center;
  padding: 80px 24px 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--green-light) 100%);
  overflow: hidden;
}
.hero-clouds { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; z-index: 1; }
.hero-clouds img { width: 100%; opacity: 0.7; }
.hero-content { position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 700; line-height: 1.05; letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero h1 .word {
  display: inline-block; opacity: 0;
  transform: translateY(40px); filter: blur(8px);
  animation: wordReveal 0.7s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
}
.hero h1 .word:nth-child(1) { animation-delay: 0.1s; }
.hero h1 .word:nth-child(2) { animation-delay: 0.2s; }
.hero h1 .word:nth-child(3) { animation-delay: 0.3s; }
.hero h1 .word:nth-child(4) { animation-delay: 0.4s; }
.hero h1 .word:nth-child(5) { animation-delay: 0.5s; }
.hero h1 .word:nth-child(6) { animation-delay: 0.6s; }
.hero h1 .word:nth-child(7) { animation-delay: 0.7s; }
@keyframes wordReveal { to { opacity: 1; transform: translateY(0); filter: blur(0); } }

.hero-sub {
  font-size: clamp(16px, 1.4vw, 20px); color: var(--gray);
  max-width: 600px; margin: 0 auto 40px; line-height: 1.6;
}
.hero-sub .word {
  display: inline-block; opacity: 0;
  transform: translateY(12px); filter: blur(4px);
  animation: wordRevealSub 0.5s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
}
@keyframes wordRevealSub { to { opacity: 1; transform: translateY(0); filter: blur(0); } }

.hero-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gray); margin-bottom: 16px;
}

.hero-buttons {
  display: flex; gap: 12px; justify-content: center;
  margin-bottom: 64px; opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.6s 1.2s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.hero-subline {
  font-size: 14px; color: var(--gray); margin-top: -40px; margin-bottom: 48px;
  opacity: 0; animation: fadeUp 0.6s 1.4s ease forwards;
}

/* Hero image with 3D scroll-linked tilt */
.hero-image-perspective {
  max-width: 1100px; margin: 0 auto; perspective: 1200px;
}
.hero-image {
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.15);
  opacity: 0; transform: rotateX(20deg) scale(0.88);
  transform-origin: center bottom;
  animation: heroAppear 1s 1.4s ease forwards;
  will-change: transform;
}
@keyframes heroAppear { to { opacity: 1; transform: rotateX(20deg) scale(0.88); } }
.hero-image img { width: 100%; display: block; }

/* --------------------------------------------------------------------------
   Scroll Reveal Animations
   -------------------------------------------------------------------------- */
.scroll-reveal {
  opacity: 0; transform: translateY(64px);
  transition: opacity 0.8s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }

.scroll-reveal-left {
  opacity: 0; transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.scroll-reveal-left.revealed { opacity: 1; transform: translateX(0); }

.scroll-reveal-right {
  opacity: 0; transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.scroll-reveal-right.revealed { opacity: 1; transform: translateX(0); }

.scroll-reveal-scale {
  opacity: 0; transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.scroll-reveal-scale.revealed { opacity: 1; transform: scale(1); }

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee-container {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.marquee-track {
  display: flex; gap: 40px; width: max-content;
  animation: marqueeScroll 30s linear infinite;
}
.marquee-track li {
  display: flex; align-items: center; flex-shrink: 0;
  list-style: none; height: 24px;
}
.marquee-track li svg,
.marquee-track li img {
  height: 24px; width: auto; display: block; opacity: 0.7;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

/* --------------------------------------------------------------------------
   Feature Rows
   -------------------------------------------------------------------------- */
.feature-row {
  display: flex; align-items: center; gap: 64px; margin-bottom: 80px;
}
.feature-row.reverse { flex-direction: row-reverse; }
.feature-image-wrapper {
  flex: 1; position: relative; border-radius: 24px; overflow: hidden;
  aspect-ratio: 1 / 1.1; display: flex; align-items: center; justify-content: center;
}
.feature-image-wrapper.landscape { aspect-ratio: 4 / 3; }
.feature-video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.feature-card {
  position: relative; z-index: 1; width: 80%; max-width: 420px;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}
.feature-text { flex: 1; }

/* --------------------------------------------------------------------------
   Testimonial Carousel
   -------------------------------------------------------------------------- */
.testimonial-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.testimonial-track {
  display: flex; gap: 24px; width: max-content;
  animation: testimonialScroll 40s linear infinite;
}
.testimonial-track:hover { animation-play-state: paused; }
@keyframes testimonialScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.testimonial-card {
  min-width: 380px; max-width: 380px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 20px; padding: 40px 36px;
  display: flex; flex-direction: column;
}
.stars { display: flex; gap: 4px; margin-bottom: 20px; }
.testimonial-card blockquote {
  font-size: 16px; line-height: 1.65; color: var(--dark-text);
  margin: 0 0 28px; font-style: normal;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-author img, .testimonial-author > div:first-child { width: 48px; height: 48px; min-width: 48px; border-radius: 50%; object-fit: cover; }

/* Featured single testimonial (employer page) */
.featured-testimonial {
  max-width: 800px; margin: 0 auto; text-align: center; padding: 80px 24px;
}
.featured-testimonial .stars { justify-content: center; margin-bottom: 24px; }
.featured-testimonial blockquote {
  font-size: clamp(20px, 2.5vw, 28px); font-weight: 600;
  line-height: 1.4; letter-spacing: -0.5px; color: var(--dark-text);
  margin-bottom: 32px; font-style: normal;
}
.featured-testimonial .proof-author {
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.featured-testimonial .proof-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--neon); color: var(--dark-text);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.featured-testimonial .name { font-weight: 700; font-size: 15px; color: var(--dark-text); }
.featured-testimonial .role { font-size: 13px; color: var(--gray); }

/* --------------------------------------------------------------------------
   Footer (multi-column grid)
   -------------------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, var(--green-mid) 0%, var(--neon) 100%);
  padding: 80px 24px 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; max-width: 1200px; margin: 0 auto; padding-bottom: 48px;
}
.footer-col {}
.footer-logo { display: flex; margin-bottom: 12px; }
.footer-logo svg { height: 29px; width: auto; }
.footer-tagline { font-size: 15px; color: var(--brown); margin-bottom: 16px; }
.footer-col-title {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--dark-text); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--brown);
  margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--dark-text); }
.footer-bar {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 24px 0; max-width: 1200px; margin: 0 auto;
}
.footer-copy { font-size: 14px; color: var(--gray); }

/* --------------------------------------------------------------------------
   Mobile Hamburger Menu
   -------------------------------------------------------------------------- */
.nav-hamburger {
  display: none; width: 44px; height: 44px; border: none; background: none;
  cursor: pointer; position: relative; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--dark-text);
  border-radius: 2px; position: absolute; left: 11px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger span:nth-child(1) { top: 14px; }
.nav-hamburger span:nth-child(2) { top: 21px; }
.nav-hamburger span:nth-child(3) { top: 28px; }
.nav-hamburger.active span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.nav-mobile-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 999; flex-direction: column;
  padding: 100px 32px 32px; gap: 8px;
}
.nav-mobile-overlay.active { display: flex; }
.nav-mobile-overlay a {
  font-size: 18px; font-weight: 600; color: var(--dark-text);
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.nav-mobile-overlay a:last-child { border-bottom: none; }
.nav-mobile-overlay .btn {
  margin-top: 16px; text-align: center; justify-content: center;
}

/* --------------------------------------------------------------------------
   Responsive (max-width: 810px)
   -------------------------------------------------------------------------- */
@media (max-width: 810px) {
  .feature-row, .feature-row.reverse { flex-direction: column; gap: 32px; margin-bottom: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  nav { padding: 8px 8px 8px 16px; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .testimonial-card { min-width: 300px; max-width: 300px; padding: 24px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero h1 { letter-spacing: -1.5px; }
  .nav-actions { display: none; }
  .nav-hamburger { display: block; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
