/* Aave Clone - Full Styles & Animations */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-dim: rgba(255, 255, 255, 0.5);
  --border: rgba(255, 255, 255, 0.08);
  --purple: #8b5cf6;
  --purple-dim: rgba(139, 92, 246, 0.3);
  --blue: #3b82f6;
  --blue-dim: rgba(59, 130, 246, 0.3);
  --teal: #14b8a6;
  --orange: #f59e0b;
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

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

main {
  position: relative;
  z-index: 1;
}

/* Cursor glow - follows mouse */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(400px circle at 50% 50%, rgba(139, 92, 246, 0.08), transparent 40%);
  transition: background 0.15s ease-out;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: transparent;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.header.scrolled,
.header.header-solid {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-link-mobile {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Language dropdown */
.lang-dropdown {
  position: relative;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

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

.lang-arrow {
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.2s;
}

.lang-dropdown.is-open .lang-arrow {
  transform: rotate(180deg);
}

.lang-list {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 100%;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 200;
}

.lang-dropdown.is-open .lang-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-list li {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.lang-list li:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.lang-list li[aria-selected="true"] {
  color: var(--purple);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

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

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

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}                   

main {
  position: relative;
  z-index: 1;
}

/* Scroll snap — сцены прилипают при скролле */
.hero,
.section-build,
.section-team-graph,
.section-features,
.section-security {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  scroll-margin-top: 4rem;
}

/* Обязательная остановка при скролле — нельзя пролистнуть мимо */
.section-features {
  scroll-snap-stop: always;
}

.section-security .section-title {
  margin-top: -0.5rem;
}

.section-security .section-subtitle {
  max-width: 720px;
  line-height: 1.65;
  margin-top: 1rem;
}

.security-scene {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.security-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
  min-width: 340px;
  max-width: 420px;
  margin-right: auto;
  text-align: left;
}

.security-info-block {
  padding: 0;
}

.security-info-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5rem;
  transition: filter 0.2s ease, color 0.2s ease;
}

.security-info-block:hover .security-info-title {
  filter: blur(0) brightness(1.04) !important;
}

.security-info-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

.security-info-desc:empty {
  display: none;
}

.security-tagline {
  width: 100%;
  margin: 6.5rem auto 0;
  padding: 0;
  text-align: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  overflow-x: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px circle at 50% 50%, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.08), transparent 50%);
  transition: background 0.2s ease;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

/* Premium hero text animation - Aave / fintech style */
.hero-headline {
  opacity: 0;
  transform: translateY(28px) scale(0.987);
  filter: blur(8px);
  animation: heroHeadlineReveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-subheadline {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(4px);
  animation: heroSubheadlineReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

.hero-cta {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  filter: blur(2px);
  animation: heroCtaReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.15s forwards;
}

@keyframes heroHeadlineReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroSubheadlineReveal {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroCtaReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Reduced motion: fast opacity only */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: none;
  }
  .hero-headline,
  .hero-subheadline,
  .hero-cta {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
    transition: opacity 0.25s ease;
  }
  .hero-headline { opacity: 0; }
  .hero-subheadline { opacity: 0; }
  .hero-cta { opacity: 0; }
  .hero-content.hero-ready .hero-headline,
  .hero-content.hero-ready .hero-subheadline,
  .hero-content.hero-ready .hero-cta {
    opacity: 1;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* Hero phones - reference: white bg, silver frames, thin gradient, slight tilts */
.hero-phones {
  position: relative;
  z-index: 5;
  width: 100%;
  margin-top: 4rem;
  min-height: 580px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: visible;
  padding: 3rem 2rem 4px;
  background: transparent;
}

.hero-phones::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 4px;
  background: linear-gradient(90deg, #60a5fa, #a78bfa, #ec4899, #f59e0b);
  z-index: 10;
  pointer-events: none;
  transform-origin: center center;
  opacity: 0;
  animation: barReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 2.2s forwards;
}

@keyframes barReveal {
  from {
    opacity: 1;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.phone-mockup {
  position: relative;
  flex-shrink: 0;
}

.phone-mockup img {
  display: block;
  height: 540px;
  width: auto;
  object-fit: contain;
  vertical-align: bottom;
}

/* Phone wraps = flex children of hero-phones */
.phone-wrap {
  display: flex;
  align-items: flex-end;
  transition: transform 0.2s ease-out;
}
.phone-wrap-left {
  margin-right: -55px;
  z-index: 1;
  align-self: flex-end;
}
.phone-wrap-center {
  margin: 0 -25px;
  z-index: 3;
  align-self: flex-end;
}
.phone-wrap-right {
  margin-left: -55px;
  z-index: 2;
  align-self: flex-end;
}
.phone-wrap {
  transition: transform 0.2s ease-out;
}

.phone-left,
.phone-center,
.phone-right {
  /* layout moved to wraps */
}

/* Premium phone entrance - Aave / fintech style */
.phone-mockup {
  transform-origin: bottom center;
}

.phone-center {
  opacity: 0;
  transform: translateY(50px) scale(0.95) rotate(3deg);
  filter: blur(12px);
  animation:
    phoneCenterEntrance 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards,
    phoneCenterIdle 5.2s ease-in-out 3s infinite;
}

.phone-left {
  opacity: 0;
  transform: translate(20px, 38px) scale(0.97);
  filter: blur(9px);
  animation:
    phoneLeftEntrance 1s cubic-bezier(0.22, 1, 0.36, 1) 1.67s forwards,
    phoneLeftIdle 5.8s ease-in-out 3.1s infinite;
}

.phone-right {
  opacity: 0;
  transform: translate(-20px, 35px) scale(0.98);
  filter: blur(8px);
  animation:
    phoneRightEntrance 0.95s cubic-bezier(0.22, 1, 0.36, 1) 1.82s forwards,
    phoneRightIdle 4.9s ease-in-out 3.2s infinite;
}

@keyframes phoneCenterEntrance {
  to {
    opacity: 1;
    transform: translateY(0) scale(1.05) rotate(0deg);
    filter: blur(0);
  }
}

@keyframes phoneLeftEntrance {
  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes phoneRightEntrance {
  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes phoneCenterIdle {
  0%, 100% { transform: translateY(0) scale(1.05) rotate(0deg); }
  50% { transform: translateY(-6px) scale(1.05) rotate(0deg); }
}

@keyframes phoneLeftIdle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(0, -5px) scale(1); }
}

@keyframes phoneRightIdle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(0, -5px) scale(1); }
}

/* Мобильные анимации — меньшая амплитуда */
@keyframes phoneCenterIdleMobile {
  0%, 100% { transform: translateY(0) scale(1.05) rotate(0deg); }
  50% { transform: translateY(-2px) scale(1.05) rotate(0deg); }
}
@keyframes phoneLeftIdleMobile {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(0, -2px) scale(1); }
}
@keyframes phoneRightIdleMobile {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(0, -2px) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .phone-center,
  .phone-left,
  .phone-right {
    animation: none;
    opacity: 0;
    transform: translateY(12px);
    filter: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .hero-phones.phones-ready .phone-center,
  .hero-phones.phones-ready .phone-left,
  .hero-phones.phones-ready .phone-right {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  .hero-phones.phones-ready .phone-center {
    transform: translateY(0) scale(1.05);
  }
  .hero-phones.phones-ready::after {
    opacity: 1;
    animation: none;
  }
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* Pain points - left-aligned list */
.section-build {
  text-align: left;
  position: relative;
  overflow: visible;
}

/* Декоративная форма (как на референсе) — плоское дно, скруглённые углы, «уши» сверху */
.scene-shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.scene-shape-whale {
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  height: 192px;
  color: #000;
  opacity: 0.18;
}

.scene-shape-featured {
  position: relative;
  right: auto;
  top: auto;
  left: auto;
  transform: none;
  width: 720px;
  height: 504px;
  margin: 2rem auto 0;
  opacity: 0.45;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene-shape-whale svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.section-build .section-title {
  display: block;
  width: 100%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.section-build .section-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Pain section — GSAP entrance (section-build-entrance.js) */
.pain-title-animated { display: block; }
.pain-title-animated .pain-line { display: block; }

/* Initial hidden state before GSAP runs */
.section-build:not(.entrance-done):not(.reduced-motion) .pain-line-1,
.section-build:not(.entrance-done):not(.reduced-motion) .pain-line-2,
.section-build:not(.entrance-done):not(.reduced-motion) .pain-subtitle,
.section-build:not(.entrance-done):not(.reduced-motion) .pain-point-title,
.section-build:not(.entrance-done):not(.reduced-motion) .pain-point-desc {
  opacity: 0;
}

/* Icons hidden until burst — no "hanging" icon during text animation */
.section-build:not(.icons-visible) .float-icon {
  opacity: 0 !important;
  pointer-events: none;
  visibility: hidden;
}


.pain-points {
  margin-top: 3rem;
  max-width: 560px;
}

.pain-point {
  margin-bottom: 2rem;
}

.pain-point:last-child {
  margin-bottom: 0;
}

.pain-point-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.pain-point-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pain points row - list left, image right */
.pain-points-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pain-points {
  flex: 1;
  min-width: 280px;
}

/* Floating icons - zero gravity effect */
.floating-icons {
  position: relative;
  flex: 0 0 auto;
  width: 420px;
  height: 380px;
  min-width: 420px;
}

.float-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  object-fit: contain;
  opacity: 0.85;
  will-change: transform;
}

.section-build .pain-points {
  margin-top: 0;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.pain-point {
  margin-bottom: 1.5rem;
}

.pain-point-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.pain-point-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pain-points-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pain-points-row .pain-points {
  flex: 1;
  min-width: 320px;
  margin-top: 0;
}

.pain-points-img {
  flex-shrink: 0;
}

.pain-points-img img {
  max-width: 100%;
  height: auto;
  max-height: 400px;
  display: block;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.testimonial-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s ease;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--purple-dim);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* About cards */
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-card {
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: left;
  transition: all 0.4s ease;
}

.about-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--purple-dim);
  box-shadow: 0 25px 50px rgba(139, 92, 246, 0.15);
}

.about-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--purple);
}

.about-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Section About — roles (clean premium dark SaaS) */
.section-about {
  position: relative;
  padding: 5rem 1.5rem 6rem;
  overflow: hidden;
}

/* Initial state before GSAP entrance */
.section-about:not(.entrance-done) .section-about-title,
.section-about:not(.entrance-done) .section-about-subtitle {
  opacity: 0;
}

.section-about-title {
  position: relative;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1rem;
  line-height: 1.25;
}

.section-about-subtitle {
  position: relative;
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.roles-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.role-card {
  position: relative;
  padding: 2rem 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.role-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.role-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(139, 92, 246, 0.08);
}

.role-card:hover::before {
  opacity: 1;
}

.role-name {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.role-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(139, 92, 246, 0.95);
  margin-bottom: 1.25rem;
  line-height: 1.35;
}

.role-points {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.role-points li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.4rem;
}

.role-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  background: rgba(139, 92, 246, 0.5);
  border-radius: 50%;
}

.role-points li:last-child {
  margin-bottom: 0;
}

/* Team Graph — Obsidian-style network */
.section-team-graph {
  position: relative;
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
}

.team-graph-glow {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 900px;
  height: 70%;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(139, 92, 246, 0.08) 0%, rgba(59, 130, 246, 0.04) 35%, transparent 65%);
  pointer-events: none;
}

.team-graph-title {
  position: relative;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1rem;
  line-height: 1.25;
}

.team-graph-subtitle {
  position: relative;
  font-size: 1.125rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
  line-height: 1.6;
}

.team-graph-container {
  position: relative;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.team-graph-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.team-graph-container:hover .team-graph-lines {
  opacity: 0.85;
}

.graph-line {
  transition: stroke 0.3s, filter 0.3s, opacity 0.25s;
}

.graph-line.has-pulse {
  filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.4));
}

.graph-node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.graph-node-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.graph-node-center {
  width: 34%;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.graph-node-center-img {
  max-width: 100%;
}

.graph-node-role {
  width: 32%;
  max-width: 32%;
  aspect-ratio: auto;
  cursor: pointer;
}

.graph-node-owner {
  left: 50%;
  top: 10%;
  transform: translate(-50%, -50%);
  animation: graph-node-float 4.8s ease-in-out 0.2s infinite;
  width: 32%;
  max-width: 32%;
  aspect-ratio: auto;
}

/* Role nodes — карточки со подсветкой (Owner, TL, CM, Chatter, Model) */
.role-card-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.role-card-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  z-index: -1;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
  border-radius: 24px;
  animation: role-glow-pulse 3s ease-in-out infinite;
}

.graph-node-role:hover .role-card-wrap::before {
  animation: role-glow-pulse 2s ease-in-out infinite;
}

@keyframes role-glow-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .role-card-wrap::before {
    animation: none;
    opacity: 1;
  }
}

.role-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2.55rem 2.75rem;
  background: #000;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  font-weight: 800;
  font-style: italic;
  color: #fff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.role-card-two-lines {
  flex-direction: column;
  gap: 0.2em;
  white-space: normal;
  text-align: center;
}

.role-card-two-lines .role-card-line1,
.role-card-two-lines .role-card-line2 {
  font-size: 1em;
  line-height: 1.1;
}

.graph-node-tl .role-card,
.graph-node-cm .role-card {
  padding: 1.5rem 2.75rem;
}

.graph-node-tl { left: 2%; top: 26%; transform: translate(-50%, -50%); animation: graph-node-float 5s ease-in-out 0.5s infinite; }
.graph-node-cm { left: 98%; top: 26%; transform: translate(-50%, -50%); animation: graph-node-float 4.6s ease-in-out 0.8s infinite; }
.graph-node-chatter { left: 2%; top: 74%; transform: translate(-50%, -50%); animation: graph-node-float 4.5s ease-in-out 0.3s infinite; }
.graph-node-model { left: 98%; top: 74%; transform: translate(-50%, -50%); animation: graph-node-float 5.2s ease-in-out 0.6s infinite; }

@keyframes graph-node-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-6px); }
}

