/* Openlys.app - Modern Theme Styles with Dark/Light Mode Support */

/* CSS Variables - Default Dark Theme */
:root {
  /* Colors - Premium Dark Palette */
  --bg-primary: #050505;
  --bg-secondary: #0d0d0f;
  --bg-tertiary: #141416;
  --bg-card: #18181b;
  --bg-elevated: #1c1c1f;

  --text-primary: #fafafa;
  --text-secondary: #a3a3a8;
  --text-muted: #6b6b70;

  --accent-primary: #7c3aed;
  --accent-secondary: #a78bfa;
  --accent-gradient: linear-gradient(
    135deg,
    #8b5cf6 0%,
    #3b82f6 50%,
    #06b6d4 100%
  );
  --accent-glow: rgba(139, 92, 246, 0.15);

  --border-color: #1f1f23;
  --border-light: #2a2a2e;

  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Theme toggle icon */
  --theme-icon: "🌙";

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.7);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 48px rgba(139, 92, 246, 0.25);
  --shadow-glow-strong: 0 0 64px rgba(139, 92, 246, 0.35);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Override */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f1f3f5;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;

  --text-primary: #1a1a2e;
  --text-secondary: #4a4a5e;
  --text-muted: #6c6c7e;

  --accent-primary: #6c2bd9;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(
    135deg,
    #7c3aed 0%,
    #2563eb 50%,
    #0891b2 100%
  );
  --accent-glow: rgba(124, 58, 237, 0.12);

  --border-color: #e2e8f0;
  --border-light: #cbd5e1;

  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;

  --theme-icon: "☀️";
}

/* Light theme specific overrides for shadows and glows */
[data-theme="light"] {
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 48px rgba(124, 58, 237, 0.15);
  --shadow-glow-strong: 0 0 64px rgba(124, 58, 237, 0.2);
}

