/* ==========================================================================
   ClipBazzar Visual Design System — Theme Mimic (v3 India)
   Extracted & aligned with theme.md specifications
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&family=Geist+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Core Brand Tokens (theme.md Section 2.1 & 8) */
  --cb-orange: #FF8C00;
  --cb-orange-hover: #FFA024;
  --cb-orange-glow: rgba(255, 140, 0, 0.35);
  --cb-ink: #111111;
  --cb-cream: #FFEDD5;
  --cb-black: #000000;

  /* Surface 1: Public Marketing (Light Buttercream & Cinematic Ink) */
  --canvas: #FFEDD5;
  --card: #FFFDF8;
  --ink: #111111;
  --text-muted: rgba(17, 17, 17, 0.60);
  --text-dim: rgba(17, 17, 17, 0.42);
  --line: rgba(17, 17, 17, 0.09);
  --line-subtle: rgba(17, 17, 17, 0.06);
  --line-hover: rgba(17, 17, 17, 0.20);
  --dot-grid: rgba(17, 17, 17, 0.08);

  --btn-bg: #111111;
  --btn-text: #FFFFFF;
  --btn-icon: #FF8C00;

  --shadow-card: 0 10px 30px -5px rgba(17, 17, 17, 0.06), 0 4px 6px -2px rgba(17, 17, 17, 0.03);
  --shadow-input-focus: 0 12px 35px -5px rgba(255, 140, 0, 0.22), 0 0 0 3px rgba(255, 140, 0, 0.16);
  --shadow-cta: 0 10px 25px -5px rgba(255, 140, 0, 0.35);
  --shadow-pill: 0 2px 8px rgba(17, 17, 17, 0.04);
  --horizon-surface: #FFFDF8;

  /* Semantic Status Tokens (theme.md Section 2.2 & 5.2) */
  --status-success-text: #16A34A;
  --status-success-bg: rgba(22, 163, 74, 0.10);
  --status-success-border: rgba(22, 163, 74, 0.25);

  --status-error-text: #EF4444;
  --status-error-bg: rgba(239, 68, 68, 0.12);
  --status-error-border: rgba(239, 68, 68, 0.25);

  --status-info-text: #F59E0B;
  --status-info-bg: rgba(245, 158, 11, 0.12);
  --status-info-border: rgba(245, 158, 11, 0.25);
}

/* Surface 2: Creator Portal / Obsidian Dark (theme.md Section 1 & 2.1) */
[data-theme="dark"] {
  --canvas: #0F0F0F;
  --card: #161616;
  --ink: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.70);
  --text-dim: rgba(255, 255, 255, 0.40);
  --line: rgba(255, 255, 255, 0.08);
  --line-subtle: rgba(255, 255, 255, 0.06);
  --line-hover: rgba(255, 255, 255, 0.16);
  --dot-grid: rgba(255, 255, 255, 0.06);

  --btn-bg: #FF8C00;
  --btn-text: #000000;
  --btn-icon: #000000;

  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.40), 0 2px 4px -2px rgba(0, 0, 0, 0.30);
  --shadow-input-focus: 0 12px 35px -5px rgba(255, 140, 0, 0.28), 0 0 0 3px rgba(255, 140, 0, 0.22);
  --shadow-cta: 0 10px 25px -5px rgba(255, 140, 0, 0.40);
  --shadow-pill: 0 2px 8px rgba(0, 0, 0, 0.30);
  --horizon-surface: #141414;

  --status-success-text: #4ADE80;
  --status-success-bg: rgba(22, 163, 74, 0.15);
  --status-success-border: rgba(22, 163, 74, 0.30);

  --status-error-text: #EF4444;
  --status-error-bg: rgba(239, 68, 68, 0.15);
  --status-error-border: rgba(239, 68, 68, 0.30);

  --status-info-text: #FBBF24;
  --status-info-bg: rgba(245, 158, 11, 0.18);
  --status-info-border: rgba(245, 158, 11, 0.30);
}