.graph-node-role:hover {
  filter: brightness(1.1);
}

.team-graph-container:has(.graph-node-chatter:hover) .graph-line-chatter,
.team-graph-container:has(.graph-node-tl:hover) .graph-line-tl,
.team-graph-container:has(.graph-node-owner:hover) .graph-line-owner,
.team-graph-container:has(.graph-node-cm:hover) .graph-line-cm,
.team-graph-container:has(.graph-node-model:hover) .graph-line-model {
  opacity: 1;
  stroke: rgba(139, 92, 246, 0.7);
  filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.4));
}

.graph-tooltip {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-100% - 12px)) translateY(8px);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text);
  background: rgba(18, 18, 26, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  z-index: 20;
  white-space: nowrap;
}

.graph-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, calc(-100% - 12px));
}

/* Initial state before entrance */
.section-team-graph:not(.entrance-done) .team-graph-title,
.section-team-graph:not(.entrance-done) .team-graph-subtitle,
.section-team-graph:not(.entrance-done) .graph-node,
.section-team-graph:not(.entrance-done) .team-graph-lines,
.section-team-graph:not(.entrance-done) .team-graph-glow {
  opacity: 0;
}

.section-team-graph:not(.entrance-done) .graph-node-role {
  animation-play-state: paused;
}


