/* ─────────────────────────────────────────
   Docling Coming Soon - Light Retro-Tech Styles
   ───────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Docling design tokens — Simplified Light Theme */
  --bg-color:          #faf9f6; /* Warm off-white background */
  --surface-color:     #ffffff; /* Pure white card surface */
  --text-main:         #1e1e24; /* Soft near-black for primary text */
  --text-muted:        #5c5c64; /* Gray for descriptions */
  --text-subtle:       #9e9ea6; /* Light gray for borders/footers */
  --border-color:      #1e1e24; /* Solid retro dark border */
  --accent-color:      #7c3aed; /* Docling signature purple */
  --accent-hover:      #6d28d9; /* Deep purple hover state */
  --accent-subtle:     #ede9fe; /* Soft purple tint */
  
  --shadow-retro: 5px 5px 0px 0px #1e1e24;
  --shadow-retro-hover: 7px 7px 0px 0px #1e1e24;
  --transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base resets & layout rules to allow natural scrolling if needed */
html, body {
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Background grid styling */
.bg-decorations {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: 
    linear-gradient(var(--text-main) 1px, transparent 1px),
    linear-gradient(90deg, var(--text-main) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Header styling */
header {
  position: relative;
  z-index: 10;
  height: 70px;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-color);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  transition: var(--transition);
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-icon {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border-color);
  background: var(--surface-color);
  image-rendering: pixelated;
}

.tagline-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--accent-subtle);
  color: var(--accent-color);
  border: 2px solid var(--border-color);
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
}

/* Main Container: Centered Layout designed to fit precisely */
main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  box-sizing: border-box;
}

/* Window terminal container for pixel mascot */
.window-container {
  width: 150px;
  background: var(--surface-color);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-retro);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition);
}

.window-container:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-retro-hover);
}

.window-titlebar {
  height: 24px;
  background: var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
}

.window-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--surface-color);
}
.window-dot.red { background: #ff5f56; }
.window-dot.yellow { background: #ffbd2e; }
.window-dot.green { background: #27c93f; }

.window-title {
  font-family: 'JetBrains Mono', monospace;
  color: var(--surface-color);
  font-size: 0.65rem;
  margin-left: 6px;
  flex: 1;
  text-align: right;
  letter-spacing: 0.05em;
}

.window-content {
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: radial-gradient(circle, var(--accent-subtle) 0%, transparent 80%);
}

.mascot-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  image-rendering: pixelated;
  animation: retro-float 1.2s steps(6) infinite;
}

/* Typography */
h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem 0;
  text-align: center;
}

h1 span.accent {
  color: var(--accent-color);
  position: relative;
  display: inline-block;
}

h1 span.accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: var(--accent-subtle);
  z-index: -1;
}

p.description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
  max-width: 520px;
  margin: 0 0 2rem 0;
}

/* Interactive Waitlist Container */
.waitlist-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.waitlist-form {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  border: 2px solid var(--border-color);
  background: var(--surface-color);
  box-shadow: var(--shadow-retro);
  padding: 4px;
  transition: var(--transition);
}

.waitlist-form:focus-within {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-retro-hover);
}

.waitlist-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--text-main);
  padding: 0.625rem 0.875rem;
}

.waitlist-input::placeholder {
  color: var(--text-subtle);
}

.waitlist-submit {
  background: var(--accent-color);
  color: var(--surface-color);
  border: 2px solid var(--border-color);
  outline: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.waitlist-submit:hover {
  background: var(--accent-hover);
  transform: translate(-1px, -1px);
}

.waitlist-submit:active {
  transform: translate(0, 0);
}

/* Success Card Layout */
.success-card {
  display: none;
  width: 100%;
  max-width: 440px;
  background: var(--surface-color);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-retro);
  padding: 1.5rem;
  text-align: center;
  box-sizing: border-box;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-subtle);
  color: var(--accent-color);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.success-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.success-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Footer styling */
footer {
  position: relative;
  z-index: 10;
  height: 50px;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 2px solid var(--border-color);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
}

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

@keyframes popIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* Responsive adjustments for tiny/mobile height screens */
@media (max-height: 580px) {
  header { height: 50px; }
  footer { height: 40px; }
  main { padding: 0.75rem; }
  .window-container { margin-bottom: 1rem; width: 120px; }
  .window-content { height: 90px; }
  .mascot-image { width: 75px; height: 75px; }
  h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
  p.description { font-size: 0.85rem; margin-bottom: 1rem; }
}

/* Responsive adjustments for mobile/tablet width screens */
@media (max-width: 600px) {
  header { height: 60px; padding: 0 1rem; }
  .logo { font-size: 1.25rem; }
  .logo-icon { width: 28px; height: 28px; }
  .tagline-badge { font-size: 0.6rem; padding: 0.2rem 0.4rem; }
  main { padding: 1rem; }
  h1 { font-size: 1.8rem; margin-bottom: 0.75rem; }
  p.description { font-size: 0.85rem; margin-bottom: 1.5rem; }
  
  .waitlist-form { 
    flex-direction: column; 
    padding: 0.5rem; 
    gap: 0.5rem; 
  }
  .waitlist-input { padding: 0.75rem; font-size: 0.85rem; width: 100%; box-sizing: border-box; }
  .waitlist-submit { padding: 0.75rem; font-size: 0.85rem; width: 100%; justify-content: center; }
  
  .window-container { width: 130px; margin-bottom: 1.5rem; }
  .mascot-image { width: 85px; height: 85px; }
  footer { font-size: 0.65rem; text-align: center; padding: 0 1rem; line-height: 1.4; height: auto; padding-top: 1rem; padding-bottom: 1rem; }
}
