﻿/* ============================================
   PWR-WEBDESIGN | Dark Mode + Green Palette
   Glassmorphism + Clean On-Scroll Effects
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors - Dark Mode */
  --bg: #000000;
  --bg-alt: #0A0A0A;
  --bg-card: rgba(10, 10, 10, 0.65);
  --fg: #FFFFFF;
  --fg-muted: #A0A0A0;
  --fg-subtle: #6B6B6B;

  /* Primary: Purple */
  --accent: #6A1B9A;
  --accent-light: #9C4DCC;
  --accent-dark: #4A148C;
  --accent-muted: rgba(106, 27, 154, 0.15);

  /* Secondary: Pink */
  --violet: #FF4081;
  --violet-light: #FF80AB;

  /* Tertiary */
  --pink: #FF4081;
  --pink-light: #FF80AB;

  /* Legacy aliases */
  --red: var(--accent);
  --red-light: var(--accent-light);
  --red-dark: var(--accent-dark);
  --red-muted: var(--accent-muted);
  --purple-accent: var(--violet);
  --green: #6A1B9A;
  --orange: var(--accent);

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.03);

  /* Typography */
  --font-heading: 'Roboto', system-ui, sans-serif;
  --font-body: 'Roboto', system-ui, sans-serif;

  /* Spacing */
  --section-py: 7rem;
  --container-max: 76rem;
  --container-px: 1.5rem;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(106, 27, 154, 0.2);
  --shadow-glow-lg: 0 0 50px rgba(106, 27, 154, 0.25);
  --shadow-card: var(--shadow-lg);

  /* Z-index scale */
  --z-base: 1;
  --z-sticky: 10;
  --z-overlay: 40;
  --z-nav: 50;
  --z-cookie: 60;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #3A3A3A;
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--fg);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}

p {
  max-width: 70ch;
}

.text-gradient {
  background: linear-gradient(135deg, #FF4081, #6A1B9A);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  position: relative;
}

/* --- Utility Components --- */
.glass-panel {
  background: rgba(58, 58, 58, 0.15);
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 64, 129, 0.25);
  background: rgba(255, 64, 129, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;

  /* From https://css.glass */
  background: rgba(255, 64, 129, 0.12);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 64, 129, 0.3);
  color: #fff;
}

.btn:hover,
.btn:focus-visible {
  background: rgba(255, 64, 129, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}



.btn-secondary {
  /* Inherits glassmorphism */
  background: rgba(255, 255, 255, 0.05);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(0);
}

.btn .arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 1.25rem 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(40px) saturate(2);
  -webkit-backdrop-filter: blur(40px) saturate(2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.15);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  transition: opacity var(--transition-fast);
}

.navbar__logo:hover {
  opacity: 0.7;
}

.navbar__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--accent);
  border-radius: 0.625rem;
  transition: transform var(--transition-base);
}

.navbar__logo-icon svg {
  stroke: #fff !important;
}

.navbar__logo:hover .navbar__logo-icon {
  transform: rotate(8deg) scale(1.05);
}

.navbar__logo-accent {
  color: #fff;
}

.navbar__links {
  display: none;
  align-items: center;
  gap: 2.25rem;
}

.navbar__link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color var(--transition-fast);
  cursor: pointer;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 99px;
  transition: width var(--transition-base);
}

.navbar__link:hover,
.navbar__link:focus-visible {
  color: var(--fg);
}

.navbar__link:hover::after,
.navbar__link:focus-visible::after {
  width: 100%;
}

.navbar__cta {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  border-radius: 0.625rem;
}

.navbar__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--fg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  padding: 6rem var(--container-px) 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--transition-slow);
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--fg);
  transition: color var(--transition-fast);
  cursor: pointer;
}

.mobile-menu__link:hover {
  color: var(--accent-dark);
}

.mobile-menu__cta {
  margin-top: 1rem;
  width: 100%;
  padding: 1.25rem;
  border-radius: 0.875rem;
  font-size: 1.125rem;
}

/* --- Problem Section --- */
.problem {
  background: var(--bg-alt);
}

.problem__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  /* Problem cards glassmorphism */
}

.problem__card {
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all var(--transition-base);
}

.problem__card:hover {
  border-color: rgba(255, 64, 129, 0.3);
  background: rgba(255, 64, 129, 0.05);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.problem__card-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(40, 90, 72, 0.06);
  color: var(--accent);
}

.problem__card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.problem__card-text {
  color: var(--fg-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* --- Solution Section --- */
.solution {
  background: var(--bg);
}

.solution__accordion {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 3rem;
  height: auto;
}

.solution__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  padding: 1.75rem;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  min-height: 160px;
}

.solution__panel-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
  border: 1px solid rgba(255, 64, 129, 0.2);
  background: rgba(106, 27, 154, 0.15);
  margin-bottom: auto;
  transition: transform 0.4s ease;
}

.solution__panel-icon svg {
  stroke: var(--accent) !important;
}

.solution__panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.solution__panel-text {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* Mobile defaults */
@media (max-width: 767px) {
  .solution__panel-content {
    opacity: 1;
    transform: none;
    margin-top: 1rem;
  }
}

/* Desktop horizontal accordion rules */
@media (min-width: 768px) {
  .solution__accordion {
    flex-direction: row;
    height: 480px;
  }

  .solution__panel {
    flex: 1;
    min-height: auto;
  }

  /* Default active state */
  .solution__panel.active-panel {
    flex: 3;
    background: rgba(106, 27, 154, 0.15);
    border-color: rgba(255, 64, 129, 0.3);
    box-shadow: var(--shadow-lg);
  }

  /* Override active state when entire accordion is hovered */
  .solution__accordion:hover .solution__panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: none;
  }

  .solution__accordion:hover .solution__panel:hover {
    flex: 3;
    background: rgba(106, 27, 154, 0.15);
    border-color: rgba(255, 64, 129, 0.3);
    box-shadow: var(--shadow-lg);
  }

  /* Text hiding logic */
  .solution__panel-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    width: 250px;
    margin-top: 2rem;
  }

  /* Show text for active panel */
  .solution__panel.active-panel .solution__panel-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
  }

  /* Hide text when hovering container */
  .solution__accordion:hover .solution__panel .solution__panel-content {
    opacity: 0;
    transform: translateY(20px);
    transition-delay: 0s;
  }

  /* Show text ONLY on hovered panel */
  .solution__accordion:hover .solution__panel:hover .solution__panel-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
  }

  .solution__accordion:hover .solution__panel:hover .solution__panel-icon {
    transform: translateY(-5px) scale(1.1);
  }
}

.solution__industries {
  margin-top: 4rem;
  padding: 2rem;
  border-radius: 1.25rem;
  background: var(--bg-alt);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.solution__industries h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--fg);
}

.solution__industries-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.solution__industry-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--fg-muted);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.solution__industry-tag:hover {
  border-color: rgba(255, 64, 129, 0.3);
  background: rgba(255, 64, 129, 0.05);
}

.solution__industry-tag svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* --- Social Proof Section --- */
.proof {
  background: var(--bg-alt);
}

.proof__grid {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.proof__card {
  padding: 2.5rem;
  border-radius: 1.25rem;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255, 64, 129, 0.2);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  max-width: 36rem;
  text-align: center;
}

.proof__card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.proof__quote-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2rem;
  height: 2rem;
  color: rgba(64, 138, 113, 0.15);
}

.proof__stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.proof__star {
  width: 1rem;
  height: 1rem;
  color: #FBBF24;
  fill: #FBBF24;
}

.proof__text {
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 0.9375rem;
  font-style: italic;
}

.proof__author {
  font-weight: 700;
  color: var(--fg);
}

.proof__role {
  font-size: 0.875rem;
  color: var(--fg-subtle);
}

.proof__metric {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 64, 129, 0.1);
  border: 1px solid rgba(255, 64, 129, 0.2);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-light);
  text-decoration: none;
  transition: all var(--transition-base);
}

.proof__metric:hover {
  background: rgba(255, 64, 129, 0.15);
  border-color: rgba(255, 64, 129, 0.3);
  transform: translateY(-1px);
}

/* --- How It Works Section --- */
.process {
  background: var(--bg);
  overflow: hidden;
}

.process__steps {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
  position: relative;
}

.process__step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
}

.process__step-num {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.875rem;
  background: var(--accent);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(106, 27, 154, 0.35);
}

.process__step-connector {
  position: absolute;
  left: 1.5rem;
  top: 3.25rem;
  width: 2px;
  height: calc(100% + 1rem);
  background: linear-gradient(to bottom, var(--accent), rgba(255, 64, 129, 0.15), transparent);
  z-index: 1;
}

.process__step:last-child .process__step-connector {
  display: none;
}

.process__step-content {
  padding-top: 0.25rem;
}

.process__step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.process__step-text {
  color: var(--fg-muted);
  line-height: 1.65;
  font-size: 0.9375rem;
}

.process__result {
  margin-top: 3rem;
  text-align: center;
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 64, 129, 0.2);
  background: rgba(255, 64, 129, 0.05);
}

.process__result-text {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
}

/* --- Approach Section --- */
.approach {
  background: var(--bg-alt);
  overflow: hidden;
}

.approach__ambience {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 30vw;
  height: 30vw;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.06;
  pointer-events: none;
}

.approach__grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.approach__quote {
  padding-left: 1.5rem;
  border-left: 3px solid;
  border-image: linear-gradient(to bottom, var(--accent), var(--accent-light)) 1;
  font-style: italic;
  font-weight: 500;
  color: var(--fg);
}

.approach__comparison {
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.approach__comparison-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 10rem;
  height: 10rem;
  background: var(--accent);
  filter: blur(80px);
  opacity: 0.06;
  pointer-events: none;
}

.approach__compare-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.approach__compare-item--bad {
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.08);
}

.approach__compare-item--good {
  background: rgba(64, 138, 113, 0.06);
  border: 1px solid rgba(64, 138, 113, 0.12);
}

.approach__compare-icon {
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.approach__compare-label {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.approach__compare-label--bad {
  color: #EF4444;
}

.approach__compare-label--good {
  color: var(--accent-light);
  background: rgba(64, 138, 113, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

/* --- FAQ Section --- */
.faq {
  background: var(--bg);
}

.faq__list {
  max-width: 52rem;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: var(--bg-alt);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq__item:hover {
  border-color: rgba(255, 64, 129, 0.3);
  box-shadow: var(--shadow-sm);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--fg);
  transition: background var(--transition-fast);
  cursor: pointer;
}

.faq__question:hover {
  background: rgba(255, 64, 129, 0.05);
}

.faq__question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.faq__toggle {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 64, 129, 0.15);
  color: var(--accent-light);
  transition: transform var(--transition-base);
}

.faq__item.open .faq__toggle {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq__item.open .faq__answer {
  max-height: 40rem;
  /* Increased to avoid cutoffs */
}

.faq__answer-inner {
  padding: 0.5rem 1.5rem 2rem;
  color: var(--fg-muted);
  line-height: 1.85;
  font-size: 1.0625rem;
}

/* --- Contact Section --- */
.contact {
  background: var(--bg-alt);
  overflow: hidden;
}

.contact__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.contact__form {
  padding: 2.5rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(255, 64, 129, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact__form-grid {
  display: grid;
  gap: 1.25rem;
}

.contact__form-row {
  display: grid;
  gap: 1.25rem;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.contact__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg);
}

.contact__input,
.custom-select,
.contact__textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 0;
  color: var(--fg);
  font-size: 1rem;
  transition: all var(--transition-fast);
  position: relative;
  cursor: pointer;
  user-select: none;
}

.contact__input,
.contact__textarea {
  padding: 0.875rem 1.25rem;
  -webkit-appearance: none;
  appearance: none;
}



.contact__input::placeholder,
.contact__textarea::placeholder {
  color: var(--fg-subtle);
}

.contact__input:focus,
.custom-select.open,
.contact__textarea:focus {
  outline: none;
  border-color: rgba(255, 64, 129, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.contact__textarea {
  resize: none;
  min-height: 6rem;
}

.custom-select__trigger {
  padding: 0.875rem 1.25rem;
  padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
}

.custom-select.open .custom-select__trigger {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ff4081' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E");
}

.custom-select__options {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: #0A0A0A;
  border: 1px solid rgba(255, 64, 129, 0.4);
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all var(--transition-base);
  z-index: 100;
  overflow: hidden;
}

.custom-select.open .custom-select__options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select__option {
  padding: 0.875rem 1.25rem;
  color: #FFFFFF;
  transition: background var(--transition-fast);
}

.custom-select__option:hover {
  background: rgba(255, 64, 129, 0.15);
}

.custom-select__option.selected {
  color: var(--accent);
  background: rgba(255, 64, 129, 0.05);
}

.contact__submit {
  width: 100%;
  padding: 1rem;
  border-radius: 0.875rem;
  font-size: 1rem;
  font-weight: 700;
}

.contact__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact__notification {
  padding: 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  animation: fade-in 0.3s ease;
}

.contact__notification--success {
  background: rgba(64, 138, 113, 0.1);
  border: 1.5px solid rgba(64, 138, 113, 0.2);
  color: var(--accent-light);
}

.contact__notification--error {
  background: rgba(239, 68, 68, 0.06);
  border: 1.5px solid rgba(239, 68, 68, 0.2);
  color: #DC2626;
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 4rem;
  padding-bottom: 2rem;
  background: var(--bg);
}

.footer__grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer__brand-desc {
  color: var(--fg-muted);
  max-width: 24rem;
  margin-top: 1.5rem;
  line-height: 1.65;
}

.footer__heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  color: var(--fg-subtle);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer__link {
  color: var(--fg-muted);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
  cursor: pointer;
}

.footer__link:hover {
  color: var(--fg);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--fg-subtle);
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer__legal a {
  color: var(--fg-subtle);
  transition: color var(--transition-fast);
}

.footer__legal a:hover {
  color: var(--fg);
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-cookie);
  padding: 1rem;
  animation: slide-up 0.5s ease;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner__inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cookie-banner__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-subtle);
  transition: color var(--transition-fast);
}

.cookie-banner__close:hover {
  color: var(--fg);
}

.cookie-banner__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.cookie-banner__text {
  color: var(--fg-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.cookie-banner__text a {
  color: var(--accent-light);
  font-weight: 500;
  transition: opacity var(--transition-fast);
}

.cookie-banner__text a:hover {
  opacity: 0.7;
}

.cookie-banner__btn {
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  align-self: flex-end;
}

/* --- Legal Pages --- */
.legal-page {
  min-height: 100vh;
  padding-top: 7rem;
  padding-bottom: 4rem;
  background: var(--bg-alt);
}

.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-light);
  margin-bottom: 2rem;
  font-weight: 500;
  transition: opacity var(--transition-fast);
}

.legal-page__back:hover {
  opacity: 0.7;
}

.legal-page h1 {
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.5rem;
  color: var(--fg);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-page h3 {
  font-size: 1.25rem;
  color: var(--fg);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-page p {
  color: var(--fg-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-page a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  opacity: 0.7;
}

.legal-page ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page li {
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-page strong {
  color: var(--fg);
}

.legal-page .legal-date {
  margin-top: 3rem;
  padding-top: 2rem;
  border-bottom: 1px solid rgba(176, 228, 204, 0.06);
  font-size: 0.875rem;
  color: var(--fg-subtle);
}

/* --- Animations --- */
@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

@keyframes hero-pulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.15;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.25;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Scroll-triggered animations (smooth, Apple-like) --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  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);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  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);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(24px);
  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);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger>* {
  transition-delay: calc(var(--i, 0) * 120ms);
}

/* --- 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;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }

  .hero__glow {
    animation: none;
  }

  .badge__dot {
    animation: none;
  }
}

/* --- Responsive --- */

/* Small phones */
@media (max-width: 374px) {
  :root {
    --section-py: 3.5rem;
    --container-px: 1rem;
  }

  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

/* Medium phones */
@media (max-width: 480px) {
  :root {
    --section-py: 4rem;
  }

  .faq__question {
    font-size: 0.9375rem;
    padding: 1rem 1.25rem;
  }

  .proof__card {
    padding: 1.5rem;
  }
}

/* Tablets and up */
@media (min-width: 640px) {
  .contact__form-row {
    grid-template-columns: 1fr 1fr;
  }

  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    position: relative;
    padding-right: 5rem;
  }

  .problem__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Medium screens */
@media (min-width: 768px) {
  .navbar__links {
    display: flex;
  }

  .navbar__toggle {
    display: none;
  }

  .problem__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  /* Removed old solution__grid rules */

  .proof__grid {
    display: flex;
    justify-content: center;
  }

  .approach__grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Tablet-to-desktop refinements */
@media (min-width: 768px) and (max-width: 1024px) {
  .navbar__links {
    gap: 1.5rem;
  }

  .navbar__cta {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
}

/* Large screens */
@media (min-width: 1280px) {
  /* Removed old large screen solution__grid rules */

  .process__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .process__step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .process__step-connector {
    left: calc(50% + 1.625rem);
    top: 1.625rem;
    width: calc(100% - 3.25rem);
    height: 2px;
    background: linear-gradient(to right, var(--accent), rgba(40, 90, 72, 0.2), transparent);
  }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}