/* ----------------------------------------------------------------
   Clavik Style Sheet - Coming Soon
   Apple-like Minimalist Design Language
---------------------------------------------------------------- */

/* Design Tokens & Variables */
:root {
  --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;
  
  /* Color Palette */
  --bg-color: #000000;
  --bg-surface: #09090b;
  --bg-card: rgba(20, 20, 25, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 255, 255, 0.3);
  
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary: #515154;
  
  --accent-color: #ffffff;
  --accent-gradient: linear-gradient(135deg, #ffffff 0%, #86868b 100%);
  --glow-color: rgba(255, 255, 255, 0.03);
  
  /* Easing & Timing */
  --transition-apple: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Glows (Apple Pro styling) */
body::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 20%;
  width: 60%;
  height: 40%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.035) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.015) 0%, rgba(0, 0, 0, 0) 80%);
  z-index: 0;
  pointer-events: none;
}

/* Layout Elements */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

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

/* Header */
.site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo {
  height: 26px;
  width: auto;
  filter: invert(1); /* Inverts black logo to clean white for dark theme */
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-apple);
}

.nav-links a:hover {
  background: var(--text-primary);
  color: var(--bg-color);
  border-color: var(--text-primary);
}

.instagram-icon {
  width: 15px;
  height: 15px;
}

/* Hero Section */
.hero-section {
  padding: 6rem 0 3rem;
  position: relative;
}

.hero-pill-badge {
  display: inline-flex;
  padding: 0.35rem 0.95rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

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

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Countdown Section */
.countdown-section {
  padding: 1.5rem 0 4rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.countdown-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: var(--transition-apple);
}

.countdown-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.01);
}

.countdown-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Waitlist Section */
.waitlist-section {
  padding: 2rem 0 5rem;
}

.waitlist-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.waitlist-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.waitlist-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.waitlist-header p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 2rem;
}

/* Waitlist Form & Input */
.waitlist-form {
  position: relative;
  z-index: 10;
  margin-bottom: 1.75rem;
}

.input-group {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.35rem;
  transition: var(--transition-apple);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.input-group:focus-within {
  border-color: var(--border-active);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04), inset 0 2px 4px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

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

.input-group input[type="email"]::placeholder {
  color: var(--text-tertiary);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--text-primary);
  color: var(--bg-color);
  border: none;
  border-radius: 10px;
  padding: 0 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-apple);
  height: 40px;
}

.btn-primary:hover {
  background: #ffffff;
  transform: scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.arrow-icon {
  width: 14px;
  height: 14px;
  transition: var(--transition-apple);
}

.btn-primary:hover .arrow-icon {
  transform: translateX(3px);
}

/* Form Feedback States */
.form-feedback {
  font-size: 0.8rem;
  margin-top: 0.75rem;
  text-align: left;
  padding-left: 0.75rem;
  min-height: 1.2rem;
  transition: var(--transition-fast);
  font-weight: 500;
}

.form-feedback.success {
  color: #30d158; /* iOS system green */
}

.form-feedback.error {
  color: #ff453a; /* iOS system red */
}

.waitlist-instagram-tease {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 1.5rem;
}

.link-instagram {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.link-instagram:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* Preview / Showcase Section */
.preview-section {
  padding: 5rem 0 7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.section-title {
  margin-bottom: 4rem;
}

.section-title h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.preview-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-apple);
  outline: none;
}

.preview-card:hover, .preview-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.preview-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.card-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-tertiary);
}

.card-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.card-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.footer-meta {
  font-weight: 500;
}

/* Animation utilities */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

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

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .preview-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .hero-section {
    padding: 4rem 0 2rem;
  }
  
  .preview-section {
    padding: 4rem 0;
  }
}

@media (max-width: 600px) {
  .countdown-grid {
    gap: 0.75rem;
  }
  
  .countdown-card {
    padding: 1rem 0.5rem;
    border-radius: 12px;
  }
  
  .waitlist-card {
    padding: 2.25rem 1.5rem;
  }
  
  .input-group {
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 0.75rem;
    padding: 0;
  }
  
  .input-group input[type="email"] {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    width: 100%;
  }
  
  .input-group input[type="email"]:focus {
    border-color: var(--border-active);
  }
  
  .btn-primary {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    height: 44px;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
