:root {
  --bg-base: #020202;
  /* --bg-card: #080808; */
  /* --bg-section: rgba(2, 2, 2, 0.88); */
  --bg-section-overlay: rgba(81, 83, 194, 0.05);
  --bg-card-overlay: rgba(8, 8, 8, 0.9);
  /* --bg-nav: rgba(2, 2, 2, 0.75); */
  --bg-elevated: rgba(10, 10, 10, 0.9);
  --border-color: rgba(255, 255, 255, 0.05);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

html {
  background-color: var(--bg-base);
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: transparent;
  color: #ededed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(99, 102, 241, 0.3);
  color: #fff;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #020202;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid rgba(99, 102, 241, 0.5);
  outline-offset: 2px;
}

/* -----------------------------------------------------------------
1. Text Gradient Effects (Headline & Subtext)
----------------------------------------------------------------- */
@keyframes text-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.animate-text-shimmer {
  background: linear-gradient(90deg, #ffffff 0%, #a3a3a3 50%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-shimmer 2s linear infinite;
}

.subtext-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1500ms var(--ease-out), transform 1500ms var(--ease-out);
}

.subtext-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------------------------------------------
2. Entrance Animations
----------------------------------------------------------------- */
.reveal-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

.reveal-element.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pop-in-stagger {
  0% { transform: scale(0); opacity: 0; }
  80% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.pop-in-element {
  opacity: 0;
}

.pop-in-element.in-view {
  animation: pop-in-stagger 1000ms var(--ease-out) forwards;
}

/* -----------------------------------------------------------------
3. Card Interactions & Buttons
----------------------------------------------------------------- */
@property --gradient-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --gradient-angle-offset { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --gradient-shine { syntax: "<color>"; initial-value: #818cf8; inherits: false; }

.shiny-cta {
  --gradient-angle: 0deg;
  --gradient-angle-offset: 0deg;
  --gradient-shine: #818cf8;
  position: relative;
  overflow: hidden;
  border-radius: 9999px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(#050505, #050505) padding-box,
    conic-gradient(from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
      transparent 0%, #333 5%, var(--gradient-shine) 15%, #333 30%, transparent 40%, transparent 100%) border-box;
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  cursor: pointer;
  isolation: isolate;
  z-index: 0;
  animation: border-spin 2.5s linear infinite;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shiny-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.shiny-cta:active {
  transform: scale(0.98);
  transition-duration: 150ms;
}

.shiny-cta.btn-login {
  --gradient-shine: #a5b4fc;
  background: linear-gradient(#3d3d3d, #0c0c0c) padding-box,
    conic-gradient(
      from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
      transparent 0%,
      #444 5%,
      var(--gradient-shine) 15%,
      #444 30%,
      transparent 40%,
      transparent 100%
    ) border-box;
}

.shiny-cta.btn-login:hover {
  box-shadow: 0 0 24px rgba(165, 180, 252, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.shiny-card {
  --gradient-angle: 0deg;
  --gradient-angle-offset: 0deg;
  --gradient-shine: #818cf8;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(#080808, #080808) padding-box,
    conic-gradient(from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
      transparent 0%, #222 10%, var(--gradient-shine) 20%, #222 30%, transparent 40%, transparent 100%) border-box;
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms var(--ease-out);
  cursor: pointer;
  isolation: isolate;
  z-index: 0;
  animation: border-spin 4s linear infinite;
}

.shiny-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  z-index: 10;
}

@keyframes border-spin {
  to { --gradient-angle: 360deg; }
}

/* -----------------------------------------------------------------
4. Marquee Animations
----------------------------------------------------------------- */
@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

.animate-marquee-left {
  animation: marquee-left 60s linear infinite;
}

.animate-marquee-right {
  animation: marquee-right 60s linear infinite;
}

.animate-marquee-left,
.animate-marquee-right {
  animation-duration: 120s !important;
}

/* -----------------------------------------------------------------
5. Background animation layer (Unicorn Studio)
----------------------------------------------------------------- */
.bg-animation {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  filter: grayscale(100%) brightness(180%) contrast(120%);
  opacity: 0.25;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 20%, transparent 75%);
  mask-size: 100% 100%;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-position: center;
}

.bg-animation-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.radar-scan {
  background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, rgba(99, 102, 241, 0.3) 360deg);
  animation: radar-spin 3s linear infinite;
}

@keyframes radar-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.iso-plane {
  transform: rotateX(55deg) rotateZ(-45deg);
  box-shadow: -10px 10px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease;
}

.shiny-card:hover .iso-plane {
  transform: rotateX(55deg) rotateZ(-45deg) translateZ(10px) translateY(-5px);
}

@keyframes scroll-vertical {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.scrolling-text {
  animation: scroll-vertical 10s linear infinite;
}

.section-overlay {
  position: relative;
  z-index: 10;
}

/* Modal */
.modal-backdrop { opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.modal-backdrop.active { opacity: 1; pointer-events: auto; }
.modal-content { transform: scale(0.95) translateY(20px); opacity: 0; transition: transform 0.4s var(--ease-out), opacity 0.4s ease; }
.modal-backdrop.active .modal-content { transform: scale(1) translateY(0); opacity: 1; }

/* Custom Accordion Styling */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* Accordion content animation */
details[open] summary ~ div { animation: accordion-slide-down 0.3s ease-out; }
@keyframes accordion-slide-down {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

html { scrollbar-width: thin; scrollbar-color: #333 var(--bg-base); }

/* -----------------------------------------------------------------
6. Layout & semantic sections
----------------------------------------------------------------- */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-nav);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.brand-logo {
  display: block;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.2));
  transition: filter 0.2s ease;
}

.brand-logo:hover {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.25));
}

.brand-logo--nav {
  max-height: 4rem;
  width: auto;
}

.brand-logo--footer {
  max-height: 4rem;
  width: auto;
}

/* Скрыть на мобилке, показать на ПК (md+). Добавляй класс к блоку. */
.hide-mobile {
  display: none !important;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: flex !important;
  }
  .hide-mobile.hide-mobile--block {
    display: block !important;
  }
}

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

.nav-link {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #fff;
}

@media (max-width: 639px) {
  .nav-link { display: none; }
}

.btn-cta-nav {
  padding: 0.375rem 1rem;
  font-size: 0.6875rem;
}

.main-content {
  position: relative;
  z-index: 10;
}

.section {
  position: relative;
  z-index: 10;
}

.section-divider {
  width: 100vw;
  max-width: 100%;
  margin-left: calc(50% - 50vw);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.section-hero {
  max-width: 80rem;
  margin: 0 auto;
  padding: 8rem 1.5rem 5rem;
}

.section-stats {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);

}

.section-marquee {
  width: 100%;
  background-color: var(--bg-section-overlay);
  border-bottom: 1px solid var(--border-color);
  padding: 4rem 0;
  overflow: hidden;
}

.section-cta {
  background: linear-gradient(to bottom, var(--bg-section), rgba(5, 5, 5, 0.9));
  border-top: 1px solid var(--border-color);
  padding: 8rem 1.5rem;
  text-align: center;
}

.section-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-section);
  padding: 3rem 1.5rem;
}

.card {
  background-color: var(--bg-card-overlay);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.panel {
  background-color: var(--bg-card-overlay);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
}

.bg-card {
  background-color: var(--bg-card-overlay);
}

.bg-section {
  background-color: var(--bg-section);
}

.cal-footer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 2rem;
  background-color: var(--bg-card-overlay);
  z-index: 20;
}

#my-cal-inline-30min {
  scroll-margin-top: 5rem;
}

/* -----------------------------------------------------------------
7. Hero mockup (dashboard placeholder)
----------------------------------------------------------------- */
.hero-mockup-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.hero-mockup-window {
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  z-index: 10;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card-overlay);
  border: 1px solid var(--border-color);
}

.hero-mockup-header {
  height: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background-color: var(--bg-card-overlay);
}

.hero-mockup-header-dots {
  display: flex;
  gap: 0.375rem;
}

.hero-mockup-header-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.hero-mockup-header-bar {
  width: 4rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
}

.hero-mockup-body {
  flex: 1;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.hero-mockup-sidebar {
  grid-column: span 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-mockup-sidebar-placeholder {
  width: 100%;
  height: 2rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.05);
}

.hero-mockup-sidebar-placeholder:nth-child(2),
.hero-mockup-sidebar-placeholder:nth-child(3) {
  background: rgba(255, 255, 255, 0.02);
}

.hero-mockup-main {
  grid-column: span 9;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-mockup-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  height: 6rem;
}

.hero-mockup-chart-panel {
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.03), transparent);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  position: relative;
  overflow: hidden;
}

.hero-mockup-chart-bars {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 0.5rem 0.5rem;
  gap: 0.25rem;
}

.hero-mockup-chart-bar {
  flex: 1;
  border-radius: 0.125rem;
  background: rgba(99, 102, 241, 0.3);
}

.hero-mockup-chart-bar:nth-child(1) { height: 40%; }
.hero-mockup-chart-bar:nth-child(2) { height: 70%; }
.hero-mockup-chart-bar:nth-child(3) { height: 50%; }
.hero-mockup-chart-bar:nth-child(4) { height: 30%; }
.hero-mockup-chart-bar:nth-child(5) { height: 80%; }

.hero-mockup-donut-panel {
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.03), transparent);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mockup-donut {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 4px solid rgba(16, 185, 129, 0.2);
  border-top-color: rgb(16, 185, 129);
  transform: rotate(45deg);
}

