/* First Create Variables  */
:root {
  /* Colors */
  --bg-dark: #0b1020;
  --surface: #0f1724;
  --surface-light: #1a2332;
  --primary: #00d1ff;
  --accent: #6c5ce7;
  --success: #22c55e;
  --text-primary: #ffffff;
  --text-muted: #a9b0c0;
  --text-dim: #6b7280;

  /* Gradients */
  --gradient-primary: linear-gradient(90deg, #00d1ff 0%, #6c5ce7 100%);
  --gradient-success: linear-gradient(90deg, #22c55e 0%, #00d1ff 100%);

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-12: 6rem;

  /* Typography */
  --font-heading: "Orbitron", monospace;
  --font-body: "Inter", sans-serif;

  /* Borders & Shadows */
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(0, 209, 255, 0.3);

  /* Transitions */
  --transition: cubic-bezier(0.2, 0.9, 0.2, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.6s;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== HIDE SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

/* Firefox */
html {
  scrollbar-width: none;
}

/* Screen reader only */
.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;
}

/* ===== LOGO ANIMATION ===== */
.logo-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.logo {
  animation: logoZoomOut 3s var(--transition) forwards;
  filter: drop-shadow(var(--shadow-glow));
  animation-delay: 0.1s;
  transform: scale(2.2);
  filter: blur(8px) drop-shadow(var(--shadow-glow));
}

.logo-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(0, 209, 255, 0.3) 0%,
    rgba(108, 92, 231, 0.2) 50%,
    transparent 70%
  );
  border-radius: 50%;
  animation: logoGlow 3s var(--transition) forwards;
  animation-delay: 0.1s;
  z-index: -1;
}

.logo-container::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(0, 209, 255, 0.1) 0%,
    transparent 60%
  );
  border-radius: 50%;
  animation: logoGlowOuter 3s var(--transition) forwards;
  animation-delay: 0s;
  z-index: -2;
}

@keyframes logoZoomOut {
  0% {
    transform: scale(2.2);
    filter: blur(8px) drop-shadow(var(--shadow-glow));
  }
  70% {
    transform: scale(1);
    filter: blur(2px) drop-shadow(var(--shadow-glow));
  }
  100% {
    transform: scale(1);
    filter: blur(0) drop-shadow(var(--shadow-glow));
  }
}

@keyframes logoGlow {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0;
  }
  30% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.8;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.4;
  }
}

@keyframes logoGlowOuter {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.3;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.1;
  }
}

/* ===== REDUCED MOTION ===== */
#reduced-motion-toggle:checked ~ .site * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: var(--space-4);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-3);
  color: var(--text-muted);
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-2);
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--transition);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow);
  min-width: 160px;
}

.btn--primary:hover,
.btn--primary:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn--secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--secondary:hover,
.btn--secondary:focus {
  background: var(--primary);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

.btn--tertiary {
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--surface-light);
}

.btn--tertiary:hover,
.btn--tertiary:focus {
  background: var(--surface-light);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn--demo {
  background: var(--gradient-primary);
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn--highlighted {
  background: linear-gradient(135deg, #00d1ff 0%, #6c5ce7 50%, #22c55e 100%);
  animation: demoGlow 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(0, 209, 255, 0.4);
  font-weight: 600;
  transform: scale(1);
  min-width: 160px;
}

@keyframes demoGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.4),
      0 0 40px rgba(108, 92, 231, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 209, 255, 0.6),
      0 0 60px rgba(108, 92, 231, 0.4);
  }
}

.btn--highlighted:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 0 40px rgba(0, 209, 255, 0.8), 0 0 80px rgba(108, 92, 231, 0.6);
}

.cta__buttons {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.btn--large {
  padding: var(--space-3) var(--space-6);
  font-size: 1.125rem;
}

.btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Pulse animation for CTA */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: var(--shadow), 0 0 0 0 rgba(0, 209, 255, 0.4);
  }
  50% {
    box-shadow: var(--shadow), 0 0 0 10px rgba(0, 209, 255, 0);
  }
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: var(--space-8) 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.hero__title {
  margin: var(--space-4) 0 var(--space-3);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle-line {
  white-space: nowrap;
  display: inline-block;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: var(--space-6);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Background */
.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.blob--1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.blob--2 {
  width: 200px;
  height: 200px;
  background: var(--accent);
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.blob--3 {
  width: 150px;
  height: 150px;
  background: var(--success);
  bottom: 20%;
  left: 50%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ===== SECTIONS ===== */
section {
  padding: var(--space-12) 0;
}

.about {
  background: var(--surface);
  text-align: center;
}

.about p {
  font-size: 1.125rem;
  max-width: 800px;
  margin: 0 auto;
}

/* ===== CTA SECTION ===== */
.cta {
  background: var(--bg-dark);
  text-align: center;
}

.cta h2 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta p {
  font-size: 1.125rem;
  margin-bottom: var(--space-6);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--surface);
  padding: var(--space-6) 0 var(--space-4);
  border-top: 1px solid var(--surface-light);
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--text-primary);
  justify-content: center;
}

.footer__logo {
  flex-shrink: 0;
}

.footer__links {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.footer__links a,
.footer__links label {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--duration-normal) var(--transition);
  cursor: pointer;
}

.footer__links a:hover,
.footer__links a:focus,
.footer__links label:hover,
.footer__links label:focus {
  color: var(--primary);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}

.footer__social a {
  color: var(--text-muted);
  transition: all var(--duration-normal) var(--transition);
  padding: var(--space-2);
  border-radius: var(--radius);
  background: var(--surface-light);
}

.footer__social a:hover,
.footer__social a:focus {
  color: var(--primary);
  background: var(--bg-dark);
  transform: translateY(-2px);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--surface-light);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer__copyright {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer__copyright p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.developer-credit {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.developer-name {
  color: var(--primary);
  font-weight: 600;
}

.developer-name a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.developer-name a:hover,
.developer-name a:focus {
  color: var(--primary);
  text-decoration: none;
}

/* ===== PREMIUM PLATFORM SECTION ===== */
.premium-platform {
  background: var(--surface);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--surface-light);
}

.premium-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.premium-intro {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.premium-branding {
  margin-bottom: var(--space-4);
}

.premium-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
}

.premium-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.premium-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.premium-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.premium-date {
  font-size: 0.875rem;
  color: var(--warning);
  font-weight: 600;
  background: rgba(245, 158, 11, 0.1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius);
  border: 1px solid var(--warning);
}

.premium-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.premium-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.premium-feature {
  background: var(--surface-light);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-lighter);
  text-align: center;
  transition: all var(--duration-normal) var(--transition);
}

.premium-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--space-2);
}

