@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ==========================================
   CSS CUSTOM VARIABLES & RESET
   ========================================== */
:root {
  --bg-primary: #030408;
  --color-cyan: #00f2fe;
  --color-cyan-glow: rgba(0, 242, 254, 0.4);
  --color-purple: #7f00ff;
  --color-purple-glow: rgba(127, 0, 255, 0.4);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

body.light-theme {
  --bg-primary: #f8fafc;
  --color-cyan: #0284c7;
  --color-cyan-glow: rgba(2, 132, 199, 0.15);
  --color-purple: #6366f1;
  --color-purple-glow: rgba(99, 102, 241, 0.15);
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
}

body {
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

html, body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================
   TOPOLOGICAL BACKGROUND CANVAS
   ========================================== */
#ambientCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ==========================================
   OVERLAY & FLEX CONTENT LAYOUT
   ========================================== */
.overlay-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  padding: 2.5rem 3rem;
}

@media (max-width: 768px) {
  .overlay-container {
    padding: 1.5rem 1.5rem;
  }
}

/* ==========================================
   MINIMALIST HEADER
   ========================================== */
.minimal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeInDown 1s var(--transition-smooth);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 10px var(--color-cyan);
}

.brand-name {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-purple);
  box-shadow: 0 0 8px var(--color-purple);
  animation: pulseLoop 2s infinite ease-in-out;
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  outline: none;
  padding: 0;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.theme-toggle-btn svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Light / Dark Mode Toggle Icon Logic */
.sun-icon {
  display: block;
}
.moon-icon {
  display: none;
}

body.light-theme .sun-icon {
  display: none;
}
body.light-theme .moon-icon {
  display: block;
}

/* ==========================================
   HERO / MAIN CONTENT AREA
   ========================================== */
.hero-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: scaleUpIn 1.2s var(--transition-smooth);
}

.vague-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-purple);
  border: 1px solid rgba(127, 0, 255, 0.2);
  background: rgba(127, 0, 255, 0.04);
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 4.8rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary) 40%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 620px;
  margin-bottom: 3rem;
  font-weight: 400;
}

/* ==========================================
   ACCESS FORM STYLING
   ========================================== */
.access-form {
  width: 100%;
  max-width: 520px;
}

.input-group {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  padding: 0.3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.input-group:focus-within {
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 10px 40px rgba(0, 242, 254, 0.08), 0 0 12px rgba(0, 242, 254, 0.05);
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.8rem 1.5rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
}

.input-group input::placeholder {
  color: var(--text-muted);
}

.btn-glowing {
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--text-primary);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-glowing:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  transform: translateY(0);
}

.arrow-icon {
  transition: var(--transition-smooth);
}

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

.form-feedback {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  min-height: 1.2rem;
  transition: var(--transition-fast);
}

.form-feedback.success {
  color: var(--color-cyan);
}

.form-feedback.error {
  color: #ff3366;
}

/* ==========================================
   MINIMALIST FOOTER
   ========================================== */
.minimal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeInUp 1s var(--transition-smooth);
}

@media (max-width: 576px) {
  .minimal-footer {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hover-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}

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

.separator {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes pulseLoop {
  0% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 8px var(--color-purple); }
  50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 16px var(--color-purple); }
  100% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 8px var(--color-purple); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUpIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

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

/* ==========================================
   LIGHT MODE STYLE OVERRIDES
   ========================================== */
body.light-theme .theme-toggle-btn {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.06);
}

body.light-theme .theme-toggle-btn:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.12);
}

body.light-theme .header-status {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.05);
}

body.light-theme .vague-badge {
  border-color: rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.05);
}

body.light-theme .input-group {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.light-theme .input-group:focus-within {
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: 0 10px 40px rgba(2, 132, 199, 0.06), 0 0 12px rgba(2, 132, 199, 0.03);
}

body.light-theme .input-group input {
  color: var(--text-primary);
}

body.light-theme .input-group input::placeholder {
  color: var(--text-muted);
}

body.light-theme .btn-glowing {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.01) 100%);
  border-color: rgba(15, 23, 42, 0.1);
  color: var(--text-primary);
}

body.light-theme .btn-glowing:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}
