/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, hsl(210, 40%, 8%) 0%, hsl(210, 40%, 12%) 100%);
  color: hsl(210, 40%, 98%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Design System Variables */
:root {
  /* Colors */
  --primary: 213 94% 68%;
  --primary-foreground: 213 94% 8%;
  --secondary: 210 40% 12%;
  --secondary-foreground: 210 40% 98%;
  --accent: 38 92% 58%;
  --accent-foreground: 38 92% 8%;
  --destructive: 0 62% 30%;
  --destructive-foreground: 0 85% 97%;
  --muted: 210 40% 15%;
  --muted-foreground: 215 20% 65%;
  --card: 210 40% 10%;
  --card-foreground: 210 40% 98%;
  --popover: 210 40% 10%;
  --popover-foreground: 210 40% 98%;
  --border: 210 40% 18%;
  --input: 210 40% 18%;
  --ring: 213 94% 68%;
  --radius: 0.5rem;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(var(--primary)), hsl(213, 80%, 60%));
  --gradient-accent: linear-gradient(135deg, hsl(var(--accent)), hsl(45, 90%, 65%));
  --gradient-hero: linear-gradient(180deg, transparent, hsl(210, 40%, 8%));

  /* Shadows */
  --shadow-primary: 0 10px 30px -10px hsl(var(--primary) / 0.3);
  --shadow-accent: 0 8px 25px -8px hsl(var(--accent) / 0.4);
  --shadow-glow: 0 0 40px hsl(var(--primary) / 0.2);
}

/* Main Container */
.main-container {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, hsl(210, 40%, 8%) 0%, hsl(210, 40%, 12%) 100%);
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-icon {
  position: absolute;
}

.floating-1 {
  top: 25%;
  left: 2.5rem;
  animation: float 6s ease-in-out infinite;
}

.floating-2 {
  top: 33%;
  right: 3rem;
  animation: float 6s ease-in-out infinite 1s;
}

.floating-3 {
  bottom: 33%;
  left: 4rem;
  animation: float 6s ease-in-out infinite 2s;
}

.floating-4 {
  bottom: 25%;
  right: 4rem;
  animation: float 6s ease-in-out infinite 1.5s;
}

.icon-wrapper {
  padding: 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-wrapper.primary {
  background: hsl(var(--primary) / 0.1);
  box-shadow: var(--shadow-accent);
  color: hsl(var(--primary));
}

.icon-wrapper.accent {
  background: hsl(var(--accent) / 0.1);
  box-shadow: var(--shadow-primary);
  color: hsl(var(--accent));
}

.geometric-shape {
  position: absolute;
  border-radius: 50%;
}

.shape-1 {
  top: 5rem;
  right: 25%;
  width: 2rem;
  height: 2rem;
  background: var(--gradient-primary);
  animation: pulse-glow 4s ease-in-out infinite;
  opacity: 0.6;
}

.shape-2 {
  bottom: 5rem;
  left: 25%;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--gradient-accent);
  animation: pulse-glow 4s ease-in-out infinite 1s;
  opacity: 0.6;
}

.shape-3 {
  top: 50%;
  left: 2rem;
  width: 1rem;
  height: 1rem;
  background: hsl(var(--primary) / 0.2);
  transform: rotate(45deg);
  animation: bounce-slow 3s ease-in-out infinite;
}

.shape-4 {
  top: 75%;
  right: 2rem;
  width: 1.25rem;
  height: 1.25rem;
  background: hsl(var(--accent) / 0.2);
  transform: rotate(45deg);
  animation: bounce-slow 3s ease-in-out infinite 2s;
}

/* Header */
.header {
  padding: 1.5rem 0;
  position: relative;
  z-index: 10;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.new-badge {
  background: var(--gradient-accent);
  color: hsl(var(--accent-foreground));
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  animation: pulse-glow 2s ease-in-out infinite;
}

.contact-info {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.contact-item svg {
  color: hsl(var(--primary));
}

/* Main Content */
.main-content {
  padding: 2rem 0;
  position: relative;
  z-index: 10;
}

.content-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 70vh;
}

.left-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.main-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  color: hsl(var(--card-foreground));
}

.highlight {
  background: var(--gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* Countdown Section */
.countdown-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.countdown-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--card-foreground));
}

.countdown-timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.time-card {
  position: relative;
  background: hsl(var(--card));
  border-radius: 0.5rem;
  box-shadow: var(--shadow-primary);
  padding: 1.5rem 1rem;
  min-width: 80px;
  text-align: center;
  transition: transform 0.6s ease;
}

.time-card.flip {
  transform: rotateX(360deg);
}

.time-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.time-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0.1;
  border-radius: 0.5rem;
  pointer-events: none;
}

.time-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Email Signup */
.email-signup {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.signup-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--card-foreground));
}

.signup-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.email-input {
  flex: 1;
  min-width: 250px;
  padding: 0.75rem 1rem;
  background: hsl(var(--input));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  color: hsl(var(--card-foreground));
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.email-input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.email-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.notify-btn {
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-primary);
}

.notify-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Right Content */
.right-content {
  position: relative;
}

.hero-image-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-accent);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: var(--gradient-hero);
  pointer-events: none;
}

/* Footer */
.footer {
  margin-top: 4rem;
  padding: 3rem 0 1rem;
  border-top: 1px solid hsl(var(--border));
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--card-foreground));
}

.footer-text {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  box-shadow: var(--shadow-accent);
  padding: 1rem;
  max-width: 400px;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateX(0);
}

.toast.hidden {
  display: none;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: hsl(var(--card-foreground));
}

.toast-content svg {
  color: hsl(var(--primary));
  flex-shrink: 0;
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes bounce-slow {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  50% {
    transform: translateY(-10px) rotate(45deg);
  }
}

@keyframes countdown-flip {
  0% {
    transform: rotateX(0);
  }
  50% {
    transform: rotateX(-90deg);
  }
  100% {
    transform: rotateX(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .main-title {
    font-size: 2.5rem;
  }

  .floating-1,
  .floating-3 {
    left: 1rem;
  }

  .floating-2,
  .floating-4 {
    right: 1rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .contact-info {
    justify-content: center;
  }

  .main-title {
    font-size: 2rem;
  }

  .countdown-timer {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .time-card {
    padding: 1rem 0.75rem;
    min-width: 70px;
  }

  .time-value {
    font-size: 2rem;
  }

  .signup-form {
    flex-direction: column;
  }

  .email-input {
    min-width: 100%;
  }

  .floating-icon {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .toast {
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .main-container {
    padding: 0 1rem;
  }

  .content-grid {
    padding: 0 1rem;
  }

  .header-content {
    padding: 0 1rem;
  }

  .footer-content {
    padding: 0 1rem;
  }

  .footer-bottom {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .main-title {
    font-size: 1.75rem;
  }

  .time-value {
    font-size: 1.5rem;
  }

  .time-card {
    padding: 0.75rem 0.5rem;
    min-width: 60px;
  }
}