.premium-feature h3 {
  color: var(--text-primary);
  font-size: 1.125rem;
  margin: 0;
  line-height: 1.4;
}

/* Responsive Design for Premium Platform */
@media (max-width: 768px) {
  .premium-features {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .premium-badge {
    gap: var(--space-1);
  }

  .premium-name {
    font-size: 1.25rem;
  }

  .premium-description {
    font-size: 1rem;
  }
}

.footer__controls {
  display: flex;
  align-items: center;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .footer__content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer__brand {
    justify-content: flex-start;
  }

  .footer__links {
    justify-content: center;
  }

  .footer__social {
    justify-content: flex-end;
  }
}

/* Motion Toggle */
.motion-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.toggle-switch {
  width: 40px;
  height: 20px;
  background: var(--surface-light);
  border-radius: 10px;
  position: relative;
  transition: background var(--duration-normal) var(--transition);
}

.toggle-switch::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform var(--duration-normal) var(--transition);
}

#reduced-motion-toggle:checked ~ .site .toggle-switch {
  background: var(--primary);
}

#reduced-motion-toggle:checked ~ .site .toggle-switch::before {
  transform: translateX(20px);
}

/* ===== MODAL ===== */
#waitlist-modal {
  display: none;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 16, 32, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--transition);
}

#waitlist-modal:checked ~ .site .modal-overlay {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-light);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform var(--duration-normal) var(--transition);
}

#waitlist-modal:checked ~ .site .modal {
  transform: scale(1);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  border-bottom: 1px solid var(--surface-light);
}

.modal__header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.modal__close {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--duration-normal) var(--transition);
  padding: var(--space-1);
  line-height: 1;
}

.modal__close:hover {
  color: var(--text-primary);
}

.modal__content {
  padding: var(--space-4);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.waitlist-form input,
.waitlist-form select {
  padding: var(--space-2);
  border: 1px solid var(--surface-light);
  border-radius: var(--radius);
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
}

.waitlist-form input:focus,
.waitlist-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 209, 255, 0.2);
}

.waitlist-form input:disabled,
.waitlist-form select:disabled,
.waitlist-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.demo-note {
  font-size: 0.875rem;
  color: var(--text-dim);
  text-align: center;
  margin: var(--space-3) 0 0;
  font-style: italic;
}

/* ===== CONTACT MODAL ===== */
.contact-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 16, 32, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--transition);
}

#contact-modal:checked ~ .contact-modal-overlay {
  opacity: 1;
  visibility: visible;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: var(--space-2);
  border: 1px solid var(--surface-light);
  border-radius: var(--radius);
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 209, 255, 0.2);
}

.contact-form input:disabled,
.contact-form select:disabled,
.contact-form textarea:disabled,
.contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Styles (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    padding: 0 var(--space-3);
  }

  .hero__actions {
    gap: var(--space-4);
    justify-content: center;
  }

  .btn {
    max-width: 200px;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

  .streaks__content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .streak-card {
    flex-direction: row;
    align-items: center;
    gap: var(--space-3);
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
  }

  .hero p {
    font-size: 1.125rem;
  }

  .tab-labels {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-2);
  }

  .heatmap__grid {
    justify-content: center;
  }

  .calendar-grid {
    min-width: 300px;
  }

  .day {
    width: 14px;
    height: 14px;
  }
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .streaks__content {
    grid-template-columns: 1fr;
  }

  .streak-card {
    flex-direction: column;
    text-align: center;
  }

  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .tab-labels {
    flex-direction: column;
    width: 100%;
  }

  .heatmap__grid {
    overflow-x: auto;
  }

  .calendar-grid {
    min-width: 200px;
  }

  @media (max-width: 480px) {
    .day {
      width: 10px;
      height: 10px;
    }

    .weekdays span {
      font-size: 0.625rem;
    }

    .modal {
      width: 95%;
    }

    .hero {
      min-height: 80vh;
    }
  }

  /* ===== ACCESSIBILITY ===== */
  @media (prefers-contrast: high) {
    :root {
      --bg-dark: #000000;
      --surface: #1a1a1a;
      --text-primary: #ffffff;
      --text-muted: #cccccc;
    }
  }

  a:focus,
  button:focus,
  input:focus,
  select:focus,
  textarea:focus,
  label:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }

  @media (pointer: coarse) {
    .btn,
    .tab-label,
    .testimonial-dot,
    .modal__close {
      min-height: 44px;
      min-width: 44px;
    }
  }
}
