@font-face { font-family: 'Paperlogy'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Paperlogy'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-5Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Paperlogy'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Paperlogy'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Paperlogy'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
/* 깜빡임 방지 */
.nav-right .login-btn, .nav-right .user-menu { opacity: 0; transition: opacity 0.15s; }
html.is-logged-in .nav-right .login-btn { display: none !important; }
html.is-logged-in .nav-right .user-menu { display: flex !important; opacity: 1 !important; }
html.is-logged-out .nav-right .login-btn { opacity: 1; }
html.is-logged-out .nav-right .user-menu { display: none !important; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Paperlogy', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0f;
  color: #fff;
  line-height: 1.6;
  min-height: 100vh;
}

/* Header */
header {
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-title {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-tagline {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-menu > a,
.nav-menu .dropdown-trigger {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu > a:hover,
.nav-menu .dropdown-trigger:hover {
  color: #fff;
}

.dropdown { position: relative; }
.dropdown-trigger svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.dropdown:hover .dropdown-trigger svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 30, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 12px;
  min-width: 320px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 20px;
  z-index: 200;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 12px;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s;
}

.dropdown-menu a:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  color: #fff;
}

.dropdown-menu a:hover .menu-icon {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.dropdown-menu .menu-icon {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  flex-shrink: 0;
  transition: all 0.3s;
}
.dropdown-menu .menu-icon svg { width: 20px; height: 20px; }

.dropdown-menu .menu-text { display: flex; flex-direction: column; }
.dropdown-menu .menu-title { font-weight: 600; font-size: 15px; color: #fff; }
.dropdown-menu .menu-desc { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}
.user-menu {
  display: none;
  align-items: center;
  gap: 12px;
}
.user-menu.active {
  display: flex;
}
.user-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.user-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-btn {
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.2);
  color: #a855f7;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.dashboard-btn:hover {
  background: rgba(139, 92, 246, 0.3);
}
.logout-btn {
  padding: 8px 12px;
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.logout-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  color: #fff;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0a0a0f;
  z-index: 200;
  padding: 24px;
  flex-direction: column;
}
.mobile-menu.active {
  display: flex;
}
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
}
.mobile-menu-close svg {
  width: 24px;
  height: 24px;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu-links a {
  padding: 16px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-menu-links a:hover {
  background: rgba(139, 92, 246, 0.2);
}
.mobile-menu-cta {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu-cta .login-btn {
  width: 100%;
  text-align: center;
  padding: 16px;
  font-size: 16px;
  display: block;
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 24px 40px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
}
.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin: 0 auto;
}

/* Pricing Cards */
.pricing-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: -10px;
}
.pricing-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
  position: relative;
}
.pricing-card:hover {
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(139, 92, 246, 0.15);
}
.pricing-card.popular {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 16px 32px rgba(139, 92, 246, 0.25);
}
.pricing-card.enterprise {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}
.popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: #fff;
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
}
.current-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
}
.plan-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.plan-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  min-height: 32px;
}
.plan-price {
  margin-bottom: 16px;
}
.price {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.price-period {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}
.price-note {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}
.btn-plan {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  margin-bottom: 16px;
  border: none;
  cursor: pointer;
}
.btn-free {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-free:hover {
  background: rgba(255,255,255,0.15);
}
.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}
.btn-pro {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: #fff;
}
.btn-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4);
}
.btn-enterprise {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
}
.btn-enterprise:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}
.btn-current {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  cursor: default;
}
.btn-current:hover {
  transform: none;
  box-shadow: none;
}

/* Features List */
.features-list {
  list-style: none;
}
.features-list li {
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.features-list li:last-child {
  border-bottom: none;
}
.check {
  color: #10b981;
  font-weight: bold;
  flex-shrink: 0;
}
.cross {
  color: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.feature-highlight {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  margin-left: 4px;
}
.feature-unlimited {
  color: #10b981;
  font-weight: 600;
}

/* Comparison Table */
.comparison-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 24px;
}
.comparison-section h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
}
.comparison-section > p {
  text-align: center;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
}
.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.comparison-table th {
  background: rgba(139, 92, 246, 0.1);
  font-weight: 700;
  color: #fff;
}
.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}
.comparison-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}
.comparison-table .plan-header {
  font-size: 15px;
  font-weight: 700;
}
.comparison-table .plan-header.popular {
  color: #a855f7;
}
.comparison-table .plan-header.enterprise {
  color: #f59e0b;
}
.comparison-table td {
  color: rgba(255,255,255,0.7);
}

/* FAQ */
.faq-section {
  background: rgba(255,255,255,0.02);
  padding: 60px 24px;
}
.faq-section h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 40px;
  color: #fff;
}
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.faq-q {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}
.faq-a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  border-top: 1px solid rgba(139, 92, 246, 0.3);
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  padding: 60px 24px;
  text-align: center;
}
.cta-section h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
}
.cta-section p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}
.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  padding: 14px 40px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(139, 92, 246, 0.4);
}

/* Footer */
footer {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 24px 32px;
}
.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-brand-icon svg { width: 20px; height: 20px; color: #fff; }
.footer-brand-name { font-size: 22px; font-weight: 800; color: #fff; }
.footer-info {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  line-height: 1.8;
}
.footer-column h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.footer-column ul {
  list-style: none;
}
.footer-column li {
  margin-bottom: 10px;
}
.footer-column a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-column a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copyright {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #fff;
}

/* Mobile */
@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 968px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin: -10px auto 0;
  }
  .hero h1 {
    font-size: 28px;
  }
  .comparison-table {
    display: block;
    overflow-x: auto;
  }
  .nav-menu { display: none; }
  .mobile-menu-btn { display: block; }
  .login-btn { display: none; }
  .user-menu { display: none !important; }
}
@media (max-width: 480px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .hero {
    padding: 40px 16px 24px;
  }
  .hero h1 {
    font-size: 24px;
  }
  .pricing-section {
    padding: 0 16px 40px;
  }
  .pricing-card {
    padding: 20px;
  }
  .price {
    font-size: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
