/* RoundGram — base layout, theme, main landing (only .page-round) */

body.page-product main {
  padding-bottom: 3rem;
}

.product-hero {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 2.5rem;
}

.product-hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 880px) {
  .product-hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.product-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.product-hero .hero-lead {
  max-width: 28rem;
}

.eyebrow--round {
  color: var(--cyan);
}

.product-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.features {
  padding: 1rem 0 3rem;
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

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

.cta-band {
  margin-top: 1rem;
  padding: 1.75rem clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-band h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.cta-band p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.btn-telegram {
  background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
  box-shadow: 0 8px 28px rgba(34, 158, 217, 0.35);
}

.page-round .site-footer a:hover {
  color: var(--text);
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.section-head {
  margin-bottom: 2rem;
}

.section-head--compact {
  margin-bottom: 1.25rem;
}

/* ——— Theme ——— */

.page-round {
  --round-accent: #3dd6ff;
  --round-accent-dim: rgba(61, 214, 255, 0.14);
  --round-blue: #1e9bff;
}

.page-round .bg-glow {
  background:
    radial-gradient(ellipse 85% 60% at 70% -10%, rgba(30, 155, 255, 0.28), transparent 58%),
    radial-gradient(ellipse 50% 50% at 10% 30%, rgba(61, 214, 255, 0.12), transparent 55%);
}

.page-round .gradient-text {
  background: linear-gradient(
    120deg,
    #7dd3fc 0%,
    #3dd6ff 25%,
    #fff 50%,
    #3dd6ff 75%,
    #1e9bff 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: roundgram-shimmer 6s ease-in-out infinite;
}

.page-round .site-header--product .brand:not(.brand-nermas) > img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.page-round .hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.page-round .stat-chip {
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--round-accent-dim);
}

.page-round .bg-glow--animated {
  animation: roundgram-glow-drift 14s ease-in-out infinite;
}

.page-round .float-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.page-round .float-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(61, 214, 255, 0.45);
  box-shadow: 0 0 20px rgba(61, 214, 255, 0.6);
  animation: roundgram-particle 18s linear infinite;
}

.page-round .float-particles span:nth-child(1) {
  left: 12%;
  top: 22%;
  animation-duration: 22s;
  animation-delay: -4s;
}

.page-round .float-particles span:nth-child(2) {
  left: 78%;
  top: 18%;
  width: 4px;
  height: 4px;
  animation-duration: 16s;
  animation-delay: -9s;
}

.page-round .float-particles span:nth-child(3) {
  left: 65%;
  top: 72%;
  animation-duration: 20s;
  animation-delay: -2s;
}

.page-round .float-particles span:nth-child(4) {
  left: 28%;
  top: 68%;
  width: 5px;
  height: 5px;
  opacity: 0.7;
  animation-duration: 24s;
  animation-delay: -12s;
}

.page-round .float-particles span:nth-child(5) {
  left: 48%;
  top: 40%;
  width: 3px;
  height: 3px;
  animation-duration: 14s;
  animation-delay: -6s;
}

.hero-copy--animated > * {
  animation: roundgram-fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy--animated .eyebrow {
  animation-delay: 0.05s;
}

.hero-copy--animated h1 {
  animation-delay: 0.12s;
}

.hero-copy--animated .hero-lead {
  animation-delay: 0.2s;
}

.hero-copy--animated .hero-actions {
  animation-delay: 0.28s;
}

.hero-copy--animated .hero-stats {
  animation-delay: 0.36s;
}

.hero-circle-stage {
  position: relative;
  width: min(100%, 420px);
  margin-inline: auto;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hero-circle-stage .product-visual {
  position: relative;
  z-index: 2;
}

.pulse-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(61, 214, 255, 0.35);
  z-index: 0;
  pointer-events: none;
}

.pulse-ring--1 {
  animation: roundgram-ring-pulse 4.5s ease-out infinite;
}

.pulse-ring--2 {
  inset: 0;
  border-color: rgba(30, 155, 255, 0.2);
  animation: roundgram-ring-pulse 4.5s ease-out 1.4s infinite;
}

.morph-demo {
  position: absolute;
  top: -0.5rem;
  right: -0.25rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.morph-square {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(135deg, #64748b, #94a3b8);
  animation: roundgram-morph-square 3s ease-in-out infinite;
}

.morph-arrow {
  opacity: 0.6;
  animation: roundgram-arrow-pulse 3s ease-in-out infinite;
}

.morph-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--round-blue), var(--round-accent));
  box-shadow: 0 0 12px rgba(61, 214, 255, 0.5);
  animation: roundgram-morph-circle 3s ease-in-out infinite;
}

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

.page-round .product-visual {
  aspect-ratio: 1;
  max-width: 380px;
  width: 88%;
  margin-inline: auto;
  border-radius: 50%;
  border: 2px solid rgba(61, 214, 255, 0.25);
  background: radial-gradient(circle at 50% 40%, #0c1a2e 0%, #060810 70%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 80px rgba(30, 155, 255, 0.25),
    0 0 120px rgba(61, 214, 255, 0.08);
}

.page-round .product-visual::before {
  display: none;
}

.page-round .product-visual-inner {
  inset: 0;
  padding: 6%;
}

.page-round .product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.page-round .steps {
  padding: 0.5rem 0 3rem;
}

.page-round .steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .page-round .steps-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.page-round .step-card {
  position: relative;
  padding: 1.35rem 1.15rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.page-round .step-card::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--round-blue), var(--round-accent));
  color: #041018;
}

.page-round .step-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 600;
}

.page-round .step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.page-round .feature-card {
  border-color: rgba(61, 214, 255, 0.1);
}

.page-round .feature-icon {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.page-round .specs {
  margin-top: 1.25rem;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(61, 214, 255, 0.2);
  background: rgba(30, 155, 255, 0.05);
}

.page-round .specs h3 {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.page-round .specs ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.page-round .specs li + li {
  margin-top: 0.35rem;
}

.page-round .links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.page-round .link-quiet {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--round-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-round .link-quiet:hover {
  color: #fff;
}

.page-round .cta-band {
  background: linear-gradient(135deg, rgba(30, 155, 255, 0.18), rgba(61, 214, 255, 0.08));
  border-color: rgba(61, 214, 255, 0.15);
}

.page-round .faq {
  padding-bottom: 1rem;
}

.page-round .faq-list {
  display: grid;
  gap: 0.75rem;
}

.page-round .faq-item {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.page-round .faq-item h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.page-round .faq-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.page-round .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

.page-round .step-card.reveal.is-visible:hover {
  border-color: rgba(61, 214, 255, 0.25);
  transform: translateY(-3px);
  transition:
    opacity 0.7s,
    transform 0.25s ease,
    border-color 0.25s ease;
}

.page-round .feature-icon {
  animation: roundgram-icon-bob 3.5s ease-in-out infinite;
}

.page-round .feature-card:nth-child(2) .feature-icon {
  animation-delay: 0.4s;
}

.page-round .feature-card:nth-child(3) .feature-icon {
  animation-delay: 0.8s;
}

@keyframes roundgram-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes roundgram-glow-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(2%, 3%) scale(1.04);
    opacity: 0.92;
  }
}

@keyframes roundgram-particle {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  50% {
    transform: translate(40px, -60px) scale(1.2);
    opacity: 0.5;
  }
  90% {
    opacity: 0.7;
  }
}

@keyframes roundgram-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes roundgram-ring-pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.12);
    opacity: 0;
  }
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

@keyframes roundgram-morph-square {
  0%,
  45%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  55%,
  90% {
    opacity: 0.35;
    transform: scale(0.85);
  }
}

@keyframes roundgram-morph-circle {
  0%,
  45%,
  100% {
    opacity: 0.4;
    transform: scale(0.85);
  }
  55%,
  90% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes roundgram-arrow-pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

@keyframes roundgram-icon-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-round .gradient-text,
  .page-round .bg-glow--animated,
  .page-round .float-particles span,
  .page-round .product-visual--float,
  .page-round .pulse-ring,
  .page-round .morph-square,
  .page-round .morph-circle,
  .page-round .morph-arrow,
  .page-round .feature-icon,
  .hero-copy--animated > * {
    animation: none !important;
  }

  .page-round .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}