:root {
  /* Premium Dark Theme (Taste Skill) */
  --bg-color: #050505;
  --text-color: #f8f8f8;
  --text-secondary: rgba(255, 255, 255, 0.6);
  
  /* Fonts */
  --font-serif: 'DM Serif Display', serif;
  --font-body-serif: 'Libre Baskerville', serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-logo: 'Sriracha', cursive;
  
  /* V2 Premium Variables */
  --accent-color: #a78bfa;
  --panel-bg: rgba(20, 20, 25, 0.4);
  --panel-border: rgba(255, 255, 255, 0.08);
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
  --spring-bounce: cubic-bezier(0.32, 0.72, 0, 1);
}

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

/* UI/UX Pro: Beautiful Focus States */
*:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
  border-radius: 2px;
}

html {
  /* GSAP ScrollTrigger needs the page to be able to scroll vertically.
     overflow-x:hidden prevents horizontal bleed from the left/right slide animations. */
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  /* Must NOT be overflow:hidden — ScrollTrigger adds scroll height to body
     so the user can scroll, which drives the pinned timeline. */
  overflow-x: hidden;
  width: 100vw;
}

/* ========================================================================= */
/* 1. ORIGINAL SITE COMPONENTS (Hero, Nav, Modals, Snap Scroll Container)    */
/* ========================================================================= */

#p5-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.dg.ac {
  display: none !important;
}

/* =========================================================================
   GSAP PIN CONTAINER — replaces .app-container scroll for the immersive exp.
   The body is overflow:hidden; GSAP ScrollTrigger pins this element and
   converts scroll distance into timeline progress.
   ========================================================================= */
#pin-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* iOS Safari fix — uses visible viewport, not behind address bar */
  overflow: hidden;
  /* 3D perspective so Z-axis moves in Phase 4 work */
  perspective: 1000px;
  perspective-origin: 50% 50%;
}

/* All sections stack on top of each other */
.gsap-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  /* Hidden by default; GSAP controls opacity & pointer-events */
  opacity: 0;
  pointer-events: none;
  /* 3D context so Z-axis card animations render in perspective */
  transform-style: preserve-3d;
}

/* Only the hero is visible on load */
#layer-hero {
  opacity: 1;
  pointer-events: auto;
}

/* Make the editorial-content sections fill the layer without overflowing */
.gsap-layer .editorial-content {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  /* Must fill the layer so align-items:center has a reference height to centre against */
  height: 100vh;
  height: 100dvh;
  /* NO overflow:hidden — that creates a visible hard rectangular clip over the particle background */
}

/* Reduce only the top padding on the framework section so it
   sits within 100vh without losing the original stagger / offset layout */
#layer-framework .model-section {
  padding-top: 3rem;
  padding-bottom: 1rem;
  width: 100%;
}
/* Reduce sub-paragraph bottom margin only (originally 6rem — too much for pinned layout) */
#layer-framework .manifesto-sub {
  margin-bottom: 2.5rem !important;
}

/* Hero layer: tagline and scroll indicator must be visible immediately.
   GSAP owns the zoom-out, so we override the animate-fade-in starting state. */
#layer-hero .animate-fade-in {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* .app-container kept for modal compatibility in original script */
.app-container {
  width: 100%;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
}

/* Hero Section - Restoring original V1 wrapper layout (1400px bounds) */
.hero-wrapper {
  max-width: 1400px;
  padding: 0 4rem;
  margin: 0 auto;
}

#hero {
  min-height: 80vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 60px;
}

.logo-container {
  margin-bottom: 1rem;
}

.main-logo {
  max-width: 600px;
  height: auto;
  display: block;
  transform: translateZ(0);
  will-change: transform, opacity, filter;
}

