:root {
  --bg-dark: #080a10;
  --bg-card: rgba(16, 20, 32, 0.82);
  --bg-card-hover: rgba(24, 30, 48, 0.92);
  --border-color: rgba(244, 114, 182, 0.18);
  --border-glow: rgba(56, 189, 248, 0.35);

  --primary-pink: #f472b6;
  --primary-blue: #38bdf8;
  --primary-purple: #a855f7;
  --primary-cream: #fef08a;
  --accent-sakura: #fb7185;
  --accent-mint: #34d399;
  --accent-amber: #fbbf24;

  --primary-gradient: linear-gradient(135deg, #f472b6 0%, #38bdf8 50%, #c084fc 100%);
  --bubble-gradient: linear-gradient(135deg, rgba(244, 114, 182, 0.16) 0%, rgba(56, 189, 248, 0.16) 100%);
  --pet-gradient: linear-gradient(180deg, #ffffff 0%, #e0f2fe 100%);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-code: 'Fira Code', monospace;

  --glass-shadow: 0 16px 45px 0 rgba(0, 0, 0, 0.65);
  --cozy-shadow: 0 12px 36px 0 rgba(244, 114, 182, 0.15);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Glowing Ambient Orbs */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}
.bg-glow-1 {
  width: 600px;
  height: 600px;
  background: #f472b6;
  top: -150px;
  right: -100px;
}
.bg-glow-2 {
  width: 650px;
  height: 650px;
  background: #38bdf8;
  bottom: 5%;
  left: -200px;
}
.bg-glow-3 {
  width: 450px;
  height: 450px;
  background: #c084fc;
  top: 45%;
  right: 15%;
  opacity: 0.2;
}

/* Glassmorphism Card */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass:hover {
  border-color: rgba(244, 114, 182, 0.35);
}

/* Header */
.header {
  position: sticky;
  top: 16px;
  margin: 0 auto;
  max-width: 1240px;
  width: calc(100% - 32px);
  z-index: 100;
  padding: 12px 24px;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}
.logo-icon-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(244, 114, 182, 0.4);
}
.logo-badge {
  font-size: 0.75rem;
  background: rgba(244, 114, 182, 0.15);
  color: var(--primary-pink);
  border: 1px solid rgba(244, 114, 182, 0.3);
  padding: 2px 8px;
  border-radius: 20px;
  font-family: var(--font-sans);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--text-main);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-select {
  background: rgba(16, 20, 32, 0.85);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.lang-select:hover {
  border-color: var(--primary-pink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}
.btn-primary {
  background: var(--primary-gradient);
  color: #0b0f19;
  box-shadow: 0 4px 20px rgba(244, 114, 182, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(244, 114, 182, 0.45);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(244, 114, 182, 0.3);
  transform: translateY(-2px);
}
.btn-large {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: 14px;
}

/* Typography Helpers */
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-center { text-align: center; }

/* Main Content */
.main-content {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 16px 80px;
}

/* Hero Section */
.hero-section {
  padding: 50px 0 60px;
  text-align: center;
}
.hero-container {
  max-width: 900px;
  margin: 0 auto;
}
.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(244, 114, 182, 0.1);
  border: 1px solid rgba(244, 114, 182, 0.3);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  color: #fbcfe8;
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-shortcuts {
  font-size: 0.9rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.hotkey-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
  color: #fce7f3;
  font-family: var(--font-code);
  font-size: 0.82rem;
}

/* Interactive Simulator Section */
.simulator-section {
  margin: 40px 0 90px;
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.sim-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

/* Left: Pet Stage */
.sim-stage-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(244, 114, 182, 0.08) 0%, rgba(16, 20, 32, 0.85) 75%);
}

.sim-tab-bar {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px;
  border-radius: 16px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  justify-content: center;
}
.sim-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sim-tab-btn.active {
  background: rgba(244, 114, 182, 0.2);
  color: #fbcfe8;
  border: 1px solid rgba(244, 114, 182, 0.4);
}

/* Speech Bubble */
.speech-bubble {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 24px;
  border-radius: 20px;
  position: relative;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 24px;
  animation: floatBubble 3s ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-align: center;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.15) transparent;
  display: block;
  width: 0;
}

@keyframes floatBubble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Pet Display Area */
.pet-stage {
  width: 260px;
  height: 260px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.pet-avatar {
  width: 220px;
  height: 220px;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 12px 24px rgba(244, 114, 182, 0.3));
}

.pet-avatar.breathing {
  animation: petBreathing 4s ease-in-out infinite;
}

.pet-avatar.squish {
  animation: petSquish 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes petBreathing {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.03, 0.97) translateY(-4px); }
}

@keyframes petSquish {
  0% { transform: scale(1, 1); }
  30% { transform: scale(1.18, 0.82) translateY(8px); }
  60% { transform: scale(0.92, 1.08) translateY(-6px); }
  100% { transform: scale(1, 1) translateY(0); }
}

/* Floating Particles (Hearts & Sparkles) */
.particle {
  position: absolute;
  pointer-events: none;
  font-size: 1.4rem;
  animation: particleFly 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  z-index: 10;
}
@keyframes particleFly {
  0% { opacity: 1; transform: translate(0, 0) scale(0.6); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(1.4); }
}

/* Pet Controls */
.sim-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.sim-act-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.sim-act-btn:hover {
  background: rgba(244, 114, 182, 0.18);
  border-color: var(--primary-pink);
  transform: translateY(-2px);
}

/* Right: Dashboard HUD */
.sim-hud-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hud-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hud-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.hud-label {
  color: var(--text-muted);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hud-val {
  font-weight: 700;
  color: #fbcfe8;
  font-family: var(--font-code);
}

/* Pomodoro Timer HUD */
.hud-timer-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}
.timer-display {
  font-family: var(--font-code);
  font-size: 2.2rem;
  font-weight: 700;
  color: #bae6fd;
  margin: 6px 0 12px;
  letter-spacing: 2px;
}
.timer-btn-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.timer-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  transition: all 0.2s;
}
.timer-btn.active {
  background: var(--primary-blue);
  color: #0b0f19;
  border-color: var(--primary-blue);
}

