:root {
  --bg-color: #f4f6fb;
  --text-color: #08080C;
  --text-muted: rgba(8, 8, 12, 0.7);
  --primary-color: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-magenta: #d946ef;
  
  --nav-bg: rgba(255, 255, 255, 0.6);
  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(139, 92, 246, 0.05);
  --hero-glow: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.1) 40%, transparent 70%);
  --pill-btn-bg: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] {
  --bg-color: #08080C;
  --text-color: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  
  --nav-bg: rgba(20, 20, 30, 0.4);
  --glass-bg: rgba(20, 20, 30, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --hero-glow: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.15), rgba(217, 70, 239, 0.15) 30%, rgba(139, 92, 246, 0.05) 50%, transparent 70%);
  --pill-btn-bg: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
  background-color: var(--bg-color); 
  color: var(--text-color); 
  line-height: 1.6; 
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 8rem 0; position: relative; }
.section-title { font-size: 2.25rem; font-weight: 700; text-align: center; margin-bottom: 4rem; letter-spacing: -0.02em; }

/* Background Canvas */
.bg-canvas {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--hero-glow);
  z-index: -1;
  pointer-events: none;
}

/* Glass Island Navbar */
nav { 
  position: fixed; 
  top: 24px; 
  left: 50%; 
  transform: translateX(-50%); 
  width: calc(100% - 48px);
  max-width: 1152px; 
  height: 64px; 
  background: var(--nav-bg); 
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(20px);
  display: flex; 
  align-items: center; 
  z-index: 1000; 
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  padding: 0 8px 0 24px;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0; }
.logo { font-size: 1.25rem; font-weight: 800; display: flex; align-items: center; gap: 8px; letter-spacing: 0.05em; }
.logo svg { width: 24px; height: 24px; color: var(--text-color); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { font-size: 0.95rem; font-weight: 500; opacity: 0.8; transition: opacity 0.3s; }
.nav-links a:hover { opacity: 1; color: var(--accent-cyan); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Theme Toggle & Buttons */
.theme-toggle { background: transparent; border: none; cursor: pointer; color: var(--text-color); padding: 8px; display: flex; align-items: center; justify-content: center; opacity: 0.7; transition: opacity 0.3s; }
.theme-toggle:hover { opacity: 1; }
.theme-toggle svg { width: 20px; height: 20px; }

.btn-pill { 
  background: var(--pill-btn-bg); 
  border: 1px solid var(--glass-border);
  color: var(--text-color); 
  padding: 10px 24px; 
  border-radius: 24px; 
  font-size: 0.95rem; 
  font-weight: 600; 
  backdrop-filter: blur(10px);
  transition: all 0.3s ease; 
  cursor: pointer; 
}
.btn-pill:hover { 
  background: linear-gradient(135deg, var(--accent-cyan), var(--primary-color));
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
}

.btn { display: inline-block; background: linear-gradient(135deg, var(--accent-cyan), var(--primary-color), var(--accent-magenta)); background-size: 200% auto; color: #fff; padding: 14px 36px; border-radius: 12px; font-size: 1.125rem; font-weight: 600; text-align: center; transition: all 0.5s ease; border: none; cursor: pointer; }
.btn:hover { background-position: right center; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4); }

/* Bento Glass Containers */
.bento-card {
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--primary-color), var(--accent-magenta));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.bento-card:hover { transform: translateY(-5px); }
.bento-card:hover::before { opacity: 0.5; }

/* Hero */
.hero { padding-top: 180px; padding-bottom: 120px; text-align: center; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: 4rem; font-weight: 800; margin-bottom: 1.5rem; line-height: 1.15; letter-spacing: -0.03em; }
.prismatic-text { background: linear-gradient(to right, var(--accent-cyan), var(--accent-magenta)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.25rem; max-width: 650px; margin: 0 auto 3rem; color: var(--text-muted); line-height: 1.8; }
.optical-beam-canvas { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; z-index: -1; opacity: 0.6; pointer-events: none; background: radial-gradient(circle at center, rgba(139,92,246,0.2) 0%, transparent 60%); filter: blur(40px); }

/* Features */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { padding: 3rem 2.5rem; text-align: center; }
.feature-card .icon { width: 64px; height: 64px; margin: 0 auto 2rem; display: flex; align-items: center; justify-content: center; color: var(--text-color); }
.feature-card .icon svg { width: 40px; height: 40px; stroke-width: 1.2; }
.feature-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 1rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* Highlights */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.highlight-card { padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; min-height: 400px; }
.highlight-icon { width: 80px; height: 80px; margin-bottom: 2rem; color: var(--primary-color); }
.highlight-icon svg { width: 100%; height: 100%; stroke-width: 1; }
.highlight-card h3 { font-size: 1.75rem; margin-bottom: 1rem; }
.highlight-card p { color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1.1rem; }
.highlight-card .btn { align-self: flex-start; padding: 12px 28px; font-size: 1rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.price-card { padding: 3rem 2.5rem; text-align: center; }
.price-card.popular::before { opacity: 0.8; }
.badge-glass { position: absolute; top: 20px; right: 20px; background: rgba(139, 92, 246, 0.2); border: 1px solid rgba(139, 92, 246, 0.5); color: var(--primary-color); padding: 4px 12px; border-radius: 12px; font-size: 0.8rem; font-weight: bold; backdrop-filter: blur(4px); }
.plan-name { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.price { font-size: 3.5rem; font-weight: 800; margin-bottom: 2.5rem; display: flex; align-items: baseline; justify-content: center; }
.price span { font-size: 1.125rem; color: var(--text-muted); font-weight: normal; margin-left: 4px; }
.features-list { list-style: none; margin-bottom: 3rem; text-align: left; border-top: 1px solid var(--glass-border); padding-top: 2rem; }
.features-list li { margin-bottom: 1.2rem; padding-left: 32px; position: relative; font-size: 1rem; color: var(--text-muted); }
.features-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"); background-size: cover; opacity: 0.6; }
.price-card .btn { width: 100%; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { padding: 2.5rem; }
.review-rating { display: flex; gap: 4px; color: var(--primary-color); margin-bottom: 1.5rem; }
.review-rating svg { width: 16px; height: 16px; fill: currentColor; }
.review-text { font-style: italic; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.7; font-size: 1.05rem; }
.reviewer { display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--glass-border); padding-top: 1.5rem; }
.avatar-ring { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--primary-color); padding: 2px; }
.avatar { width: 100%; height: 100%; border-radius: 50%; background: var(--glass-border); display: flex; align-items: center; justify-content: center; font-weight: bold; }
.reviewer-info h4 { font-size: 1.05rem; margin: 0; font-weight: 600; }
.reviewer-info p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { padding: 2rem; cursor: pointer; }
.faq-item h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
.faq-item p { color: var(--text-muted); margin: 0; font-size: 1rem; line-height: 1.6; }

/* Footer */
footer { padding: 4rem 0 3rem; border-top: 1px solid var(--glass-border); margin-top: 6rem; position: relative; z-index: 2; }
.footer-links { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; margin-bottom: 3rem; }
.footer-links a { color: var(--text-muted); font-weight: 500; transition: color 0.3s; }
.footer-links a:hover { color: var(--text-color); }
.copyright { text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* Inner Pages Content */
.page-content { padding-top: 160px; max-width: 800px; margin: 0 auto; min-height: calc(100vh - 200px); padding-bottom: 6rem; }
.page-content h1 { font-size: 3rem; margin-bottom: 3rem; text-align: center; font-weight: 800; letter-spacing: -0.02em; }
.page-content h2 { margin: 3rem 0 1.5rem; font-size: 1.75rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 1rem; }
.page-content h3 { margin: 2rem 0 1rem; font-size: 1.25rem; }
.page-content p { margin-bottom: 1.5rem; color: var(--text-muted); line-height: 1.8; font-size: 1.05rem; }
.page-content ul { margin-bottom: 2rem; padding-left: 2rem; color: var(--text-muted); line-height: 1.8; font-size: 1.05rem; }
.page-content li { margin-bottom: 0.5rem; }

/* Article List */
.article-list { display: flex; flex-direction: column; gap: 24px; }
.article-card { display: block; padding: 2rem; transition: transform 0.3s; }
.article-card:hover { transform: translateX(10px); }
.article-date { font-size: 0.9rem; color: var(--primary-color); margin-bottom: 0.5rem; }
.article-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.article-excerpt { color: var(--text-muted); line-height: 1.6; }

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3.5rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  nav { width: 100%; top: 0; border-radius: 0; border-left: none; border-right: none; border-top: none; }
  .nav-links { display: none; }
  section { padding: 5rem 0; }
  .section-title { font-size: 1.75rem; margin-bottom: 3rem; }
  .hero { padding-top: 140px; padding-bottom: 60px; min-height: auto; }
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.1rem; }
  .grid-3, .grid-2, .pricing-grid, .reviews-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; display: block; }
  .page-content { padding-top: 120px; }
}
