/* =====================================================
   Canva Page Styles - Glassmorphism Edition
   오늘배움 - Canva 완전 가이드
   ===================================================== */

/* Canva Brand Colors - Hybrid System with Glassmorphism */
:root {
  /* Primary - Canva Teal Theme */
  --canva-primary: #00C4CC;
  --canva-secondary: #7D2AE8;
  --canva-gradient: linear-gradient(135deg, #00C4CC 0%, #7D2AE8 100%);

  /* Canva brand accents - keep for visual identity */
  --canva-brand-purple: #7D2AE8;
  --canva-brand-blue: #00C4CC;
  --canva-brand-pink: #FF6F91;
  --canva-accent-gradient: linear-gradient(135deg, #7D2AE8, #00C4CC);

  /* Glassmorphism variables */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 8px 32px rgba(0, 196, 204, 0.08);
}

/* =====================================================
   Global Glassmorphism Background
   ===================================================== */

body {
  background: linear-gradient(135deg, #e0f7f8 0%, #e8f4fc 50%, #f0e6ff 100%) !important;
  background-attachment: fixed !important;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 196, 204, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(125, 42, 232, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(0, 196, 204, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: gradientFloat 20s ease-in-out infinite;
}

@keyframes gradientFloat {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* =====================================================
   Hero Section - Glassmorphism
   ===================================================== */

.hero-section {
  position: relative;
  padding: 160px 0 100px;
  background: transparent;
  overflow: hidden;
  z-index: 1;
}

.hero-section::before {
  display: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 24px;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease;
}

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

.badge-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--canva-primary);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 24px;
  color: var(--text-primary);
  animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
  background: var(--canva-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 40px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 48px 0;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  animation: fadeInUp 0.6s ease 0.3s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--canva-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

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

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-visual {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 20px;
  z-index: 1;
}

.visual-card {
  width: 240px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 196, 204, 0.15);
  position: relative;
  overflow: hidden;
}

.visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.card-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  opacity: 0.05;
  pointer-events: none;
}

.card-gradient.purple {
  background: linear-gradient(135deg, #7D2AE8, #9F7AEA);
}

.card-gradient.blue {
  background: linear-gradient(135deg, #00C4CC, #06B6D4);
}

.card-gradient.pink {
  background: linear-gradient(135deg, #FF6F91, #EC4899);
}

.card-content {
  position: relative;
  z-index: 2;
}

.card-content .icon-large {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.card-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.card-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.floating {
  animation: float 3s ease-in-out infinite;
}

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

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

/* =====================================================
   Tab Section
   ===================================================== */

.tab-section {
  padding: 80px 0;
  background: var(--background);
}

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

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* Tab Navigation */
.tabs-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
  padding: 0 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

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

@media (max-width: 640px) {
  .tabs-nav {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.tab-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 120px;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 196, 204, 0.08);
}

.tab-button::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--canva-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tab-button:hover {
  border-color: var(--canva-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.tab-button.active {
  border-color: #00C4CC;
  background: rgba(0, 196, 204, 0.1);
  box-shadow: 0 12px 40px rgba(0, 196, 204, 0.2);
}

.tab-button.active::before {
  transform: scaleX(1);
}

.tab-icon {
  font-size: 2rem;
  margin-bottom: 4px;
}

.tab-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

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

.tab-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.2;
}

/* Tab Panels */
.tab-panel {
  display: none !important;
  opacity: 0;
}

.tab-panel.active {
  display: block !important;
  opacity: 1;
  animation: fadeIn 0.5s ease;
}

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

.panel-intro {
  text-align: center;
  margin-bottom: 60px;
}

.panel-intro h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.panel-intro p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 196, 204, 0.08);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0, 196, 204, 0.15);
  border-color: rgba(0, 196, 204, 0.3);
}

.feature-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 24px;
}

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

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

.feature-card > p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 20px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Use Cases */
.use-cases {
  background: rgba(102, 126, 234, 0.03);
  border: 1px solid rgba(102, 126, 234, 0.1);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 60px;
}

.use-cases h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 32px;
  text-align: center;
  color: var(--text-primary);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.case-item {
  text-align: center;
}

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

.case-item h5 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.case-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* CTA Box */
.cta-box {
  background: var(--canva-gradient);
  color: white;
  border-radius: 16px;
  padding: 48px;
  text-align: center;
}

.cta-box h4 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: white;
}

.cta-box p {
  font-size: 1rem;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-box .btn {
  background: white;
  color: var(--canva-primary);
  font-weight: 600;
}

.cta-box .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* =====================================================
   Magic Studio Section
   ===================================================== */

.magic-studio-section {
  padding: 100px 0;
  background: transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.magic-studio-section::before {
  display: none;
}

.badge-container {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 24px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--canva-primary);
}

.magic-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.magic-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 196, 204, 0.08);
}

.magic-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 196, 204, 0.2);
  border-color: rgba(0, 196, 204, 0.3);
}

.magic-visual {
  position: relative;
  margin-bottom: 24px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-magic {
  font-size: 4rem;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.magic-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.2;
  filter: blur(30px);
  transition: all 0.3s ease;
}

.magic-card:hover .magic-glow {
  opacity: 0.4;
  transform: scale(1.2);
}

.magic-glow.purple { background: #7D2AE8; }
.magic-glow.blue { background: #00C4CC; }
.magic-glow.pink { background: #FF6F91; }
.magic-glow.green { background: #10b981; }
.magic-glow.orange { background: #f59e0b; }
.magic-glow.teal { background: #06b6d4; }
.magic-glow.indigo { background: #8b5cf6; }
.magic-glow.yellow { background: #fbbf24; }

.magic-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.tool-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--canva-primary);
  margin: 0 0 12px;
}

.tool-description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.tool-stats {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 16px;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 12px;
  display: inline-block;
}

.magic-cta {
  text-align: center;
  margin-top: 80px;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  box-shadow: 0 16px 48px rgba(0, 196, 204, 0.1);
}

.magic-cta h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.magic-cta p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0 0 32px;
}

/* =====================================================
   Pricing Section
   ===================================================== */

.pricing-section {
  padding: 100px 0;
  background: var(--background);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.pricing-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border-color: var(--canva-primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: scale(1.05);
}

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

.pricing-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 24px;
  background: var(--canva-gradient);
  color: white;
  border-radius: 24px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pricing-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--text-primary);
}

.pricing-price {
  margin-bottom: 32px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-period {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: block;
  margin-top: 8px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  text-align: left;
}

.pricing-features li {
  padding: 12px 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

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

/* =====================================================
   Final CTA Section
   ===================================================== */

.final-cta-section {
  padding: 100px 0;
  background: var(--canva-gradient);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0 0 16px;
  color: white;
}

.cta-content p {
  font-size: 1.25rem;
  margin: 0 0 40px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  padding: 16px 40px;
  font-size: 1.125rem;
}

.cta-buttons .btn-primary {
  background: white;
  color: var(--canva-primary);
}

.cta-buttons .btn-secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.cta-buttons .btn-secondary:hover {
  background: white;
  color: var(--canva-primary);
}

/* =====================================================
   Masonry / Bento Grid Layout (벽돌 쌓기 스타일)
   ===================================================== */

.bento-section {
  padding: 120px 0;
  background: transparent;
  position: relative;
  z-index: 1;
}

.bento-header {
  text-align: center;
  margin-bottom: 60px;
}

.masonry-container {
  column-count: 3;
  column-gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 196, 204, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  position: relative;
  /* Safari fix for break-inside: avoid */
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: inline-block;
  width: 100%;
}

.masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 196, 204, 0.15);
}

/* 카드 크기 변형 */
.masonry-item.large {
  background: linear-gradient(135deg, #00C4CC 0%, #7D2AE8 100%);
  color: white;
  backdrop-filter: blur(20px);
}

.masonry-item.medium {
  background: rgba(0, 196, 204, 0.08);
  backdrop-filter: blur(20px);
}

/* 카드 내부 스타일 */
.m-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  background: rgba(125, 42, 232, 0.1);
  transition: all 0.3s ease;
}

.masonry-item:hover .m-icon {
  transform: scale(1.1);
}

.masonry-item.large .m-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.m-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.masonry-item.large .m-title {
  color: white;
}

.m-desc {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 24px;
}

.masonry-item.large .m-desc {
  color: rgba(255, 255, 255, 0.9);
}

.m-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.m-tag {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 100px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,0.05);
}

.masonry-item.large .m-tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
}

.masonry-item.medium .m-tag {
  background: white;
}

/* 섹션별 컬러 테마 */
.theme-ai .m-icon { background: rgba(125, 42, 232, 0.1); color: #7D2AE8; }
.theme-video .m-icon { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.theme-school .m-icon { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.theme-community .m-icon { background: rgba(236, 72, 153, 0.1); color: #ec4899; }

/* 배경 장식 */
.bg-deco {
  position: absolute;
  right: -20px;
  bottom: -20px;
  opacity: 0.05;
  font-size: 120px;
  line-height: 1;
  pointer-events: none;
  font-family: sans-serif;
  font-weight: 900;
  transition: all 0.3s ease;
}

.masonry-item:hover .bg-deco {
  transform: scale(1.1) rotate(-10deg);
  opacity: 0.1;
}

/* 활용 팁 박스 */
.use-box {
  background: rgba(0,0,0,0.03);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.masonry-item.large .use-box {
  background: rgba(255,255,255,0.1);
}

.use-title {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.masonry-item.large .use-title {
  color: rgba(255,255,255,0.8);
}

.use-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.use-list li {
  font-size: 0.85rem;
  margin-bottom: 4px;
  position: relative;
  padding-left: 14px;
  color: #475569;
}

.use-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #cbd5e1;
}

.masonry-item.large .use-list li {
  color: rgba(255,255,255,0.9);
}

.masonry-item.large .use-list li::before {
  color: rgba(255,255,255,0.5);
}

/* 반응형 */
@media (max-width: 1024px) {
  .masonry-container {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .masonry-container {
    column-count: 1;
  }
}

/* =====================================================
   Utility Classes
   ===================================================== */

/* Body Padding */
body {
  padding-top: 140px;
}

/* Dropdown Icon Variants */
.dropdown-icon-canva {
  background: var(--canva-accent-gradient);
}

.dropdown-icon-transparent {
  background: transparent;
  padding: 4px;
}

/* Feature Icon Gradients */
.feature-icon-purple { background: linear-gradient(135deg, #667eea, #764ba2); }
.feature-icon-pink { background: linear-gradient(135deg, #ff6b9d, #c06c84); }
.feature-icon-orange { background: linear-gradient(135deg, #ffa500, #ff6347); }
.feature-icon-blue { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.feature-icon-green { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.feature-icon-yellow { background: linear-gradient(135deg, #fa709a, #fee140); }
.feature-icon-aqua { background: linear-gradient(135deg, #a8edea, #fed6e3); }
.feature-icon-teal { background: linear-gradient(135deg, #00d2ff, #3a7bd5); }

/* Animation Delays */
.animation-delay-2 { animation-delay: 0.2s; }
.animation-delay-4 { animation-delay: 0.4s; }

/* Section Backgrounds */
.section-gradient-light {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
}

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

@media (max-width: 1024px) {
  .hero-visual {
    display: none;
  }

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

  .tab-navigation {
    flex-direction: column;
    align-items: stretch;
  }

  .tab-button {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 80px 0 60px;
  }

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

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

  .stat-number {
    font-size: 2rem;
  }

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

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

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

  .magic-tools-grid {
    grid-template-columns: 1fr;
  }

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

  .pricing-card.featured {
    transform: scale(1);
  }

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

  .use-cases {
    padding: 32px 20px;
  }

  .cta-box {
    padding: 32px 20px;
  }

  .magic-cta {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .tab-button {
    padding: 20px 16px;
  }

  .tab-icon {
    font-size: 1.5rem;
  }

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

  .footer > .container > div:first-child {
    grid-template-columns: 1fr !important;
  }
}

/* =====================================================
   Detailed Sections - Product Page Style
   ===================================================== */

.detailed-section {
  margin-top: 80px;
  padding: 60px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
  border-radius: 24px;
  border: 2px solid rgba(102, 126, 234, 0.1);
}

.detailed-section h4 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 40px;
  text-align: center;
}

/* Tips Grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.tip-card {
  background: var(--surface);
  padding: 32px;
  border-radius: 16px;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--canva-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tip-card:hover::before {
  transform: scaleX(1);
}

.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
  border-color: var(--canva-primary);
}

.tip-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--canva-gradient);
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 12px;
  margin-bottom: 16px;
}

.tip-card h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

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

/* Subject Grid (중학교) */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.subject-card {
  background: var(--surface);
  padding: 28px;
  border-radius: 16px;
  border: 2px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
}

.subject-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
  border-color: var(--canva-primary);
}

.subject-card h5 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

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

/* Admission Grid (고등학교) */
.admission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.admission-card {
  background: var(--surface);
  padding: 40px;
  border-radius: 20px;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
}

.admission-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
  border-color: var(--canva-primary);
}

.admission-tag {
  display: inline-block;
  padding: 8px 16px;
  background: var(--canva-gradient);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.admission-card h5 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.admission-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.admission-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admission-card ul li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.admission-card ul li:last-child {
  border-bottom: none;
}

/* Feature Example */
.feature-example {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(102, 126, 234, 0.05);
  border-left: 3px solid var(--canva-primary);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-example strong {
  color: var(--canva-primary);
  font-weight: 600;
}

/* Tab Panel Styling - 이미 위에 정의됨 */

.panel-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.panel-intro h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.panel-intro p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
  .detailed-section {
    padding: 40px 24px;
  }

  .detailed-section h4 {
    font-size: 1.5rem;
  }

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

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

  .tip-card,
  .subject-card,
  .admission-card {
    padding: 24px;
  }

  .panel-intro h3 {
    font-size: 1.5rem;
  }

  .panel-intro p {
    font-size: 1rem;
  }
}

/* =====================================================
   📱 Mobile Responsive - 모바일 최적화
   ===================================================== */

/* Tablet (1024px 이하) */
@media (max-width: 1024px) {
  .hero-section .container {
    flex-direction: column;
    gap: 60px;
  }

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

  .tab-navigation {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

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

/* Mobile (768px 이하) */
@media (max-width: 768px) {
  /* Hero Section */
  .hero-section {
    padding: 80px 0 60px;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .stat-item {
    min-width: 100%;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

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

  .hero-visual {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Tab Navigation */
  .tab-navigation {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tab-button {
    padding: 20px 16px;
    text-align: left;
  }

  .tab-icon {
    font-size: 1.5rem;
  }

  .tab-text {
    font-size: 1rem;
  }

  .tab-subtitle {
    font-size: 0.8125rem;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 24px;
  }

  .feature-icon {
    width: 56px;
    height: 56px;
  }

  .icon-xl {
    font-size: 1.75rem;
  }

  /* Use Cases */
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Magic Studio */
  .magic-tools-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .magic-card {
    padding: 28px;
  }

  /* CTA Box */
  .cta-box {
    padding: 32px 24px;
  }

  .cta-box h4 {
    font-size: 1.5rem;
  }

  /* Section Headers */
  .section-header h2,
  .section-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .section-description {
    font-size: 1rem;
  }

  /* Panel Intro */
  .panel-intro h3 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .panel-intro p {
    font-size: 1rem;
  }

  /* Footer */
  footer > div > div:first-of-type {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  footer > div > div:last-of-type {
    flex-direction: column;
    gap: 16px !important;
  }
}

/* Small Mobile (480px 이하) */
@media (max-width: 480px) {
  body {
    padding-top: 70px !important;
  }

  .container {
    padding: 0 16px;
  }

  /* Hero */
  .hero-section {
    padding: 60px 0 40px;
  }

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

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

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

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8125rem;
  }

  /* Tabs */
  .tab-button {
    padding: 16px 12px;
  }

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

  .tab-text {
    font-size: 0.9375rem;
  }

  .tab-subtitle {
    font-size: 0.75rem;
  }

  /* Feature Cards */
  .feature-card {
    padding: 20px;
  }

  .feature-card h4 {
    font-size: 1.125rem;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
  }

  .icon-xl {
    font-size: 1.5rem;
  }

  .feature-list {
    font-size: 0.875rem;
  }

  /* Sections */
  .section-header h2,
  .section-title {
    font-size: 1.5rem;
  }

  .section-description {
    font-size: 0.9375rem;
  }

  /* Magic Studio */
  .magic-card {
    padding: 24px;
  }

  .magic-card h4 {
    font-size: 1.125rem;
  }

  .icon-magic {
    font-size: 2rem;
  }

  /* CTA */
  .cta-box {
    padding: 24px 16px;
  }

  .cta-box h4 {
    font-size: 1.25rem;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.9375rem;
  }

  /* Detailed Sections */
  .detailed-section {
    padding: 32px 20px;
  }

  .detailed-section h4 {
    font-size: 1.375rem;
  }

  .tip-card,
  .subject-card,
  .admission-card {
    padding: 20px;
  }

  .tip-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Footer 추가 최적화 */
  footer {
    padding: 60px 0 32px !important;
  }

  footer h3 {
    font-size: 1.5rem !important;
  }

  footer h4 {
    font-size: 0.75rem !important;
  }

  footer > div > div:first-of-type > div:first-child > div:first-child,
  footer > div > div:first-of-type > div:nth-child(2),
  footer > div > div:first-of-type > div:nth-child(3) {
    padding: 24px !important;
  }
}

/* Extra Small Mobile (360px 이하) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .tab-button {
    padding: 14px 10px;
  }

  .feature-card {
    padding: 16px;
  }

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

  .btn {
    padding: 10px 16px;
    font-size: 0.875rem;
  }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .hero-section {
    padding: 40px 0 30px;
  }

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

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* =====================================================
   New Features & Styles (Extracted from HTML)
   ===================================================== */

/* Bento Section Override */
.new-features-bento {
  background: transparent;
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.new-features-bento .bento-header {
  text-align: center;
  margin-bottom: 60px;
}

.new-features-bento .badge {
  display: inline-block;
  background: linear-gradient(135deg, #00C4CC 0%, #7D2AE8 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
  border: none;
}

/* Wishlist Chips */
.wishlist-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  box-shadow: 0 4px 16px rgba(0, 196, 204, 0.08);
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.wishlist-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 196, 204, 0.15);
  border-color: #00C4CC;
}

.wishlist-chip span {
  font-size: 1.2rem;
}

/* Footer Bento Grid Styles */
.footer-section {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  padding: 100px 0 40px;
  position: relative;
  z-index: 0;
}

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

.footer-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 196, 204, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.footer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 56px rgba(0, 196, 204, 0.15);
}

/* Brand Card */
.footer-brand .brand-header h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px 0;
}

.footer-brand .brand-tagline {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 32px 0;
  font-weight: 500;
}

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

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

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #00C4CC;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.contact-value {
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-value:hover {
  color: #00C4CC;
}

/* Newsletter Card */
.footer-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px 0;
}

.footer-card-desc {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0 0 28px 0;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 196, 204, 0.05);
  border: 1px solid rgba(0, 196, 204, 0.2);
  border-radius: 12px;
  color: #0f172a;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.form-group input::placeholder {
  color: #94a3b8;
}

.form-group input:focus {
  border-color: #00C4CC;
  background: rgba(0, 196, 204, 0.1);
  box-shadow: 0 0 0 3px rgba(0, 196, 204, 0.1);
}

.newsletter-btn {
  width: 100%;
  padding: 14px 28px;
  background: linear-gradient(135deg, #00C4CC 0%, #7D2AE8 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 196, 204, 0.3);
  margin-top: 8px;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 196, 204, 0.4);
}

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

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

.info-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #00C4CC;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.info-value {
  font-size: 1rem;
  color: #0f172a;
  font-weight: 600;
  margin: 0;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(0, 196, 204, 0.15);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.copyright {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

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

.footer-links a {
  color: #00C4CC;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: #7D2AE8;
  transform: translateY(-2px);
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-bento {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

@media (max-width: 768px) {
  .footer-section {
    padding: 60px 0 30px;
  }

  .footer-card {
    padding: 32px;
  }

  .footer-brand .brand-header h3 {
    font-size: 1.6rem;
  }

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

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}

/* End of Canva Page Styles */