/* Stats (legacy, if used elsewhere) */
.section-stats {
  background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.03) 50%, transparent 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

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

.stat-value,
.stat-suffix,
.stat-label {
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* Features — сцена с котом и проводком */
.section-features {
  position: relative;
  overflow: visible;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.features-scene {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.features-wire {
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 620px;
  z-index: 1;
  pointer-events: none;
}


.features-impulse {
  transform-origin: center;
  pointer-events: none;
}

.features-title {
  margin-bottom: 0;
}

.features-heading {
  position: relative;
  margin-bottom: 2rem;
}

.features-info {
  position: absolute;
  top: calc(100% + 8rem);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 2rem;
  padding: 0 1.5rem;
}

.features-info-block {
  flex: 1;
  text-align: center;
  color: #fff;
}

.features-info-left {
  text-align: center;
  margin-top: 2rem;
}
.features-info-center {
  text-align: center;
  flex: 1.2;
  margin: 0 3rem;
}
.features-info-right {
  text-align: center;
  margin-top: 2rem;
}

.features-info-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.features-info-center .features-info-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.features-info-desc {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.features-info-center .features-info-desc {
  font-size: 1.25rem;
  line-height: 1.55;
}

.features-steps {
  width: 100%;
  max-width: 540px;
  margin: 1.5rem auto 0;
  padding: 0;
  text-align: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.6;
}

.features-cat {
  position: relative;
  z-index: 2;
  overflow: hidden;
  transform: scale(0.945);
  margin-top: -1.5rem;
}

.features-cat-contour {
  vector-effect: non-scaling-stroke;
}

.features-cat-fill {
  position: relative;
  opacity: 0.03;
}

.section-features .section-title,
.section-features .features-title {
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  transition: all 0.4s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--blue-dim);
  transform: translateY(-4px) rotate(1deg);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.1);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Security */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.security-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  transition: all 0.4s ease;
}

.security-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(20, 184, 166, 0.1);
}

.security-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.security-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.link-arrow {
  color: var(--purple);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.link-arrow:hover {
  color: var(--blue);
  transform: translateX(4px);
}

/* GHO — орбита кошельков и бирж */
.gho-orbit-scene {
  position: relative;
  flex-shrink: 0;
  width: 520px;
  max-width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gho-sun {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 120px;
  height: 120px;
  margin-left: -60px;
  margin-top: -60px;
}

.gho-sun-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}

.gho-orbit-scene.gho-ready .gho-sun-img {
  opacity: 1;
}

.gho-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 520px;
  height: 520px;
  margin-left: -260px;
  margin-top: -260px;
  pointer-events: none;
}


.gho-orbit-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  margin-left: -36px;
  margin-top: -36px;
  opacity: 0;
  transform: scale(0.3);
}

