/* 
 * Sizes Landing Page Styles
 * Midnight Luxury Aesthetic
 */

:root {
  /* Sizes Core Colors */
  --stitch-cream: #F9F9F7;
  --stitch-navy: #1A233A;
  --stitch-navy-light: #2C3A5C;
  --stitch-gold: #C5A065;
  --stitch-gold-light: #D4B480;
  --stitch-grey: #4B5563;
  
  /* Landing Dark Mode Base (Default) */
  --bg-primary: #0F1525;
  --bg-surface: #1A233A;
  --bg-surface-light: rgba(44, 58, 92, 0.4);
  
  --text-main: #F9F9F7;
  --text-muted: #9CA3AF;
  
  --border-color: rgba(197, 160, 101, 0.15); /* Subtle gold border */
  
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Lato', sans-serif;
  
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius-md: 12px;
  --radius-lg: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Gradients (Glow) */
.glow-bg {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

.glow-bg.top-left {
  background: radial-gradient(circle, var(--stitch-gold) 0%, transparent 70%);
  top: -200px;
  left: -200px;
}

.glow-bg.bottom-right {
  background: radial-gradient(circle, var(--stitch-navy-light) 0%, transparent 70%);
  bottom: 0;
  right: -200px;
}

/* Typography */
h1, h2, h3, h4, .logo-text {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
}

.text-gold {
  color: var(--stitch-gold);
}

.title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
}

.subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
}

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

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
}

.gold-dot {
  color: var(--stitch-gold);
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--text-main);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--stitch-gold);
  color: var(--bg-primary);
  box-shadow: 0 4px 14px rgba(197, 160, 101, 0.4);
}

.btn-primary:hover {
  background: var(--stitch-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 160, 101, 0.5);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-outline {
  background: transparent;
  color: var(--stitch-gold);
  border: 1px solid var(--stitch-gold);
}

.btn-outline:hover {
  background: rgba(197, 160, 101, 0.1);
}

/* Glassmorphism */
.glass-panel {
  background: var(--bg-surface-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 4rem 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(197, 160, 101, 0.1);
  color: var(--stitch-gold);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 99px;
  border: 1px solid rgba(197, 160, 101, 0.2);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.cta-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-family: var(--font-serif);
  color: var(--stitch-gold);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero Image visuals */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.hero-image-wrapper {
  width: 100%;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.header-logo {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.footer-logo-img {
  height: 60px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}

/* Floating Elements */
.floating-badge {
  position: absolute;
  background: var(--bg-surface-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.8rem 1.2rem;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  z-index: 3;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: float 6s ease-in-out infinite;
}

.icon-circle {
  background: rgba(197, 160, 101, 0.2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.badge-1 {
  top: 15%;
  right: -10%;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 20%;
  left: -20%;
  animation-delay: 2s;
}

/* Features Section */
.features {
  padding: 6rem 1.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  border-color: rgba(197, 160, 101, 0.4);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--stitch-gold);
  font-weight: 600;
  font-family: var(--font-sans);
}

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

/* CTA Section */
.cta-section {
  padding: 5rem 1.5rem 8rem;
}

.gold-border {
  border: 1px solid rgba(197, 160, 101, 0.3);
  box-shadow: 0 20px 40px rgba(197, 160, 101, 0.05);
  position: relative;
  overflow: hidden;
}

.gold-border::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--stitch-gold), transparent);
}

.cta-box {
  padding: 4rem 2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta-content p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Early Access Form */
.early-access-form {
  max-width: 480px;
  margin: 0 auto;
}

.input-group {
  display: flex;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 99px;
  padding: 0.5rem;
  transition: border-color 0.3s ease;
}

.input-group:focus-within {
  border-color: var(--stitch-gold);
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  padding: 0 1.5rem;
  font-size: 1rem;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.btn-submit {
  padding: 0.8rem 1.5rem;
}

.privacy-note {
  font-size: 0.8rem !important;
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}

.form-feedback {
  margin-top: 1rem !important;
  font-weight: 600;
  padding: 0.5rem;
  border-radius: 8px;
  font-size: 0.9rem !important;
}

.form-feedback.success { background: rgba(78, 141, 124, 0.1); color: #4E8D7C; }
.form-feedback.error { background: rgba(184, 92, 92, 0.1); color: #B85C5C; }

/* Footer */
footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 4rem 0 2rem;
}

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

.footer-logo p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

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

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

.footer-links a:hover {
  color: var(--stitch-gold);
}

.footer-bottom {
  text-align: center;
  color: rgba(255,255,255,0.2);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 2rem;
}

/* Utilities & Animations */
.hidden { display: none !important; }

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

/* Observer class for scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2rem;
    gap: 3rem;
  }
  
  .hero-cta {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-visual {
    padding-top: 2rem;
  }
  
  .badge-1 { right: 0; top: 5%; }
  .badge-2 { left: 0; bottom: 5%; }
  
  .hero-stats { justify-content: center; }
  
  .navbar nav { display: none; } /* Hide links on very small screens, keep only CTA or nothing */
  .navbar nav a.btn { display: inline-flex; } /* keep button */
}

@media (max-width: 500px) {
  .input-group {
    flex-direction: column;
    background: transparent;
    border: none;
    gap: 0.5rem;
  }
  
  .input-group input {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 12px;
  }
  
  .btn-submit {
    border-radius: 12px;
    padding: 1rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   PREMIUM POLISH (Reversible)
   ========================================================================== */

/* 1. Button Micro-interactions */
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 101, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(197, 160, 101, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 101, 0); }
}

.pulse-hover:hover {
    animation: pulse-gold 2s infinite;
}

/* 2. Form Success Polish */
.success-msg {
    animation: fadeInUp 0.5s ease forwards;
    display: block !important;
    background: rgba(78, 141, 124, 0.1);
    border-left: 4px solid #4E8D7C;
    padding: 1rem;
    border-radius: 4px;
}
