/* ═══════════════════════════════════════
   P4P Landing — v2 · Raw & Direct
   ═══════════════════════════════════════ */

:root {
  --bg: #0a0a0a;
  --bg2: #111;
  --card: #161616;
  --text: #eee;
  --text2: #999;
  --text3: #555;
  --red: #e63946;
  --orange: #f4a261;
  --green: #48c78e;
  --blue: #63b3ed;
  --radius: 10px;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ═══════ NAV ═══════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo { font-size: 1.3rem; }

.nav-name {
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--red);
}

.nav-play {
  padding: 7px 20px;
  background: var(--red);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.nav-play:hover { opacity: 0.85; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: flex;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
}

.lang-btn {
  padding: 5px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: inherit;
  background: transparent;
  color: var(--text3);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.05em;
}

.lang-btn:first-child { border-right: 1px solid rgba(255,255,255,0.1); }

.lang-btn.active {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.lang-btn:hover { color: var(--text); }

/* ═══════ HERO ═══════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 70% 20%, rgba(230,57,70,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(244,162,97,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 640px;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-accent {
  color: var(--red);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--red);
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(230,57,70,0.2);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(230,57,70,0.35);
}

.hero-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text3);
}

/* ═══════ SECTIONS ═══════ */

.section { padding: 80px 0; }
.section-dark { background: var(--bg2); }

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text2);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* ═══════ STEPS ═══════ */

.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.95rem;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.step p {
  font-size: 0.9rem;
  color: var(--text2);
}

/* ═══════ DEMO TABS ═══════ */

.demo-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.demo-tab {
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--text2);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.demo-tab:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.demo-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.demo-panel {
  display: none;
}

.demo-panel.active {
  display: block;
}

/* ═══════ CHAT DEMO ═══════ */

.chat-demo {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 24px;
  margin-top: 8px;
}

.chat-context {
  font-size: 0.75rem;
  color: var(--text3);
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 16px;
  line-height: 1.6;
}

.chat-msg {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.chat-left {
  background: rgba(230,57,70,0.06);
  border-left: 3px solid var(--red);
  margin-right: 40px;
}

.chat-right {
  background: rgba(99,179,237,0.05);
  border-left: 3px solid var(--blue);
  margin-left: 40px;
}

.chat-name {
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.chat-msg p {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.5;
  font-style: italic;
}

.chat-verdict {
  background: rgba(72,199,142,0.05);
  border: 1px solid rgba(72,199,142,0.12);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text2);
  line-height: 1.6;
}

.chat-verdict strong {
  color: var(--green);
  font-size: 0.75rem;
}

.chat-verdict-effect {
  display: block;
  margin-top: 8px;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.75rem;
}

/* ═══════ SOLO CARDS ═══════ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.solo-card {
  padding: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.solo-card:hover {
  border-color: rgba(230,57,70,0.2);
}

.solo-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.solo-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.solo-card p {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.55;
}

/* ═══════ GRID ═══════ */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.point {
  padding: 20px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
}

.point h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.point p {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.55;
}

/* ═══════ CTA ═══════ */

.section-cta {
  background: linear-gradient(135deg, rgba(230,57,70,0.05), rgba(244,162,97,0.03));
  border-top: 1px solid rgba(230,57,70,0.08);
}

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

.cta-block h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-block p {
  color: var(--text2);
  margin-bottom: 24px;
}

/* ═══════ FOOTER ═══════ */

.footer {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-muted {
  color: var(--text3);
}

/* ═══════ RESPONSIVE ═══════ */

@media (max-width: 600px) {
  .nav { padding: 10px 16px; }
  .hero { padding: 90px 16px 50px; }
  .chat-left, .chat-right { margin-left: 0; margin-right: 0; }
  .footer-row { flex-direction: column; gap: 4px; text-align: center; }
}
