/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette - Based on GoUI Logo Colors */
  --primary-bg: #0a0a0a;
  --secondary-bg: #111111;
  --accent-bg: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #666666;
  --accent-color: #6287ff;
  --accent-hover: #5470e6;
  --yellow-accent: #fdda08;
  --pink-accent: #cb0dec;
  --orange-accent: #ff6200;
  --gradient-primary: linear-gradient(
    135deg,
    #6287ff 0%,
    #cb0dec 50%,
    #fdda08 100%
  );
  --gradient-secondary: linear-gradient(135deg, #6287ff 0%, #ff6200 100%);
  --success-color: #10b981;
  --error-color: #ef4444;
  --border-color: #2a2a2a;
  --shadow-primary: 0 20px 25px -5px rgba(0, 0, 0, 0.3),
    0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px rgba(98, 135, 255, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Animation */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.1;
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: -5%;
  animation-delay: -5s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 30%;
  left: 70%;
  animation-delay: -10s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 80%;
  left: 20%;
  animation-delay: -15s;
}

.shape-5 {
  width: 250px;
  height: 250px;
  top: 5%;
  right: 20%;
  animation-delay: -7s;
}

.particle {
  position: absolute;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  opacity: 0.7;
  animation: particleFloat 20s infinite linear;
  pointer-events: none;
  z-index: 1;
}

.particle-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  color: var(--accent-color);
}

.particle-1::before {
  content: "G";
  font-size: 24px;
  text-shadow: 0 0 10px currentColor;
}

.particle-2 {
  top: 40%;
  left: 80%;
  animation-delay: -3s;
  color: var(--pink-accent);
}

.particle-2::before {
  content: "</>";
  font-size: 18px;
  font-family: "Courier New", monospace;
  text-shadow: 0 0 8px currentColor;
}

.particle-3 {
  top: 70%;
  left: 30%;
  animation-delay: -6s;
  color: var(--orange-accent);
}

.particle-3::before {
  content: "UI";
  font-size: 16px;
  letter-spacing: 2px;
  text-shadow: 0 0 12px currentColor;
}

.particle-4 {
  top: 90%;
  left: 60%;
  animation-delay: -9s;
  color: var(--yellow-accent);
}

.particle-4::before {
  content: "{}";
  font-size: 20px;
  font-family: "Courier New", monospace;
  text-shadow: 0 0 15px currentColor;
}

.particle-5 {
  top: 10%;
  left: 50%;
  animation-delay: -12s;
  color: var(--accent-color);
}

.particle-5::before {
  content: "•";
  font-size: 28px;
  text-shadow: 0 0 20px currentColor;
}

/* UI-themed particles matching GoUI logo */
.ui-particle {
  position: absolute;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  opacity: 0.4;
  animation: uiParticleFloat 25s infinite linear;
  pointer-events: none;
  z-index: 1;
  font-size: 12px;
}

.ui-particle-1 {
  top: 15%;
  left: 25%;
  animation-delay: -2s;
  color: var(--accent-color);
}

.ui-particle-1::before {
  content: "Go";
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 0 8px currentColor;
}

.ui-particle-2 {
  top: 60%;
  left: 85%;
  animation-delay: -8s;
  color: var(--yellow-accent);
}

.ui-particle-2::before {
  content: "[]";
  font-size: 16px;
  font-family: "Courier New", monospace;
  text-shadow: 0 0 6px currentColor;
}

.ui-particle-3 {
  top: 35%;
  left: 5%;
  animation-delay: -14s;
  color: var(--pink-accent);
}

.ui-particle-3::before {
  content: "CSS";
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 0 10px currentColor;
}

.ui-particle-4 {
  top: 80%;
  left: 40%;
  animation-delay: -20s;
  color: var(--orange-accent);
}

.ui-particle-4::before {
  content: "()";
  font-size: 18px;
  font-family: "Courier New", monospace;
  text-shadow: 0 0 12px currentColor;
}

.ui-particle-5 {
  top: 25%;
  left: 70%;
  animation-delay: -5s;
  color: var(--accent-color);
}

.ui-particle-5::before {
  content: "JS";
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 0 8px currentColor;
}

.ui-particle-6 {
  top: 55%;
  left: 15%;
  animation-delay: -11s;
  color: var(--yellow-accent);
}

.ui-particle-6::before {
  content: "▲";
  font-size: 22px;
  text-shadow: 0 0 15px currentColor;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-30px) translateX(20px) rotate(90deg);
  }
  50% {
    transform: translateY(-10px) translateX(-30px) rotate(180deg);
  }
  75% {
    transform: translateY(-40px) translateX(10px) rotate(270deg);
  }
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0px) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  5% {
    opacity: 0.7;
  }
  25% {
    transform: translateY(75vh) translateX(30px) rotate(90deg) scale(1.1);
    opacity: 0.9;
  }
  50% {
    transform: translateY(50vh) translateX(-20px) rotate(180deg) scale(0.9);
    opacity: 0.8;
  }
  75% {
    transform: translateY(25vh) translateX(40px) rotate(270deg) scale(1.2);
    opacity: 0.6;
  }
  95% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100px) translateX(60px) rotate(360deg) scale(0.7);
    opacity: 0;
  }
}

