/* Style System - Plutus Landing Page */

/* 1. Tokens & Custom Properties */
:root {
  /* Colors */
  --bg-darker: #05070c;
  --bg-dark: #090d16;
  --bg-card: rgba(13, 22, 41, 0.65);
  --border-card: rgba(255, 255, 255, 0.06);
  --border-card-hover: rgba(16, 185, 129, 0.2);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-emerald: #10b981;
  --accent-emerald-hover: #059669;
  --accent-emerald-glow: rgba(16, 185, 129, 0.15);
  
  --accent-gold: #fbbf24;
  --accent-gold-glow: rgba(251, 191, 36, 0.15);
  
  /* Fonts */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout */
  --container-max: 1200px;
  --header-height: 80px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Reset & General */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-darker);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: radial-gradient(circle at 50% -20%, #111d35 0%, var(--bg-darker) 70%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* 3. Typography & UI Elements */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary) 30%, #a5f3fc 70%, var(--accent-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h2 span {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--accent-emerald);
  color: var(--bg-darker);
  box-shadow: 0 0 20px var(--accent-emerald-glow);
}

.btn-primary:hover {
  background: var(--accent-emerald-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Glassmorphism Card Base */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-card-hover);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.08);
  transform: translateY(-4px);
}

/* 4. Navigation */
header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(5, 7, 12, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  height: 70px;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-gold) 100%);
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--bg-darker);
}

.logo-text span {
  color: var(--accent-emerald);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-display);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background-color: var(--accent-gold);
  animation: pulse 1.8s infinite;
}

/* 5. Hero Section */
.hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
}

/* Glow Background Effects */
.glow-effect {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
  z-index: -1;
}

.glow-effect-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: 10%;
  left: -100px;
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero h1 {
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 90%;
}

/* Waitlist Form */
.waitlist-form-container {
  margin-top: 1.5rem;
  max-width: 500px;
  position: relative;
}

.waitlist-form {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 0.35rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.waitlist-form:focus-within {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.waitlist-form input[type="email"] {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.8rem 1.5rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-body);
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.waitlist-form button {
  white-space: nowrap;
}

/* Form Success & Error Messages */
.form-feedback {
  margin-top: 1rem;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  display: none;
  animation: slideUp 0.3s ease-out forwards;
}

.form-feedback.success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.form-feedback.error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Dashboard Mockup Display */
.hero-visual {
  position: relative;
  width: 100%;
}

.mockup-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 
              0 0 50px rgba(16, 185, 129, 0.1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  aspect-ratio: 1 / 1;
  background: rgba(10, 15, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
  z-index: 2;
}

.mockup-wrapper:hover {
  transform: translateY(-8px) scale(1.02) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 
              0 0 60px rgba(16, 185, 129, 0.2);
}

.mockup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mockup-badge {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 10;
  white-space: nowrap;
}

/* 6. Features Section */
.features {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.section-header p {
  font-size: 1.2rem;
  margin-top: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.feature-card {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--accent-emerald);
  color: var(--bg-darker);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  transform: scale(1.05) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* 7. Final Call to Action Section */
.cta-section {
  padding: 6rem 0 10rem;
  position: relative;
}

.cta-box {
  padding: 5rem 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.07) 0%, rgba(0, 0, 0, 0) 70%);
  top: -50px;
  left: -50px;
  pointer-events: none;
}

.cta-box h2 {
  max-width: 800px;
  margin-bottom: 0;
}

.cta-box p {
  max-width: 600px;
  font-size: 1.2rem;
}

.cta-box .waitlist-form-container {
  width: 100%;
  max-width: 480px;
  margin-top: 0.5rem;
}

/* 8. Footer */
footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #04060b;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-emerald);
}

/* 9. Animations */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(251, 191, 36, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
  }
}

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

/* Scroll Fade In Animation Classes */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 10. Responsive Design */
@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero p {
    max-width: 100%;
  }
  
  .waitlist-form-container {
    width: 100%;
  }
  
  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cta-box {
    padding: 4rem 2rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1.25rem;
  }
  
  header {
    height: 70px;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
  
  .waitlist-form {
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 18px;
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .waitlist-form input[type="email"] {
    padding: 0.75rem 1rem;
    text-align: center;
  }
  
  .waitlist-form button {
    width: 100%;
    border-radius: 12px;
    padding: 0.9rem;
  }
  
  .cta-box {
    padding: 3.5rem 1.25rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }
}
