/* Fori Hub core styles - mobile first, no framework dependency */
:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #f0f3f8;
  --text: #172033;
  --muted: #667085;
  --line: #e4e7ec;
  --brand: #4f46e5;
  --brand-strong: #3730a3;
  --brand-soft: #eef2ff;
  --success: #087e5b;
  --shadow: 0 14px 35px rgba(20, 27, 45, .07);
  --shadow-hover: 0 20px 48px rgba(20, 27, 45, .12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 13px;
  --container: 1180px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d111a;
  --surface: #151b27;
  --surface-soft: #1c2433;
  --text: #f4f6fb;
  --muted: #aab3c3;
  --line: #2a3446;
  --brand: #a5b4fc;
  --brand-strong: #c7d2fe;
  --brand-soft: #202743;
  --success: #61d6aa;
  --shadow: 0 16px 38px rgba(0, 0, 0, .24);
  --shadow-hover: 0 22px 54px rgba(0, 0, 0, .34);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 3px; }

.skip-link {
  position: fixed;
  inset: 12px 12px auto auto;
  z-index: 100;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.site-header {
  position: relative;
  z-index: 20;
  padding: 18px 0 0;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 7px 9px 7px 14px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 19px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow: 0 10px 30px rgba(20, 27, 45, .055);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.35px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--bg);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 26%, transparent);
  font-size: 19px;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(20, 27, 45, .05);
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.theme-toggle:hover { transform: translateY(-2px); border-color: var(--brand); }
.theme-icon { font-size: 19px; line-height: 1; }
.theme-svg { width: 20px; height: 20px; display: block; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: -86px;
  padding: 150px 0 66px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 24%, var(--line)), transparent);
}
.hero-backdrop,
.hero-grid,
.hero-glow {
  position: absolute;
  pointer-events: none;
}
.hero-backdrop { inset: 0; z-index: -2; overflow: hidden; }
.hero-grid {
  inset: 74px 0 0;
  opacity: .45;
  background-image:
    linear-gradient(color-mix(in srgb, var(--brand) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--brand) 7%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 72%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 72%, transparent);
  animation: grid-drift 18s linear infinite;
}
.hero-glow {
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(12px);
  opacity: .48;
  animation: glow-float 10s ease-in-out infinite alternate;
}
.hero-glow-one {
  inset: -13rem auto auto -10rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 22%, transparent), transparent 68%);
}
.hero-glow-two {
  inset: auto -12rem -15rem auto;
  background: radial-gradient(circle, color-mix(in srgb, #22c55e 13%, transparent), transparent 68%);
  animation-delay: -4s;
}
.hero-layout {
  display: grid;
  align-items: center;
  gap: 46px;
}
.hero-copy { text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 7px 13px;
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-soft) 80%, transparent);
  color: var(--brand-strong);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 10%, transparent);
  font-size: .82rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--success) 12%, transparent);
  animation: pulse-dot 2.2s ease-out infinite;
}
.hero h1, .product-hero h1 {
  margin: 0;
  font-size: clamp(2.15rem, 8vw, 4.55rem);
  line-height: 1.22;
  letter-spacing: -1.7px;
}
.hero-highlight {
  position: relative;
  display: inline-block;
  color: var(--brand-strong);
}
.hero-highlight::after {
  content: "";
  position: absolute;
  inset: auto 4% .04em;
  z-index: -1;
  height: .22em;
  border-radius: 99px;
  background: color-mix(in srgb, var(--brand) 20%, transparent);
  transform: rotate(-1.5deg);
}
.hero-text {
  max-width: 680px;
  margin: 19px auto 0;
  color: var(--muted);
  font-size: 1rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.button {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
.button:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow); }
.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--bg);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--brand) 24%, transparent);
}
.button.primary:hover { box-shadow: 0 16px 34px color-mix(in srgb, var(--brand) 31%, transparent); }
html[data-theme="dark"] .button.primary { color: #111827; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 16px;
  margin-top: 21px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}