/* Ambient Sound Generator HUD */
.hud-sound-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
}
.sound-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.sound-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  transition: all 0.2s;
}
.sound-btn.active {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
  border-color: var(--primary-blue);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

/* Core Pillars / Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}
.feature-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bubble-gradient);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.feature-title {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 700;
}
.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Companion Roster Section */
.roster-section {
  margin-bottom: 90px;
}
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.roster-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.roster-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
}
.roster-badge.free {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.35);
}
.roster-badge.google {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.35);
}
.roster-badge.plus {
  background: rgba(244, 114, 182, 0.15);
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.35);
}
.roster-img-wrap {
  width: 140px;
  height: 140px;
  margin: 12px 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.roster-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.roster-personality {
  color: var(--primary-pink);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.roster-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  max-width: 840px;
  margin: 0 auto 90px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  padding: 22px 26px;
  cursor: pointer;
}
.faq-question {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-toggle {
  font-size: 1.2rem;
  color: var(--primary-pink);
  transition: transform 0.25s ease;
}
.faq-answer {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-top: 14px;
  display: none;
}
.faq-item.open .faq-answer {
  display: block;
}
.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

/* CTA Bottom Section */
.cta-banner {
  text-align: center;
  padding: 60px 30px;
  background: radial-gradient(circle at 50% 50%, rgba(244, 114, 182, 0.12) 0%, rgba(16, 20, 32, 0.9) 80%);
}
.cta-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.cta-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 28px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-dim);
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover {
  color: var(--primary-pink);
}

/* Document View (Privacy & Terms) */
.doc-section {
  max-width: 880px;
  margin: 20px auto 60px;
}
.doc-card {
  padding: 48px;
}
.doc-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.doc-date {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.doc-content h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  margin: 32px 0 14px;
  color: #fce7f3;
}
.doc-content p {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.doc-content ul {
  padding-left: 24px;
  margin-bottom: 20px;
  color: #cbd5e1;
}
.doc-content li {
  margin-bottom: 10px;
  line-height: 1.65;
}
.doc-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  border-radius: 12px;
  overflow: hidden;
}
.doc-content th, .doc-content td {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
  text-align: left;
}
.doc-content th {
  background: rgba(244, 114, 182, 0.12);
  color: #fbcfe8;
  font-weight: 600;
}
.doc-content td {
  background: rgba(0, 0, 0, 0.2);
  color: #cbd5e1;
}

/* Responsive */
@media (max-width: 900px) {
  .sim-container {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
  .doc-card {
    padding: 24px;
  }
}
