/* ========================================
   StormingLights Design System
   Brand Identity: Minimalist, Geometric, High-Contrast
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ========================================
   CSS Custom Properties (Brand Tokens)
   ======================================== */
:root {
  /* Brand Colors */
  --abyss-blue: #0B132B;
  --abyss-blue-rgb: 11, 19, 43;
  --storm-gray: #3A506B;
  --storm-gray-light: #4a6a8a;
  --volt-cyan: #5BC0BE;
  --volt-cyan-rgb: 91, 192, 190;
  --volt-cyan-dark: #3d9997;
  --lumen-white: #FFFFFF;
  --signal-orange: #FF6B6B;

  /* Aurora Secondary Colors */
  --aurora-green: #4AE88C;
  --aurora-magenta: #C77DFF;
  --aurora-purple: #7B5EA7;
  --aurora-pink: #E07BE0;
  --night-sky: #1A1A3E;

  /* Extended Palette */
  --abyss-lighter: #1C2541;
  --text-muted: #8892a6;
  --text-dark: #1a1a2e;
  --text-dark-muted: #4a4a6a;
  --bg-light: #FAFBFC;
  --bg-light-alt: #F0F2F5;
  --glass-bg: rgba(58, 80, 107, 0.15);
  --glass-border: rgba(91, 192, 190, 0.2);
  --glass-bg-light: rgba(91, 192, 190, 0.08);
  --glass-border-light: rgba(91, 192, 190, 0.3);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

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

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-glow: 0 0 40px rgba(91, 192, 190, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-card-light: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-subtle: 0 2px 12px rgba(0, 0, 0, 0.05);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--abyss-blue);
  color: var(--lumen-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Typography
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.text-accent {
  color: var(--volt-cyan);
}

.text-gradient {
  background: linear-gradient(135deg, var(--volt-cyan) 0%, var(--lumen-white) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   Layout Components
   ======================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header p {
  max-width: 600px;
  margin: var(--space-md) auto 0;
  font-size: 1.2rem;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: var(--transition-base);
}

.navbar.scrolled {
  background: rgba(11, 19, 43, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

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

.nav-logo {
  height: 40px;
  width: auto;
}

.nav-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  color: var(--lumen-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--volt-cyan);
  transition: var(--transition-base);
}

.nav-links a:hover {
  color: var(--volt-cyan);
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--lumen-white);
  transition: var(--transition-base);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--abyss-lighter);
    flex-direction: column;
    padding: var(--space-3xl) var(--space-lg);
    transition: var(--transition-base);
    border-left: 1px solid var(--glass-border);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    padding: var(--space-sm) 0;
  }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--abyss-blue);
}

/* Background image layer */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: url('../assets/aurora-hero.jpg') center center / cover no-repeat;
  animation: subtleFloat 30s ease-in-out infinite;
  z-index: 0;
}

/* Gradient overlay for text readability */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(11, 19, 43, 0.5) 70%),
    linear-gradient(to bottom, rgba(11, 19, 43, 0.2) 0%, rgba(11, 19, 43, 0.6) 100%);
  z-index: 1;
}

@keyframes subtleFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(1%, -1%) scale(1.02);
  }

  50% {
    transform: translate(-1%, 1%) scale(1.01);
  }

  75% {
    transform: translate(0.5%, 0.5%) scale(1.02);
  }
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  /* Adjusted z-index to be above particles */
  text-align: center;
  padding: 0 var(--space-md);
}

.hero-logo {
  width: 100%;
  max-width: 500px;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 1s ease;
}

.hero h1 {
  margin-bottom: var(--space-md);
  animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-subtitle {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  color: var(--lumen-white);
  animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s backwards;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  stroke: var(--volt-cyan);
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--volt-cyan);
  color: var(--abyss-blue);
}

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

.btn-outline {
  background: transparent;
  color: var(--lumen-white);
  border: 2px solid var(--lumen-white);
}

.btn-outline:hover {
  border-color: var(--volt-cyan);
  color: var(--volt-cyan);
}

/* ========================================
   About Section (Light Theme)
   ======================================== */
