/* ========================================
   Lapine Lab - Modern Design System
   Inspired by shadcn/ui
   ======================================== */

:root {
  /* Colors - Dark Theme */
  --background: #09090b;
  --background-secondary: #0f0f12;
  --foreground: #fafafa;
  --foreground-muted: #a1a1aa;

  /* Brand Colors */
  --primary: #fbbf24;        /* Amber/Gold for Mentor */
  --primary-foreground: #09090b;
  --secondary: #27272a;
  --secondary-foreground: #fafafa;

  /* Accent */
  --accent: #18181b;
  --accent-foreground: #fafafa;
  --ring: #fbbf24;

  /* Semantic */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --muted: #27272a;
  --muted-foreground: #71717a;

  /* Sizing */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;

  /* Font */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* T1D Theme Override */
.theme-t1d {
  --primary: #22d3ee;        /* Cyan for T1D */
  --ring: #22d3ee;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================
   Layout
   ======================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
}

/* ========================================
   Navigation
   ======================================== */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.nav-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), rgba(255,255,255,0.1));
  border: 1px solid var(--border-strong);
}

.nav-badge {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 9999px;
  background: var(--secondary);
  color: var(--foreground-muted);
  border: 1px solid var(--border);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  padding: 80px 0 60px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .hero {
    padding: 48px 0 40px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 13px;
  color: var(--foreground-muted);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(180deg, var(--foreground) 0%, var(--foreground-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--foreground-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-subtitle strong {
  color: var(--foreground);
  font-weight: 500;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--border-strong);
}

.btn:focus-visible {
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-primary:hover {
  opacity: 0.9;
  background: var(--primary);
  border-color: var(--primary);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--secondary);
  border-color: var(--border);
}

/* ========================================
   Form Elements
   ======================================== */

.form-inline {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .form-inline {
    flex-direction: column;
  }
}

.input {
  flex: 1;
  width: 100%;
  height: 52px;
  min-height: 52px;
  padding: 0 18px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--foreground);
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

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

.input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.theme-t1d .input:focus {
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.select {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--foreground);
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.select:focus {
  border-color: var(--ring);
}

.form-note {
  font-size: 13px;
  color: var(--muted-foreground);
  text-align: center;
  margin-top: 12px;
}

/* ========================================
   Cards
   ======================================== */

.card {
  background: var(--background-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--foreground);
}

.card-description {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Phone Mockup
   ======================================== */

.phone-mockup {
  max-width: 320px;
  margin: 48px auto 0;
  padding: 16px;
  background: var(--background-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.phone-screen {
  background: linear-gradient(180deg, var(--secondary) 0%, var(--background) 100%);
  border-radius: var(--radius-xl);
  padding: 20px;
  border: 1px solid var(--border);
}

.phone-notification {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.phone-notification-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
}

.phone-notification-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.phone-notification-text {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* ========================================
   Sections
   ======================================== */

.section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--muted-foreground);
}

/* ========================================
   FAQ
   ======================================== */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

.faq-item {
  background: var(--background-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.faq-question {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--foreground);
}

.faq-answer {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ========================================
   Trust Badges
   ======================================== */

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 0;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-foreground);
}

.trust-badge-icon {
  font-size: 16px;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
  text-align: center;
  padding: 64px 24px;
  margin: 48px 0;
  background: var(--background-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.cta-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.cta-subtitle {
  font-size: 15px;
  color: var(--muted-foreground);
  margin-bottom: 24px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted-foreground);
}

@media (max-width: 640px) {
  .footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ========================================
   Modal
   ======================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.modal-backdrop[data-open="true"] {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 420px;
  background: var(--background-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  animation: modal-in 0.2s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--muted-foreground);
  margin-top: 4px;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground-muted);
  cursor: pointer;
  font-size: 18px;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: var(--secondary);
  color: var(--foreground);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-success {
  text-align: center;
  padding: 20px 0;
}

.modal-success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.modal-success-title {
  font-size: 18px;
  font-weight: 600;
  color: #22c55e;
  margin-bottom: 8px;
}

.modal-success-text {
  font-size: 14px;
  color: var(--muted-foreground);
}

.modal-success-code {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 14px;
  color: #22c55e;
}

/* Step indicator */
.steps {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.step-dot.active {
  background: var(--primary);
}

/* ========================================
   Animations
   ======================================== */

.fade-in {
  animation: fade-in 0.5s ease forwards;
}

.fade-in-up {
  animation: fade-in-up 0.5s ease forwards;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ========================================
   Utilities
   ======================================== */

.text-center { text-align: center; }
.text-muted { color: var(--muted-foreground); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.hidden { display: none; }
