/* Loly Companion — White Mode Minimalist Design System */
:root {
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-dark: #0f172a;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Container */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
}

.btn-primary:hover {
  background-color: #1e293b;
  border-color: #1e293b;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background-color: #edf2f7;
  border-color: #cbd5e1;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border-light);
}

.btn-outline:hover {
  background-color: var(--bg-subtle);
  border-color: var(--text-main);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-main) 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.tag-dot {
  width: 8px;
  height: 8px;
  background-color: #0f172a;
  border-radius: 50%;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.download-hero-btn {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-align: left;
}

.btn-micro {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
}

.btn-main {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
}

/* Mascot Card */
.hero-mascot-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.mascot-island-header {
  margin-bottom: 20px;
}

.island-notch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #0f172a;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.mascot-status-dot {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.mascot-svg-wrap {
  display: flex;
  justify-content: center;
  margin: 10px 0 20px;
}

.mood-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.mood-btn {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.mood-btn.active, .mood-btn:hover {
  background-color: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.mascot-caption {
  font-size: 12px;
  color: var(--text-light);
}

/* Sections */
.section {
  padding: 70px 0;
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  margin-bottom: 48px;
}

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

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* Simulator */
.sim-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

.island-sim {
  background-color: #0f172a;
  color: #ffffff;
  border-radius: 28px;
  padding: 14px 24px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 28px;
  transition: all 0.3s ease;
}

.island-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.island-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sim-pulse {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

.sim-agent-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.island-ticker {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: center;
}

.island-right {
  flex-shrink: 0;
}

.sim-clock {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #94a3b8;
}

.sim-approval-card {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.approval-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.approval-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.approval-target {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #e2e8f0;
}

.approval-prompt {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.approval-actions {
  display: flex;
  gap: 8px;
}

.gemini-review-box {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.5;
}

.sim-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.sim-action-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.sim-action-box h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.sim-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.audio-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.select-input {
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-main);
}

.audio-note {
  font-size: 11px;
  color: var(--text-light);
}

/* Downloads Grid */
.downloads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.download-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.download-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.platform-icon {
  width: 52px;
  height: 52px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-name {
  font-size: 22px;
  font-weight: 800;
}

.platform-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.download-options-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.download-options-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.option-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.option-info span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.download-card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-light);
}

.download-card-footer code {
  display: block;
  background: var(--bg-subtle);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Quickstart Terminal */
.terminal-block {
  max-width: 760px;
  margin: 0 auto;
  background-color: #0f172a;
  color: #f8fafc;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background-color: #1e293b;
  border-bottom: 1px solid #334155;
}

.term-dots {
  display: flex;
  gap: 6px;
}

.term-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #64748b;
}

.term-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #94a3b8;
}

.copy-term-btn {
  background: transparent;
  border: 1px solid #475569;
  color: #e2e8f0;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.copy-term-btn:hover {
  background-color: #334155;
}

.terminal-block pre {
  padding: 24px;
  overflow-x: auto;
}

.terminal-block code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

/* Gemini Guide Banner */
.guide-banner {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}

.guide-text {
  max-width: 640px;
  margin: 0 auto;
}

.guide-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.guide-text h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.guide-text p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.guide-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  background-color: var(--bg-subtle);
}

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

.footer-sub {
  margin-top: 4px;
  color: var(--text-light);
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-right a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-description {
    margin: 0 auto 32px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-meta {
    justify-content: center;
  }
  .downloads-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }
  .hero-title {
    font-size: 32px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .sim-actions-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
