/* ==========================================================================
   EDIT ME: CSS THEME & CUSTOMIZATION GUIDE
   ==========================================================================
   You can easily tweak colors, accents, font sizes, and ad dimensions here!
   
   - To change the accent color: change --accent-primary & --accent-secondary
     Example Electric Cyan:  #00f0ff and #0072ff
     Example Electric Green: #00f5a0 and #00c853
     Example Neon Purple:    #a855f7 and #6366f1
   - To change ad slot heights: adjust --ad-hero-min-height and --ad-mid-min-height
   ========================================================================== */

:root {
  /* EDIT ME: Brand Colors */
  --bg-main: #070a11;
  --bg-surface: #0e1422;
  --bg-surface-elevated: #141d30;
  --bg-glass: rgba(14, 20, 34, 0.75);

  /* EDIT ME: Bright Accent Color (Electric Neon Mint / Cyan) */
  --accent-primary: #00f5a0;
  --accent-secondary: #00d2ff;
  --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  --accent-glow: rgba(0, 245, 160, 0.28);
  --accent-text: #05140d;

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 245, 160, 0.6);

  /* Layout & Sizes */
  --max-width: 1120px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* EDIT ME: Ad Slot Heights (Fixed min-height prevents Cumulative Layout Shift) */
  --ad-hero-min-height: 100px;
  --ad-mid-min-height: 250px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip link for Accessibility */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-primary);
  color: var(--accent-text);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--transition-fast);
  text-decoration: none;
}
.skip-to-content:focus {
  top: 1rem;
}

/* Links & Buttons Global */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Focus styles for Accessibility */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

/* ==========================================================================
   SUBTLE ANIMATED BACKGROUND
   Smooth glowing gradient orbs + canvas particle layer (0 heavy assets)
   ========================================================================== */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  will-change: transform;
  animation: floatOrb 22s ease-in-out infinite alternate;
}

.ambient-orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--accent-primary) 0%, rgba(0, 245, 160, 0) 70%);
  top: -100px;
  right: -50px;
}

.ambient-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-secondary) 0%, rgba(0, 210, 255, 0) 70%);
  bottom: 10%;
  left: -150px;
  animation-duration: 28s;
  animation-direction: alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-40px, 30px, 0) scale(1.08); }
  100% { transform: translate3d(30px, -40px, 0) scale(0.96); }
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.45;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .ambient-orb {
    animation: none !important;
  }
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   NAVIGATION / HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 17, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
  transition: padding var(--transition-smooth);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo:hover .brand-icon svg {
  transform: rotate(6deg) scale(1.05);
  transition: transform var(--transition-fast);
}

.brand-text-accent {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.btn-nav {
  padding: 0.45rem 1rem;
  background: rgba(0, 245, 160, 0.12);
  border: 1px solid rgba(0, 245, 160, 0.35);
  color: var(--accent-primary);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-nav:hover {
  background: var(--accent-primary);
  color: var(--accent-text);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 1.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-primary);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.35rem;
}

.hero-gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 40px rgba(0, 245, 160, 0.15);
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

/* ==========================================================================
   EMAIL SIGNUP FORM
   ========================================================================== */
.signup-box-wrapper {
  max-width: 520px;
  margin: 0 auto;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.signup-form:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 245, 160, 0.15);
}

@media (min-width: 520px) {
  .signup-form {
    flex-direction: row;
    align-items: center;
    border-radius: var(--radius-full);
    padding: 0.45rem 0.55rem 0.45rem 1.25rem;
  }
}

.signup-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}

.signup-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.975rem;
  padding: 0.75rem 0.5rem;
}

.signup-input::placeholder {
  color: var(--text-subtle);
}

.signup-input:focus {
  outline: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent-gradient);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 18px var(--accent-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
  white-space: nowrap;
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 24px rgba(0, 245, 160, 0.45);
  transform: translateY(-1px);
}

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

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.signup-guarantee {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 0.85rem;
}

/* Form Message Feedback */
.form-feedback {
  margin-top: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.form-feedback.success {
  display: block;
  background: rgba(0, 245, 160, 0.12);
  border: 1px solid rgba(0, 245, 160, 0.35);
  color: #a7f3d0;
}

.form-feedback.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   ADS-READY SLOTS
   Fixed min-height guarantees zero Cumulative Layout Shift (CLS)
   ========================================================================== */
.ad-slot-wrapper {
  margin: 3rem auto;
  width: 100%;
  max-width: 970px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-slot-container {
  width: 100%;
  background: rgba(255, 255, 255, 0.015);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: border-color var(--transition-fast);
}

/* Hero Ad Slot Height */
.ad-slot-hero .ad-slot-container {
  min-height: var(--ad-hero-min-height);
}

/* Mid-Page Ad Slot Height */
.ad-slot-mid .ad-slot-container {
  min-height: var(--ad-mid-min-height);
}

.ad-placeholder-label {
  font-size: 0.725rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   WHAT'S COMING SECTION (CARDS)
   ========================================================================== */
.features-section {
  padding: 4.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 0.65rem;
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.85rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 245, 160, 0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.feature-card:hover::before {
  opacity: 1;
}

.card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 245, 160, 0.08);
  border: 1px solid rgba(0, 245, 160, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==========================================================================
   ABOUT TEASER SECTION
   ========================================================================== */
.about-teaser-section {
  padding: 4rem 0 5rem;
}

.about-teaser-box {
  background: linear-gradient(180deg, var(--bg-surface-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.about-teaser-box::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.5;
}

.about-teaser-title {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.about-teaser-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--accent-primary);
  font-size: 1rem;
  transition: gap var(--transition-fast);
}

.link-arrow:hover {
  gap: 0.75rem;
}

/* ==========================================================================
   CONTENT PAGES (about.html, privacy.html, 404.html)
   ========================================================================== */
.page-content-wrapper {
  padding: 4rem 0 6rem;
  max-width: 820px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2rem;
}

.page-meta {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-top: 0.75rem;
}

.prose-section {
  margin-bottom: 2.75rem;
}

.prose-section h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.prose-section h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.3rem;
  background: var(--accent-primary);
  border-radius: var(--radius-full);
}

.prose-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1.5rem 0 0.75rem;
}

.prose-section p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-size: 1.025rem;
}

.prose-section ul, .prose-section ol {
  color: var(--text-muted);
  margin: 1rem 0 1.5rem 1.75rem;
  line-height: 1.75;
}

.prose-section li {
  margin-bottom: 0.5rem;
}

.highlight-box {
  background: var(--bg-surface);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box p {
  margin-bottom: 0;
}

/* 404 Specific */
.error-page-hero {
  text-align: center;
  padding: 6rem 0;
}

.error-code {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 900;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 10;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand {
  max-width: 380px;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  list-style: none;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.825rem;
  color: var(--text-subtle);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ==========================================================================
   COOKIE / CONSENT BANNER (Non-intrusive bottom banner)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 440px;
  background: rgba(14, 20, 34, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: none;
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-cookie-accept {
  padding: 0.45rem 1.15rem;
  background: var(--accent-primary);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.825rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-cookie-accept:hover {
  box-shadow: 0 0 12px var(--accent-glow);
}

.btn-cookie-decline {
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.825rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-cookie-decline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

@media (max-width: 520px) {
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}
