:root {
  color-scheme: dark;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  font-size: 16px;
  --bg: #05070f;
  --bg-alt: rgba(17, 24, 39, 0.85);
  --fg: #e5ecff;
  --muted: #8890a6;
  --accent: #7a5cff;
  --accent-2: #38f9d7;
  --accent-3: #00bcd4;
  --shadow: 0 18px 60px rgba(82, 163, 255, 0.2);
  --border: rgba(122, 92, 255, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at top, rgba(9, 13, 31, 0.7), transparent 60%), var(--bg);
  color: var(--fg);
}

body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  padding: 4rem 1.5rem 3rem;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--accent-2);
  text-shadow: 0 0 12px rgba(56, 249, 215, 0.6);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.page-grid {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(1120px, 100%);
  padding: clamp(2rem, 4vw, 4rem);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  background: linear-gradient(135deg, rgba(11, 20, 40, 0.88), rgba(6, 10, 25, 0.92));
  border: 1px solid rgba(122, 92, 255, 0.25);
  box-shadow: 0 30px 80px rgba(21, 35, 73, 0.5);
}

.site-header {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.logo {
  width: clamp(180px, 25vw, 280px);
  animation: glowPulse 5s infinite;
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(122, 92, 255, 0.6));
}

.hero {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 3vw, 3rem);
  align-items: center;
  text-align: center;
}

.headline {
  font-size: clamp(2.25rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.headline .accent {
  background: linear-gradient(120deg, var(--accent-2), var(--accent), var(--accent-3));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 1.75rem;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  color: var(--muted);
}

.typing {
  display: inline-block;
  white-space: normal;
  overflow: hidden;
}

.caret {
  width: 1px;
  height: 1.3em;
  background: var(--accent-2);
  display: inline-block;
  animation: blink 1s steps(2, start) infinite;
}

.about {
  max-width: 640px;
  color: rgba(229, 236, 255, 0.85);
  font-size: 1.05rem;
}

.countdown {
  width: 100%;
}

.section-title {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(136, 144, 166, 0.85);
  margin-bottom: 1.2rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.2rem;
}

.countdown-segment {
  padding: 1.2rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(56, 249, 215, 0.25);
  background: rgba(9, 16, 36, 0.55);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease, border 0.35s ease;
}

.countdown-segment:hover {
  transform: translateY(-6px);
  border-color: var(--accent-2);
}

.countdown-segment .count {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.countdown-segment .label {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(229, 236, 255, 0.65);
}

.subscribe form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.subscribe input {
  width: min(360px, 100%);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(122, 92, 255, 0.35);
  background: rgba(8, 12, 28, 0.9);
  color: var(--fg);
  font-size: 1rem;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.subscribe input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(56, 249, 215, 0.2);
}

.subscribe button {
  padding: 0.85rem 1.8rem;
  border-radius: 14px;
  border: none;
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  color: #05070f;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subscribe button:hover,
.subscribe button:focus {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(0, 188, 212, 0.45);
}

.form-feedback {
  min-height: 1.4rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.subscribe form.success input {
  border-color: var(--accent-2);
  box-shadow: 0 0 18px rgba(56, 249, 215, 0.25);
}

.subscribe form.error input {
  border-color: rgba(255, 107, 122, 0.7);
  box-shadow: 0 0 18px rgba(255, 107, 122, 0.15);
}

.form-feedback.success {
  color: var(--accent-2);
}

.form-feedback.error {
  color: #ff6b7a;
}

.social ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.social a {
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 92, 255, 0.35);
  background: rgba(12, 18, 32, 0.8);
  transition: border 0.3s ease, background 0.3s ease;
}

.social a:hover,
.social a:focus {
  border-color: var(--accent-2);
  background: rgba(122, 92, 255, 0.15);
}

.site-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(136, 144, 166, 0.75);
}

.cli-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 5, 12, 0.85);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.cli-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cli-window {
  width: min(520px, calc(100% - 2.5rem));
  border-radius: 18px;
  border: 1px solid rgba(56, 249, 215, 0.35);
  background: rgba(7, 12, 25, 0.92);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: fadeIn 0.4s ease;
}

.cli-header {
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: rgba(12, 18, 32, 0.95);
  border-bottom: 1px solid rgba(122, 92, 255, 0.35);
}

.cli-body {
  padding: 1.5rem;
  font-family: "Space Mono", "Fira Code", Menlo, Consolas, monospace;
  color: #d1eaff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cli-output {
  margin: 0;
  color: rgba(187, 196, 220, 0.85);
}

.cli-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 1.5rem;
}

.prompt {
  color: var(--accent-2);
}

.cli-caret {
  width: 9px;
  height: 1rem;
  background: var(--accent);
  animation: blink 1s steps(2, start) infinite;
}

.cli-log {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cli-log p {
  margin: 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.fade-in.delay-1 {
  animation-delay: 0.1s;
}

.fade-in.delay-2 {
  animation-delay: 0.3s;
}

.fade-in.delay-3 {
  animation-delay: 0.5s;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0.2;
  }
}

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

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

@keyframes glowPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 18px rgba(122, 92, 255, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(56, 249, 215, 0.8));
  }
}

@media (max-width: 720px) {
  body {
    padding: 3rem 1rem 2rem;
  }

  .page-grid {
    padding: 2rem 1.5rem;
    border-radius: 18px;
  }

  .countdown-grid {
    gap: 0.9rem;
  }

  .countdown-segment {
    padding: 1rem;
  }

  .subscribe form {
    width: 100%;
  }

  .social ul {
    gap: 0.9rem;
  }
}

@media (max-width: 480px) {
  .tagline {
    flex-direction: column;
  }

  .caret {
    align-self: flex-start;
  }

  .section-title {
    text-align: center;
  }
}

