/* ADONE — premium polish layer */

:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.55s;
  --header-h: 72px;
  --gradient-brand: linear-gradient(135deg, #4285f4 0%, #6366f1 50%, #1877f2 100%);
  --gradient-mesh:
    radial-gradient(ellipse 80% 50% at 12% -8%, rgba(66, 133, 244, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 88% 5%, rgba(24, 119, 242, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(99, 102, 241, 0.08), transparent 50%);
  --glow-google: 0 20px 50px -12px rgba(66, 133, 244, 0.35);
  --glow-meta: 0 20px 50px -12px rgba(24, 119, 242, 0.35);
}

html {
  scroll-padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.site {
  font-family: var(--font);
  background: var(--bg);
  background-image: var(--gradient-mesh);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Header */
header {
  transition:
    background 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
}

header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 24px rgba(66, 133, 244, 0.1);
  border-bottom-color: rgba(99, 102, 241, 0.12);
}

.header-cta {
  background: var(--gradient-brand) !important;
  background-size: 200% 200%;
  border: none;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    background-position 0.4s ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-google);
  background-position: 100% 50%;
  filter: none;
}

nav a {
  position: relative;
  transition: color 0.2s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out);
}

nav a:hover::after { width: 100%; }

.menu-btn {
  transition: transform 0.2s var(--ease-out), background 0.2s ease;
}

.menu-btn:active { transform: scale(0.96); }

.mobile-nav {
  animation: slideDown 0.35s var(--ease-out);
}

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

/* Hero */
.hero-split {
  position: relative;
  overflow: hidden;
}

.hero-pane {
  position: relative;
  transition: background 0.5s ease;
}

.hero-pane.google {
  background: linear-gradient(165deg, rgba(66, 133, 244, 0.1) 0%, var(--card) 55%);
}

.hero-pane.meta {
  background: linear-gradient(165deg, rgba(24, 119, 242, 0.1) 0%, var(--card) 55%);
}

.hero-pane::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite;
}

.hero-pane.google::before {
  top: -80px;
  right: -60px;
  background: rgba(66, 133, 244, 0.38);
}

.hero-pane.meta::before {
  bottom: -60px;
  left: -40px;
  background: rgba(24, 119, 242, 0.34);
  animation-delay: -4s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -16px) scale(1.05); }
}

.hero-pane > * { position: relative; z-index: 1; }

.hero-pane h1,
.hero-pane h2.hero-title {
  font-weight: 800;
  letter-spacing: -0.035em;
  font-size: clamp(1.65rem, 4.5vw, 2.15rem);
}

.badge {
  animation: fadeIn 0.8s var(--ease-out) both;
}

.hero-trust-list li {
  transition: transform 0.25s var(--ease-out), color 0.2s ease;
}

.hero-trust-list li:hover {
  transform: translateX(4px);
  color: var(--text);
}