.hero-points span { display: inline-flex; align-items: center; gap: 7px; }
.hero-points span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 70%, var(--success));
}
.hero-art {
  position: relative;
  width: min(78vw, 325px);
  aspect-ratio: 1;
  margin-inline: auto;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 16%, var(--surface)), transparent 70%);
  filter: blur(3px);
  animation: core-breathe 5s ease-in-out infinite;
}
.orbit {
  position: absolute;
  inset: 9%;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line));
  border-radius: 50%;
}
.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  inset: 17%;
  border: inherit;
  border-radius: inherit;
}
.orbit::after { inset: 34%; }
.orbit-outer { animation: orbit-spin 22s linear infinite; }
.orbit-inner {
  inset: 23%;
  border-style: dashed;
  opacity: .72;
  animation: orbit-spin 16s linear infinite reverse;
}
.hero-core {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
  border-radius: 29px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 96%, var(--brand-soft)), var(--surface-soft));
  box-shadow: 0 24px 55px color-mix(in srgb, var(--brand) 20%, transparent), inset 0 1px rgba(255, 255, 255, .5);
  color: var(--brand-strong);
  transform: translate(-50%, -50%) rotate(7deg);
}
.hero-core span { font-size: 2.85rem; font-weight: 900; transform: rotate(-7deg); }
.floating-chip {
  --chip-accent: var(--brand);
  --chip-tilt: 0deg;
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid color-mix(in srgb, var(--chip-accent) 22%, var(--line));
  border-radius: 999px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--surface) 94%, transparent),
    color-mix(in srgb, var(--chip-accent) 7%, var(--surface)));
  box-shadow:
    0 10px 24px rgba(20, 27, 45, .07),
    inset 0 1px 0 color-mix(in srgb, #fff 58%, transparent);
  color: var(--text);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: -.15px;
  white-space: nowrap;
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  transform: rotate(var(--chip-tilt));
  animation: chip-float 5.8s cubic-bezier(.45, 0, .25, 1) infinite;
}
.floating-chip::after {
  content: "";
  position: absolute;
  inset: 3px 9px auto;
  height: 1px;
  border-radius: 99px;
  background: color-mix(in srgb, #fff 68%, transparent);
  opacity: .7;
}
.floating-chip i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--chip-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--chip-accent) 11%, transparent);
}
.chip-one {
  --chip-tilt: -2deg;
  inset: 18% auto auto 19%;
  animation-delay: -1.1s;
}
.chip-two {
  --chip-accent: color-mix(in srgb, var(--brand) 72%, #0ea5e9);
  --chip-tilt: 1.5deg;
  inset: 43% 8% auto auto;
  animation-delay: -3.15s;
}
.chip-three {
  --chip-accent: var(--success);
  --chip-tilt: 2deg;
  inset: auto auto 18% 23%;
  animation-delay: -4.65s;
}
.orbit-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 5px 14px color-mix(in srgb, var(--brand) 34%, transparent);
}
.orbit-dot-one { inset: 17% 20% auto auto; animation: dot-float 4s ease-in-out infinite; }
.orbit-dot-two { inset: auto auto 21% 22%; background: var(--success); animation: dot-float 4s ease-in-out -2s infinite; }

@keyframes grid-drift { to { background-position: 48px 48px; } }
@keyframes glow-float { to { transform: translate3d(34px, 24px, 0) scale(1.08); } }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 12%, transparent); }
  50% { box-shadow: 0 0 0 8px transparent; }
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes core-breathe { 50% { transform: scale(1.08); opacity: .74; } }
@keyframes chip-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--chip-tilt)); }
  48% { transform: translate3d(0, -5px, 0) rotate(calc(var(--chip-tilt) + .7deg)); }
  72% { transform: translate3d(1px, -2px, 0) rotate(calc(var(--chip-tilt) - .35deg)); }
}
@keyframes dot-float { 50% { transform: translateY(-6px) scale(1.08); } }

.section { padding: 28px 0; }
.section-heading { margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: clamp(1.35rem, 4vw, 2rem); letter-spacing: -.55px; }
.section-heading p { margin: 6px 0 0; color: var(--muted); }

.app-grid, .download-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.app-card, .download-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(20, 27, 45, .035);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.app-card:hover, .download-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow-hover); }
.app-card-link {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 16px;
  text-decoration: none;
}
.app-icon, .product-icon, .platform-icon {
  object-fit: contain;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}
