/* ============================================
   DIRTTIME - App Landing Page
   ============================================ */

:root {
  --color-bg: #050505;
  --color-bg-elevated: #0d0d0d;
  --color-bg-card: #111111;
  --color-surface: #161616;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);

  --color-text: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.65);
  --color-text-tertiary: rgba(255, 255, 255, 0.4);

  --color-accent: #FF6600;
  --color-accent-hover: #FF7711;
  --color-accent-glow: rgba(255, 102, 0, 0.4);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container-max: 1120px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

::selection {
  background: var(--color-accent);
  color: white;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

#webgl-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================
   Header
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 10px 10px 10px 18px;
  background: rgba(13, 13, 13, 0.85);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-center a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: all 0.2s var(--ease-out);
}

.nav-center a:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--color-text);
  color: var(--color-bg);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.2s var(--ease-out);
}

.nav-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: 16px;
  padding: 12px;
  background: rgba(13, 13, 13, 0.95);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  transition: all 0.2s var(--ease-out);
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
}

.mobile-cta {
  background: var(--color-accent) !important;
  color: var(--color-text) !important;
  font-weight: 600 !important;
  text-align: center;
  margin-top: 8px;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 640px;
  margin-bottom: 56px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s var(--ease-out) both;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 10px;
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 28px;
  animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-title .accent {
  color: var(--color-accent);
  position: relative;
}

.hero-text {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text);
  box-shadow: 0 0 0 0 var(--color-accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--color-accent-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-border-hover);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1rem;
}

/* App Store Badge */
.app-store-badge {
  display: inline-block;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.app-store-badge img {
  display: block;
  height: auto;
}

/* ============================================
   iPhone Mockup
   ============================================ */

.hero-phones {
  position: relative;
  z-index: 1;
  perspective: 1200px;
  animation: fadeInUp 1s var(--ease-out) 0.5s both;
}

.iphone-stack {
  position: relative;
  width: 280px;
  height: 570px;
  transform-style: preserve-3d;
}

.iphone {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 60px 100px -30px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.iphone::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #000;
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.iphone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #0a0a0a;
  border-radius: 20px;
  z-index: 10;
}

.iphone-notch::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 20px;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #1a1a2e 30%, #0d0d0d 70%);
  border-radius: 50%;
  box-shadow: inset 0 0 2px rgba(50, 50, 80, 0.5);
}

/* Stacked phones positioning */
.iphone-main {
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

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

.iphone-back-left {
  z-index: 1;
  transform: translateX(-60%) translateZ(-80px) rotateY(15deg) scale(0.85);
  opacity: 0.6;
  animation: floatLeft 6s ease-in-out infinite;
}

@keyframes floatLeft {
  0%, 100% { transform: translateX(-60%) translateZ(-80px) rotateY(15deg) scale(0.85); }
  50% { transform: translateX(-60%) translateZ(-80px) rotateY(15deg) scale(0.85) translateY(-8px); }
}

.iphone-back-right {
  z-index: 2;
  transform: translateX(60%) translateZ(-40px) rotateY(-10deg) scale(0.9);
  opacity: 0.75;
  animation: floatRight 6s ease-in-out infinite;
}

@keyframes floatRight {
  0%, 100% { transform: translateX(60%) translateZ(-40px) rotateY(-10deg) scale(0.9); }
  50% { transform: translateX(60%) translateZ(-40px) rotateY(-10deg) scale(0.9) translateY(-10px); }
}

/* Glow effect behind phones */
.hero-phones::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--color-accent-glow), transparent 60%);
  filter: blur(80px);
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--color-text-tertiary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  animation: fadeInUp 0.8s var(--ease-out) 0.8s both;
}

.scroll-arrow {
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  position: relative;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-text-tertiary);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================
   Features
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px 28px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-hover);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--color-accent);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ============================================
   Screenshots
   ============================================ */

.showcase {
  padding: 80px 0;
  overflow: hidden;
}

.screenshots-track {
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.screenshots-slider {
  display: flex;
  gap: 20px;
  animation: scroll 50s linear infinite;
  width: max-content;
}

.screenshots-slider:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.screenshot {
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--ease-out);
}

.screenshot:hover {
  transform: scale(1.03);
}

.screenshot img {
  width: 200px;
  height: auto;
  display: block;
}

