/* ===== Psycho4you Landing — styles.css ===== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --bg: #F7F5FF;
  --surface: #FFFFFF;
  --text: #1F2330;
  --muted: #667085;
  --primary: #6D5EF7;
  --primary-hover: #5B4DE0;
  --primary-soft: #E9E6FF;
  --border: rgba(31, 35, 48, 0.08);
  --shadow: 0 10px 30px rgba(31, 35, 48, 0.06);
  --radius-card: 20px;
  --radius-btn: 14px;
  --container: 1100px;
  --section-pad: 72px;
  --section-pad-mob: 48px;
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.25rem; font-weight: 700; }

.lead { font-size: 1.125rem; color: var(--muted); margin-bottom: 32px; }
.muted { color: var(--muted); font-size: 0.875rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, opacity .2s, transform .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; }

.btn-secondary {
  background: var(--primary-soft);
  color: var(--primary);
}
.btn-secondary:hover { background: #DDD8FF; color: var(--primary); }

.btn[disabled], .btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

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

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary-soft);
  color: var(--primary);
}

/* --- Card --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* --- Section --- */
.section {
  padding: var(--section-pad) 0;
}
.section-alt {
  background: var(--surface);
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

/* --- Header / Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.navbar-nav a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color .2s;
}
.navbar-nav a:hover { color: var(--primary); }
.navbar-nav a.disabled {
  color: var(--muted);
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 0.7em;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px 0;
  min-width: 220px;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 0.875rem;
}
.nav-dropdown-menu a:hover {
  background: var(--primary-soft);
}

/* Language Switcher */
.lang-switch {
  display: flex;
  gap: 4px;
  margin-left: 16px;
}
.lang-switch a {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.lang-switch a.active,
.lang-switch a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

/* Hamburger */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* Mobile */
@media (max-width: 960px) {
  .navbar-toggle { display: flex; }
  .navbar-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 16px 20px;
    flex-direction: column;
    gap: 12px;
  }
  .navbar-menu.open { display: flex; }
  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .lang-switch { margin-left: 0; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 12px;
  }
}

/* --- Hero --- */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero h1 { margin-bottom: 16px; }
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}
.hero-note {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 16px;
}
.hero .micro {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Blob background */
.hero-blob {
  position: absolute;
  top: -100px;
  right: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
}
.hero-blob-2 {
  position: absolute;
  bottom: -80px;
  left: -120px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, #E0D4FF 0%, transparent 70%);
  opacity: 0.3;
  z-index: 1;
  pointer-events: none;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.features-grid .card { text-align: center; }
.features-grid .card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.features-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 24px;
}

@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* --- Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
}

/* --- Channel / Info Block --- */
.info-block {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.info-block p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* --- FAQ --- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform .2s;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item.open .faq-question::after {
  content: '−';
}
.faq-answer {
  display: none;
  padding: 0 20px 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.faq-item.open .faq-answer { display: block; }

/* --- Legal Links --- */
.legal-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.legal-links a {
  font-weight: 500;
  font-size: 1rem;
  transition: color .2s;
}
.legal-links a:hover { text-decoration: underline; }

/* --- CTA Block --- */
.cta-block {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.cta-block p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* --- Benefits List --- */
.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}
.benefits-list li {
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 1rem;
  color: var(--text);
}
.benefits-list li::before {
  content: '✦ ';
  color: var(--primary);
}

/* --- For-who List --- */
.forwho-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto 16px;
}
.forwho-list li {
  font-size: 1.05rem;
  padding-left: 24px;
  position: relative;
}
.forwho-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 600;
}

/* --- MiniApp Features List --- */
.miniapp-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}
.miniapp-features li {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  font-weight: 500;
}

@media (max-width: 640px) {
  .miniapp-features { grid-template-columns: 1fr; }
}

/* --- Legal Page --- */
.legal-page {
  padding: var(--section-pad) 0;
}
.legal-page .container {
  max-width: 800px;
}
.legal-banner {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 32px;
  text-align: center;
}
.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal-content p {
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.7;
}
.legal-content ul {
  margin: 8px 0 16px 24px;
  color: var(--text);
  line-height: 1.7;
}
.legal-content li { margin-bottom: 4px; }

/* --- Footer --- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
}
.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.footer-links a:hover { color: var(--primary); }
.footer-links a.disabled {
  opacity: 0.55;
  pointer-events: none;
}
.footer-disclaimer {
  color: var(--muted);
  font-size: 0.8rem;
  max-width: 500px;
}

/* --- 404 Page --- */
.page-404 {
  text-align: center;
  padding: 120px 20px;
}
.page-404 h1 { font-size: 5rem; color: var(--primary); }
.page-404 p { color: var(--muted); margin: 16px 0 32px; }

/* --- Responsive --- */
@media (max-width: 960px) {
  .section { padding: var(--section-pad-mob) 0; }
  h1 { font-size: 2rem; }
  .hero { padding: 60px 0 40px; }
}

@media (max-width: 640px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.4rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .btn { height: 44px; padding: 0 20px; font-size: 0.9rem; }
}
