/* 
   SmartNotes Landing Page Styles 
   Premium modern design: Dark mode, glassmorphism, glowing accents 
*/

:root {
  --bg-dark: #07090E;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-light: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(15, 20, 30, 0.6);
  --glass-blur: 16px;
  
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  
  --accent-purple: #7C3AED;
  --accent-pink: #EC4899;
  --accent-glow: rgba(124, 58, 237, 0.5);
  
  --gradient-primary: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  
  --radius-lg: 24px;
  --radius-md: 16px;
  
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Glowing Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

.orb-1 {
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: rgba(124, 58, 237, 0.3);
}

.orb-2 {
  top: 40%;
  right: -200px;
  width: 600px;
  height: 600px;
  background: rgba(236, 72, 153, 0.2);
}

/* Typography elements */
h1, h2, h3, .logo {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: var(--transition);
  padding: 24px 0;
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
}

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

.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:not(.btn):hover {
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 100px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
}

.glow-effect {
  position: relative;
  z-index: 1;
}

.glow-effect::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: var(--gradient-primary);
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
  filter: blur(15px);
}

.glow-effect:hover::before {
  opacity: 0.6;
}

/* Hero Section */
.hero {
  padding: 180px 24px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #C4B5FD;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.dot { font-size: 10px; opacity: 0.5; }

/* Hero Visual Premium Mockup */
.hero-visual {
  position: relative;
}

.floating-badge {
  position: absolute;
  background: rgba(15, 20, 30, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  z-index: 10;
  animation: float 6s ease-in-out infinite;
}

.badge-1 { top: -20px; right: -30px; animation-delay: 0s;}
.badge-2 { bottom: 30px; left: -40px; animation-delay: 2s;}

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

.browser-mockup {
  background: rgba(15, 20, 30, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05), 0 0 60px rgba(124, 58, 237, 0.15);
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3), box-shadow 0.6s ease;
}

.browser-mockup:hover {
  transform: perspective(1200px) rotateY(0) rotateX(0);
  box-shadow: 0 50px 120px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.1), 0 0 80px rgba(124, 58, 237, 0.25);
}

.browser-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.4);
}

.traffic-light {
  width: 12px; height: 12px; border-radius: 50%;
}
.red { background: #FF5F56; }
.yellow { background: #FFBD2E; }
.green { background: #27C93F; }

.browser-url {
  flex-grow: 1;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 32px;
  font-family: monospace;
}

.browser-body {
  height: 440px;
  display: flex;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

/* Fake Webpage */
.fake-webpage {
  flex-grow: 1;
  padding: 40px;
}

.skeleton-title {
  width: 70%;
  height: 28px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  margin-bottom: 32px;
}

.skeleton-text {
  width: 100%;
  height: 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  margin-bottom: 16px;
}

.highlight-pulse {
  background: transparent;
  width: auto;
  display: inline-block;
}

.pulse-bg {
  background: rgba(124, 58, 237, 0.2);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  border-bottom: 2px solid var(--accent-purple);
  font-size: 12px;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
  animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(124, 58, 237, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

/* Fake Extension Panel */
.fake-extension {
  width: 280px;
  border-left: 1px solid var(--border-light);
  background: #151A22; /* Panel bg */
  display: flex;
  flex-direction: column;
}

.ext-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.ext-logo {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-display);
}

.ext-body {
  padding: 20px;
}

.ext-input {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  color: #fff;
  margin-bottom: 20px;
}

.ext-snippet {
  background: rgba(124, 58, 237, 0.1);
  border-left: 3px solid var(--accent-purple);
  padding: 14px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.snippet-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 6px;
  font-weight: 700;
}

.ext-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
}

.ext-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  color: var(--text-secondary);
}

.ext-btn {
  background: var(--text-primary);
  color: var(--bg-dark);
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
  position: relative;
  z-index: 1;
}

.ext-btn:hover {
  transform: translateY(-2px);
}

/* Sections */
.section { padding: 120px 24px; }
.section-center { text-align: center; max-width: 600px; margin: 0 auto 64px; }
.section-title { font-size: 48px; margin-bottom: 16px; }
.section-subtitle { font-size: 18px; color: var(--text-secondary); }

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.15);
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.box-purple { background: rgba(124, 58, 237, 0.1); border: 1px solid rgba(124, 58, 237, 0.2); }
.box-pink { background: rgba(236, 72, 153, 0.1); border: 1px solid rgba(236, 72, 153, 0.2); }
.box-blue { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2); }
.box-orange { background: rgba(249, 115, 22, 0.1); border: 1px solid rgba(249, 115, 22, 0.2); }
.box-green { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); }
.box-red { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); }

.feature-card h3 { font-size: 20px; margin-bottom: 12px; }
.feature-card p { color: var(--text-secondary); font-size: 15px; }

/* Comparison Table */
.compare-table-wrapper {
  overflow-x: auto;
  padding: 24px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th, .compare-table td {
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
}

.compare-table th {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
}

.compare-table th.highlight-col {
  color: var(--text-primary);
  font-size: 20px;
  background: rgba(124, 58, 237, 0.05);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.compare-table td.highlight-col {
  background: rgba(124, 58, 237, 0.05);
  font-weight: 500;
}

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

.badge-good {
  background: rgba(16, 185, 129, 0.1);
  color: #34D399;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 14px;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-pink);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 24px;
  color: var(--text-secondary);
}

.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 200px;
  padding-bottom: 24px;
}

/* CTA */
.cta-banner { padding: 60px 24px 120px; }
.cta-content {
  text-align: center;
  padding: 80px 40px;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.1) 0%, rgba(255,255,255,0.02) 100%);
}

.cta-content h2 { font-size: 40px; margin-bottom: 16px; }
.cta-content p { font-size: 18px; color: var(--text-secondary); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* Footer */
.footer { border-top: 1px solid var(--border-light); padding: 60px 0 24px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 60px;}
.footer-brand p { color: var(--text-secondary); margin-top: 8px;}
.footer-links { display: flex; gap: 24px;}
.footer-links a { color: var(--text-secondary); text-decoration: none; transition: var(--transition);}
.footer-links a:hover { color: var(--text-primary);}
.footer-bottom { text-align: center; color: rgba(255,255,255,0.3); font-size: 14px;}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 992px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 140px;}
  .hero-subtitle { margin: 0 auto 40px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-title { font-size: 48px; }
  .features-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .section-title { font-size: 36px; }
  .footer-content { flex-direction: column; gap: 32px; text-align: center;}
}