/* ============================================
   Steps
   ============================================ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  text-align: center;
  padding: 40px 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-accent);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px var(--color-accent-glow);
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

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

.cta {
  padding: 80px 0;
}

.cta-content {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
  padding: 56px 40px;
  background: linear-gradient(145deg, var(--color-bg-card), var(--color-surface));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-logo img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.footer-tagline {
  color: var(--color-text-tertiary);
  font-size: 0.875rem;
}

.footer-nav {
  display: flex;
  gap: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s var(--ease-out);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .iphone-stack {
    width: 240px;
    height: 490px;
  }

  .iphone {
    border-radius: 38px;
    padding: 10px;
  }

  .iphone-screen {
    border-radius: 30px;
  }

  .iphone-notch {
    width: 85px;
    height: 24px;
    top: 14px;
  }

  .iphone-back-left {
    transform: translateX(-50%) translateZ(-60px) rotateY(12deg) scale(0.85);
  }

  .iphone-back-right {
    transform: translateX(50%) translateZ(-30px) rotateY(-8deg) scale(0.9);
  }
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-center, .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }

  .hero-content {
    margin-bottom: 48px;
  }

  .iphone-stack {
    width: 220px;
    height: 450px;
  }

  .iphone-back-left,
  .iphone-back-right {
    display: none;
  }

  .scroll-hint {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .step-card {
    padding: 28px 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 12px 16px;
  }

  .header-inner {
    padding: 8px 8px 8px 14px;
  }

  .logo span {
    display: none;
  }

  .hero {
    padding: 90px 16px 48px;
  }

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

  .btn {
    width: 100%;
    justify-content: center;
  }

  .iphone-stack {
    width: 200px;
    height: 410px;
  }

  .container {
    padding: 0 16px;
  }

  .cta-content {
    padding: 40px 24px;
  }
}

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

  .screenshots-slider {
    animation: none;
  }
}

/* ============================================
   Content Pages (Legal, Support)
   ============================================ */

.page-header {
  padding: 140px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-header .subtitle {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

.page-content {
  padding: 0 0 80px;
}

.content-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.content-card .date {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  margin-bottom: 32px;
  padding: 6px 14px;
  background: var(--color-surface);
  border-radius: var(--radius-full);
}

.content-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 40px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.content-card h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.content-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--color-text);
}

.content-card p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.content-card ul,
.content-card ol {
  color: var(--color-text-secondary);
  margin: 0 0 16px 24px;
  line-height: 1.7;
}

.content-card li {
  margin-bottom: 8px;
}

.content-card strong {
  color: var(--color-text);
  font-weight: 600;
}

.content-card a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.2s var(--ease-out);
}

.content-card a:hover {
  opacity: 0.8;
}

.content-card a.btn {
  color: var(--color-text);
}

.content-card a.btn:hover {
  opacity: 1;
}

/* Support Page Specific */
.contact-card {
  background: linear-gradient(145deg, var(--color-surface), var(--color-bg-card));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
}

.contact-card h2 {
  margin: 0 0 12px;
  padding: 0;
  border: none;
  font-size: 1.25rem;
}

.contact-card p {
  margin-bottom: 12px;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
  margin-top: 40px;
}

.faq-section > h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  margin-bottom: 24px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s var(--ease-out);
}

.faq-item:hover {
  border-color: var(--color-border-hover);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: var(--color-surface);
  border: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.2s var(--ease-out);
}

.faq-question:hover {
  background: var(--color-bg-elevated);
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-accent);
  transition: transform 0.3s var(--ease-out);
}

.faq-question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  background: var(--color-surface);
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer p,
.faq-answer ul {
  margin-bottom: 12px;
}

.faq-answer p:last-child,
.faq-answer ul:last-child {
  margin-bottom: 0;
}

/* Tips Grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.tip-card {
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s var(--ease-out);
}

.tip-card:hover {
  border-color: var(--color-border-hover);
}

.tip-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.tip-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

.tip-card ul {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 8px 0 0 20px;
}

/* App Info Card */
.app-info-card {
  margin-top: 48px;
  padding: 32px;
  background: linear-gradient(145deg, var(--color-surface), var(--color-bg-card));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.app-info-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.app-info-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.app-info-grid strong {
  color: var(--color-text);
}

/* Content page responsive */
@media (max-width: 768px) {
  .page-header {
    padding: 120px 0 40px;
  }

  .content-card {
    padding: 32px 24px;
    border-radius: var(--radius-lg);
  }

  .contact-card {
    padding: 24px;
  }

  .faq-question {
    padding: 16px 20px;
  }

  .faq-answer {
    padding: 0 20px 16px;
  }

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

  .app-info-grid {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 100px 0 32px;
  }

  .content-card {
    padding: 24px 16px;
  }

  .content-card h2 {
    font-size: 1.25rem;
  }
}

/* ============================================
   Feedback Page
   ============================================ */

.feedback-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.feedback-intro {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 32px;
  text-align: center;
}

.form-container {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 600px;
}

.form-container iframe {
  display: block;
  width: 100%;
  min-height: 800px;
  border: none;
}

@media (max-width: 768px) {
  .feedback-card {
    padding: 32px 24px;
    border-radius: var(--radius-lg);
  }

  .form-container iframe {
    min-height: 900px;
  }
}

@media (max-width: 480px) {
  .feedback-card {
    padding: 24px 16px;
  }

  .feedback-intro {
    font-size: 1rem;
  }

  .form-container iframe {
    min-height: 1000px;
  }
}

/* ============================================
   SPA Page System
   ============================================ */

.page {
  display: none;
}

.page.active {
  display: block;
  animation: pageIn 0.3s var(--ease-out);
}

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

/* Active nav indicator */
.nav-center a[aria-current="page"],
.mobile-menu a[aria-current="page"] {
  color: var(--color-accent);
}
