/**
 * PixelBoop Landing Page Styles
 * Dark theme, CSS Grid pixel rendering, responsive design
 */

/* =============================================================================
   CSS CUSTOM PROPERTIES
   ============================================================================= */

:root {
  /* Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111;
  --bg-tertiary: #1a1a1a;
  --text-primary: #e0e0e0;
  --text-secondary: #888;
  --text-muted: #666;
  --accent-green: #9acd32;
  --accent-teal: #4ecdc4;
  --accent-red: #ff6b6b;

  /* Grid */
  --pixel-size: 12px;
  --grid-gap: 1px;
  --grid-cols: 44;
  --grid-rows: 24;

  /* Spacing */
  --section-padding: 4rem 1.5rem;
  --content-max-width: 1200px;

  /* Typography */
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Monaco, "Andale Mono", monospace;
}

/* =============================================================================
   RESET & BASE
   ============================================================================= */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-system);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =============================================================================
   ACCESSIBILITY
   ============================================================================= */

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

/* Focus indicators */
:focus {
  outline: 2px solid var(--accent-teal);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent-teal);
  outline-offset: 2px;
}

/* =============================================================================
   HEADER
   ============================================================================= */

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bg-tertiary);
}

.nav-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.beta-tag {
  display: inline-block;
  background: var(--accent-teal);
  color: var(--bg-primary);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 0.25rem;
}

.nav-cta {
  background: linear-gradient(90deg, #ff6b6b, #ffc800, #9acd32, #4ecdc4, #ff6b6b);
  background-size: 200% auto;
  color: var(--bg-primary) !important;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  transition: transform 0.1s !important;
  animation: gradient-shift 4s ease infinite;
}

.nav-cta:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

@media (max-width: 600px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

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

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

#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 2rem;
  text-align: center;
}

.hero-content {
  max-width: 100%;
  width: 100%;
}

/* Hero beta signup form */
.hero-beta-signup {
  margin: 1.5rem 0;
}

.hero-form {
  justify-content: center;
}

/* Rainbow button style */
.rainbow-btn {
  background: linear-gradient(90deg, #ff6b6b, #ffc800, #9acd32, #4ecdc4, #ff6b6b) !important;
  background-size: 200% auto !important;
  color: var(--bg-primary) !important;
  border: none !important;
  font-weight: 600;
  animation: gradient-shift 4s ease infinite;
}

.rainbow-btn:hover {
  transform: scale(1.02);
}

.rainbow-btn:disabled {
  opacity: 0.7;
}

.hero-store-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hero-store-badges .store-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-store-badges .app-store-badge,
.hero-store-badges .play-store-badge {
  height: 40px;
}

.ascii-logo {
  font-family: var(--font-mono);
  font-size: clamp(4px, 1.2vw, 10px);
  line-height: 1.1;
  color: var(--text-primary);
  white-space: pre;
  overflow-x: auto;
  margin: 0 auto 2rem;
  display: block;
  text-align: center;
}

@media (max-width: 600px) {
  .ascii-logo {
    font-size: 3px;
    letter-spacing: -0.5px;
  }
}

.tagline {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.tagline em {
  font-style: normal;
  font-weight: 600;
  background: linear-gradient(90deg, #ff6b6b, #ffc800, #9acd32, #4ecdc4);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-grid {
  max-width: calc(var(--pixel-size) * 44 + var(--grid-gap) * 43 + 4px);
  margin: 0 auto 2rem;
  background-color: var(--bg-primary);
  gap: 0;
}

.hero-grid .pixel {
  background-color: var(--bg-primary);
}

.scroll-hint {
  color: var(--text-muted);
  font-size: 0.875rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint,
  .tagline em,
  .nav-cta,
  .play-btn {
    animation: none;
  }
}

/* =============================================================================
   PIXEL GRID
   ============================================================================= */

.pixel-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), var(--pixel-size));
  gap: var(--grid-gap);
  background-color: var(--bg-secondary);
  padding: 2px;
  border-radius: 4px;
  margin: 0 auto;
  width: fit-content;
}

.pixel {
  width: var(--pixel-size);
  height: var(--pixel-size);
  background-color: var(--bg-tertiary);
  border-radius: 1px;
  transition: background-color 0.05s ease;
}

.pixel.playing {
  animation: pulse 0.15s ease-out;
  filter: brightness(1.3);
}

@keyframes pulse {
  0% { transform: scale(1); filter: brightness(1.3); }
  50% { transform: scale(1.1); filter: brightness(1.5); }
  100% { transform: scale(1); filter: brightness(1.3); }
}

@media (prefers-reduced-motion: reduce) {
  .pixel {
    transition: none;
  }
  .pixel.playing {
    animation: none;
    filter: brightness(1.5);
  }
}

/* =============================================================================
   WHAT IT IS SECTION
   ============================================================================= */

#what-it-is {
  padding: var(--section-padding);
  text-align: center;
}

