/* Ego landing — dark, laconic, subtle motion */

:root {
  --bg: #0a0b0f;
  --bg-elevated: #12141c;
  --bg-card: #161922;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaef;
  --text-muted: #8b919e;
  --accent: #c4a574;
  --accent-soft: rgba(196, 165, 116, 0.15);
  --accent-glow: rgba(196, 165, 116, 0.35);
  --radius: 14px;
  --radius-lg: 22px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "DM Sans", system-ui, sans-serif;
  --font-logo: "Syne", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 25% 0%, rgba(196, 165, 116, 0.06), transparent 55%),
    radial-gradient(ellipse 55% 35% at 85% 15%, rgba(100, 120, 200, 0.05), transparent 50%);
  z-index: 0;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orb-track {
  position: absolute;
  inset: 0;
  transform: translate3d(0, calc(var(--scroll-y, 0px) * var(--p, 0.06) * -1), 0);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.7;
  animation: orbFloat 24s ease-in-out infinite;
}

.bg-orb--gold {
  width: min(58vw, 440px);
  height: min(58vw, 440px);
  top: 6%;
  left: -10%;
  background: radial-gradient(circle, rgba(196, 165, 116, 0.5) 0%, rgba(196, 165, 116, 0.12) 42%, transparent 72%);
  animation-duration: 26s;
}

.bg-orb--gold-soft {
  width: min(42vw, 340px);
  height: min(42vw, 340px);
  bottom: 8%;
  right: 10%;
  top: auto;
  left: auto;
  background: radial-gradient(circle, rgba(196, 165, 116, 0.32) 0%, transparent 68%);
  animation-duration: 30s;
  animation-delay: -8s;
}

.bg-orb--blue {
  width: min(52vw, 400px);
  height: min(52vw, 400px);
  top: 22%;
  right: -8%;
  background: radial-gradient(circle, rgba(88, 118, 210, 0.38) 0%, rgba(88, 118, 210, 0.1) 45%, transparent 72%);
  animation-duration: 28s;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(28px, -22px) scale(1.06); }
  66% { transform: translate(-18px, 24px) scale(0.94); }
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
  z-index: 0;
}

