/* ============================================
   Mindaura Labs — Professional Design System
   Apple-inspired with Business Focus
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: #1d1d1f;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  opacity: 0;
  animation: pageFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
  to { opacity: 1; }
}

a {
  color: #0066ff;
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover {
  color: #0052cc;
  text-decoration: underline;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #1d1d1f;
}

/* ---------- Container ---------- */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 1280px;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 52px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 20px;
  font-weight: 800;
  color: #1d1d1f;
  letter-spacing: -0.05em;
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__logo:hover {
  color: #1d1d1f;
  text-decoration: none;
  transform: scale(1.02);
}

.nav__logo span {
  background: linear-gradient(135deg, #0066ff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.01em;
  opacity: 0.75;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #0066ff, #00d4ff);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__links a:hover {
  opacity: 1;
  text-decoration: none;
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #1d1d1f;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  opacity: 0;
  transform: translateY(-12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9998;
}

.nav__mobile-menu.show {
  opacity: 1;
  transform: translateY(0);
}

.nav__mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__mobile-menu a:hover {
  text-decoration: none;
  color: #0066ff;
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 180px 0 100px;
  text-align: center;
  background: #000;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 102, 255, 0.3), transparent),
    radial-gradient(ellipse 60% 50% at 50% 120%, rgba(0, 212, 255, 0.2), transparent);
  animation: gradientShift 8s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% { opacity: 1; }
  100% { opacity: 0.7; }
}

.hero__gradient {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(0, 102, 255, 0.1) 0%,
    transparent 50%
  );
  animation: rotate 30s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff, #0066ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(44px, 8vw, 80px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 102, 255, 0.3);
}

.hero__subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  color: rgba(255, 255, 255, 0.7);
  max-width: 720px;
  margin: 0 auto 40px;
  line-height: 1.5;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  text-decoration: none;
  gap: 8px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, #0066ff, #00d4ff);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.4);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: #0066ff;
  border: 2px solid #0066ff;
}

