/* =====================================================
   Product Common CSS - Glassmorphism Design System

   This file contains shared styles for all product pages
   (Mizou, BookCreator, WeVideo, Padlet, Classkick, Kami,
   Redmenta, Wayground, Snorkl, ThingLink, VibeGrade)

   Usage: Each product page should:
   1. Link this CSS file
   2. Override --product-color and --product-color-rgb variables
   ===================================================== */

/* =====================================================
   CSS Variables - Default (Override per product)
   ===================================================== */
:root {
  /* Default product color (indigo) - override in each page */
  --product-color: #6366f1;
  --product-color-rgb: 99, 102, 241;
  --product-color-dark: #4f46e5;

  /* Secondary color */
  --secondary-color: #8b5cf6;
  --secondary-color-rgb: 139, 92, 246;

  /* Neutral colors */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-light: #475569;

  /* Success color */
  --success-color: #10b981;

  /* Warning color */
  --warning-color: #f59e0b;

  /* Background */
  --bg-glass: rgba(255, 255, 255, 0.8);
  --bg-glass-hover: rgba(255, 255, 255, 0.9);
  --border-glass: rgba(255, 255, 255, 0.9);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #e8f4fc 0%, #f0e6ff 50%, #e6f0ff 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animated gradient background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(var(--product-color-rgb), 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(var(--secondary-color-rgb), 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(167, 243, 208, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(253, 186, 186, 0.2) 0%, transparent 50%);
  z-index: -1;
  animation: gradientFloat 20s ease-in-out infinite;
}

@keyframes gradientFloat {
  0%, 100% { transform: scale(1) translate(0, 0); }
  25% { transform: scale(1.05) translate(1%, -1%); }
  50% { transform: scale(1) translate(-1%, 1%); }
  75% { transform: scale(1.03) translate(1%, 1%); }
}

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

/* =====================================================
   Header - Glass Style
   ===================================================== */
.header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1400px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 0 32px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  overflow: hidden;
  height: 5rem;
}

.logo img {
  height: 15rem;
  width: auto;
  max-width: 900px;
  object-fit: cover;
  object-position: center;
}

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

.nav-menu > a {
  padding: 12px 20px;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.nav-menu > a:hover {
  background: rgba(var(--product-color-rgb), 0.1);
  color: var(--product-color);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  padding: 12px 20px;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-weight: 500;
  font-size: 1.1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.dropdown-toggle:hover {
  background: rgba(var(--product-color-rgb), 0.1);
  color: var(--product-color);
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  padding: 8px;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 12px 16px;
  color: #334155;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.dropdown-content a:hover {
  background: linear-gradient(135deg, var(--product-color) 0%, var(--secondary-color) 100%);
  color: white;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--product-color) 0%, var(--secondary-color) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(var(--product-color-rgb), 0.3);
}

.lang-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--product-color-rgb), 0.4);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(var(--product-color-rgb), 0.1);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--product-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-content {
  display: none;
}

/* =====================================================
   Hero Section - Glassmorphism
   ===================================================== */
.hero-section {
  padding: 140px 0 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-main {
  background: linear-gradient(135deg, rgba(var(--product-color-rgb), 0.9) 0%, rgba(var(--secondary-color-rgb), 0.9) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 28px;
  padding: 56px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(var(--product-color-rgb), 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-main::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-logo-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin: 0 0 16px 0;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.hero-description {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 36px 0;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero-cta {
  display: flex;
  gap: 16px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn-primary {
  padding: 16px 32px;
  background: white;
  color: var(--product-color);
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* =====================================================
   Hero Stats
   ===================================================== */
.hero-stats-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 28px 20px;
  background: linear-gradient(135deg, rgba(var(--product-color-rgb), 0.08) 0%, rgba(var(--secondary-color-rgb), 0.08) 100%);
  border-radius: 20px;
  border: 1px solid rgba(var(--product-color-rgb), 0.15);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(var(--product-color-rgb), 0.15);
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--product-color);
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* =====================================================
   Section Styles
   ===================================================== */
.section {
  padding: 100px 0;
}

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

.section-badge {
  display: inline-block;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(var(--product-color-rgb), 0.1) 0%, rgba(var(--secondary-color-rgb), 0.1) 100%);
  color: var(--product-color);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

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

/* =====================================================
   Feature Cards - Glassmorphism
   ===================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(var(--product-color-rgb), 0.12);
  background: var(--bg-glass-hover);
}

.feature-card.span-6 {
  grid-column: span 6;
}

.feature-card.span-4 {
  grid-column: span 4;
}

.feature-card.span-12 {
  grid-column: span 12;
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--product-color) 0%, var(--secondary-color) 100%);
  box-shadow: 0 8px 24px rgba(var(--product-color-rgb), 0.3);
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: rotate(-5deg) scale(1.1);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.feature-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* =====================================================
   Use Cases Section
   ===================================================== */
.use-cases-section {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.5) 0%, rgba(253, 230, 138, 0.3) 100%);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.use-case-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--product-color);
  transition: all 0.4s ease;
}

.use-case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(var(--product-color-rgb), 0.15);
}

.use-case-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.use-case-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.use-case-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 0 24px 0;
  line-height: 1.7;
}

/* Checklist */
.checklist {
  list-style: none;
}

.checklist li {
  padding: 12px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-light);
  font-weight: 600;
  border-bottom: 1px solid rgba(var(--product-color-rgb), 0.1);
  font-size: 0.95rem;
}

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