main, .header, .footer { position: relative; z-index: 1; }

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(10, 11, 15, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.logo:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 52px;
  border-radius: 15px;
  color: #1a1510;
  background: linear-gradient(160deg, #e8d4b8 0%, var(--accent) 48%, #a88858 100%);
  box-shadow:
    0 0 0 1px rgba(196, 165, 116, 0.35),
    0 8px 28px rgba(196, 165, 116, 0.25);
}

.logo-mark svg {
  width: 24px;
  height: 24px;
}

.logo-type {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.logo-e {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(196, 165, 116, 0.35);
}

.logo-go {
  color: var(--text);
}

.logo-dot {
  color: var(--accent);
  opacity: 0.85;
}

.hero-brand-word {
  position: absolute;
  top: clamp(-4.5rem, -10vw, -2.75rem);
  left: -0.05rem;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: clamp(5rem, 17vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(196, 165, 116, 0.55);
  paint-order: stroke fill;
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transform: scaleY(1.1);
  transform-origin: left top;
  filter: drop-shadow(0 0 28px rgba(196, 165, 116, 0.12));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  overflow: visible;
}

.hero-content .badge,
.hero-content h1,
.hero-content .hero-sub,
.hero-content .hero-actions {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: flex;
  padding: 3px;
  background: var(--bg-elevated);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-sm { font-size: 0.85rem; padding: 0.5rem 1rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, #d4b896, var(--accent));
  color: #1a1510;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 2.5rem);
}

.section-head { margin-bottom: 3rem; max-width: 640px; }

.label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  margin: 0 0 1.25rem;
}

h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  margin: 0 0 1rem;
}

h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }

.section-note {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0.5rem 0 0;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding-top: 2rem;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Phone mock */
.phone-mock {
  width: min(100%, 300px);
  margin: 0 auto;
  padding: 12px;
  background: var(--bg-card);
  border-radius: 32px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.phone-notch {
  width: 80px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin: 0 auto 12px;
}

.phone-screen {
  background: linear-gradient(180deg, #141820 0%, #10131a 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  padding: 1.25rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.phone-screen .chat-bubble,
.phone-screen .chat-wave {
  opacity: 1;
  transform: none;
}

.hero-visual.is-visible .phone-screen .chat-bubble,
.hero-visual.is-visible .phone-screen .chat-wave {
  opacity: 0;
  animation: bubbleIn 0.55s ease forwards;
  animation-delay: calc(0.25s + var(--i, 0) * 0.35s);
}

.chat-bubble {
  font-size: 0.82rem;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  max-width: 92%;
}

.chat-in {
  align-self: flex-end;
  background: var(--accent-soft);
  color: var(--text);
  border-bottom-right-radius: 4px;
}

.chat-out {
  align-self: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
  padding: 0 0.5rem;
}

.chat-wave span {
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
}

.chat-wave span:nth-child(2) { animation-delay: 0.1s; }
.chat-wave span:nth-child(3) { animation-delay: 0.2s; }
.chat-wave span:nth-child(4) { animation-delay: 0.3s; }
.chat-wave span:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
  0%, 100% { height: 8px; opacity: 0.4; }
  50% { height: 20px; opacity: 1; }
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.float {
  animation: float 5s ease-in-out infinite;
}

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

/* Grid & cards */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover {
  border-color: rgba(196, 165, 116, 0.25);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Platform — privacy & channels */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.platform-panel {
  padding: 2rem;
  background: linear-gradient(145deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.platform-panel-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.platform-panel h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
}

.platform-panel > p {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.platform-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.platform-points li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.platform-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.channel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.channel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.channel-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.channel-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.channel-ready .channel-badge {
  color: #1a1510;
  background: linear-gradient(145deg, #e8d4b8, var(--accent));
  border-color: rgba(196, 165, 116, 0.4);
}

.platform-extras {
  margin-top: 0.25rem;
}

/* Audience */
.audience-inner {
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.audience-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 2rem;
}

.audience-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.audience-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Demo strip */
.demo-strip {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.demo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 2.5rem;
  background: var(--accent-soft);
  border: 1px solid rgba(196, 165, 116, 0.25);
  border-radius: var(--radius-lg);
}

.demo-text h2 { margin-bottom: 0.35rem; }
.demo-text p { margin: 0; color: var(--text-muted); max-width: 480px; }

/* Packages */
.packages-grid { align-items: stretch; }

.package {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.25s;
}

.package:hover { transform: translateY(-4px); }

.package-featured {
  border-color: rgba(196, 165, 116, 0.4);
  box-shadow: 0 0 0 1px rgba(196, 165, 116, 0.1), 0 20px 60px rgba(0,0,0,0.3);
}

.package-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  background: var(--accent);
  color: #1a1510;
  border-radius: 999px;
}

.package-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0.5rem 0 0.75rem;
}

.package-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.package ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.package li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  padding-left: 1.1rem;
  position: relative;
}

.package li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

/* Story */
.story-inner {
  max-width: 680px;
}

.story-inner p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-intro p { color: var(--text-muted); }

.telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.2s;
}

.telegram-link:hover { border-color: rgba(196, 165, 116, 0.4); }

.telegram-handle {
  color: var(--accent);
  font-weight: 600;
}

.form {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.form-field { margin-bottom: 1.25rem; }

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(196, 165, 116, 0.5);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-field textarea { resize: vertical; min-height: 100px; }

.form-error {
  color: #f87171;
  font-size: 0.88rem;
  margin: 0 0 1rem;
}

.form-success {
  color: #86efac;
  font-size: 0.88rem;
  margin: 0 0 1rem;
}

.hidden { display: none !important; }

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
  border-top: 1px solid var(--border);
  max-width: var(--max);
  margin: 0 auto;
}

.footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

/* Legal / privacy */
.legal-page {
  max-width: 720px;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.legal-body section {
  margin-bottom: 1.75rem;
}

.legal-body h2 {
  font-size: 1.1rem;
  margin: 0 0 0.65rem;
  color: var(--accent);
}

.legal-body p,
.legal-body li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal-body ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.form-consent { margin-bottom: 0.5rem; }

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
}

.consent-label input {
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.consent-label a {
  color: var(--accent);
  text-decoration: underline;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { order: -1; }
  .hero-brand-word {
    top: -1.75rem;
    font-size: clamp(3.75rem, 16vw, 6rem);
  }
  .hero-content { padding-top: 2rem; }
  .platform-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .audience-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav, .header-actions .btn { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: flex; }

  .header.is-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    margin: 0;
  }

  .header.is-open .header-actions .btn {
    display: inline-flex;
    position: absolute;
    top: calc(var(--header-h) + 12rem);
    right: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .bg-orb-track { transform: none !important; }
  .bg-orb { animation: none !important; opacity: 0.45; }
  .hero-visual.is-visible .phone-screen .chat-bubble,
  .hero-visual.is-visible .phone-screen .chat-wave {
    opacity: 1;
    animation: none;
    transform: none;
  }
}