.gho-orbit-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.gho-orbit-scene.gho-orbiting .gho-orbit-logo {
  opacity: 1;
}

/* Орбита — каждый логотип на своей позиции по кругу */
.gho-orbit-logo:nth-child(1)  { --orbit-angle: 0deg;     --orbit-radius: 220px; }
.gho-orbit-logo:nth-child(2)  { --orbit-angle: 32.73deg; --orbit-radius: 220px; }
.gho-orbit-logo:nth-child(3)  { --orbit-angle: 65.45deg; --orbit-radius: 220px; }
.gho-orbit-logo:nth-child(4)  { --orbit-angle: 98.18deg; --orbit-radius: 220px; }
.gho-orbit-logo:nth-child(5)  { --orbit-angle: 130.91deg; --orbit-radius: 220px; }
.gho-orbit-logo:nth-child(6)  { --orbit-angle: 163.64deg; --orbit-radius: 220px; }
.gho-orbit-logo:nth-child(7)  { --orbit-angle: 196.36deg; --orbit-radius: 220px; }
.gho-orbit-logo:nth-child(8)  { --orbit-angle: 229.09deg; --orbit-radius: 220px; }
.gho-orbit-logo:nth-child(9)  { --orbit-angle: 261.82deg; --orbit-radius: 220px; }
.gho-orbit-logo:nth-child(10) { --orbit-angle: 294.55deg; --orbit-radius: 220px; }
.gho-orbit-logo:nth-child(11) { --orbit-angle: 327.27deg; --orbit-radius: 220px; }