.about {
  background: var(--bg-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.about-text h2 {
  margin-bottom: var(--space-md);
  color: var(--text-dark);
}

.about-text p {
  margin-bottom: var(--space-md);
  font-size: 1.15rem;
  color: var(--text-dark-muted);
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.geometric-shape {
  width: 300px;
  height: 300px;
  position: relative;
}

/* Outer flame glow */
.geometric-shape::before {
  content: '';
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(91, 192, 190, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(91, 192, 190, 0.35) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 80%, rgba(58, 80, 107, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 70%, rgba(91, 192, 190, 0.25) 0%, transparent 40%);
  border-radius: 50%;
  filter: blur(25px);
  animation: flameGlow 4s ease-in-out infinite;
}

/* Core illuminated sphere */
.geometric-shape::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.3) 0%, transparent 40%),
    linear-gradient(135deg,
      var(--storm-gray) 0%,
      var(--volt-cyan) 50%,
      var(--storm-gray) 100%);
  border-radius: 50%;
  box-shadow:
    0 0 60px rgba(91, 192, 190, 0.5),
    0 0 100px rgba(91, 192, 190, 0.3),
    0 0 140px rgba(58, 80, 107, 0.2),
    inset 0 0 60px rgba(255, 255, 255, 0.1);
  animation: coreRotate 8s linear infinite;
}

@keyframes flameGlow {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  25% {
    transform: scale(1.08) rotate(5deg);
    opacity: 1;
  }

  50% {
    transform: scale(1.05) rotate(-3deg);
    opacity: 0.9;
  }

  75% {
    transform: scale(1.1) rotate(2deg);
    opacity: 1;
  }
}

@keyframes coreRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   Standards Section (Dark Theme)
   ======================================== */
.standards {
  background: var(--abyss-lighter);
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 900px) {
  .standards-grid {
    grid-template-columns: 1fr;
  }
}

.standard-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: var(--transition-base);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.standard-card:hover {
  transform: translateY(-8px);
  border-color: var(--volt-cyan);
  box-shadow: var(--shadow-glow);
}

.standard-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--volt-cyan), var(--storm-gray));
  border-radius: var(--radius-md);
}

.standard-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--lumen-white);
  fill: none;
  stroke-width: 2;
}

.standard-card h3 {
  margin-bottom: var(--space-sm);
  color: var(--lumen-white);
}

.standard-card p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ========================================
   Apps Section (Light Theme)
   ======================================== */
.apps {
  background: var(--bg-light-alt);
}

.apps .section-header h2 {
  color: var(--text-dark);
}

.apps .section-header p {
  color: var(--text-dark-muted);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }
}

.app-card {
  background: var(--lumen-white);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  transition: var(--transition-base);
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.app-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--volt-cyan);
  box-shadow: var(--shadow-card-light), var(--shadow-glow);
}

.app-info h3 {
  margin-bottom: var(--space-xs);
  color: var(--text-dark);
}

.app-info p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text-dark-muted);
}

.app-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.app-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(20px);
  opacity: 0.5;
  transform: scale(1.5);
}

.app-icon span {
  position: relative;
  z-index: 1;
}

.app-icon.tapereal {
  background: linear-gradient(135deg, #FF416C, #FF4B2B);
}

.app-icon.golly {
  background: linear-gradient(135deg, #8E2DE2, #4A00E0);
}

.app-icon.athkar {
  background: linear-gradient(135deg, #11998e, #38ef7d);
}

.app-icon.bingeclub {
  background: linear-gradient(135deg, #F37335, #FDC830);
}

.app-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(91, 192, 190, 0.15);
  border: 1px solid var(--volt-cyan);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--volt-cyan);
  margin-bottom: var(--space-sm);
}

.app-info p {
  font-size: 0.95rem;
  margin: 0;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
  background: var(--abyss-blue);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

.contact-info h2 {
  margin-bottom: var(--space-md);
}

.contact-info p {
  margin-bottom: var(--space-lg);
}

.contact-email {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--volt-cyan);
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-email:hover {
  color: var(--lumen-white);
}

.contact-email svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

.contact-form {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--lumen-white);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(11, 19, 43, 0.5);
  border: 1px solid var(--storm-gray);
  border-radius: var(--radius-sm);
  color: var(--lumen-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--volt-cyan);
  box-shadow: 0 0 0 3px rgba(91, 192, 190, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  width: 100%;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--abyss-lighter);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--glass-border);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-brand img {
  height: 30px;
  width: auto;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

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

.footer-links a:hover {
  color: var(--volt-cyan);
}

.footer-bottom {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
  font-size: 0.85rem;
}

.footer-canada {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-canada .heart {
  color: #FF4444;
  animation: heartBeat 1.5s ease-in-out infinite;
}

.footer-canada .canada-flag {
  font-size: 1rem;
  margin-left: 2px;
}

@keyframes heartBeat {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* ========================================
   Legal Pages (Terms, Privacy)
   ======================================== */
.legal-page {
  padding-top: 120px;
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
}

.legal-content h1 {
  margin-bottom: var(--space-lg);
  font-size: 2.5rem;
}

.legal-content h2 {
  margin: var(--space-xl) 0 var(--space-md);
  font-size: 1.5rem;
  color: var(--volt-cyan);
}

.legal-content p,
.legal-content li {
  margin-bottom: var(--space-md);
  color: var(--text-muted);
  line-height: 1.8;
}

.legal-content ul {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.legal-content a {
  color: var(--volt-cyan);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-xl);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Utilities
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Glassmorphism utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

/* Cache bust Mon Dec 15 21:09:28 EST 2025 */
/* v2 */