/* Global Reset & Base */
* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  background-color: var(--canvas);
  color: var(--ink);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 220ms ease, color 220ms ease;
}

/* Selection Highlight (theme.md Section 2.3) */
::selection {
  background: var(--cb-orange);
  color: #000000;
}

/* Focus Ring Style (theme.md Section 2.3) */
:focus-visible {
  outline: 2px solid var(--cb-orange);
  outline-offset: 2px;
}

/* Page Container */
.coming-soon {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  padding: 32px 7vw 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Ambient Radial Glow & Dot Grid Texture */
.coming-soon::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: '';
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(255, 140, 0, 0.20), transparent 55%),
    radial-gradient(var(--dot-grid) 0.85px, transparent 0.85px);
  background-size: 100% 100%, 7px 7px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 85%);
  transition: background-image 220ms ease;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  margin: 0;
  color: inherit;
  font-family: 'Geist', sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.brand:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
  transition: transform 200ms ease;
}

.brand:hover .brand-logo {
  transform: scale(1.06);
}

.brand-name {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}

.brand-name span {
  color: var(--cb-orange);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: var(--shadow-pill);
  transition: all 200ms ease;
}

.theme-toggle-btn:hover {
  border-color: var(--cb-orange);
  color: var(--cb-orange);
  box-shadow: 0 4px 14px -2px rgba(255, 140, 0, 0.25);
  transform: translateY(-1px);
}

.theme-toggle-btn .sun-icon {
  display: none;
}

.theme-toggle-btn .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle-btn .moon-icon {
  display: none;
}

/* Status Dot with Radar Pulse */
.status-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cb-orange);
  display: inline-block;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--cb-orange);
  opacity: 0.45;
  animation: status-pulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Message Section */
.message {
  position: relative;
  z-index: 1;
  width: min(100%, 880px);
  margin: auto;
  padding: 11vh 0 7vh;
  text-align: center;
}

/* Badge (Launching soon) */
.badge {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-pill);
  color: var(--text-muted);
  font-family: 'Geist Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: border-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
}

.badge:hover {
  border-color: var(--cb-orange);
  color: var(--ink);
}

/* Shimmer Sheen effect from theme.md Section 7.1 */
.badge::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.14), transparent);
  transform: translateX(-100%);
  animation: shimmer 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.badge-mark {
  color: var(--cb-orange);
  font-size: 0.85rem;
  line-height: 1;
}