/* Tagline */
.sticky-tagline {
  text-align: center;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

.subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.serif-text {
  font-family: var(--font-body-serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.56rem;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.scroll-indicator {
  display: flex;
  justify-content: center;
  padding-bottom: 2rem;
  margin-top: 3rem;
  transition: opacity 0.1s ease-out;
}

.scroll-arrow {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 25px;
  position: relative;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--text-color);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  animation: scrollDot 2s ease-in-out infinite alternate;
}

@keyframes scrollDot {
  0%   { top: 8px;  opacity: 1; transform: translateX(-50%); }
  100% { top: 32px; opacity: 0; transform: translateX(-50%); }
}

/* Nav & Launch Badge */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  padding: 2rem;
  z-index: 100;
  pointer-events: none;
}

.header-logo-stack {
  display: grid;
  align-items: center;
}

.sticky-logo {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: auto;
  /* Removed CSS transition because GSAP now scrubs this via the master timeline */
}

.launch-badge {
  grid-area: 1 / 1;
  font-family: var(--font-logo);
  font-size: 24px;
  line-height: 24px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.75);
  pointer-events: none;
  /* Just text, no background or padding, so it morphs seamlessly into the logo */
}
/* body.scrolled-past-hero is no longer used, GSAP timeline controls it */

.nav-actions {
  position: fixed;
  top: 0;
  right: 0;
  padding: 2rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-btn {
  color: var(--text-color);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  opacity: 1;
  transition: transform 0.3s var(--spring-bounce); /* Only transition transform, let GSAP control opacity */
  background: none;
  border: none;
  font-family: var(--font-sans);
  cursor: pointer;
}
.nav-btn:hover { opacity: 0.7; }

.nav-pill {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  transform: translateZ(0);
  will-change: transform, opacity;
}
.nav-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px) scale(1.02);
  opacity: 1;
}
.nav-pill:active {
  transform: translateY(0) scale(0.98);
}
.nav-pill:focus-visible {
  outline-offset: 4px;
  border-radius: 9999px;
}
.nav-pill.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s var(--spring-bounce), transform 0.3s var(--spring-bounce);
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 0;
  width: 100%;
  height: 1rem;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown-menu a {
  color: var(--text-color);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}
.dropdown-menu a:hover { background: rgba(255, 255, 255, 0.1); }

/* Modals */
body.modal-open #pin-container {
  opacity: 0 !important;
  pointer-events: none !important;
}

#modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#modal-overlay.active { opacity: 1; }

.modal-content {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  position: relative;
  /* Impeccable Design Layered Shadows */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 24px 48px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.02) inset;
  transform: scale(0.95);
  transition: transform 0.4s var(--spring-bounce), opacity 0.4s var(--spring-bounce);
  opacity: 0;
  display: none;
}
.modal-content.active {
  transform: scale(1);
  opacity: 1;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
}
.close-modal:hover { opacity: 1; }

.modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}
.modal-content p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1.5rem;
  text-align: center;
}
.form-container {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.form-container iframe { width: 100%; height: 100%; border: none; }


/* ========================================================================= */
/* 2. V2 PREMIUM EDITORIAL CONTENT                                           */
/* ========================================================================= */

.editorial-content {
  position: relative;
  width: 100%;
}

/* Ambient Aura over particles */
.ambient-slate {
  position: absolute; 
  top: 0; left: -10vw; width: 120vw; height: 100%;
  z-index: -1;
  background: transparent;
  pointer-events: none;
  overflow: hidden;
}
.aura {
  position: sticky;
  top: 10vh;
  left: 20vw;
  width: 100vw;
  height: 80vh;
  background: radial-gradient(circle at center, rgba(167, 139, 250, 0.15) 0%, rgba(0, 0, 0, 0) 60%);
  filter: blur(80px);
  animation: pulseAura 15s ease-in-out infinite alternate;
}
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
}
@keyframes pulseAura {
  0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
  100% { transform: scale(1.2) translate(-5vw, 5vh); opacity: 1; }
}