@keyframes gho-orbit-rotate {
  from { transform: rotate(var(--orbit-angle, 0deg)) translateX(var(--orbit-radius, 220px)) rotate(calc(-1 * var(--orbit-angle, 0deg))); }
  to   { transform: rotate(calc(360deg + var(--orbit-angle, 0deg))) translateX(var(--orbit-radius, 220px)) rotate(calc(-360deg - var(--orbit-angle, 0deg))); }
}

.gho-orbit-scene.gho-orbiting .gho-orbit-logo {
  animation: gho-orbit-rotate 36s linear infinite;
}

.gho-orbit-logo:nth-child(1)  { animation-duration: 32s; animation-delay: 0s; }
.gho-orbit-logo:nth-child(2)  { animation-duration: 34s; animation-delay: -2s; }
.gho-orbit-logo:nth-child(3)  { animation-duration: 38s; animation-delay: -4s; }
.gho-orbit-logo:nth-child(4)  { animation-duration: 33s; animation-delay: -1s; }
.gho-orbit-logo:nth-child(5)  { animation-duration: 36s; animation-delay: -3s; }
.gho-orbit-logo:nth-child(6)  { animation-duration: 40s; animation-delay: -5s; }
.gho-orbit-logo:nth-child(7)  { animation-duration: 32s; animation-delay: -6s; }
.gho-orbit-logo:nth-child(8)  { animation-duration: 34s; animation-delay: -7s; }
.gho-orbit-logo:nth-child(9)  { animation-duration: 38s; animation-delay: -8s; }
.gho-orbit-logo:nth-child(10) { animation-duration: 33s; animation-delay: -9s; }
.gho-orbit-logo:nth-child(11) { animation-duration: 36s; animation-delay: -10s; }