.btn--outline:hover {
  background: #0066ff;
  color: #fff;
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn--dark {
  background: #1d1d1f;
  color: #fff;
}

.btn--dark:hover {
  background: #333;
  color: #fff;
}

.btn--large {
  padding: 18px 40px;
  font-size: 19px;
}

.btn--small {
  padding: 10px 24px;
  font-size: 15px;
}

/* ---------- Stats Bar ---------- */
.stats {
  background: linear-gradient(135deg, #1d1d1f 0%, #000 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  text-align: center;
}

.stats__item {
  position: relative;
}

.stats__number {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 12px;
}

.stats__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* ---------- Section Styles ---------- */
.section {
  padding: 120px 0;
}

.section--gray {
  background: #f5f5f7;
}

.section--dark {
  background: linear-gradient(135deg, #1d1d1f 0%, #000 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.section--dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 60% 40% at 30% 50%, rgba(0, 102, 255, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 70% 50%, rgba(0, 212, 255, 0.06), transparent);
  pointer-events: none;
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--dark .section__subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.section__eyebrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, #0066ff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section__title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
  line-height: 1.1;
}

.section__subtitle {
  font-size: 21px;
  color: #6e6e73;
  max-width: 680px;
  line-height: 1.48;
  font-weight: 400;
}

.section__header {
  text-align: center;
  margin-bottom: 72px;
}

.section__header .section__subtitle {
  margin: 0 auto;
}

/* ---------- Product Cards ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.product-card {
  display: block;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.02), rgba(0, 212, 255, 0.02));
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: inherit;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card__icon {
  font-size: 80px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
  position: relative;
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.product-card__visual {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.floating-card {
  position: absolute;
  font-size: 32px;
  animation: floatAround 4s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.floating-card:nth-child(1) {
  top: 15%;
  left: 15%;
}

.floating-card:nth-child(2) {
  top: 20%;
  right: 15%;
}

.floating-card:nth-child(3) {
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes floatAround {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(10px, -10px) rotate(5deg);
  }
  50% {
    transform: translate(-5px, -15px) rotate(-5deg);
  }
  75% {
    transform: translate(-10px, -5px) rotate(3deg);
  }
}

.product-card__body {
  padding: 28px 32px 32px;
}

.product-card__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 4px;
}

.product-card__badge--featured {
  background: linear-gradient(135deg, #0066ff, #00d4ff);
  color: #fff;
}

.product-card__badge {
  background: linear-gradient(135deg, #ff6b6b, #feca57);
  color: #fff;
}

.product-card__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: #1d1d1f;
}

.product-card__desc {
  font-size: 16px;
  color: #6e6e73;
  line-height: 1.55;
  margin-bottom: 16px;
}

.product-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.product-card__tag {
  font-size: 12px;
  font-weight: 600;
  color: #6e6e73;
  background: #f5f5f7;
  padding: 6px 14px;
  border-radius: 980px;
  letter-spacing: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card__tag {
  background: #e8e8ed;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card__status {
  font-size: 14px;
  font-weight: 600;
  color: #ff9500;
}

/* ---------- Feature Cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.feature-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-card__body {
}

.feature-card__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: #1d1d1f;
}

.feature-card__text {
  font-size: 16px;
  color: #6e6e73;
  line-height: 1.55;
}

/* ---------- Technology Grid ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.tech-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

.tech-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.tech-item__icon {
  font-size: 48px;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.tech-item__name {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  text-align: center;
  padding: 100px 0;
  background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
  animation: rotate 20s linear infinite;
}

.cta-banner .container {
  position: relative;
  z-index: 2;
}

.cta-banner__title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
  color: #fff;
}

.cta-banner__text {
  font-size: 21px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.48;
}

.cta-banner .btn--primary {
  background: #fff;
  color: #0066ff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-banner .btn--primary:hover {
  background: #f5f5f7;
  color: #0066ff;
}

/* ---------- Footer ---------- */
.footer {
  background: #f5f5f7;
  padding: 64px 0 32px;
  border-top: 1px solid #d2d2d7;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}

.footer__col-title {
  font-size: 13px;
  font-weight: 700;
  color: #1d1d1f;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 12px;
}

.footer__links a {
  font-size: 14px;
  color: #6e6e73;
  font-weight: 400;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer__links a:hover {
  color: #0066ff;
  text-decoration: none;
}

.footer__bottom {
  border-top: 1px solid #d2d2d7;
  padding-top: 24px;
  text-align: center;
}

.footer__copy {
  font-size: 13px;
  color: #6e6e73;
  margin-bottom: 12px;
}

.footer__bottom-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__bottom-links a {
  font-size: 13px;
  color: #6e6e73;
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale--visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade--visible {
  opacity: 1;
}

/* Stagger children */
.products-grid .reveal:nth-child(1) { transition-delay: 0s; }
.products-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.products-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.products-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.features-grid .reveal:nth-child(1) { transition-delay: 0s; }
.features-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.15s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.2s; }
.features-grid .reveal:nth-child(5) { transition-delay: 0.25s; }
.features-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero {
    padding: 140px 0 80px;
    min-height: 70vh;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .section {
    padding: 80px 0;
  }

  .section__header {
    margin-bottom: 48px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 72px 0;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .nav__inner {
    padding: 0 20px;
  }

  .hero {
    padding: 120px 0 64px;
  }

  .section {
    padding: 64px 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stats__grid {
    gap: 24px;
  }

  .stats {
    padding: 48px 0;
  }
}

/* ---------- Legal Pages (reuse from Mastermind with adjustments) ---------- */
.legal-hero {
  padding: 140px 0 56px;
  text-align: center;
  background: linear-gradient(180deg, #f5f5f7 0%, #fff 100%);
}

.legal-hero__title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
}

.legal-hero__subtitle {
  font-size: 19px;
  color: #6e6e73;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  padding: 72px 0;
}

.legal-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.legal-sidebar a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #6e6e73;
  border-left: 3px solid transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-sidebar a:hover {
  color: #0066ff;
  text-decoration: none;
}

.legal-sidebar a.active {
  color: #0066ff;
  border-left-color: #0066ff;
  font-weight: 600;
}

.legal-content h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 56px 0 20px;
  color: #1d1d1f;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 16px;
  color: #424245;
  line-height: 1.65;
  margin-bottom: 20px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 20px 28px;
  font-size: 16px;
  color: #424245;
  line-height: 1.65;
}

.legal-content li {
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-sidebar {
    position: static;
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 16px;
    border-bottom: 1px solid #d2d2d7;
  }

  .legal-sidebar a {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 12px 16px;
  }

  .legal-sidebar a.active {
    border-left: none;
    border-bottom-color: #0066ff;
  }
}

/* ---------- Delete Account Form ---------- */
.form-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 80px;
  background: linear-gradient(135deg, #000 0%, #1d1d1f 50%, #0d0d0f 100%);
  position: relative;
  overflow: hidden;
}

.form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 60% 40% at 30% 50%, rgba(255, 59, 48, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 70% 50%, rgba(0, 102, 255, 0.06), transparent);
  pointer-events: none;
}

.form-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 56px;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-card__icon {
  font-size: 56px;
  margin-bottom: 28px;
  text-align: center;
}

.form-card__title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  text-align: center;
}

.form-card__desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  line-height: 1.55;
  margin-bottom: 36px;
}

.form-card__warning {
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.25);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 28px;
}

.form-card__warning p {
  font-size: 14px;
  color: #ff6961;
  line-height: 1.55;
  margin: 0;
}

.form-card__warning strong {
  color: #ff3b30;
  font-weight: 700;
}

.form-field {
  margin-bottom: 24px;
}

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
}

.form-field input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-size: 17px;
  color: #fff;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.form-field input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-field input:focus {
  border-color: rgba(255, 59, 48, 0.6);
  background: rgba(255, 255, 255, 0.12);
}

.form-card .btn {
  width: 100%;
  margin-top: 12px;
}

.form-message {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  font-size: 15px;
  text-align: center;
  display: none;
}

.form-message--success {
  background: rgba(52, 199, 89, 0.15);
  color: #34c759;
  border: 1px solid rgba(52, 199, 89, 0.25);
  display: block;
}

.form-message--error {
  background: rgba(255, 59, 48, 0.15);
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.25);
  display: block;
}

@media (max-width: 480px) {
  .form-card {
    padding: 40px 28px;
  }
}

/* ---------- 404 Page ---------- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(135deg, #000 0%, #1d1d1f 50%, #0d0d0f 100%);
  position: relative;
  overflow: hidden;
}

.error-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 60% 40% at 30% 50%, rgba(0, 102, 255, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 70% 50%, rgba(0, 212, 255, 0.06), transparent);
  pointer-events: none;
}

.error-page .container {
  position: relative;
  z-index: 2;
}

.error-page__code {
  font-size: clamp(120px, 25vw, 240px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #0066ff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-page__title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.error-page__text {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.error-page .btn--primary {
  background: linear-gradient(135deg, #0066ff, #00d4ff);
}