.section-tagline {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.feature-bullets {
  list-style: none;
  max-width: 400px;
  margin: 0 auto;
}

.feature-bullets li {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-secondary);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bg-tertiary);
}

.feature-bullets li:last-child {
  border-bottom: none;
}

/* =============================================================================
   DEMO SECTION
   ============================================================================= */

#demo {
  padding: var(--section-padding);
  background-color: var(--bg-secondary);
}

.demo-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.demo-info {
  margin: 1.5rem 0;
}

.demo-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.demo-description {
  font-size: 1rem;
  color: var(--text-secondary);
}

.demo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.demo-btn {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--text-muted);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.demo-btn:hover {
  background: var(--bg-primary);
  border-color: var(--text-secondary);
}

.slide-indicators {
  display: flex;
  gap: 0.5rem;
}

.slide-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-muted);
  transition: background-color 0.2s;
}

.slide-indicator.active {
  background-color: var(--accent-green);
}

.play-btn {
  background: linear-gradient(90deg, #ff6b6b, #ffc800, #9acd32, #4ecdc4, #ff6b6b);
  background-size: 200% auto;
  color: var(--bg-primary);
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.1s;
  animation: gradient-shift 4s ease infinite;
}

.play-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

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

.keyboard-hint {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.keyboard-hint kbd {
  background: var(--bg-tertiary);
  border: 1px solid var(--text-muted);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

/* =============================================================================
   WHAT YOU GET SECTION
   ============================================================================= */

#what-you-get {
  padding: var(--section-padding);
  text-align: center;
}

.features-content {
  max-width: 500px;
  margin: 0 auto;
}

.feature-statement {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
  line-height: 1.4;
}

.feature-detail {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.feature-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bg-tertiary);
}

.count-item {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

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

#cta {
  padding: var(--section-padding);
  background-color: var(--bg-secondary);
  text-align: center;
}

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

/* Store Badges */
.store-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.store-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.store-badge-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
}

.store-badge-wrapper.coming-soon {
  opacity: 0.5;
  filter: grayscale(30%);
}

.app-store-badge,
.play-store-badge {
  height: 50px;
  width: auto;
}

.platform-note {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.divider {
  border: none;
  border-top: 1px solid var(--bg-tertiary);
  margin: 2rem 0;
}

/* Beta Signup Section */
.beta-signup {
  text-align: center;
}

.beta-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.beta-description {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 320px;
  margin: 0 auto;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field {
  width: 100%;
}

.form-input,
.email-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-tertiary);
  border: 1px solid var(--text-muted);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-radius: 4px;
}

.form-input::placeholder,
.email-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.email-input:focus {
  border-color: var(--accent-teal);
  outline: none;
}

.referral-field {
  margin-top: 0.5rem;
  animation: slideDown 0.3s ease-out;
}

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

.referral-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-bottom: 0.375rem;
}

.optional-text {
  color: var(--text-muted);
  font-style: italic;
}

.referral-select {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--text-muted);
  color: var(--text-primary);
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  border-radius: 4px;
  cursor: pointer;
}

.referral-select:focus {
  border-color: var(--accent-teal);
  outline: none;
}

.email-btn {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--text-muted);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s;
}

.email-btn:hover {
  background: var(--bg-primary);
  border-color: var(--text-secondary);
}

.email-message {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  min-height: 1.25rem;
}

.email-message.success {
  color: var(--accent-green);
}

.email-message.error {
  color: var(--accent-red);
}

/* TestFlight Reveal */
.testflight-reveal {
  margin-top: 1.5rem;
  text-align: center;
  animation: fadeInUp 0.5s ease-out;
}

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

.testflight-text {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--accent-green);
}

.testflight-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  text-decoration: none;
}

.testflight-icon {
  font-size: 1.25rem;
}

.testflight-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.testflight-note a {
  color: var(--accent-purple);
  text-decoration: underline;
}

.testflight-note a:hover {
  color: var(--accent-pink);
}

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

#footer {
  padding: 3rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--bg-tertiary);
}

.footer-content {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.footer-logo {
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

.footer-byline {
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-social .social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.1);
}

.footer-social .social-link:hover {
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.2);
  transform: translateY(-1px);
}