/* Typography Base */
.display-title {
  font-size: clamp(4rem, 10vw, 8rem); /* EXACT V2 SIZE RESTORED */
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 500;
  margin-bottom: 2rem;
}
.display-title-sm {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.manifesto {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  max-width: 600px;
}
.manifesto-sub {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
}
.section-label {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 2rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

/* Editorial Wrappers (1600px constraints inside the full-width block) */
.editorial-hero, .model-section, .footer-cta {
  width: 100%;
  padding-left: 4vw;
  padding-right: 4vw;
  max-width: 1600px;
  margin: 0 auto;
}

/* Sections */
.editorial-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 15vh;
}
.hero-grid {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 4rem;
  align-items: start; /* Aligns to top, then we offset the right column */
  width: 100%;
}
.hero-right {
  /* Pushes the paragraph down by exactly one line-height of the title (10vw * 0.95) */
  /* This creates the staggered effect, perfectly aligning the start of the paragraph with the word "Community" */
  padding-top: 9.5vw;
}

.model-section {
  padding-top: 12rem;
  padding-bottom: 12rem;
  border-top: none;
}
.model-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: start;
}
.offset-panel {
  margin-top: 8rem;
}

/* Glass Panels */
.model-panel {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 4rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  /* Impeccable Design Layered Shadows + Soft Edge Highlight */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 24px 48px -12px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.6s var(--spring-bounce), border-color 0.4s ease;
}
.model-panel:hover {
  transform: translateY(-4px) scale(1.005);
  border-color: rgba(255, 255, 255, 0.15);
}
.panel-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.panel-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.125rem;
  line-height: 1.6;
}
.panel-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  transform: translate(-50%, -50%);
  z-index: 0;
}
.model-panel:hover .panel-glow { opacity: 1; }
.panel-content { position: relative; z-index: 1; }

/* Footer CTA */
.footer-cta {
  padding-top: 15rem;
  padding-bottom: 8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: none;
}
.cta-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 4rem;
}
.cta-primary, .cta-secondary {
  padding: 1.25rem 2.5rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: transform 0.4s var(--spring-bounce), background 0.3s ease, border-color 0.3s ease;
}
.cta-primary {
  background: var(--text-color);
  color: var(--bg-color);
}
.cta-primary:active { transform: scale(0.96); }
.cta-primary:hover { background: #fff; transform: translateY(-2px) scale(1.02); }

.cta-secondary {
  border: 1px solid var(--panel-border);
  color: var(--text-color);
}
.cta-secondary:active { transform: scale(0.96); }
.cta-secondary:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-2px) scale(1.02); }

.social-footer {
  margin-top: 8rem;
}
.social-footer a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}
.social-footer a:hover { color: var(--text-color); }

