/* ============================================
   BrightSpace — Treatment Design System
   Aurora backgrounds, particle fields, magnetic
   interactions, scroll reveals
   ============================================ */

:root {
  --bg-deep: #0a0a1a;
  --bg-surface: #12122a;
  --bg-card: #1a1a3a;
  --bg-card-hover: #222250;
  --text-primary: #e8e8f0;
  --text-secondary: #8888aa;
  --text-muted: #555577;
  --accent-1: #4f6ef7;
  --accent-2: #7c3aed;
  --accent-3: #06b6d4;
  --gradient-start: #4f6ef7;
  --gradient-end: #7c3aed;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --nav-bg: rgba(10,10,26,0.7);
  --nav-bg-scroll: rgba(10,10,26,0.9);
  --footer-bg: rgba(10,10,26,0.8);
  --particle-color: 79, 110, 247;
  --mock-canvas-bg: #0d0d25;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Light mode */
html.light {
  --bg-deep: #f5f5fa;
  --bg-surface: #eeeef4;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f8;
  --text-primary: #1a1a2e;
  --text-secondary: #555570;
  --text-muted: #8888a0;
  --accent-1: #4f6ef7;
  --accent-2: #7c3aed;
  --accent-3: #0891b2;
  --gradient-start: #4f6ef7;
  --gradient-end: #7c3aed;
  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.14);
  --nav-bg: rgba(245,245,250,0.8);
  --nav-bg-scroll: rgba(245,245,250,0.95);
  --footer-bg: rgba(245,245,250,0.9);
  --particle-color: 79, 110, 247;
  --mock-canvas-bg: #e8e8f0;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- Aurora ---- */
.aurora {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora-layer {
  position: absolute;
  width: 140%;
  height: 140%;
  top: -20%; left: -20%;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: aurora-drift 20s ease-in-out infinite alternate;
}

.aurora-1 {
  background: radial-gradient(ellipse at 30% 40%, var(--accent-1) 0%, transparent 60%);
  animation-duration: 18s;
}

.aurora-2 {
  background: radial-gradient(ellipse at 70% 30%, var(--accent-2) 0%, transparent 60%);
  animation-duration: 22s;
  animation-delay: -5s;
}

.aurora-3 {
  background: radial-gradient(ellipse at 50% 70%, var(--accent-3) 0%, transparent 60%);
  animation-duration: 25s;
  animation-delay: -10s;
}

@keyframes aurora-drift {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  33%  { transform: translate(5%, -3%) rotate(2deg) scale(1.05); }
  66%  { transform: translate(-3%, 5%) rotate(-1deg) scale(0.97); }
  100% { transform: translate(2%, -2%) rotate(1deg) scale(1.02); }
}

/* ---- Particles ---- */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* ---- Nav ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
}

/* ---- Theme Toggle ---- */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle:hover {
  transform: scale(1.1);
  border-color: var(--accent-1);
  color: var(--text-primary);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html.light .theme-toggle .icon-sun { display: block; }
html.light .theme-toggle .icon-moon { display: none; }

/* Light mode overrides */
html.light .aurora-layer { opacity: 0.08; }
html.light .screenshot-bar { background: rgba(0,0,0,0.06); }
html.light .mock-output { border-color: rgba(0,0,0,0.1); }

/* Cat logo swap: white cat for dark mode, black cat for light mode */
.cat-dark { display: none; }
html.light .cat-light { display: none; }
html.light .cat-dark { display: inline; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  padding: 0.5rem 1.2rem !important;
  border-radius: 100px;
  color: white !important;
  font-weight: 600 !important;
}

.nav-cta:hover { opacity: 0.9; }

/* ---- Sections ---- */
section {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Hero ---- */
.hero {
  padding-top: 10rem;
  padding-bottom: 4rem;
  text-align: center;
}

/* ---- Cat Logo (small, in promise section) ---- */
.cat-logo-sm {
  width: 120px;
  max-width: 40vw;
  opacity: 0.7;
  filter: drop-shadow(0 0 20px rgba(79,110,247,0.2));
}

.promise-cat {
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-top-line {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  box-shadow: 0 4px 24px rgba(79,110,247,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79,110,247,0.4);
}

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

.btn-secondary:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Magnetic hover */
.magnetic {
  transition: transform 0.2s ease-out;
}

/* ---- Screenshot Mockup ---- */
.hero-screenshot {
  max-width: 800px;
  margin: 0 auto;
}

.screenshot-frame {
  background: var(--bg-surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

.screenshot-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.bar-title {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.screenshot-content {
  padding: 1.5rem;
}

.mock-canvas {
  position: relative;
  width: 100%;
  padding-top: 50%; /* 2:1 aspect */
  background: var(--mock-canvas-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mock-output {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  border: 2px solid rgba(255,255,255,0.15);
  transition: transform 0.3s ease;
}

.mock-output span {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.4;
}

.out-1 { background: rgba(79,110,247,0.5); }
.out-2 { background: rgba(124,58,237,0.5); }
.out-3 { background: rgba(6,182,212,0.5); }
.out-4 { background: rgba(234,88,12,0.5); }

.mock-canvas:hover .mock-output {
  border-color: rgba(255,255,255,0.3);
}

/* ---- Feature Cards ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

/* ---- Models Table ---- */
.models {
  text-align: center;
}

.models-table-wrap {
  max-width: 700px;
  margin: 3rem auto 0;
  overflow-x: auto;
}

.models-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.models-table th {
  padding: 1rem;
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
}

.models-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.models-table tr:hover td {
  color: var(--text-primary);
  background: rgba(79,110,247,0.05);
}

.models-table td:first-child {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text-primary);
}

/* ---- Pricing ---- */
.pricing { text-align: center; }

.pricing-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  width: 340px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.pricing-card.featured {
  border-color: var(--accent-1);
  box-shadow: 0 0 40px rgba(79,110,247,0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-tier {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.pricing-unit {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

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

.pricing-features li::before {
  content: '\2713';
  color: var(--accent-3);
  margin-right: 0.75rem;
  font-weight: 700;
}

.pricing-card .btn {
  width: 100%;
}

/* ---- Promise ---- */
.promise {
  padding: 2rem 2rem 0;
}

.promise-box {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  text-align: center;
}

.promise-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent-3);
}

.promise-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.promise-box strong {
  color: var(--text-primary);
}

/* ---- Download ---- */
.download {
  text-align: center;
  padding: 4rem 2rem;
}

.download-sub {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.download-actions {
  margin-bottom: 1rem;
}

.download-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- Buy ---- */
.buy {
  text-align: center;
  padding: 4rem 2rem;
}

.buy-sub {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.buy-box {
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.buy-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.buy-item {
  font-weight: 600;
}

.buy-price {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--mono);
}

.buy-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.buy-note a {
  color: var(--accent-1);
  text-decoration: none;
}

.payment-success {
  padding: 2rem;
  text-align: center;
}

.payment-success h3 {
  color: var(--accent-3);
  margin-bottom: 0.5rem;
}

.payment-success p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.license-key-display {
  font-family: var(--mono) !important;
  font-size: 1.3rem !important;
  color: var(--text-primary) !important;
  background: var(--bg-deep);
  border: 1px solid var(--accent-1);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  letter-spacing: 0.05em;
  -webkit-user-select: all;
  user-select: all;
  cursor: pointer;
}

.key-note {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
}

.key-note a { color: var(--accent-1); text-decoration: none; }

.loading-key {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* ---- Coming Soon ---- */
.coming-soon {
  text-align: center;
}

.coming-sub {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.coming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.coming-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.coming-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-start), var(--accent-3));
  opacity: 0.5;
}

.coming-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.coming-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.coming-badge {
  display: inline-block;
  background: rgba(6,182,212,0.15);
  color: var(--accent-3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Email form ---- */
.coming-cta p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.email-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  max-width: 440px;
  margin: 0 auto;
}

.email-form input[type="email"] {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border-radius: 100px;
  border: 1px solid var(--border-hover);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

.email-form input[type="email"]:focus {
  border-color: var(--accent-1);
}

.email-form .btn {
  white-space: nowrap;
}

.signup-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}

/* ---- Footer ---- */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.footer-divider {
  color: var(--text-muted);
  margin: 0 0.25rem;
}

.footer-mg {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

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

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

.footer-linkedin {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-linkedin svg {
  flex-shrink: 0;
}

.models-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 1rem;
}

.footer-copy {
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 1rem;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero h1 { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .coming-grid { grid-template-columns: 1fr; }
  .pricing-cards { flex-direction: column; align-items: center; }
  .nav-links { gap: 1rem; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .nav-links a:not(.nav-cta) { display: none; }
  .email-form { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
}