.gho-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.gho-stat {
  text-align: center;
}

.gho-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--purple);
  display: block;
  margin-bottom: 0.5rem;
}

.gho-stat p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Partners */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.partner-logo {
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.partner-logo:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: var(--purple-dim);
  transform: scale(1.05);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

.blog-card {
  display: block;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all 0.4s ease;
}

.blog-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--purple-dim);
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.blog-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--purple-dim);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 1rem;
}

.blog-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 2rem auto;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--purple);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--text-dim);
  transition: transform 0.3s;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 0 1.25rem 0;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 2rem auto 0;
}

.newsletter-form input {
  flex: 1;
  padding: 0.9rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
}

.newsletter-form input::placeholder {
  color: var(--text-dim);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--purple-dim);
}

/* Footer */
.footer {
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  scroll-snap-align: start;
  scroll-margin-top: 4rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--purple);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

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

.footer-bottom a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--text-muted);
}

.footer-copyright {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-left: auto;
}

.footer-bottom-links + .footer-copyright {
  margin-left: auto;
}

/* Standalone pages (pricing, contact, privacy, terms) */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.page-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-content .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.page-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.page-block p {
  margin-bottom: 1rem;
}

.page-block .btn {
  margin-top: 0.5rem;
}

.page-content-contact {
  padding: 0;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 180px);
}

.contact-scene {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-scene h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-scene .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.page-block-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.page-block-contact .contact-telegram-btn {
  margin-top: 1rem;
}

.legal-content .legal-block h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.legal-content .legal-block h2:first-of-type {
  margin-top: 0;
}

.legal-content .legal-block p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.legal-content .legal-block a {
  color: var(--purple);
  text-decoration: none;
}

.legal-content .legal-block a:hover {
  text-decoration: underline;
}

/* Pricing page — cards layout */
.pricing-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.pricing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.pricing-card-popular {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.08);
}

.pricing-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.pricing-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pricing-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.pricing-card-price {
  margin-bottom: 1.5rem;
}

.price-value {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-period {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.pricing-card-price-per-form .price-period {
  font-size: 0.9rem;
}

.pricing-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pricing-card-popular .pricing-btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--bg);
  border-color: transparent;
}