.hero-mockup-list {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-mockup-list-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.hero-mockup-list-row-muted {
  opacity: 0.5;
}

.hero-mockup-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.hero-mockup-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-mockup-line {
  height: 0.375rem;
  border-radius: 0.125rem;
  background: rgba(255, 255, 255, 0.1);
}

.hero-mockup-line-sub {
  background: rgba(255, 255, 255, 0.05);
}

.hero-mockup-line.w-24 { width: 6rem; }
.hero-mockup-line.w-12 { width: 3rem; }
.hero-mockup-line.w-20 { width: 5rem; }
.hero-mockup-line.w-16 { width: 4rem; }

.hero-mockup-badge {
  width: 3rem;
  height: 1rem;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.2);
  flex-shrink: 0;
}

.hero-mockup-badge-off {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color);
}

.hero-mockup-efficiency {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  width: 12rem;
  padding: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  z-index: 20;
  animation: pulse 4s infinite;
  background-color: var(--bg-card-overlay);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
}

.hero-mockup-efficiency-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.hero-mockup-efficiency-value {
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.25rem;
}

.hero-mockup-efficiency-bar {
  height: 0.25rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}

.hero-mockup-efficiency-fill {
  height: 100%;
  width: 70%;
  background: rgb(34, 197, 94);
}