.app-icon { width: 72px; height: 72px; padding: 8px; border-radius: 17px; }
.app-content { min-width: 0; }
.app-content h3 { margin: 0; font-size: 1.05rem; line-height: 1.5; letter-spacing: -.25px; }
.app-content p { margin: 6px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.75; }
.card-arrow { color: var(--brand); font-size: 1.35rem; transition: transform .18s ease; }
.app-card:hover .card-arrow { transform: translateX(-4px); }

.product-main { padding-bottom: 44px; }
.breadcrumb { padding: 26px 0 0; color: var(--muted); font-size: .88rem; }
.breadcrumb a { color: var(--brand-strong); text-decoration: none; }
.product-hero {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 42px 0 28px;
  text-align: center;
}
.product-icon { width: 112px; height: 112px; padding: 10px; border-radius: 27px; box-shadow: var(--shadow); }
.product-hero h1 { font-size: clamp(2rem, 8vw, 3.6rem); }
.product-summary { max-width: 740px; margin: 14px auto 0; color: var(--muted); font-size: 1rem; }
.content-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.content-panel h2 { margin: 0 0 8px; font-size: 1.35rem; }
.content-panel p { margin: 0; color: var(--muted); }

.download-section { padding-top: 28px; }
.download-card { display: flex; min-height: 126px; }
.download-link, .download-disabled {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  text-decoration: none;
}
.download-disabled { opacity: .68; cursor: not-allowed; }
.platform-icon { width: 66px; height: 66px; padding: 8px; border-radius: 16px; }
.download-copy h3 { margin: 0; font-size: 1rem; }
.download-copy p { margin: 4px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.7; }
.status { color: var(--brand); font-size: .8rem; font-weight: 800; white-space: nowrap; }
.status.soon { color: var(--muted); }

.site-footer { padding: 42px 0 28px; }
.footer-box {
  display: grid;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: .9rem;
}
.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text);
  box-shadow: 0 5px 14px rgba(20, 27, 45, .04);
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.social-icon {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  transition: transform .18s ease;
}
.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(20, 27, 45, .09);
}
.social-link:hover .social-icon { transform: scale(1.08); }
.social-link--instagram:hover { color: #d62976; border-color: color-mix(in srgb, #d62976 48%, var(--line)); background: color-mix(in srgb, #d62976 8%, var(--surface)); }
.social-link--youtube:hover { color: #ff0033; border-color: color-mix(in srgb, #ff0033 48%, var(--line)); background: color-mix(in srgb, #ff0033 8%, var(--surface)); }
.social-link--telegram:hover { color: #229ed9; border-color: color-mix(in srgb, #229ed9 48%, var(--line)); background: color-mix(in srgb, #229ed9 8%, var(--surface)); }
.social-link--email:hover { color: var(--success); border-color: color-mix(in srgb, var(--success) 48%, var(--line)); background: color-mix(in srgb, var(--success) 8%, var(--surface)); }
.social-link--support {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--bg);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 22%, transparent);
}
.social-link--support:hover {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
  color: var(--bg);
  box-shadow: 0 11px 25px color-mix(in srgb, var(--brand) 30%, transparent);
}
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--brand-strong); font-weight: 800; text-decoration: none; }

@media (min-width: 620px) {
  .container { width: min(100% - 48px, var(--container)); }
  .hero { padding-top: 168px; }
  .hero-art { width: 345px; }
  .app-grid, .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-card-link { grid-template-columns: 82px 1fr auto; padding: 20px; }
  .app-icon { width: 82px; height: 82px; }
  .content-panel { padding: 28px; }
}

@media (min-width: 980px) {
  .site-header { padding-top: 24px; }
  .navbar { min-height: 64px; padding-inline: 11px 18px; }
  .hero { margin-top: -92px; padding: 178px 0 86px; }
  .hero-layout { grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: 70px; }
  .hero-copy { text-align: right; }
  .hero-text { margin-inline: 0; }
  .hero-actions, .hero-points { justify-content: flex-start; }
  .hero-art { width: 390px; }
  .hero-text, .product-summary { font-size: 1.08rem; }
  .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .app-card-link { grid-template-columns: 76px 1fr auto; }
  .app-icon { width: 76px; height: 76px; }
  .product-hero { grid-template-columns: 140px minmax(0, 760px); justify-content: center; align-items: center; text-align: right; }
  .product-icon { width: 140px; height: 140px; }
  .product-summary { margin-inline: 0; }
  .footer-box { grid-template-columns: 1fr auto; align-items: center; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
