@font-face {
  font-family: 'TT Interphases Pro';
  src: url('../fonts/TT_Interphases_Pro_Regular.woff2') format('woff2'),
       url('../fonts/TT_Interphases_Pro_Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Interphases Pro';
  src: url('../fonts/TT_Interphases_Pro_Medium.woff2') format('woff2'),
       url('../fonts/TT_Interphases_Pro_Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Interphases Pro';
  src: url('../fonts/TT_Interphases_Pro_DemiBold.woff2') format('woff2'),
       url('../fonts/TT_Interphases_Pro_DemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RF Dewi Extended';
  src: url('../fonts/RFDewiExtended-Bold.woff2') format('woff2'),
       url('../fonts/RFDewiExtended-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RF Dewi Extended';
  src: url('../fonts/RFDewiExtended-Semibold.woff2') format('woff2'),
       url('../fonts/RFDewiExtended-Semibold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --sans: 'TT Interphases Pro', system-ui, sans-serif;
  --heading: 'RF Dewi Extended', 'TT Interphases Pro', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--surface-color-surface-base);
  color: var(--text-color-text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
nav.scrolled {
  background: color-mix(in srgb, var(--surface-color-surface-base) 90%, transparent);
  backdrop-filter: blur(16px);
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
@media (max-width: 768px) {
  .logo img { height: 32px; }
}
.nav-cta {
  background: var(--background-brand-color-bg-brand);
  color: var(--text-color-text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  letter-spacing: 0.01em;
}
.nav-cta:hover { background: var(--background-brand-color-bg-brand-hover); }

/* HERO */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 160px 40px 0;
  position: relative;
  overflow: visible;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: -20% 0 -40% 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 35% at 25% 15%, rgba(95, 128, 245, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 75% 55%, rgba(145, 121, 253, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 70% 35% at 50% 75%, rgba(53, 94, 242, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(95, 128, 245, 0.08) 0%, transparent 50%);
}
.hero-grain {
  display: none;
}
.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  top: -5%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 128, 245, 0.2) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 1;
  pointer-events: none;
  animation: hero-breathe 8s ease-in-out infinite;
}
@keyframes hero-breathe {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.6; transform: translateX(-50%) scale(1.15); }
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-color-text-brand);
  border: 1px solid var(--border-color-border-brand-soft);
  background: var(--background-other-color-bg-brand-overlay);
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 24px;
}
.hero-label::before {
  content: ''; display: block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--background-brand-color-bg-brand);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}
.hero-title {
  font-family: var(--heading);
  font-size: 54px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-color-text);
  margin-bottom: 24px;
}
.hero-title .text-brand {
  color: var(--text-color-text-brand);
}
.hero-sub {
  font-size: 18px;
  color: var(--text-color-text-secondary);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 32px;
  font-weight: 400;
}
.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}
.hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 56px auto -120px;
  padding: 0 40px;
  perspective: 1200px;
}
.hero-image-wrap {
  position: relative;
  padding: 1px;
  transform-origin: center center;
  box-shadow:
    0 20px 60px color-mix(in srgb, var(--surface-color-surface-base) 70%, transparent),
    0 4px 16px  color-mix(in srgb, var(--surface-color-surface-base) 50%, transparent);
  /* initial state set by JS variant */
  background: linear-gradient(
    var(--glow-angle, 0deg),
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.04),
    rgba(91, 93, 103, 0.15),
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.12)
  );
  animation: glow-rotate 20s linear infinite;
  --hero-radius: 24px;
  border-radius: var(--hero-radius);
}
.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--hero-radius) + 1px);
  background: inherit;
  filter: blur(12px);
  opacity: 0.4;
  z-index: -1;
}
.hero-image-wrap img {
  width: 100%;
  display: block;
  border-radius: calc(var(--hero-radius) - 1px);
  background: var(--surface-color-surface-base);
}
@property --glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes glow-rotate {
  0% { --glow-angle: 0deg; }
  100% { --glow-angle: 360deg; }
}
@media (max-width: 768px) {
  .hero-image {
    align-self: flex-start;
    margin: 48px 0 -80px -4px;
    padding: 0;
    width: calc(100vw + 40px);
    max-width: none;
    perspective: none;
    overflow: visible;
  }
  .hero-image-wrap {
    border-radius: 10px 0 0 10px;
    transform: none !important;
  }
  .hero-image-wrap::before { border-radius: 11px 0 0 11px; }
  .hero-image-wrap img { border-radius: 9px 0 0 9px; }
}
.btn-primary {
  background: var(--background-brand-color-bg-brand);
  color: var(--text-color-text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 24px;
  border: none; border-radius: 18px;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--background-brand-color-bg-brand-hover); transform: translateY(-1px); }