/* GSAP Hooks (Reverted to CSS Transitions for visibility) */
.reveal-spring {
  opacity: 0;
  visibility: hidden;
  transform: translateY(60px);
  transition: opacity 1.2s var(--spring), transform 1.2s var(--spring), visibility 1.2s;
}
.reveal-spring.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.animate-fade-in {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 1.5s cubic-bezier(0.32, 0.72, 0, 1), transform 1.5s cubic-bezier(0.32, 0.72, 0, 1), visibility 1.5s;
}
body.loaded .animate-fade-in {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ========================================================================= */
/* RESPONSIVE — TABLET (max-width: 1024px)                                   */
/* ========================================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .model-grid { grid-template-columns: 1fr; }
  .offset-panel { margin-top: 2rem; }
  .cta-links { flex-direction: column; }
  .hero-right { padding-top: 0; }
}

/* ========================================================================= */
/* RESPONSIVE — MOBILE (max-width: 768px)                                    */
/* Keeps the cinematic GSAP experience, just scaled for portrait screens.    */
/* ========================================================================= */
@media (max-width: 768px) {

  /* ── Hero ── */
  .hero-wrapper {
    padding: 0 1.5rem;
  }
  #hero {
    min-height: 70vh;
    padding-top: 80px;
  }
  .main-logo {
    max-width: 280px;
  }

  /* ── Tagline ── */
  .subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }
  .serif-text {
    font-size: 1.05rem;
  }
  .scroll-indicator {
    margin-top: 2rem;
  }

  /* ── Nav — bigger touch targets ── */
  .sticky-header {
    padding: 1.25rem;
  }
  .launch-badge {
    font-size: 18px;
    line-height: 18px;
  }
  .sticky-logo img {
    height: 18px !important;
  }

  .nav-btn {
    font-size: 1.1rem;
    min-height: auto;
    display: flex;
    align-items: center;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 1rem 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .dropdown-toggle {
    display: none;
  }

  .nav-pill {
    padding: 0.5rem 1rem;
  }

  /* ── Manifesto ── */
  .editorial-hero {
    min-height: auto;
    padding-top: 5vh;
  }
  .display-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
    margin-bottom: 1.5rem;
  }
  .manifesto {
    font-size: 1rem;
  }

  /* ── Framework ── */
  #layer-framework .model-section {
    padding-top: 2rem;
    padding-bottom: 1rem;
  }
  #layer-framework .manifesto-sub {
    margin-bottom: 1.5rem !important;
  }
  .section-label {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 1rem;
  }
  .manifesto-sub {
    font-size: 0.95rem;
  }
  .model-panel {
    padding: 2rem;
    border-radius: 16px;
  }
  .panel-title {
    font-size: 1.5rem;
  }
  .panel-sub {
    font-size: 0.95rem;
  }

  /* ── Footer CTA ── */
  .footer-cta {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
  .display-title-sm {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .cta-primary, .cta-secondary {
    padding: 1rem 2rem;
    font-size: 0.95rem;
    min-height: 48px;
  }
  .social-footer {
    margin-top: 4rem;
  }

  /* ── Modals ── */
  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }
  .form-container {
    height: 350px;
  }

  /* ── Editorial wrappers ── */
  .editorial-hero, .model-section, .footer-cta {
    padding-left: 5vw;
    padding-right: 5vw;
  }
}

/* ========================================================================= */
/* 3. NATIVE FORMS                                                           */
/* ========================================================================= */
.native-form-container {
  height: auto;
  max-height: 60vh;
  overflow-y: auto;
  background: transparent;
  padding: 1rem 0.5rem;
  /* Custom scrollbar for form area */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.native-form-container::-webkit-scrollbar {
  width: 6px;
}
.native-form-container::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.2);
  border-radius: 4px;
}

.native-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--text-color);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.form-group label span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.native-form input[type="text"],
.native-form input[type="email"],
.native-form input[type="url"],
.native-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.native-form input:focus,
.native-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

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

.checkbox-group, .radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.check-label, .radio-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  cursor: pointer;
}

.check-label input[type="checkbox"],
.radio-label input[type="radio"] {
  appearance: none;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 0;
  font: inherit;
  color: currentColor;
  width: 1.25em;
  height: 1.25em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.check-label input[type="checkbox"] {
  border-radius: 4px;
}

.radio-label input[type="radio"] {
  border-radius: 50%;
}

.check-label input[type="checkbox"]::before,
.radio-label input[type="radio"]::before {
  content: "";
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--accent-color);
}

.check-label input[type="checkbox"]::before {
  width: 0.65em;
  height: 0.65em;
  transform-origin: bottom left;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.radio-label input[type="radio"]::before {
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
}

.check-label input[type="checkbox"]:checked::before,
.radio-label input[type="radio"]:checked::before {
  transform: scale(1);
}

.check-label input[type="checkbox"]:checked,
.radio-label input[type="radio"]:checked {
  border-color: var(--accent-color);
  background-color: rgba(167, 139, 250, 0.1);
}

.submit-btn {
  background: var(--text-color);
  color: var(--bg-color);
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: transform 0.3s var(--spring-bounce), opacity 0.3s ease;
}

.submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: scale(0.98);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}