@keyframes uiParticleFloat {
  0% {
    transform: translateY(110vh) translateX(-20px) rotate(-45deg) scale(0.6);
    opacity: 0;
  }
  8% {
    opacity: 0.4;
  }
  20% {
    transform: translateY(80vh) translateX(20px) rotate(45deg) scale(1);
    opacity: 0.6;
  }
  40% {
    transform: translateY(60vh) translateX(-30px) rotate(135deg) scale(0.8);
    opacity: 0.5;
  }
  60% {
    transform: translateY(40vh) translateX(35px) rotate(225deg) scale(1.1);
    opacity: 0.4;
  }
  80% {
    transform: translateY(20vh) translateX(-15px) rotate(315deg) scale(0.9);
    opacity: 0.3;
  }
  92% {
    opacity: 0.1;
  }
  100% {
    transform: translateY(-120px) translateX(45px) rotate(405deg) scale(0.5);
    opacity: 0;
  }
}

/* Container */
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  padding: 2rem 2rem 0;
  animation: slideInDown 1s ease-out;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  width: 400px;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px rgba(98, 135, 255, 0.6));
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.content-wrapper {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

/* Hero Section */
.hero {
  animation: fadeInUp 1s ease-out 0.3s both;
}

.main-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.coming-soon {
  color: var(--text-secondary);
  font-weight: 600;
  display: inline-block;
  animation: pulse 2s infinite;
}

.subheadline {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* Countdown Timer */
.countdown-container {
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out 0.9s both;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.time-unit {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  min-width: 80px;
  transition: all 0.3s ease;
}

.time-unit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent-color);
}

.time-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.time-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.time-separator {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yellow-accent);
  margin: 0 0.5rem;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0.3;
  }
}

/* Email Signup Form */
.signup-container {
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.signup-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  position: relative;
}

.input-container {
  display: flex;
  gap: 0;
  background: var(--secondary-bg);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  padding: 4px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.input-container:focus-within {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.email-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
  padding: 1rem 1.5rem;
  font-family: inherit;
}

.email-input::placeholder {
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.email-input:focus::placeholder {
  opacity: 0.5;
  transform: translateX(10px);
}

.submit-btn {
  background: var(--gradient-primary);
  border: none;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 160px;
  font-family: inherit;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(98, 135, 255, 0.4);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.btn-text {
  transition: all 0.3s ease;
}

.btn-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.submit-btn.loading .btn-text {
  opacity: 0;
}

.submit-btn.loading .btn-loading {
  opacity: 1;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-feedback {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.form-feedback.show {
  opacity: 1;
  transform: translateY(0);
}

.form-feedback.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-feedback.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error-color);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.privacy-text {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Features Preview */
.features-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  animation: fadeInUp 1s ease-out 1.5s both;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transition: all 0.5s ease;
}

.feature-item:hover::before {
  left: 0;
}

.feature-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.feature-item:nth-child(1) {
  border-color: rgba(98, 135, 255, 0.3);
}

.feature-item:nth-child(2) {
  border-color: rgba(253, 218, 8, 0.3);
}

.feature-item:nth-child(3) {
  border-color: rgba(203, 13, 236, 0.3);
}

.feature-item:nth-child(4) {
  border-color: rgba(255, 98, 0, 0.3);
}

.feature-icon {
  font-size: 1.5rem;
  filter: grayscale(1);
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  filter: grayscale(0);
  transform: scale(1.1);
}

.feature-item span {
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.feature-item:hover span {
  color: var(--text-primary);
}

/* Social Links */
.social-links {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  gap: 1rem;
  z-index: 10;
  animation: fadeInRight 1s ease-out 1.8s both;
}

.social-link {
  width: 48px;
  height: 48px;
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: var(--accent-color);
  color: white;
  box-shadow: var(--shadow-glow);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
  animation: fadeInUp 1s ease-out 2.1s both;
}

/* Animations */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .header {
    padding: 1rem 1rem 0;
  }

  .main-content {
    padding: 1rem;
  }

  .countdown-timer {
    gap: 0.5rem;
  }

  .time-unit {
    padding: 0.75rem 1rem;
    min-width: 70px;
  }

  .time-value {
    font-size: 1.5rem;
  }

  .time-separator {
    display: none;
  }

  .input-container {
    flex-direction: column;
    gap: 0.5rem;
    border-radius: 16px;
    padding: 1rem;
  }

  .email-input {
    padding: 0.75rem 0;
    text-align: center;
  }

  .submit-btn {
    border-radius: 12px;
    width: 100%;
  }

  .features-preview {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .social-links {
    position: static;
    justify-content: center;
    margin: 2rem 0 1rem;
  }

  .floating-shape {
    opacity: 0.05;
  }
}

@media (max-width: 480px) {
  .main-headline {
    font-size: 2rem;
  }

  .time-unit {
    padding: 0.5rem 0.75rem;
    min-width: 60px;
  }

  .time-value {
    font-size: 1.25rem;
  }

  .features-preview {
    margin-top: 1rem;
  }

  .feature-item {
    padding: 0.75rem;
    gap: 0.5rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-color: #666666;
    --text-secondary: #cccccc;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .floating-shape,
  .particle {
    animation: none;
  }
}