.hero-mockup-glow {
  position: absolute;
  inset: 0;
  background: rgba(99, 102, 241, 0.1);
  filter: blur(60px);
  z-index: -10;
  border-radius: 50%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  margin-bottom: 2rem;
}

.hero-badge-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: #6366f1;
  animation: pulse 2s infinite;
}

.hero-badge-text {
  font-size: 0.625rem;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    width: auto;
  }
}

.btn-outline {
  height: 3rem;
  padding: 0 1.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  transition: background-color 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
}

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

@media (min-width: 640px) {
  .btn-outline { width: auto; }
}

.btn-outline.w-full {
  width: 100%;
}

@media (min-width: 640px) {
  .btn-outline.w-full { width: auto; }
}

.card-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  background-color: var(--bg-card-overlay);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.card-feature:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.card-feature--lg {
  padding: 2rem;
}

.card-feature-footer {
  margin-top: auto;
  padding: 0.75rem;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  transition: border-color 0.2s;
}

.card-feature:hover .card-feature-footer {
  border-color: rgba(255, 255, 255, 0.1);
}

.accordion-summary {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
  list-style: none;
  outline: none;
}

.accordion-summary:hover {
  color: #fff;
}

.accordion-summary--faq {
  padding: 1.5rem;
}

.accordion-summary--sm {
  font-size: 0.625rem;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100px 100px;
}

/* Optional performance/accessibility: reduce continuous animations */
@media (prefers-reduced-motion: reduce) {
  .animate-text-shimmer,
  .animate-marquee-left,
  .animate-marquee-right,
  .shiny-cta,
  .shiny-card,
  .radar-scan,
  .scrolling-text {
    animation: none !important;
  }
  .reveal-element,
  .subtext-reveal {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
