:root {
  --bg-color: #000000;
  --bg-secondary: #111111;
  --bg-card: #1c1c1e;
  --text-main: #f5f5f7;
  --text-muted: #86868b;
  --text-dark: #1d1d1f;
  --border-color: #424245;
  --nav-bg: rgba(0, 0, 0, 0.8);
  --glass-bg: rgba(30, 30, 35, 0.55);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --accent: #2997ff;
}

body.light-mode {
  --bg-color: #f5f5f7;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --text-main: #1d1d1f;
  --text-muted: #86868b;
  --text-dark: #f5f5f7;
  --border-color: #d2d2d7;
  --nav-bg: rgba(245, 245, 247, 0.8);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.47059;
  /* Apple's exact line height ratio for body text */
  font-weight: 400;
  letter-spacing: -0.022em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Subtle noise texture to break up pure black */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  z-index: 999;
  pointer-events: none;
}

h1,
h2,
h3,
h4,
.logo,
.badge {}

/* Background Effects */
.background-effects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Behind glows but above raw background */
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  /* Increased blur for softer, wider light spread */
  opacity: 1;
  /* Increased opacity from 0.8 to 1 for more vibrant color */
  mix-blend-mode: screen;
  /* Makes colors pop against black */
  animation: float 25s infinite ease-in-out;
}

.glow-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(58, 161, 255, 0.4), transparent 70%);
  /* Brighter Blue */
  top: -100px;
  left: -100px;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4), transparent 70%);
  /* Brighter Purple */
  top: 25%;
  right: -50px;
  animation-delay: -5s;
}

.glow-3 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.35), transparent 70%);
  /* Brighter Pink */
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: -10s;
}

@keyframes float {

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

  50% {
    transform: translateY(-30px) scale(1.1);
  }
}

/* Theme Toggle */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  opacity: 1;
  transform: scale(1.1);
}

.theme-toggle .icon-moon {
  display: none;
}

body.light-mode .theme-toggle .icon-sun {
  display: none;
}

body.light-mode .theme-toggle .icon-moon {
  display: block;
}

body.light-mode .gradient-text {
  background: linear-gradient(90deg, #1d1d1f, #86868b 50%, #1d1d1f);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  text-shadow: none;
}

/* Glass Panels (Liquid Glass) */
.glass-panel {
  background: var(--glass-bg);
  /* Lighter glass base */
  backdrop-filter: blur(32px) saturate(200%);
  /* Stronger saturation pull from background colors */
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid var(--glass-border);
  /* Brighter edge */
  box-shadow: var(--glass-shadow);
  /* Inner rim glow */
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 44px;
  /* Apple nav height */
  display: flex;
  align-items: center;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--border-color);
  transition: all 0.3s ease;
}

.nav-container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  opacity: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 980px;
  /* Fully rounded pill */
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--text-main);
  color: var(--text-dark);
}

.btn-primary:hover {
  background: #ffffff;
  transform: scale(1.02);
}

/* Waitlist Breathing Animation */
.btn-primary.breathing {
  animation: breathe 4s ease-in-out infinite alternate;
}

@keyframes breathe {
  0% {
    box-shadow: 0 0 0px rgba(255, 255, 255, 0);
    transform: scale(1);
    background: var(--text-main);
  }

  100% {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    transform: scale(1.01);
    background: #ffffff;
  }
}

/* Hero Section */
.hero {
  padding: 160px 20px 100px;
  display: flex;
  justify-content: center;
  text-align: center;
  min-height: 80vh;
  align-items: center;
}

.hero-content {
  max-width: 800px;
}

.brand-kickoff {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-brand {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: clamp(4.5rem, 12vw, 9.5rem);
  /* Massive, impactful size */
  font-weight: 800;
  /* Extra bold for brand presence */
  letter-spacing: -0.06em;
  /* Distinctive tight Apple tracking */
  line-height: 1;
  display: inline-block;
  margin-bottom: 12px;
}

.hero-manifesto {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  /* Slightly larger */
  font-weight: 500;
  /* Increased from 400 for clarity */
  color: var(--text-main);
  /* Brighter base color */
  letter-spacing: -0.01em;
  margin-bottom: 0;
  line-height: 1.4;
  opacity: 0.95;
  /* Increased opacity */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  /* Added subtle shadow for legibility over glow */
}

.gradient-text {
  background: linear-gradient(90deg, #a5b4fc, #ffffff 40%, #fbcfe8 80%, #a5b4fc);
  /* Adds iridescent pastel tones */
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shine 4s linear infinite;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  /* Creates an outer glow for the text */
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.hero-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--text-main);
  /* Switched from muted to main */
  max-width: 580px;
  margin: 0 auto 50px;
  letter-spacing: 0.01em;
  opacity: 0.85;
  /* Increased from 0.6 */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  /* Help text stand out from background */
}

/* Waitlist Component */
.waitlist-card {
  margin: 0 auto;
  max-width: 440px;
  border-radius: var(--radius-lg);
  padding: 40px;
  animation: fadeUp 1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.waitlist-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.waitlist-form {
  position: relative;
}

.input-wrapper {
  display: flex;
  background: var(--bg-card);
  border-radius: 980px;
  padding: 6px;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}

.input-wrapper:focus-within {
  border-color: #86868b;
}

.input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 20px;
  color: var(--text-main);
  font-size: 17px;
  line-height: 1.29412;
  font-weight: 400;
  letter-spacing: -0.022em;
  outline: none;
  font-family: inherit;
}

.input-wrapper input::placeholder {
  color: #6e6e73;
}

body.light-mode .input-wrapper input::placeholder {
  color: #86868b;
}

.form-message {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.3s ease;
  height: 0;
}

.form-message.success {
  opacity: 1;
  height: auto;
}

/* Concepts Section */
.concepts {
  padding: 120px 20px;
  background: transparent;
}

.section-container {
  max-width: 980px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  font-size: 56px;
  line-height: 1.07143;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 20px;
}

.section-header p {
  font-size: 24px;
  line-height: 1.16667;
  font-weight: 400;
  letter-spacing: .009em;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.concepts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.concept-card {
  border-radius: var(--radius-md);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  overflow: hidden;
  /* For parallax light */
  --x: 50%;
  --y: 50%;
}

body.light-mode .concept-card {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

/* The ambient parallax glow on hover */
.concept-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(600px circle at var(--x) var(--y),
      rgba(139, 92, 246, 0.15),
      transparent 40%);
  pointer-events: none;
  z-index: -1;
  transition: background 0.2s ease;
}

.concept-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 1;
  /* Keep the top left specula above */
}

.concept-card:hover {
  transform: scale(1.02);
}

.card-icon {
  margin-bottom: 32px;
}

.concept-card h3 {
  font-size: 24px;
  line-height: 1.16;
  font-weight: 600;
  margin-bottom: 12px;
}

.concept-card p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.47;
}

/* Animations Classes - Staggered Blur Reveal */
.animate-in {
  animation: fadeBlurUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeBlurUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Footer */
footer {
  padding: 30px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-color);
}

.footer-container {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-container .logo {
  font-size: 14px;
  font-weight: 600;
}

.copyright {
  color: #6e6e73;
  font-size: 12px;
}

/* Responsive constraints */
@media (max-width: 1068px) {
  .hero-title {
    font-size: 64px;
  }

  .hero-subtitle {
    font-size: 24px;
  }
}

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

  .hero-title {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 21px;
  }

  .section-header h2 {
    font-size: 40px;
  }

  .section-header p {
    font-size: 21px;
  }

  .concept-card {
    padding: 32px 24px;
  }
}