:root {
  --bg: #070b12;
  --bg-soft: #0d141b;
  --panel: rgba(15, 20, 27, 0.8);
  --border: rgba(255, 255, 255, 0.1);
  --text: #edf3ff;
  --muted: rgba(237, 243, 255, 0.72);
  --highlight: #9ae6b4;
  --highlight-2: #7dd3fc;
  --shadow: rgba(0, 0, 0, 0.38);
}

:root[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-soft: #eef4fa;
  --panel: rgba(255, 255, 255, 0.8);
  --border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.72);
  --highlight: #0f766e;
  --highlight-2: #2563eb;
  --shadow: rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  font-family: Inter, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(125, 211, 252, 0.12), transparent 25%),
    radial-gradient(circle at bottom right, rgba(154, 230, 180, 0.12), transparent 30%),
    var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.hero > .theme-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  margin-left: auto;
}

.background-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.7;
  animation: pulseGlow 12s ease-in-out infinite alternate;
}

.glow-one {
  position: absolute;
  width: min(48vw, 32rem);
  height: min(48vw, 32rem);
  background: rgba(125, 211, 252, 0.18);
  border-radius: 50%;
  top: 8%;
  left: 8%;
}

.glow-two {
  position: absolute;
  width: min(42vw, 28rem);
  height: min(42vw, 28rem);
  background: rgba(154, 230, 180, 0.16);
  border-radius: 50%;
  right: 10%;
  bottom: 10%;
}

.theme-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 999px;
  width: 54px;
  height: 54px;
  padding: 0;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.theme-toggle__icon {
  font-size: 1.15rem;
  line-height: 1;
}

.theme-toggle__label {
  display: none;
}

.quote-card {
  position: relative;
  z-index: 1;
  width: min(94vw, 820px);
  padding: clamp(2.2rem, 4vw, 4rem) clamp(1.5rem, 3.1vw, 2.8rem) clamp(1.8rem, 2.5vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(11, 17, 24, 0.68);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px var(--shadow);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.9s ease both;
}

:root[data-theme="light"] .quote-card {
  background: rgba(255, 255, 255, 0.8);
}

.quote-text {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-size: clamp(2.25rem, 4.3vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.98);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.06);
    opacity: 0.8;
  }
}

@media (max-width: 680px) {
  html, body {
    overflow: hidden;
  }

  .hero {
    padding: 18px 14px;
  }

  .theme-toggle {
    top: 14px;
    right: 14px;
    width: 48px;
    height: 48px;
  }

  .quote-card {
    width: min(96vw, 520px);
    border-radius: 20px;
    padding: 28px 18px;
    min-height: auto;
  }

  .quote-text {
    font-size: clamp(2rem, 9vw, 3rem);
    letter-spacing: -0.05em;
    width: 100%;
  }
}