.checklist li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: 900;
  font-size: 1.1rem;
}

/* =====================================================
   Pricing Section
   ===================================================== */
.pricing-section {
  padding: 100px 0;
}

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

.pricing-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  padding: 48px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(var(--product-color-rgb), 0.15);
}

.pricing-card.featured {
  background: linear-gradient(135deg, rgba(var(--product-color-rgb), 0.08) 0%, rgba(var(--secondary-color-rgb), 0.08) 100%);
  border: 2px solid var(--product-color);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-12px);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--product-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(var(--product-color-rgb), 0.4);
}

.pricing-header {
  text-align: center;
  margin-bottom: 28px;
}

.pricing-tier {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.pricing-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

.pricing-amount {
  text-align: center;
  margin-bottom: 28px;
}

.price-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--product-color);
  line-height: 1;
  display: block;
}

.price-period {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 8px;
  display: block;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 14px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-light);
  font-weight: 600;
  border-bottom: 1px solid rgba(var(--product-color-rgb), 0.1);
  font-size: 1rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: 900;
  font-size: 1.1rem;
}

.pricing-cta {
  display: block;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--product-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-align: center;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(var(--product-color-rgb), 0.3);
}

.pricing-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--product-color-rgb), 0.4);
}

/* =====================================================
   School Plan Section
   ===================================================== */
.school-plan-section {
  background: linear-gradient(135deg, rgba(var(--product-color-rgb), 0.9) 0%, rgba(var(--secondary-color-rgb), 0.9) 100%);
  backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 56px;
  margin-top: 56px;
  box-shadow: 0 20px 60px rgba(var(--product-color-rgb), 0.3);
  position: relative;
  overflow: hidden;
}

.school-plan-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.school-plan-title {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
  color: white;
  position: relative;
}

.school-tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.school-tier-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

.school-tier-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-8px);
}

.tier-segment {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.tier-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: white;
}

/* =====================================================
   Marketplace Section
   ===================================================== */
.marketplace-section {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--product-color);
  border-radius: 28px;
  padding: 56px;
  margin-top: 56px;
  box-shadow: 0 12px 40px rgba(var(--product-color-rgb), 0.15);
}

.marketplace-title {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.marketplace-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
}

.plan-code-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.plan-code-card {
  background: linear-gradient(135deg, rgba(var(--product-color-rgb), 0.05) 0%, rgba(var(--secondary-color-rgb), 0.05) 100%);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  border: 1px solid rgba(var(--product-color-rgb), 0.2);
  transition: all 0.3s ease;
}

.plan-code-card:hover {
  border-color: var(--product-color);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(var(--product-color-rgb), 0.15);
}

.plan-code-label {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.plan-code {
  font-family: 'Courier New', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--product-color);
  background: rgba(var(--product-color-rgb), 0.1);
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: all;
  display: block;
  margin-bottom: 12px;
}

.plan-code:hover {
  background: rgba(var(--product-color-rgb), 0.2);
  transform: scale(1.02);
}

.plan-code-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.marketplace-cta {
  text-align: center;
}

.marketplace-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: linear-gradient(135deg, var(--product-color) 0%, var(--secondary-color) 100%);
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(var(--product-color-rgb), 0.3);
  transition: all 0.3s ease;
}

.marketplace-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(var(--product-color-rgb), 0.4);
}

/* Official Warning */
.official-warning {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
  border: 2px solid var(--warning-color);
  border-radius: 20px;
  padding: 28px;
  margin-top: 28px;
  text-align: center;
}

.warning-text {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.7;
}

.warning-text strong {
  color: #b45309;
}