.btn-ghost {
  color: var(--text-color-text-secondary);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--text-color-text); }
.btn-ghost svg { transition: transform 0.2s; }
.btn-ghost:hover svg { transform: translateX(3px); }

/* SECTIONS */
.section {
  padding: 100px 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-color-text-brand);
  margin-bottom: 20px;
}
.section-label--center {
  text-align: center;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--heading);
  font-size: 54px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.section-title-row .section-title {
  margin-bottom: 0;
}
.section-body {
  font-size: 17px;
  color: var(--text-color-text-secondary);
  max-width: 620px;
  line-height: 1.7;
  font-weight: 400;
}
.section--after-hero {
  padding-top: 180px;
}
.divider {
  width: 100%;
  height: 1px;
  background: var(--border-color-border-soft);
}

/* STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-color-border-soft);
  border: 1px solid var(--border-color-border-soft);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 60px;
}
.step {
  padding: 32px 28px;
  background: var(--surface-color-surface-main);
}
.step-num {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color-text-brand);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.step-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color-text);
  line-height: 1.25;
  margin-bottom: 8px;
}
.step-desc {
  font-size: 14px;
  color: var(--text-color-text-tertiary);
  line-height: 1.5;
  font-weight: 400;
}
@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border-color-border-soft);
  border: 1px solid var(--border-color-border-soft);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 60px;
}
.feature-card {
  background: var(--surface-color-surface-main);
  padding: 36px 32px;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--surface-color-surface-secondary); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--background-other-color-bg-brand-overlay);
  border: 1px solid var(--border-color-border-brand-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--graphic-brand-color-icon-brand);
}
.feature-name {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-color-text);
  margin-bottom: 10px;
  line-height: 1.2;
}
.feature-desc {
  font-size: 14px;
  color: var(--text-color-text-tertiary);
  line-height: 1.6;
  font-weight: 400;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 16px;
}
.section-title-row .platform-badges {
  margin-bottom: 0;
}
.platform-badges {
  display: flex; gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.platform-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border-color-border);
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  color: var(--text-color-text-secondary);
}
.platform-badge svg {
  color: var(--text-color-text-tertiary);
  flex-shrink: 0;
}

/* MODULES */
.modules-section {
  position: relative;
  z-index: 2;
  padding: 280px 40px 100px;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
}
.modules-rows {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.modules-row {
  display: flex;
  gap: 20px;
}
.module-card {
  border: 1px solid var(--border-color-border);
  border-radius: 20px;
  height: 470px;
  flex: 1;
  min-width: 0;
}
.module-card--wide {
  flex: none;
  width: 61%;
}
.module-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 19px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.module-card--wide .module-card-inner {
  background: linear-gradient(to bottom, var(--surface-color-surface-secondary), var(--surface-color-surface-base));
}
.module-card-ui {
  display: block;
  position: absolute;
  top: 20px;
  left: 20px;
  pointer-events: none;
}
.module-card-ui img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.module-card--wide .module-card-ui {
  width: calc(100% - 40px);
  top: 50%;
  transform: translateY(calc(-50% + 17px));
  aspect-ratio: 740 / 463;
}
.module-card-ui--post {
  width: 465px;
  height: 405px;
}
.module-card-ui--post img {
  border-radius: 0;
}
.module-card-ui--video {
  width: 608px;
  aspect-ratio: 8 / 5;
}
.module-card-ui--paid {
  width: 547px;
  height: 352px;
}
.module-card-ui--paid img {
  border-radius: 0;
}
.module-card-ui--chats {
  width: 646px;
  height: 404px;
}
.module-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(to bottom, transparent, var(--surface-color-surface-base) 83%);
  pointer-events: none;
}
.module-card:has(.module-card-ui--post) .module-card-overlay { height: 360px; }
.module-card:has(.module-card-ui--video) .module-card-overlay { height: 360px; }
.module-card:has(.module-card-ui--paid) .module-card-overlay { height: 340px; }
.module-card:has(.module-card-ui--chats) .module-card-overlay { height: 400px; }
.module-card--podcast .module-card-inner,
.module-card--feed .module-card-inner {
  background: linear-gradient(to bottom, var(--surface-color-surface-secondary), var(--surface-color-surface-base));
}
.module-card-ui--podcast {
  width: 640px;
  height: 400px;
  border-radius: 12px;
}
.module-card-ui--feed {
  width: 633px;
  height: 396px;
  border-radius: 12px;
}
.module-card--podcast .module-card-overlay,
.module-card:has(.module-card-ui--feed) .module-card-overlay { height: 400px; }
.module-card-text {
  position: relative;
  z-index: 1;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.module-card-title {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color-text);
  line-height: 1.4;
  letter-spacing: 0.2px;
}
.module-card-desc {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-color-text-secondary);
  line-height: 1.4;
  letter-spacing: 0.15px;
}