.footer-social .social-icon {
  font-size: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.beta-tag {
  display: inline-block;
  background: var(--accent-teal);
  color: var(--bg-primary);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 0.25rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* =============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================= */

/* Mobile (default) */
@media (max-width: 767px) {
  :root {
    --pixel-size: 8px;
    --section-padding: 3rem 1rem;
  }

  .demo-controls {
    flex-wrap: wrap;
  }

  .email-form {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --pixel-size: 12px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  :root {
    --pixel-size: 16px;
  }

  body {
    font-size: 18px;
  }
}

/* Large Desktop */
@media (min-width: 1440px) {
  :root {
    --pixel-size: 18px;
  }
}

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


/* =============================================================================
   CASE STUDY: PJCE
   ============================================================================= */

.case-study-page body {
  background-color: var(--bg-primary);
}

.case-study-page .nav-logo {
  text-decoration: none;
}

.case-study-page .nav-links a.active {
  color: var(--text-primary);
}

.cs-hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.cs-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.cs-hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.accent-text {
  font-weight: 300;
  color: var(--accent-teal);
  font-style: italic;
  padding: 0 0.5rem;
}

.cs-subtitle {
  font-size: clamp(1.25rem, 4vw, 2rem);
  color: var(--text-secondary);
  font-weight: 300;
}

.cs-hero-visual {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
  pointer-events: none;
}

.visual-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.visual-circle.c1 {
  width: 40vw;
  height: 40vw;
  background: var(--accent-green);
  top: -10%;
  left: -10%;
  animation: float 20s infinite ease-in-out;
}

.visual-circle.c2 {
  width: 50vw;
  height: 50vw;
  background: var(--accent-teal);
  bottom: -20%;
  right: -20%;
  animation: float 25s infinite ease-in-out reverse;
}

.visual-circle.c3 {
  width: 30vw;
  height: 30vw;
  background: var(--accent-red);
  top: 40%;
  left: 60%;
  opacity: 0.6;
  animation: pulse-visual 15s infinite ease-in-out;
}

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

@keyframes pulse-visual {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0.4; }
}

.cs-section {
  padding: 6rem 1.5rem;
  position: relative;
}

.cs-section.alt-bg {
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-tertiary);
  border-bottom: 1px solid var(--bg-tertiary);
}

.cs-container {
  max-width: 900px;
  margin: 0 auto;
}

.cs-section h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, #fff, #888);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cs-text-large {
  font-size: 1.5rem;
  line-height: 1.6;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.cs-section p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.cs-section a {
  color: var(--accent-teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(78, 205, 196, 0.3);
  transition: all 0.2s;
}

.cs-section a:hover {
  color: #fff;
  border-bottom-color: var(--accent-teal);
}

.cs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.cs-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-green);
}

.highlight-link {
  font-weight: 600;
  font-size: 1.2em;
}

.cs-quote {
  margin: 4rem 0;
  padding: 2rem;
  border-left: 4px solid var(--accent-red);
  background: linear-gradient(90deg, rgba(255, 107, 107, 0.1), transparent);
}

.cs-quote blockquote {
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .cs-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* =============================================================================
   SUPPORT PAGE STYLES
   ============================================================================= */

/* Support Hero */
.support-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
  padding: 8rem 1.5rem 4rem;
  text-align: center;
}

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

.support-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.support-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Support Sections */
.support-section {
  padding: 4rem 1.5rem;
}

.support-section.bg-dark {
  background: var(--bg-secondary);
}

.support-container {
  max-width: 900px;
  margin: 0 auto;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-primary);
}

.contact-intro {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Help Grid */
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.help-card {
  background: var(--bg-tertiary);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.help-card:hover {
  border-color: var(--accent-teal);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(78, 205, 196, 0.1);
}

.help-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.help-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.help-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.help-link {
  color: var(--accent-teal);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.help-link:hover {
  color: var(--accent-green);
}

/* FAQ List */
.faq-list {
  max-width: 700px;
  margin: 2rem auto;
}

.faq-item {
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.2s;
}

.faq-item:hover {
  border-color: rgba(78, 205, 196, 0.3);
}

.faq-item[open] {
  border-color: var(--accent-teal);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--accent-teal);
}

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

.faq-question::before {
  content: '▶';
  font-size: 0.875rem;
  color: var(--accent-teal);
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::before {
  transform: rotate(90deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 3rem;
  color: var(--text-secondary);
  line-height: 1.7;
  animation: fadeIn 0.3s ease-in;
}

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

.faq-answer p {
  margin-bottom: 1rem;
}

.faq-answer ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.faq-answer li {
  margin-bottom: 0.5rem;
}

.faq-answer a {
  color: var(--accent-teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(78, 205, 196, 0.3);
  transition: all 0.2s;
}

.faq-answer a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--accent-teal);
}

/* Contact Form */
.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-tertiary);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

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

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.required {
  color: var(--accent-red);
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.875rem 1rem;
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-system);
  transition: all 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}

.submit-btn {
  margin-top: 1rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(154, 205, 50, 0.1);
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
}

.form-status.error {
  display: block;
  background: rgba(255, 107, 107, 0.1);
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
}

/* Active nav link */
.nav-active {
  color: var(--accent-teal) !important;
}

.footer-active {
  color: var(--accent-teal) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .support-hero {
    padding: 6rem 1rem 3rem;
  }

  .support-section {
    padding: 3rem 1rem;
  }

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

  .contact-form-wrapper {
    padding: 1.5rem;
  }

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

  .faq-answer {
    padding-left: 1.5rem;
  }
}

@media (max-width: 480px) {
  .support-title {
    font-size: 2rem;
  }

  .help-icon {
    font-size: 2.5rem;
  }

  .faq-question {
    font-size: 1rem;
    padding: 1rem;
  }

  .faq-answer {
    padding: 0 1rem 1rem 2.5rem;
  }
}