/* =====================================================
   Support Section
   ===================================================== */
.support-section {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  padding: 56px;
  margin-top: 56px;
}

.support-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 32px;
  color: var(--text-primary);
}

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

.support-item {
  background: white;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  font-weight: 700;
  color: var(--text-light);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(var(--product-color-rgb), 0.1);
}

.compliance-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.compliance-badge {
  background: linear-gradient(135deg, var(--product-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(var(--product-color-rgb), 0.25);
}

/* =====================================================
   CTA Section
   ===================================================== */
.cta-section {
  background: linear-gradient(135deg, rgba(var(--product-color-rgb), 0.9) 0%, rgba(var(--secondary-color-rgb), 0.9) 100%);
  backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 80px 56px;
  margin: 80px 0;
  box-shadow: 0 20px 60px rgba(var(--product-color-rgb), 0.3);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin: 0 0 16px 0;
  position: relative;
  z-index: 1;
}

.cta-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 40px 0;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* =====================================================
   Footer Section - Bento Grid
   backdrop-filter를 ::before로 이동하여 stacking context 문제 해결
   (Pinchat 위젯이 footer 위에 표시되도록)
   ===================================================== */
.footer-section {
  padding: 80px 0 40px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  /* backdrop-filter 제거 - ::before로 이동 */
}

.footer-section::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.footer-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  /* backdrop-filter 제거 - ::before로 이동 */
}

.footer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: -1;
  pointer-events: none;
  border-radius: 24px;
}

.footer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.footer-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.footer-card .tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 0 28px 0;
}

.footer-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

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

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--product-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s;
}

.contact-value:hover {
  color: var(--product-color);
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.form-group input {
  padding: 12px 16px;
  background: rgba(var(--product-color-rgb), 0.05);
  border: 1px solid rgba(var(--product-color-rgb), 0.2);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s;
}

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

.form-group input:focus {
  border-color: var(--product-color);
  background: rgba(var(--product-color-rgb), 0.08);
  box-shadow: 0 0 0 3px rgba(var(--product-color-rgb), 0.1);
}

.newsletter-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--product-color) 0%, var(--secondary-color) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(var(--product-color-rgb), 0.3);
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--product-color-rgb), 0.4);
}

/* Company Info */
.info-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--product-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
  margin: 0;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(var(--product-color-rgb), 0.15);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--product-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

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

/* =====================================================
   Copy Toast
   ===================================================== */
.copy-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: linear-gradient(135deg, var(--product-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 20px 40px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 9999;
  box-shadow: 0 20px 60px rgba(var(--product-color-rgb), 0.4);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.copy-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* =====================================================
   Pricing Table (for some product pages)
   ===================================================== */
.pricing-table-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(var(--product-color-rgb), 0.1);
}

.pricing-table th {
  background: linear-gradient(135deg, rgba(var(--product-color-rgb), 0.1) 0%, rgba(var(--secondary-color-rgb), 0.1) 100%);
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table tr:hover td {
  background: rgba(var(--product-color-rgb), 0.03);
}

/* =====================================================
   Community Section (for some product pages)
   ===================================================== */
.community-section {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(var(--product-color-rgb), 0.05) 0%, rgba(var(--secondary-color-rgb), 0.05) 100%);
}

.community-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.community-stat {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.community-stat:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(var(--product-color-rgb), 0.12);
}

.community-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--product-color);
  display: block;
  margin-bottom: 8px;
}

.community-label {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .feature-card.span-6,
  .feature-card.span-4,
  .feature-card.span-12 {
    grid-column: span 1;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

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

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-12px);
  }

  .school-tiers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan-code-grid {
    grid-template-columns: 1fr;
  }

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

  .community-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header {
    width: calc(100% - 32px);
    top: 12px;
    padding: 10px 16px;
  }

  .logo {
    height: 2.5rem;
  }

  .logo img {
    height: 7.5rem;
  }

  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-menu-content.active {
    display: block;
    position: fixed;
    top: 80px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 999;
  }

  .mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-nav-menu > a {
    padding: 14px 20px;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s;
  }

  .mobile-nav-menu > a:hover {
    background: rgba(var(--product-color-rgb), 0.1);
    color: var(--product-color);
  }

  .hero-section {
    padding: 120px 0 60px;
  }

  .hero-main {
    padding: 40px 28px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.15rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .school-tiers-grid {
    grid-template-columns: 1fr;
  }

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

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

  .cta-section {
    padding: 60px 28px;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .community-stats {
    grid-template-columns: 1fr;
  }
}