/* MANIFESTO */
.manifesto {
  padding: 0 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.manifesto-card {
  position: relative;
  overflow: hidden;
  background: var(--surface-color-surface-main);
  border: 1px solid var(--border-color-border-soft);
  border-radius: 20px;
  padding: 60px;
}
.manifesto-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 50% 70% at 80% 50%, var(--background-other-color-bg-brand-overlay) 0%, transparent 60%);
}
.manifesto-inner {
  position: relative; z-index: 1;
}
.manifesto-heading {
  font-family: var(--heading);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 600;
  max-width: 820px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-color-text);
  margin-bottom: 0;
}
.manifesto-heading strong {
  font-weight: 600;
  color: var(--text-color-text-brand);
}
.manifesto-points {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-color-border-soft);
  border-radius: 16px;
}
.manifesto-point {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--border-color-border-soft);
  border-right: 1px solid var(--border-color-border-soft);
}
.manifesto-point:nth-child(2n) { border-right: none; }
.manifesto-point:nth-child(n+3) { border-bottom: none; }
.point-num {
  font-family: var(--sans); font-size: 13px;
  color: var(--text-color-text-brand); font-weight: 600;
  min-width: 20px; margin-top: 2px;
  letter-spacing: 0.02em;
}
.point-text {
  font-size: 15px; color: var(--text-color-text-secondary);
  line-height: 1.55; font-weight: 400;
}
.point-text strong { color: var(--text-color-text); font-weight: 500; }

/* ALGORITHM */
.algo-section {
  padding: 100px 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.algo-visual {
  margin-top: 60px;
  border: 1px solid var(--border-color-border);
  border-radius: 20px;
  overflow: hidden;
}
.algo-body {
  display: grid;
  grid-template-columns: 1fr 60px 180px 60px 1fr;
  align-items: center;
}
.algo-party {
  padding: 40px 32px;
  align-self: stretch;
  display: flex; flex-direction: column; justify-content: center;
}
.algo-party-name {
  font-family: var(--sans); font-size: 20px; font-weight: 600;
  color: var(--text-color-text); margin-bottom: 16px;
}
.algo-party-items {
  display: flex; flex-direction: column; gap: 10px;
}
.algo-section .section-body {
  font-size: 18px;
  margin-top: 16px;
}
.algo-item {
  font-size: 15px; color: var(--text-color-text-tertiary);
  display: flex; align-items: center; gap: 8px;
  line-height: 1.5;
}
.algo-item-arrow {
  flex-shrink: 0;
  width: 12px; height: 12px;
  color: var(--text-color-text-brand);
}
.algo-dash {
  width: 100%; height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--text-color-text-tertiary) 0px,
    var(--text-color-text-tertiary) 4px,
    transparent 4px,
    transparent 9px
  );
  opacity: 0.35;
}
.algo-center {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 0; text-align: center;
}
.algo-center-glow {
  position: absolute;
  width: 200px; height: 200px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(95, 128, 245, 0.15) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.algo-center-icon {
  position: relative;
  width: 64px; height: 64px;
  margin-bottom: 16px;
}
.algo-center-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.algo-center-label {
  position: relative;
  font-family: var(--sans); font-size: 17px;
  font-weight: 600; color: var(--text-color-text); line-height: 1.3;
}

/* MONETIZATION */
.monetization {
  padding: 100px 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.monetization-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.monetization-card {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--border-color-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.monetization-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--background-brand-color-bg-brand), transparent);
  opacity: 0.5;
}
.monetization-card::after {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 120px;
  background: radial-gradient(ellipse, var(--background-brand-color-bg-brand) 0%, transparent 70%);
  opacity: 0.14;
  pointer-events: none;
}
.monetization-num {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-color-text-tertiary);
  letter-spacing: 0.04em;
}
.monetization-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.monetization-title {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color-text);
  line-height: 1.3;
  letter-spacing: 0.2px;
}
.monetization-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-color-text-secondary);
  line-height: 1.5;
}