/* Light theme nav adjustments */
[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .demo-window {
  box-shadow:
    var(--shadow-xl),
    0 0 64px rgba(124, 58, 237, 0.08);
}

[data-theme="light"] .pricing-card:hover {
  box-shadow:
    var(--shadow-lg),
    0 0 48px rgba(124, 58, 237, 0.12);
}

[data-theme="light"] .footer {
  background: #f1f3f5;
}

/* Theme Toggle Button Styles */
.theme-toggle {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.theme-toggle:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.theme-toggle::before {
  content: var(--theme-icon);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.25rem;
}

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

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

.nav-links {
  display: flex;
  gap: var(--space-xl);
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-auth {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.lang-toggle {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.85rem;
}

.lang-wrapper {
  position: relative;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 140px;
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.lang-menu.show {
  display: flex;
}

.lang-menu button {
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  text-align: left;
  cursor: pointer;
}

.lang-menu button:hover {
  background: var(--bg-tertiary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.btn-primary::before {
  background: linear-gradient(135deg, #9d6aff 0%, #4f9bff 50%, #1ec7e6 100%);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-primary);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.15);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Gradient Text */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Section */
.hero {
  padding-top: 140px;
  padding-bottom: var(--space-3xl);
  text-align: center;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1rem;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-secondary);
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(8px);
}

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

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--space-xl);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.375rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* Hero Visual */
.hero-visual {
  max-width: 800px;
  margin: var(--space-3xl) auto 0;
  padding: 0 var(--space-lg);
}

.demo-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.window-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-light);
}

.window-dots span:nth-child(1) {
  background: #ef4444;
}
.window-dots span:nth-child(2) {
  background: #f59e0b;
}
.window-dots span:nth-child(3) {
  background: #22c55e;
}

.window-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.window-content {
  padding: var(--space-2xl);
}

.demo-section {
  margin-bottom: var(--space-lg);
}

.demo-input-group,
.demo-output-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.demo-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.demo-input-field {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  color: var(--accent-secondary);
  font-family: "SF Mono", Monaco, "Courier New", monospace;
  font-size: 0.875rem;
}

.demo-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-light),
    transparent
  );
  margin: var(--space-xl) 0;
}

.demo-email {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.email-subject {
  display: flex;
  gap: var(--space-sm);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

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

.subject-text {
  color: var(--text-primary);
  font-size: 0.875rem;
  flex: 1;
}

.email-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.email-greeting {
  color: var(--text-primary);
  font-weight: 600;
  margin: 0;
  font-size: 0.9375rem;
}

.email-content {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-size: 0.9375rem;
}

.demo-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent-primary);
  margin-left: 2px;
  animation: blink 1s infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Insights / Terms & Feedback */
.insights-grid {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.insights-flex {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.terms-card,
.terms-ask {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.terms-card ul {
  margin: var(--space-md) 0;
  padding-left: var(--space-lg);
  color: var(--text-secondary);
}

.terms-card .eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-secondary);
}

.terms-ask form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.terms-ask textarea {
  width: 100%;
  min-height: 120px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: var(--space-md);
  resize: vertical;
}

.terms-answer {
  min-height: 80px;
  margin-top: var(--space-md);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-light);
  padding: var(--space-md);
  color: var(--text-secondary);
}

/* Feedback Sheet */
.feedback-sheet {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1200;
}

.feedback-sheet.show {
  display: block;
}

.feedback-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

.feedback-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feedback-panel form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feedback-panel textarea,
.feedback-panel input {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: var(--space-md);
}

.feedback-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* Footer polish */
.footer {
  padding: var(--space-3xl) 0;
  background: #050507;
}

.footer h4 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.footer-column a {
  display: block;
  color: var(--text-primary);
  opacity: 0.7;
  margin-bottom: var(--space-xs);
  font-size: 0.9rem;
}

.footer-column a:hover {
  opacity: 1;
}

/* Pricing Section - Premium Styles */
.pricing {
  padding: var(--space-3xl) 0;
  position: relative;
}

.pricing::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  padding-top: calc(var(--space-2xl) + 10px);
  margin-top: 14px;
  text-align: center;
  transition: all var(--transition-normal);
  overflow: visible;
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 0;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow:
    var(--shadow-lg),
    0 0 48px rgba(139, 92, 246, 0.2);
}

.pricing-card:hover::before {
  opacity: 0.03;
}

.pricing-card > * {
  position: relative;
  z-index: 1;
}

.pricing-card.popular {
  border-color: var(--accent-primary);
  background: linear-gradient(
    180deg,
    rgba(139, 92, 246, 0.05) 0%,
    var(--bg-card) 50%
  );
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-tertiary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  z-index: 2;
}

.pricing-badge.popular {
  background: var(--accent-gradient);
  color: white;
  border: none;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.pricing-badge.current {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border: none;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.pricing-price {
  margin-bottom: var(--space-xl);
}

.pricing-price .price {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-price .period {
  color: var(--text-muted);
  font-size: 1rem;
  margin-left: 4px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-xl);
  padding: 0;
}

.pricing-features li {
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  position: relative;
  padding-left: var(--space-lg);
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.toggle-label {
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.toggle-label.active {
  color: var(--text-primary);
}

.ltd-badge {
  display: inline-block;
  margin-left: var(--space-xs);
  padding: 2px 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: var(--radius-sm);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: white;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
  border-radius: var(--radius-full);
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  transition: var(--transition-normal);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle input:checked + .toggle-slider {
  background: var(--accent-gradient);
  border-color: transparent;
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(139, 92, 246, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

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

/* Demo Window Premium */
.demo-window {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    var(--shadow-xl),
    0 0 64px rgba(139, 92, 246, 0.15);
}

/* Test Cards Premium */
.test-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.test-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow:
    var(--shadow-lg),
    0 0 32px rgba(139, 92, 246, 0.12);
}

.test-badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  padding: 4px 12px;
  background: rgba(139, 92, 246, 0.08);
  border-radius: var(--radius-full);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* Steps - How It Works */
.how-it-works {
  padding: var(--space-3xl) 0;
  margin-top: var(--space-3xl);
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
}

.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  background: var(--accent-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.step-arrow {
  font-size: 2rem;
  color: var(--accent-primary);
  opacity: 0.5;
}

/* CTA Section */
.cta {
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
  position: relative;
}

.cta p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  position: relative;
}

/* Footer Premium */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  background: #000000;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-links {
  display: contents;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: var(--space-md);
  max-width: 320px;
  line-height: 1.6;
}

.footer h4 {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.footer-column a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
  line-height: 1.6;
}

.footer-column a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Hidden Utility */
.hidden {
  display: none !important;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-grid.lifetime {
  max-width: 1000px;
}

/* Premium Inputs & Forms */
input,
textarea,
select {
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Toasts */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 2000;
  max-width: 400px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  border-left: 3px solid var(--success);
}

.toast-error {
  border-left: 3px solid var(--error);
}

/* Loading States */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Pricing Notice - No Refund */
.pricing-notice {
  margin-top: var(--space-2xl);
  text-align: center;
}

.no-refund-notice {
  display: inline-block;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-xl);
  color: var(--text-secondary);
  font-size: 0.875rem;
  max-width: 700px;
}

.no-refund-notice strong {
  color: #f87171;
}

.no-refund-notice a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.no-refund-notice a:hover {
  color: var(--accent-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  #lifetime-pricing {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

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

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

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

  .steps {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

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

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

  .feedback-panel {
    width: 100%;
  }

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

  .pricing-price .price {
    font-size: 2.75rem;
  }
}

/* Comparison Section (VS) */
.comparison-section {
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(
    to bottom,
    var(--bg-primary),
    var(--bg-secondary)
  );
}

.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.vs-card {
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Bad Card (Generic AI) */
.vs-card.bad {
  background: rgba(239, 68, 68, 0.05); /* Red tint */
  border-color: rgba(239, 68, 68, 0.2);
}

.vs-card.bad .vs-icon {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.vs-card.bad .vs-footer {
  color: #ef4444; /* Red text */
  border-top: 1px solid rgba(239, 68, 68, 0.2);
}

/* Good Card (Openlys AI) */
.vs-card.good {
  background: rgba(34, 197, 94, 0.05); /* Green tint */
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 32px rgba(34, 197, 94, 0.05);
  position: relative;
}

.vs-card.good::before {
  content: "RECOMMENDED";
  position: absolute;
  top: -12px;
  right: 20px;
  background: #22c55e;
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
}

.vs-card.good .vs-icon {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.vs-card.good .vs-footer {
  color: #22c55e; /* Green text */
  border-top: 1px solid rgba(34, 197, 94, 0.2);
  font-weight: 700;
}

/* VS Card Internals */
.vs-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.vs-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.25rem;
}

.vs-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.vs-content {
  flex: 1;
  margin-bottom: var(--space-lg);
}

.vs-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
}

.vs-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.vs-footer {
  padding-top: var(--space-md);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 var(--space-md);
    height: 60px; /* Slightly shorter on mobile */
  }

  .nav-logo .logo-text {
    display: block !important; /* Force show text */
    font-size: 1rem;
  }
  
  .nav-logo .logo-ai {
    display: none; /* Hide .app suffix to save space */
  }

  .nav-logo .logo-icon {
    font-size: 1.2rem; /* Smaller icon */
  }

  /* Hide Language Toggle on Mobile to save space */
  .lang-toggle {
    display: none;
  }

  .nav-auth {
    gap: var(--space-sm);
  }

  .nav-auth .btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }

  /* Adjust Pricing Page bottom spacing */
  .app-main {
    padding-bottom: 120px !important; /* Force space for bottom buttons */
  }
  
  /* VS Grid Mobile */
  .vs-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}
