@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #9333ea;
  --accent: #ec4899;
  --bg: #0d0b14;
  --surface: #1a1525;
  --text: #f0eef5;
  --muted: #9892a6;
  
  --font-heading: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-pill: 999px;
  --radius-card: 24px;
  --radius-input: 20px;
  
  --shadow-bold: 6px 6px 0 var(--primary);
  --shadow-bold-accent: 6px 6px 0 var(--accent);
  --shadow-bold-dark: 6px 6px 0 #000000;
  
  --container-max: 1200px;
  --section-padding: 5rem 1.5rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header p {
  font-size: 1.125rem;
  margin-top: 1rem;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */

.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  background-color: transparent;
}

.header.scrolled {
  background-color: rgba(13, 11, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 0.75rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
}

.mobile-menu-toggle { display: none; }
.nav-menu { display: flex; gap: 1.5rem; }

@media (max-width: 767px) {
  .mobile-menu-toggle { display: inline-block; }
  .nav-menu { display: none; }
  .nav-menu.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 1rem; border-top: 1px solid var(--muted); }
}

.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
  z-index: 10;
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-menu a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* =========================================
   BUTTONS & FORMS
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  box-shadow: var(--shadow-bold-dark);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #000000;
  color: #ffffff;
}

.btn-primary:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 #000000;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--muted);
  box-shadow: 4px 4px 0 var(--muted);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--accent);
}

.cta-button {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  padding: 1.1rem 2.5rem;
  font-size: 1.1rem;
  box-shadow: var(--shadow-bold-dark);
}

.cta-button:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #000000;
  color: #ffffff;
}

.form-submit {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  box-shadow: var(--shadow-bold-dark);
  margin-top: 0.5rem;
}

.form-submit:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #000000;
}

.form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; width: 100%; }

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.form-input, .form-textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--muted); border-radius: 20px; background: var(--surface); color: var(--text); font: inherit; }

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
}

.form-textarea { min-height: 140px; resize: vertical; }

/* =========================================
   HERO SECTION
   ========================================= */

.has-photo-bg { position: relative; isolation: isolate; }
.has-photo-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.85)); z-index: 0; }
.has-photo-bg > * { position: relative; z-index: 1; }

.hero-section {
  padding: 8rem 1.5rem 6rem;
  text-align: center;
  background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  color: rgba(240, 238, 245, 0.85);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* =========================================
   FEATURES & SERVICES
   ========================================= */

.section {
  padding: var(--section-padding);
}

.section-alt {
  background-color: var(--surface);
}

.features-grid,
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-card,
.service-card {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-bold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-alt .feature-card,
.section-alt .service-card {
  background: var(--bg);
}

.feature-card:hover,
.service-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--primary);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3,
.service-card h3 {
  margin-bottom: 0.75rem;
}

/* =========================================
   ABOUT & STATS
   ========================================= */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-bold-accent);
  aspect-ratio: 4/3;
  background: var(--surface);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2rem 1rem;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-bold);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

/* =========================================
   TESTIMONIALS
   ========================================= */

.testimonial-section {
  padding: var(--section-padding);
  background-image: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.testimonial-card {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-bold-dark);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial-quote {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  flex-shrink: 0;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.author-info p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* =========================================
   CTA SECTION
   ========================================= */

.cta-section {
  padding: 6rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(236, 72, 153, 0.15));
  border-top: 1px solid rgba(152, 146, 166, 0.2);
  border-bottom: 1px solid rgba(152, 146, 166, 0.2);
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

/* =========================================
   CONTACT SECTION
   ========================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info > p {
  margin-bottom: 2.5rem;
}

.contact-row { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }

.contact-row .icon,
.contact-row svg {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 0.2rem;
}

.contact-row h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-row p {
  font-size: 0.9rem;
  margin: 0;
}

.contact-form-wrapper {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-bold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
  background-color: #08060d;
  padding: 5rem 1.5rem 2rem;
  border-top: 1px solid rgba(152, 146, 166, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 300px;
  font-size: 0.9rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(152, 146, 166, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--muted);
}

/* =========================================
   COOKIE POPUP
   ========================================= */

.cookie-popup {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: 1.5rem;
  max-width: 400px;
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius-card);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), var(--shadow-bold);
  z-index: 9999;
  margin-left: auto;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-popup.hidden {
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}

.cookie-popup h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.cookie-popup p {
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-actions .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

/* =========================================
   POLICY PAGES
   ========================================= */

.policy-section {
  padding: 6rem 1.5rem;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h1 {
  margin-bottom: 1rem;
}

.policy-content .last-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(152, 146, 166, 0.2);
}

.policy-content h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.policy-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.policy-content p,
.policy-content li {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(240, 238, 245, 0.8);
  margin-bottom: 1.25rem;
}

.policy-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.policy-content ul li {
  position: relative;
  padding-left: 1rem;
  list-style: disc;
}

/* =========================================
   RESPONSIVE BREAKPOINTS (MOBILE-FIRST)
   ========================================= */

@media (min-width: 768px) {
  :root {
    --section-padding: 7rem 2rem;
  }

  .container {
    padding: 0 2rem;
  }

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

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .cookie-popup {
    left: auto;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-padding: 9rem 2rem;
  }

  .features-grid,
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .hero-section {
    padding: 10rem 2rem 8rem;
    min-height: 90vh;
  }

  .about-grid {
    gap: 6rem;
  }
}

/* =========================================
   ACCESSIBILITY & REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* =========================================
   UTILITY CLASSES
   ========================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }