/* ======================== RESET & BASE ======================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Monochromatic Purple Palette */
  --purple-50:  #FAF5FF;
  --purple-100: #F3E8FF;
  --purple-200: #E9D8FD;
  --purple-300: #D6BCFA;
  --purple-400: #B794F4;
  --purple-500: #9F7AEA;
  --purple-600: #805AD5;
  --purple-700: #6B46C1;  /* Primary brand */
  --purple-800: #553C9A;
  --purple-900: #44337A;
  --purple-950: #2D1B4E;

  /* Neutrals */
  --white: #FFFFFF;
  --ink: #1A0F2E;
  --ink-soft: #4A3C5F;
  --ink-muted: #7B6B8F;
  --line: #E5DDF2;

  /* Effects */
  --gradient-primary: linear-gradient(135deg, #6B46C1 0%, #9F7AEA 100%);
  --gradient-hero: radial-gradient(circle at 20% 30%, #F3E8FF 0%, transparent 50%),
                   radial-gradient(circle at 80% 70%, #E9D8FD 0%, transparent 50%);
  --shadow-sm: 0 1px 2px rgba(107, 70, 193, 0.04);
  --shadow-md: 0 8px 24px rgba(107, 70, 193, 0.08);
  --shadow-lg: 0 20px 60px rgba(107, 70, 193, 0.12);
  --shadow-glow: 0 0 40px rgba(159, 122, 234, 0.4);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 1000px;

  /* Typography */
  --font-head: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--purple-50);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

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

::selection {
  background: var(--purple-300);
  color: var(--purple-950);
}

/* ======================== TYPOGRAPHY ======================== */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 5vw + 1rem, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3vw + 1rem, 3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p {
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--purple-700);
  margin-bottom: 1rem;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* ======================== BUTTONS ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(107, 70, 193, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(107, 70, 193, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--purple-700);
  border-color: var(--purple-300);
}

.btn-outline:hover {
  background: var(--purple-100);
  border-color: var(--purple-500);
}

.btn-ghost {
  background: var(--white);
  color: var(--purple-700);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: var(--purple-400);
}

.btn-small {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* ======================== HEADER ======================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(250, 245, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}

.header.scrolled {
  padding: 0.65rem 0;
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 1rem;
  box-shadow: var(--shadow-md);
}

.logo-text {
  color: var(--ink);
}

.logo-accent {
  color: var(--purple-700);
}

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

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  border-radius: var(--radius-full);
  font-weight: 500;
  position: relative;
}

.nav-link:hover {
  color: var(--purple-700);
  background: var(--purple-100);
}

.nav-link.active {
  color: var(--purple-700);
  background: var(--purple-100);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ======================== HERO ======================== */
.hero {
  position: relative;
  padding: calc(var(--space-2xl) + 4rem) 0 var(--space-2xl);
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: -2;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px; height: 500px;
  background: var(--purple-300);
  top: -10%; left: -5%;
}

.orb-2 {
  width: 400px; height: 400px;
  background: var(--purple-400);
  top: 30%; right: -10%;
  animation-delay: -7s;
}

.orb-3 {
  width: 300px; height: 300px;
  background: var(--purple-500);
  bottom: -5%; left: 40%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple-500);
  box-shadow: 0 0 0 4px rgba(159, 122, 234, 0.2);
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.stat {
  text-align: center;
  position: relative;
}

.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: var(--line);
}

.stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--purple-700);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ======================== SECTIONS ======================== */
.section {
  padding: var(--space-2xl) 0;
}

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

.section-title {
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.125rem;
}

/* ======================== VALUES ======================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.value-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-200);
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--purple-100);
  border-radius: var(--radius-md);
  color: var(--purple-700);
  margin-bottom: 1.25rem;
  transition: all 0.3s var(--ease);
}

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

.value-card:hover .value-icon {
  background: var(--gradient-primary);
  color: var(--white);
  transform: scale(1.05) rotate(-5deg);
}

.value-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

/* ======================== FEATURED ======================== */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.video-mock {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 27, 78, 0.15);
}

.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-700);
  transition: all 0.4s var(--ease);
  cursor: pointer;
}

.play-btn svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.video-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--purple-700);
}

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

.featured-content p {
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
  display: grid;
  gap: 0.6rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-soft);
}

.feature-list li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--purple-100);
  border-radius: 50%;
  color: var(--purple-700);
  font-weight: 700;
  font-size: 0.875rem;
}

/* ======================== NEWSLETTER ======================== */
.newsletter {
  padding-bottom: var(--space-2xl);
}

.newsletter-card {
  position: relative;
  padding: 4rem 3rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.newsletter-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: shimmer 15s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20%, -10%); }
}

.newsletter-content {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.newsletter-content .eyebrow {
  color: var(--purple-200);
}

.newsletter-content h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.newsletter-content p {
  color: var(--purple-100);
  margin-bottom: 2rem;
}

.newsletter-form .input-wrap {
  display: flex;
  gap: 0.75rem;
  background: var(--white);
  border-radius: var(--radius-full);
  padding: 0.4rem;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.newsletter-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: transparent;
  color: var(--ink);
}

.newsletter-form .btn {
  padding: 0.75rem 1.5rem;
}

.form-hint {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--purple-200);
}

/* ======================== PAGE HERO ======================== */
.page-hero {
  padding: calc(var(--space-2xl) + 4rem) 0 var(--space-2xl);
  text-align: center;
  background: var(--gradient-hero);
}

.page-title {
  margin-bottom: 1rem;
}

.page-sub {
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ======================== ABOUT ======================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.about-card {
  padding: 2.5rem 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.about-number {
  font-family: var(--font-head);
  font-size: 0.875rem;
  color: var(--purple-500);
  font-weight: 600;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 1rem;
}

.about-card h3 {
  margin-bottom: 0.75rem;
}

.quote-block {
  position: relative;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  max-width: 800px;
  margin: 0 auto;
}

.quote-icon {
  width: 56px;
  height: 56px;
  color: var(--purple-300);
  margin: 0 auto 1.5rem;
}

.quote-block blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.quote-block cite {
  font-size: 0.9375rem;
  color: var(--purple-700);
  font-weight: 600;
  font-style: normal;
}

/* ======================== PRODUCTS ======================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product-card {
  position: relative;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-200);
}

.product-card.featured-product {
  background: var(--purple-950);
  border-color: var(--purple-800);
  color: var(--purple-100);
}

.product-card.featured-product h3,
.product-card.featured-product p {
  color: var(--white);
}

.product-badge {
  position: absolute;
  top: -10px;
  right: 1.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
}

.product-level {
  font-family: var(--font-head);
  font-size: 0.75rem;
  color: var(--purple-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.product-card.featured-product .product-level {
  color: var(--purple-300);
}

.product-card h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.product-desc {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.product-meta {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.product-card.featured-product .product-meta {
  border-top-color: var(--purple-800);
}

.product-meta li {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.product-card.featured-product .product-meta li {
  color: var(--purple-200);
}

.product-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ======================== SUPPORT ======================== */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.support-card {
  padding: 2.5rem 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s var(--ease);
}

.support-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--purple-200);
}

.support-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.support-card h3 {
  margin-bottom: 0.5rem;
}

.link-arrow {
  display: inline-block;
  margin-top: 1rem;
  color: var(--purple-700);
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover {
  transform: translateX(4px);
}

/* ======================== FAQ ======================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.faq-item[open] {
  border-color: var(--purple-300);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.0625rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
  transition: color 0.3s var(--ease);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover {
  color: var(--purple-700);
}

.faq-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--purple-700);
  font-size: 1.25rem;
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
}

.faq-item[open] .faq-plus {
  background: var(--gradient-primary);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  margin: 0;
  color: var(--ink-soft);
}

/* ======================== CONTACT ======================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  padding: 3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

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

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

.contact-details {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.contact-details li {
  padding: 0.75rem 1rem;
  background: var(--purple-50);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.contact-details strong {
  color: var(--ink);
  margin-right: 0.5rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  transition: all 0.3s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple-400);
  box-shadow: 0 0 0 4px rgba(159, 122, 234, 0.15);
}

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

/* ======================== FOOTER ======================== */
.footer {
  background: var(--purple-950);
  color: var(--purple-200);
  padding-top: 4rem;
  margin-top: 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-brand p {
  color: var(--purple-300);
  margin: 1rem 0 1.5rem;
  max-width: 280px;
}

.socials {
  display: flex;
  gap: 0.6rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--purple-900);
  color: var(--purple-300);
  transition: all 0.3s var(--ease);
}

.socials a svg {
  width: 18px;
  height: 18px;
}

.socials a:hover {
  background: var(--gradient-primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-nav h4 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.footer-nav a {
  display: block;
  padding: 0.4rem 0;
  color: var(--purple-300);
  font-size: 0.9375rem;
  transition: color 0.3s var(--ease);
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--purple-900);
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--purple-400);
  margin: 0;
}

.designer-credit {
  font-size: 0.875rem;
}

.designer-link {
  color: var(--purple-300);
  font-weight: 600;
  position: relative;
  transition: color 0.3s var(--ease);
}

.designer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.designer-link:hover {
  color: var(--white);
}

.designer-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ======================== MODAL ======================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(45, 27, 78, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--white);
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 3rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease-spring);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple-50);
  color: var(--purple-700);
  font-size: 1.25rem;
  transition: all 0.3s var(--ease);
}

.modal-close:hover {
  background: var(--purple-100);
  transform: rotate(90deg);
}

.modal-content h2 {
  margin-bottom: 0.5rem;
}

.modal-meta {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-bottom: 2rem;
}

.modal-content h3 {
  font-size: 1.125rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--purple-700);
}

.modal-content p {
  margin-bottom: 0.5rem;
}

.modal-content a {
  color: var(--purple-700);
  text-decoration: underline;
}

/* ======================== TOAST ======================== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 0.85rem 1.5rem;
  background: var(--purple-950);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  transition: all 0.4s var(--ease-spring);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success { background: #059669; }
.toast.error { background: #DC2626; }

/* ======================== PAGE ROUTING ======================== */
.page {
  display: none;
  animation: fadeIn 0.5s var(--ease);
}

.page.active {
  display: block;
}

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

/* ======================== RESPONSIVE ======================== */
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-wrap { grid-template-columns: 1fr; padding: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: flex; }

  .nav.mobile-open {
    display: flex;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 0.5rem;
    align-items: stretch;
    border-top: 1px solid var(--line);
    z-index: 99;
  }

  .nav.mobile-open .nav-link {
    padding: 1rem;
    font-size: 1.125rem;
    border-radius: var(--radius-md);
  }

  .hero { padding-top: calc(var(--space-xl) + 4rem); }

  .hero-stats { grid-template-columns: 1fr; gap: 1rem; }
  .stat:not(:last-child)::after { display: none; }

  .newsletter-card { padding: 3rem 1.5rem; }
  .newsletter-form .input-wrap { flex-direction: column; padding: 0.5rem; border-radius: var(--radius-md); }
  .newsletter-form input { text-align: center; }
  .newsletter-form .btn { width: 100%; }

  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .socials { justify-content: center; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
  .modal-content { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  h1 { font-size: 2.25rem; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--purple-500);
  outline-offset: 3px;
}