/* Headline */
.headline {
  margin: 22px auto 0;
  font-family: 'Geist', sans-serif;
  font-size: clamp(3.2rem, 8.5vw, 6.6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.headline span {
  display: block;
}

.headline-muted {
  color: var(--text-muted);
  font-weight: 600;
}

.headline-bright {
  color: var(--ink);
}

/* Description */
.description {
  max-width: 520px;
  margin: 28px auto 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.6;
  font-weight: 450;
  letter-spacing: -0.01em;
}

/* Form */
.subscribe-form {
  position: relative;
  z-index: 2;
  width: min(100%, 480px);
  margin: 34px auto 0;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 20px;
  background: var(--card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.input-group:focus-within {
  border-color: var(--cb-orange);
  box-shadow: var(--shadow-input-focus);
}

.input-group input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: 'Geist', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
}

.input-group input::placeholder {
  color: var(--text-dim);
  opacity: 0.8;
  font-weight: 400;
}

/* Submit Button with Ambient Glow (theme.md Section 4.2 & 8) */
.input-group button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border: none;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-family: 'Geist', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 150ms ease, box-shadow 200ms ease, opacity 200ms ease;
  white-space: nowrap;
}

.input-group button .btn-icon {
  color: var(--btn-icon);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  transition: transform 180ms ease, color 180ms ease;
}

.input-group button:hover {
  background: var(--cb-orange);
  color: #000000;
  box-shadow: var(--shadow-cta);
  transform: translateY(-1px);
}

.input-group button:hover .btn-icon {
  color: #000000;
  transform: translateX(3px);
}

.input-group button:active {
  transform: scale(0.97);
}

.input-group button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-subtext {
  margin: 11px 0 0;
  font-size: 0.81rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Semantic Feedback Messages (theme.md Section 2.2 & 5.2) */
.form-message {
  margin: 12px 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  min-height: 1.4em;
  transition: all 200ms ease;
}

.form-message:not(:empty) {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
}

.form-message.success {
  color: var(--status-success-text);
  background: var(--status-success-bg);
  border: 1px solid var(--status-success-border);
}

.form-message.error {
  color: var(--status-error-text);
  background: var(--status-error-bg);
  border: 1px solid var(--status-error-border);
}

.form-message.info {
  color: var(--status-info-text);
  background: var(--status-info-bg);
  border: 1px solid var(--status-info-border);
}

/* Actions */
.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

/* Connect with Tarun Pill Link */
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-pill);
  color: var(--ink);
  font-family: 'Geist', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.linkedin-link span {
  color: var(--cb-orange);
  font-size: 1.05rem;
  transition: transform 200ms ease;
}

.linkedin-link:hover,
.linkedin-link:focus-visible {
  border-color: var(--cb-orange);
  color: var(--cb-orange);
  box-shadow: 0 8px 24px -4px rgba(255, 140, 0, 0.25);
  transform: translateY(-1px);
}

.linkedin-link:hover span,
.linkedin-link:focus-visible span {
  transform: translate(2px, -2px);
}

/* Cinematic Horizon Arc & Atmospheric Glow (theme.md Section 1 & 4.2) */
.horizon {
  position: relative;
  height: 180px;
  margin: -50px -7vw 0;
  overflow: hidden;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
  pointer-events: none;
}

.horizon::after {
  position: absolute;
  top: 50%;
  left: -50%;
  width: 200%;
  aspect-ratio: 1 / 0.32;
  border-top: 1px solid var(--line);
  border-radius: 50%;
  background: var(--horizon-surface);
  content: '';
  transition: background 220ms ease, border-color 220ms ease;
}

.horizon-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 140, 0, 0.44), rgba(255, 140, 0, 0.10) 45%, transparent 72%);
  opacity: 0.55;
  transition: opacity 220ms ease;
}

[data-theme="dark"] .horizon-glow {
  opacity: 0.75;
}

.sparkles {
  position: absolute;
  inset: 0;
}

.sparkle {
  position: absolute;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: var(--cb-orange);
  box-shadow: 0 0 6px rgba(255, 140, 0, 0.85);
  animation: twinkle 3s ease-in-out infinite;
}

/* Footer Note */
.footer-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-subtle);
  color: var(--text-dim);
  font-family: 'Geist', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  transition: border-color 220ms ease, color 220ms ease;
}

.footer-divider,
.footer-star {
  color: var(--cb-orange);
}

.footer-star {
  margin-left: auto;
  font-size: 1rem;
}

/* Reveal Animations */
.reveal {
  animation: reveal-up 700ms cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: var(--delay, 0ms);
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.5);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(255, 140, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
  }
}

/* Shimmer Animation (theme.md Section 7.1) */
@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.25;
    transform: scale(0.7);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.35);
  }
}

/* Responsive Breakpoints */
@media (max-width: 600px) {
  .coming-soon {
    padding: 24px 6vw 20px;
  }

  .message {
    padding: 8vh 0 5vh;
  }

  .headline {
    font-size: clamp(2.8rem, 13vw, 4.4rem);
  }

  .input-group {
    flex-direction: column;
    padding: 8px;
    border-radius: 20px;
  }

  .input-group input {
    width: 100%;
    padding: 10px 14px;
    text-align: center;
  }

  .input-group button {
    width: 100%;
    justify-content: center;
    border-radius: 14px;
    padding: 12px;
  }

  .actions {
    flex-direction: column;
    gap: 12px;
  }

  .horizon {
    margin-right: -6vw;
    margin-left: -6vw;
  }

  .footer-star {
    margin-left: 0;
  }
}

/* Reduced Motion (theme.md Section 7.2) */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