/* FORM */
.form-section {
  position: relative;
}
.form-section-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}
.form-section-inner {
  padding: 120px 40px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.form-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.form-glow--1 {
  width: 600px; height: 600px;
  top: 0%; left: 0%;
  background: color-mix(in srgb, var(--background-brand-color-bg-brand) 16%, transparent);
  animation: formOrb1 20s ease-in-out infinite;
}
.form-glow--2 {
  width: 500px; height: 500px;
  top: 20%; right: 5%;
  background: color-mix(in srgb, #8b5cf6 10%, transparent);
  animation: formOrb2 25s ease-in-out infinite;
}
.form-glow--3 {
  width: 450px; height: 450px;
  bottom: 0%; left: 30%;
  background: color-mix(in srgb, var(--background-brand-color-bg-brand) 10%, transparent);
  animation: formOrb3 22s ease-in-out infinite;
}
.form-glow--4 {
  width: 350px; height: 350px;
  top: 40%; left: 35%;
  background: color-mix(in srgb, var(--background-brand-color-bg-brand) 12%, transparent);
  animation: formOrb4 16s ease-in-out infinite;
}
@keyframes formOrb1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  25% { transform: translate(200px, 80px) scale(1.1); opacity: 0.9; }
  50% { transform: translate(100px, 200px) scale(0.9); opacity: 0.5; }
  75% { transform: translate(-100px, 120px) scale(1.15); opacity: 0.8; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
}
@keyframes formOrb2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  25% { transform: translate(-180px, 100px) scale(1.2); opacity: 0.7; }
  50% { transform: translate(-100px, -60px) scale(0.85); opacity: 0.5; }
  75% { transform: translate(80px, 150px) scale(1.1); opacity: 0.8; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
}
@keyframes formOrb3 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  25% { transform: translate(150px, -100px) scale(1.15); opacity: 0.7; }
  50% { transform: translate(-120px, -50px) scale(1.05); opacity: 0.6; }
  75% { transform: translate(-50px, 80px) scale(1.2); opacity: 0.8; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
}
@keyframes formOrb4 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  25% { transform: translate(-100px, -80px) scale(1.3); opacity: 0.7; }
  50% { transform: translate(120px, 60px) scale(0.9); opacity: 0.5; }
  75% { transform: translate(60px, -120px) scale(1.1); opacity: 0.6; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
}
.form-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.form-info {
  position: relative;
}
.form-title {
  font-family: var(--heading);
  font-size: 54px;
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.form-sub {
  font-size: 16px; color: var(--text-color-text-secondary);
  font-weight: 400;
  line-height: 1.6;
}
.form-perks {
  margin-top: 32px;
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--border-color-border-soft);
  border-radius: 16px;
  overflow: hidden;
}
.form-perk {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--text-color-text-secondary);
  line-height: 1.4;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color-border-soft);
}
.form-perk:last-child { border-bottom: none; }
.form-perk-icon {
  flex-shrink: 0;
  color: var(--text-color-text-brand);
}
.form-note {
  margin-top: 20px;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 16px 20px;
  background: color-mix(in srgb, var(--background-brand-color-bg-brand) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--background-brand-color-bg-brand) 15%, transparent);
  border-radius: 12px;
  font-size: 13px; color: var(--text-color-text-tertiary);
  line-height: 1.5;
}
.form-note-icon {
  flex-shrink: 0;
  width: 16px; height: 16px;
  color: var(--text-color-text-brand);
  margin-top: 1px;
}
.form-box {
  display: flex;
  flex-direction: column;
  background: var(--surface-color-surface-main);
  border: 1px solid var(--border-color-border-soft);
  border-radius: 20px;
  padding: 36px 32px;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-row .form-group { margin-bottom: 0; }
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px; font-weight: 600;
  color: var(--text-color-text-tertiary); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 8px;
}
.form-input {
  width: 100%; padding: 14px 18px;
  background: var(--surface-color-surface-secondary);
  border: 1px solid var(--border-color-border-soft);
  border-radius: 10px;
  font-family: var(--sans); font-size: 15px;
  color: var(--text-color-text);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-input::placeholder { color: var(--text-color-text-tertiary); }
.form-input:hover { border-color: var(--border-color-border-soft-hover); }
.form-input:focus { border-color: var(--border-color-border-brand); }
.form-select {
  width: 100%; padding: 14px 18px;
  background: var(--surface-color-surface-secondary);
  border: 1px solid var(--border-color-border-soft);
  border-radius: 10px;
  font-family: var(--sans); font-size: 15px;
  color: var(--text-color-text);
  outline: none; cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999BA3' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: border-color 0.2s;
}
.form-select:hover { border-color: var(--border-color-border-soft-hover); }
.form-select:focus { border-color: var(--border-color-border-brand); }
.form-select option { background: var(--surface-color-surface-secondary); }
.form-textarea {
  width: 100%; padding: 14px 18px;
  background: var(--surface-color-surface-secondary);
  border: 1px solid var(--border-color-border-soft);
  border-radius: 10px;
  font-family: var(--sans); font-size: 15px;
  color: var(--text-color-text); line-height: 1.6;
  outline: none; resize: vertical; min-height: 80px;
  transition: border-color 0.2s;
}
.form-textarea::placeholder { color: var(--text-color-text-tertiary); }
.form-textarea:hover { border-color: var(--border-color-border-soft-hover); }
.form-textarea:focus { border-color: var(--border-color-border-brand); }
.form-submit {
  width: 100%; padding: 16px;
  background: var(--background-brand-color-bg-brand);
  color: var(--text-color-text);
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  border: none; border-radius: 16px; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-top: 8px;
}
.form-submit:hover { background: var(--background-brand-color-bg-brand-hover); transform: translateY(-1px); }
.form-privacy {
  font-size: 12px; color: var(--text-color-text-tertiary);
  text-align: center; margin-top: 16px; line-height: 1.5;
}
.success-msg {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 32px;
  flex: 1;
}
.success-icon {
  font-size: 48px; margin-bottom: 16px;
  color: var(--text-color-text-brand);
}
.success-title {
  font-family: var(--sans); font-size: 28px; font-weight: 600;
  color: var(--text-color-text); margin-bottom: 12px;
}
.success-sub { font-size: 15px; color: var(--text-color-text-secondary); line-height: 1.6; }

/* SCROLL REVEAL */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* HEADING SIZES */
@media (max-width: 1023px) {
  .hero-title, .section-title, .form-title { font-size: 42px; }
}
@media (max-width: 639px) {
  .hero-title, .section-title, .form-title { font-size: 32px; }
}
@media (max-width: 389px) {
  .hero-title, .section-title, .form-title { font-size: 28px; }
}

/* TABLET */
@media (max-width: 1024px) and (min-width: 769px) {
  .modules-row { gap: 20px; }
  .module-card { height: 400px; }
  .module-card--wide { width: 58%; }
  .module-card-ui--video { width: 520px; }
  .module-card-ui--chats { width: 560px; }
  .module-card-ui--feed { width: calc(100% - 32px); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 16px 16px; }
  .hero { padding: 140px 16px 60px; }
  .hero-sub { font-size: 16px; }
  .section { padding: 72px 16px; }
  .manifesto { padding: 0 16px; }
  .manifesto-card { padding: 36px 24px; }
  .manifesto-points { grid-template-columns: 1fr; }
  .manifesto-point { flex-direction: column; gap: 8px; }
  .manifesto-point:nth-child(2n) { border-right: none; }
  .manifesto-point:nth-child(n+1) { border-bottom: 1px solid var(--border-color-border-soft); }
  .manifesto-point:last-child { border-bottom: none; }
  .section-title-row { flex-direction: column; align-items: flex-start; gap: 32px; }
  .section-title-row .platform-badges { margin-bottom: 0; }
  .modules-rows { margin-top: 40px; }
  .algo-section { padding: 72px 16px; }
  .algo-visual { margin-top: 32px; }
  .monetization { padding: 36px 16px; }
  .monetization-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .monetization-card { padding: 24px 20px; gap: 20px; }
  .monetization-num { font-size: 13px; }
  .form-section-inner { padding: 80px 16px; }
  .form-inner { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .form-info { position: static; }
  .algo-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
  }
  .algo-party { padding: 28px 24px; }
  .algo-center {
    padding: 20px 24px;
    flex-direction: row;
    gap: 16px;
    justify-content: flex-start;
    text-align: left;
  }
  .algo-center-icon { margin-bottom: 0; width: 48px; height: 48px; }
  .algo-center-label { font-size: 20px; }
  .algo-dash {
    width: 1px; height: 32px;
    margin-left: 48px;
    background: repeating-linear-gradient(
      to bottom,
      var(--text-color-text-tertiary) 0px,
      var(--text-color-text-tertiary) 4px,
      transparent 4px,
      transparent 9px
    );
  }
  .form-box { padding: 24px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .modules-section { padding: 140px 16px 60px; }
  .modules-row,
  .modules-row--3 { flex-direction: column; gap: 20px; }
  .module-card {
    flex: none;
    width: 100%;
    height: 420px;
  }
  .module-card-inner { padding: 16px; }
  .module-card-ui { left: 16px; top: 16px; }

  /* Каналы — h:310, img:358×224 at 16,16, overlay:300 from y:10 */
  .module-card--wide { height: 310px; }
  .module-card--wide .module-card-ui {
    top: 16px; left: 16px;
    width: 358px; height: 224px;
    transform: none;
  }
  .module-card--wide .module-card-ui img { border-radius: 8px; }
  .module-card--wide .module-card-overlay { height: 300px; }

  /* Посты и статьи — h:430, img:465×405 at 16,16, overlay:360 from y:70 */
  .module-card:has(.module-card-ui--post) { height: 430px; }
  .module-card-ui--post { width: 465px; height: 405px; }
  .module-card:has(.module-card-ui--post) .module-card-overlay { height: 360px; }

  /* Видео — h:440, img:608×380 at 16,16, overlay:360 from y:80 */
  .module-card:has(.module-card-ui--video) { height: 440px; }
  .module-card-ui--video { width: 608px; height: 380px; }
  .module-card:has(.module-card-ui--video) .module-card-overlay { height: 360px; }

  /* Платный контент — h:420, img:547×352 at 16,16, overlay:390 from y:30 */
  .module-card:has(.module-card-ui--paid) { height: 420px; }
  .module-card-ui--paid { width: 547px; height: 352px; }
  .module-card:has(.module-card-ui--paid) .module-card-overlay { height: 390px; }

  /* Групповые чаты — h:420, img:646×404 at 16,16, overlay:400 from y:20 */
  .module-card:has(.module-card-ui--chats) { height: 420px; }
  .module-card-ui--chats { width: 646px; height: 404px; }
  .module-card:has(.module-card-ui--chats) .module-card-overlay { height: 400px; }

  /* Подкасты — h:380, img:446×279 at 20,20, overlay:400 from y:-20 */
  .module-card--podcast { height: 380px; }
  .module-card--podcast .module-card-inner { padding: 16px; }
  .module-card-ui--podcast { top: 20px; left: 20px; width: 446px; height: 279px; border-radius: 8px; }
  .module-card-ui--podcast img { border-radius: 8px; }
  .module-card--podcast .module-card-overlay { height: 400px; }

  /* Лента — h:380, img:448×280 at 16,16, overlay:400 from y:-20 */
  .module-card--feed { height: 380px; }
  .module-card--feed .module-card-inner { padding: 16px; }
  .module-card-ui--feed { top: 16px; left: 16px; width: 448px; height: 280px; border-radius: 8px; }
  .module-card-ui--feed img { border-radius: 8px; }
  .module-card:has(.module-card-ui--feed) .module-card-overlay { height: 400px; }

  .module-card-ui--post img,
  .module-card-ui--video img,
  .module-card-ui--paid img,
  .module-card-ui--chats img { width: 100%; height: 100%; object-fit: cover; }
}

/* FOOTER */
.footer {
  padding: 20px 16px;
  text-align: center;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-color-text-tertiary);
}