.tab-btn {
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

@media (max-width: 899px) {
  .hero-pane.meta-pane.show {
    animation: fadePane 0.45s var(--ease-out);
  }
}

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

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

/* Cards */
.card {
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(66, 133, 244, 0.15), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

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

.google-card:hover {
  box-shadow: var(--glow-google);
  border-color: rgba(66, 133, 244, 0.4);
}
.meta-card:hover {
  box-shadow: var(--glow-meta);
  border-color: rgba(24, 119, 242, 0.4);
}


.card:hover .card-icon svg {
  transform: scale(1.06);
  transition: transform 0.35s var(--ease-spring);
}

.card-icon svg {
  transition: transform 0.35s var(--ease-spring);
}

.cards {
  transition: opacity 0.3s ease;
}

.cards.is-switching {
  opacity: 0.6;
}

.features.is-visible .card {
  animation: cardIn 0.55s var(--ease-out) both;
}

.features.is-visible .card:nth-child(1) { animation-delay: 0.05s; }
.features.is-visible .card:nth-child(2) { animation-delay: 0.1s; }
.features.is-visible .card:nth-child(3) { animation-delay: 0.15s; }
.features.is-visible .card:nth-child(4) { animation-delay: 0.2s; }
.features.is-visible .card:nth-child(5) { animation-delay: 0.25s; }
.features.is-visible .card:nth-child(6) { animation-delay: 0.3s; }

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

.channel-tabs button {
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.channel-tabs button:hover {
  transform: translateY(-2px);
}

.channel-tabs button.on-g,
.channel-tabs button.on-m {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.features {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.features h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Form */
.form-card {
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.form-card:focus-within {
  box-shadow: 0 24px 48px rgba(66, 133, 244, 0.12);
}

.form-aside {
  background: var(--bg-alt);
}

input, select {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s var(--ease-out);
}

input:focus, select:focus {
  transform: translateY(-1px);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--gradient-brand) !important;
  background-size: 200% auto !important;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s ease,
    background-position 0.4s ease !important;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.4);
  background-position: right center !important;
  filter: none;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-primary:active {
  transform: translateY(0);
}

/* form messengers → messenger-buttons.css */

/* FAQ accordion */
.faq-item {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item.open {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border-color: rgba(66, 133, 244, 0.28);
  background: var(--card);
}

.faq-q span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-alt);
  font-size: 1.1rem;
  transition: transform 0.35s var(--ease-spring), background 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-q span {
  transform: rotate(45deg);
  background: rgba(66, 133, 244, 0.12);
  color: var(--google);
}

.faq-q span::before {
  content: "+";
}

.faq-a {
  display: block !important;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  transition:
    max-height 0.45s var(--ease-out),
    opacity 0.35s ease,
    padding 0.45s var(--ease-out);
}

.faq-item.open .faq-a {
  max-height: 280px;
  opacity: 1;
  padding-bottom: 18px !important;
}

/* Contact */
.contact-connect {
  background: transparent;
  border-radius: 0;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.contact-cta {
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s ease !important;
}

.contact-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.15);
}

.contact-info-card {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

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

/* Footer */
footer {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
}

/* Trust bar */
.trust-bar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}

.trust-item svg {
  color: var(--success) !important;
}

/* Stats — одна линия метрик, без «разноцветных плиток» */
.stats-strip {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.stats-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  text-align: center;
}

.stat-item {
  flex: 1 1 140px;
  max-width: 220px;
  padding: 4px 20px;
  background: none;
  border: none;
  border-radius: 0;
}

.stat-item + .stat-item {
  border-left: 1px solid var(--border);
}

.stat-item strong {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.stat-item strong.stat-highlight {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 500;
  line-height: 1.35;
}

@media (max-width: 639px) {
  .stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    max-width: 100%;
  }

  .stat-item {
    flex: none;
    max-width: none;
    padding: 0 8px;
    border-left: none !important;
  }
}

/* Mobile polish */
@media (max-width: 767px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .hero-pane {
    padding: 32px 16px 40px;
  }

  .hero-pane h1,
  .hero-pane h2.hero-title {
    font-size: 1.55rem;
  }

  .features,
  .form-section,
  .faq {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .card {
    padding: 20px;
  }

  .form-card,
  .form-aside {
    padding: 22px;
  }

  .contact-tabs {
    display: flex;
    width: 100%;
    max-width: 340px;
  }

  .contact-tabs button {
    flex: 1;
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  .contact-cta {
    width: 100%;
    max-width: 340px;
    min-width: unset;
  }

  .channel-tabs {
    width: 100%;
    padding: 0 4px;
  }

  .channel-tabs button {
    flex: 1;
    justify-content: center;
  }

  .faq-q {
    font-size: 0.95rem;
    padding: 16px;
  }

  .footer-top {
    text-align: center;
  }

  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 380px) {
  .brand-tag { display: none; }
  .trust-bar-inner { gap: 12px; }
  .trust-item { font-size: 0.72rem; }
}

/* Safe area (notched phones) */
@supports (padding: max(0px)) {
  body.site {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }

  footer {
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }
}

/* Floating contact FAB */
.fab-contact {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.fab-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.95);
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.35s var(--ease-spring),
    visibility 0.3s;
  pointer-events: none;
}

.fab-contact.is-open .fab-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fab-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s ease;
}

.fab-action:hover {
  transform: translateX(-4px);
  text-decoration: none !important;
  color: var(--text);
}

.fab-action svg {
  flex-shrink: 0;
  padding: 6px;
  border-radius: 10px;
  box-sizing: content-box;
}

/* fab messenger colors → messenger-buttons.css */

.fab-contact.is-open .fab-action:nth-child(1) {
  animation: fabItem 0.35s var(--ease-out) 0.05s both;
}
.fab-contact.is-open .fab-action:nth-child(2) {
  animation: fabItem 0.35s var(--ease-out) 0.1s both;
}
.fab-contact.is-open .fab-action:nth-child(3) {
  animation: fabItem 0.35s var(--ease-out) 0.15s both;
}

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

.fab-toggle {
  position: relative;
  z-index: 2;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: var(--gradient-brand);
  background-size: 200% auto;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45);
  transition:
    transform 0.35s var(--ease-spring),
    box-shadow 0.3s ease,
    background-position 0.4s ease;
}

.fab-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 36px rgba(66, 133, 244, 0.5);
  background-position: right center;
}

.fab-contact.is-open .fab-toggle {
  transform: rotate(0deg) scale(1.02);
  background: #0f172a;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
}

.fab-icon {
  position: absolute;
  transition:
    opacity 0.25s ease,
    transform 0.35s var(--ease-spring);
}

.fab-icon-chat {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.fab-icon-close {
  opacity: 0;
  transform: scale(0.6) rotate(-90deg);
}

.fab-contact.is-open .fab-icon-chat {
  opacity: 0;
  transform: scale(0.6) rotate(90deg);
}

.fab-contact.is-open .fab-icon-close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.fab-pulse {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-brand);
  opacity: 0.35;
  z-index: 0;
  animation: fabPulse 2.5s ease-out infinite;
  pointer-events: none;
}

.fab-contact.is-open .fab-pulse {
  animation: none;
  opacity: 0;
}

@keyframes fabPulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  70% {
    transform: scale(1.45);
    opacity: 0;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .fab-action span {
    font-size: 0.85rem;
  }
  .fab-toggle {
    width: 56px;
    height: 56px;
  }
  .fab-pulse {
    width: 56px;
    height: 56px;
  }
}
