/* ═══════════════════════════════════════════════
   Notemia. Unified Psychology Apps Landing
   Modern, dark-hero, lilac/violet accent
   ═══════════════════════════════════════════════ */

:root {
  --bg-dark: #0d0d1a;
  --bg-hero: #111127;
  --bg-light: #f8f9fc;
  --bg-white: #ffffff;
  --bg-section: #f0f2f7;
  --bg-card: #ffffff;

  --text-primary: #1a1a2e;
  --text-secondary: #555770;
  --text-muted: #8b8da3;
  --text-on-dark: #e8e8f0;
  --text-on-dark-muted: #9a9ab8;

  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --accent-glow: rgba(108, 92, 231, 0.3);

  --psymap: #ff8c00;
  --couple: #0a7e8c;
  --reframe: #6366f1;
  --feelit: #e84393;
  --analyst: #00b894;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 4px 24px rgba(44, 62, 80, 0.06);
  --shadow-lg: 0 12px 48px rgba(44, 62, 80, 0.1);
  --shadow-dark: 0 8px 32px rgba(0,0,0,0.2);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1120px;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background: var(--bg-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html[lang="en"] .ru-only {
  display: none !important;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══ Navigation ═══ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13, 13, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
  background: rgba(13, 13, 26, 0.95);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.nav__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

.nav__name { letter-spacing: -0.02em; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav__link:hover { color: #fff; }

.lang-switch {
  display: flex;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  margin-left: 4px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-on-dark-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

.lang-btn:hover:not(.active) { color: #fff; }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(13, 13, 26, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__link { font-size: 1rem; }
}

/* ═══ Hero ═══ */
.hero {
  position: relative;
  background: var(--bg-hero);
  padding: 140px 0 100px;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.hero__orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -10%; left: -10%;
  animation-delay: 0s;
}

.hero__orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--feelit) 0%, transparent 70%);
  bottom: -15%; right: -5%;
  animation-delay: -7s;
}

.hero__orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--couple) 0%, transparent 70%);
  top: 30%; right: 20%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(20px, 10px) scale(1.02); }
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.3);
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__accent {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--feelit) 50%, var(--psymap) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--text-on-dark-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__cta { margin-bottom: 48px; }

.hero__cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__notemia-note {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.hero__stat {
  text-align: center;
}

.hero__stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero__stat span {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
}

/* ═══ Buttons ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn--outline-light {
  padding: 14px 24px;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
}

.btn--outline-light:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.55);
  transform: translateY(-2px);
}

.btn--lg { padding: 18px 40px; font-size: 1.05rem; }

.btn--app {
  padding: 12px 24px;
  color: #fff;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
}

.btn--app svg { flex-shrink: 0; }

.btn--psymap { background: linear-gradient(135deg, var(--psymap), #ffb347); }
.btn--couple { background: linear-gradient(135deg, var(--couple), #2bc4d3); }
.btn--reframe { background: linear-gradient(135deg, var(--reframe), #818cf8); }
.btn--feelit { background: linear-gradient(135deg, var(--feelit), #fd79a8); }
.btn--analyst { background: linear-gradient(135deg, var(--analyst), #55efc4); }

.btn--app:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* ═══ Section Headers ═══ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ═══ Apps Section ═══ */
.apps {
  padding: 100px 0 60px;
  background: var(--bg-light);
}

/* ═══ App Card ═══ */
.app-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 48px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.app-card--reverse { direction: rtl; }
.app-card--reverse > * { direction: ltr; }

.app-card__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.app-card__icon {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.app-card:hover .app-card__icon { transform: scale(1.05); }

.app-card__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-card__badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-section);
  padding: 4px 14px;
  border-radius: 100px;
}

.app-card__name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

[data-accent="psymap"] .app-card__name { color: var(--psymap); }
[data-accent="couple"] .app-card__name { color: var(--couple); }
[data-accent="reframe"] .app-card__name { color: var(--reframe); }
[data-accent="feelit"] .app-card__name { color: var(--feelit); }
[data-accent="analyst"] .app-card__name { color: var(--analyst); }

.app-card__tagline {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.app-card__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.app-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-section);
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .app-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px;
  }
  .app-card--reverse { direction: ltr; }
  .app-card__visual { align-items: center; }
  .app-card__icon { width: 100px; height: 100px; border-radius: 22px; }
}

/* ═══ Audience ═══ */
.audience {
  padding: 100px 0;
  background: var(--bg-section);
}

.audience__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.audience__card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.03);
  transition: transform var(--transition);
}

.audience__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.audience__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--accent);
}

.audience__icon svg { width: 100%; height: 100%; }

.audience__card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.audience__card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .audience__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .audience__grid {
    grid-template-columns: 1fr;
  }
}

/* ═══ Principles ═══ */
.principles {
  padding: 100px 0;
  background: var(--bg-light);
}

.principles__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.principle {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.03);
  transition: transform var(--transition);
}

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

.principle__num {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.principle h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.principle p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* ═══ Final CTA ═══ */
.final-cta {
  padding: 100px 0;
  background: var(--bg-hero);
}

.final-cta__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.final-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.final-cta p {
  font-size: 1.05rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ═══ Disclaimer ═══ */
.disclaimer {
  padding: 40px 0;
  background: var(--bg-section);
}

.disclaimer__inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 28px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(108, 92, 231, 0.15);
}

.disclaimer__inner svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.disclaimer__inner p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══ Footer ═══ */
.footer {
  background: var(--bg-dark);
  padding: 64px 0 32px;
  color: var(--text-on-dark-muted);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand .nav__logo {
  font-size: 0.9rem;
  width: 32px;
  height: 32px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__brand .nav__name { color: #fff; }

.footer__desc {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  margin-top: 4px;
}

.footer__col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-muted);
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer__col a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

/* ═══ Animations ═══ */
.anim-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.anim-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .anim-in {
  animation: heroEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero .anim-in:nth-child(1) { animation-delay: 0.1s; }
.hero .anim-in:nth-child(2) { animation-delay: 0.2s; }
.hero .anim-in:nth-child(3) { animation-delay: 0.3s; }
.hero .anim-in:nth-child(4) { animation-delay: 0.4s; }
.hero .anim-in:nth-child(5) { animation-delay: 0.5s; }

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

.anim-in:nth-child(2) { transition-delay: 0.1s; }
.anim-in:nth-child(3) { transition-delay: 0.2s; }
.anim-in:nth-child(4) { transition-delay: 0.3s; }

/* ═══ Support / Privacy pages ═══ */
.page-section {
  padding: 120px 0 80px;
  background: var(--bg-light);
  min-height: 80vh;
}

.page-section h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.page-section .page-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.page-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text-primary);
}

.page-section p, .page-section li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.page-section ul { padding-left: 20px; list-style: disc; }

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.support-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.03);
}

.support-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.support-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.support-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.support-card .btn {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

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

.faq-list { margin-top: 32px; }

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-a__inner {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-a {
  max-height: 200px;
}

@media (max-width: 640px) {
  .support-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 80px; min-height: auto; }
  .hero__stats { gap: 24px; }
  .hero__stat strong { font-size: 1.5rem; }
}