.pricing-card-popular .pricing-btn:hover {
  background: #fff;
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.pricing-features .check {
  color: var(--text-dim);
  flex-shrink: 0;
}

.pricing-features .check-accent {
  color: var(--purple);
}

.pricing-features-more {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.pricing-features-more li {
  font-size: 0.9rem;
}

.pricing-note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-top: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Trial Modal - Spring-style */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.is-open,
.modal-overlay.is-closing {
  opacity: 1;
  visibility: visible;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.modal-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  background: linear-gradient(135deg, #2e1065 0%, #0f172a 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0) rotate(12.5deg);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.modal-overlay.is-open .modal-content,
.modal-overlay.is-closing .modal-content {
  opacity: 1;
}
.modal-overlay.is-open .modal-content {
  transform: scale(1) rotate(0deg);
}
.modal-overlay.is-closing .modal-content {
  transform: scale(0) rotate(0deg);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.modal-close:hover {
  color: var(--text);
  background: var(--bg-card);
}
.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.modal-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.modal-btn-back {
  flex: 1;
}
.modal-btn-request {
  flex: 1;
  text-align: center;
  text-decoration: none;
}

/* Animations - Fade in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive — мобильная версия */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .nav-links {
    display: none;
  }

  .nav-link-mobile {
    display: inline-flex !important;
    align-items: center;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
  }

  .header {
    padding: calc(0.5rem + env(safe-area-inset-top, 0px)) calc(0.75rem + env(safe-area-inset-right, 0px)) 0.5rem calc(0.75rem + env(safe-area-inset-left, 0px));
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .logo-img {
    height: 32px;
  }

  .logo span {
    font-size: 1rem;
  }

  .hero {
    padding: calc(5rem + env(safe-area-inset-top, 0px)) 0.75rem 4rem;
    min-height: auto;
    justify-content: flex-start;
  }

  main {
    padding-top: 0;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    margin-bottom: 2rem;
  }

  .hero-cta {
    margin-bottom: 1.25rem;
  }

  .hero-headline {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    line-height: 1.3;
  }

  .hero-subheadline {
    font-size: 0.9rem;
    margin-top: 0.5rem;
  }

  .btn-lg {
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
  }

  /* Телефоны — крупнее и ниже */
  .hero-phones {
    margin-top: 4rem;
    min-height: 300px;
    padding: 0.75rem 0.25rem;
    padding-bottom: 0;
  }

  .hero-phones::after {
    left: 0;
    right: 0;
    height: 3px;
    bottom: 0;
  }

  .phone-mockup img {
    height: 270px;
  }

  .phone-wrap-left,
  .phone-wrap-right {
    margin-right: -20px;
    margin-left: -20px;
  }

  .phone-wrap-center {
    margin: 0 -12px;
  }

  .phone-center {
    animation:
      phoneCenterEntrance 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards,
      phoneCenterIdleMobile 5.2s ease-in-out 3s infinite;
  }

  .phone-left {
    animation:
      phoneLeftEntrance 1s cubic-bezier(0.22, 1, 0.36, 1) 1.67s forwards,
      phoneLeftIdleMobile 5.8s ease-in-out 3.1s infinite;
  }

  .phone-right {
    animation:
      phoneRightEntrance 0.95s cubic-bezier(0.22, 1, 0.36, 1) 1.82s forwards,
      phoneRightIdleMobile 4.9s ease-in-out 3.2s infinite;
  }

  .section {
    padding: 3rem 1rem;
  }

  .section-build {
    padding-top: 4.5rem;
  }

  .section-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    line-height: 1.3;
  }

  .section-subtitle {
    font-size: 0.95rem;
    max-width: 100%;
  }

  /* Pain points */
  .pain-points-row {
    flex-direction: column;
  }

  .pain-points {
    max-width: 100%;
    order: 1;
  }

  .floating-icons {
    order: 0;
    position: relative;
    width: 300px;
    height: 220px;
    margin: 1.25rem auto 1.5rem;
    flex: none;
  }

  .float-icon {
    width: 36px;
    height: 36px;
    opacity: 0.85;
  }

  .section-build.reduced-motion .floating-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .section-build.reduced-motion .float-icon {
    position: static !important;
  }

  .pain-title-animated .pain-line {
    white-space: normal;
  }

  .pain-point-title {
    font-size: 1rem;
  }

  .pain-point-desc {
    font-size: 0.9rem;
  }

  /* Features — котик на фоне, сцена выше */
  .section-features {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
  }

  .features-scene {
    min-height: 320px;
    flex-direction: column;
    padding-bottom: 2rem;
    overflow: visible;
  }

  .features-wire {
    height: 200px;
  }

  .features-heading {
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
  }

  .features-info {
    position: static;
    transform: none;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 0;
    padding: 0 0.5rem;
  }

  .features-info-left,
  .features-info-center,
  .features-info-right {
    margin: 0;
  }

  .features-info-center {
    flex: 1;
  }

  .features-info-title {
    font-size: 1rem;
  }

  .features-info-center .features-info-title {
    font-size: 1.1rem;
  }

  .features-info-desc {
    font-size: 0.9rem;
  }

  .features-info-center .features-info-desc {
    font-size: 0.95rem;
  }

  .section-features .scene-shape-featured {
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 224px;
    margin: 0;
    z-index: 0;
    opacity: 0.5;
  }

  .section-features .features-steps {
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
    margin-top: 1rem;
  }

  /* Security / Payments — блоки сверху, орбита снизу */
  .section-security .section-title {
    margin-top: 0;
  }

  .security-scene {
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
  }

  .section-security .gho-orbit-scene {
    order: 0;
  }

  .section-security .security-info {
    order: 1;
    min-width: 0;
    max-width: 100%;
    margin: 0;
  }

  .security-info-title {
    font-size: 1rem;
  }

  .security-info-desc {
    font-size: 0.9rem;
  }

  /* Орбита — после подзаголовка */
  .gho-orbit-scene {
    width: 100%;
    height: 200px;
    max-width: 200px;
    margin: 0 auto;
  }

  .gho-orbit {
    width: 200px;
    height: 200px;
    margin-left: -100px;
    margin-top: -100px;
  }

  .gho-sun {
    width: 44px;
    height: 44px;
    margin-left: -22px;
    margin-top: -22px;
  }

  .gho-orbit-logo {
    width: 28px;
    height: 28px;
    margin-left: -14px;
    margin-top: -14px;
  }

  .gho-orbit-logo:nth-child(1),
  .gho-orbit-logo:nth-child(2),
  .gho-orbit-logo:nth-child(3),
  .gho-orbit-logo:nth-child(4),
  .gho-orbit-logo:nth-child(5),
  .gho-orbit-logo:nth-child(6),
  .gho-orbit-logo:nth-child(7),
  .gho-orbit-logo:nth-child(8),
  .gho-orbit-logo:nth-child(9),
  .gho-orbit-logo:nth-child(10),
  .gho-orbit-logo:nth-child(11) {
    --orbit-radius: 78px;
  }

  .security-tagline {
    margin-top: 3rem;
    font-size: 0.95rem;
    white-space: normal;
    padding: 0 0.5rem;
  }

  .testimonials {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .roles-grid {
    grid-template-columns: 1fr;
  }

  .section-team-graph {
    padding: 3rem 1rem 4rem;
  }

  .team-graph-container {
    max-width: 260px;
  }

  .team-graph-container .graph-node-center {
    width: 32%;
  }

  .team-graph-container .graph-node-role {
    width: 26%;
  }

  .team-graph-container .role-card {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    border-radius: 14px;
  }

  .team-graph-container .graph-node-tl .role-card,
  .team-graph-container .graph-node-cm .role-card {
    padding: 0.65rem 0.9rem;
    font-size: 0.7rem;
  }

  .team-graph-title {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
  }

  .team-graph-subtitle {
    font-size: 0.9rem;
  }

  .graph-node-center {
    width: 36%;
  }

  .graph-node-role {
    width: 30%;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer {
    padding: 3rem 1rem 2rem;
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .phone-mockup img {
    height: 230px;
  }

  .hero-phones {
    min-height: 260px;
  }

  .gho-orbit-scene {
    height: 165px;
    max-width: 165px;
  }

  .gho-orbit {
    width: 165px;
    height: 165px;
    margin-left: -82.5px;
    margin-top: -82.5px;
  }

  .gho-orbit-logo {
    width: 24px;
    height: 24px;
    margin-left: -12px;
    margin-top: -12px;
  }

  .gho-orbit-logo:nth-child(1),
  .gho-orbit-logo:nth-child(2),
  .gho-orbit-logo:nth-child(3),
  .gho-orbit-logo:nth-child(4),
  .gho-orbit-logo:nth-child(5),
  .gho-orbit-logo:nth-child(6),
  .gho-orbit-logo:nth-child(7),
  .gho-orbit-logo:nth-child(8),
  .gho-orbit-logo:nth-child(9),
  .gho-orbit-logo:nth-child(10),
  .gho-orbit-logo:nth-child(11) {
    --orbit-radius: 65px;
  }
}

