/*
  Averixor Cloud — production site styles (assets/css/main.css)
*/

:root {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-soft: #10182d;
  --bg-card: rgba(255, 255, 255, 0.075);
  --bg-card-strong: rgba(255, 255, 255, 0.11);
  --text: #f6f8fc;
  --muted: #b8c2d8;
  --muted-2: #8692aa;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #7dd3fc;
  --accent-strong: #38bdf8;
  --accent-soft: rgba(125, 211, 252, 0.16);
  --success: #22c55e;
  --warning: #fde68a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1180px;
  --header-height: 76px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(56, 189, 248, 0.20), transparent 30rem),
    radial-gradient(circle at 82% 14%, rgba(34, 197, 94, 0.10), transparent 26rem),
    linear-gradient(180deg, #0b1020 0%, #0c1224 46%, #090d19 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

p {
  color: var(--muted);
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 8vw, 6.7rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.35rem);
}

h3 {
  font-size: 1.18rem;
}

::selection {
  color: #07111e;
  background: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 10px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section-pad {
  padding-block: clamp(76px, 10vw, 128px);
}

.section-muted {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border-block: 1px solid rgba(255, 255, 255, 0.07);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 999;
  padding: 10px 16px;
  color: #061120;
  font-weight: 800;
  background: var(--accent);
  border-radius: 999px;
  transform: translate(-50%, -180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  background: rgba(11, 16, 32, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.24), rgba(255, 255, 255, 0.06));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(56, 189, 248, 0.16);
}

.brand-text {
  font-size: 1.12rem;
  background: linear-gradient(135deg, #ffffff, #7dd3fc 74%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}

.nav-list a,
.footer-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-list a {
  display: inline-block;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="location"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  color: #061120;
  font-weight: 850;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.24);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.nav-cta:hover {
  color: #061120;
  background: #a5e4ff;
  box-shadow: 0 18px 44px rgba(56, 189, 248, 0.32);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  content: "";
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-line::before {
  transform: translateY(-7px);
}

.nav-toggle-line::after {
  transform: translateY(5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line::before {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line::after {
  transform: translateY(-2px) rotate(-90deg);
}

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

.hero::after {
  position: absolute;
  right: -12rem;
  bottom: -18rem;
  z-index: -1;
  width: 42rem;
  height: 42rem;
  content: "";
  background: radial-gradient(circle, rgba(125, 211, 252, 0.13), transparent 64%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
}

.hero-copy {
  display: grid;
  gap: 26px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--accent-soft);
  border: 1px solid rgba(125, 211, 252, 0.26);
  border-radius: 999px;
}

.hero-lead {
  max-width: 64ch;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-weight: 900;
  line-height: 1;
  border-radius: 999px;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.button-primary {
  color: #061120;
  background: linear-gradient(135deg, #7dd3fc, #bae6fd);
  box-shadow: 0 22px 46px rgba(56, 189, 248, 0.24);
}

.button-primary:hover {
  color: #061120;
  box-shadow: 0 26px 54px rgba(56, 189, 248, 0.34);
  transform: translateY(-2px);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--line);
}

.button-secondary:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.notice {
  display: flex;
  max-width: 680px;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: rgba(253, 230, 138, 0.10);
  border: 1px solid rgba(253, 230, 138, 0.22);
  border-radius: var(--radius-md);
}

.notice strong {
  color: #fff2b6;
}

.notice-info {
  background: rgba(125, 211, 252, 0.10);
  border-color: rgba(125, 211, 252, 0.28);
}

.notice-info strong {
  color: #bae6fd;
}

.hero-panel,
.card,
.feature-item,
.quick-links,
.steps li {
  background: linear-gradient(180deg, var(--bg-card), rgba(255, 255, 255, 0.045));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-panel {
  position: relative;
  padding: clamp(26px, 4vw, 38px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.18), transparent 42%),
    radial-gradient(circle at 80% 10%, rgba(34, 197, 94, 0.13), transparent 15rem);
}

.hero-panel > * {
  position: relative;
}

.service-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
  padding: 8px 11px;
  color: #c7f9d8;
  font-size: 0.88rem;
  font-weight: 850;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 999px;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: var(--success);
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.12), 0 0 20px rgba(34, 197, 94, 0.60);
}

.hero-panel h2 {
  margin-bottom: 22px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.check-list {
  display: grid;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--muted);
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.16em;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #061120;
  font-size: 0.82rem;
  font-weight: 900;
  content: "✓";
  background: var(--accent);
  border-radius: 999px;
}

/* Sections */
.section-heading {
  display: grid;
  max-width: 790px;
  gap: 16px;
  margin-bottom: clamp(32px, 5vw, 54px);
}

.section-heading p:not(.eyebrow),
.split-copy p {
  max-width: 66ch;
  font-size: 1.04rem;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  min-height: 100%;
  padding: 24px;
  border-radius: var(--radius-md);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.card:hover,
.feature-item:hover,
.quick-links a:hover,
.steps li:hover {
  border-color: var(--line-strong);
  background: var(--bg-card-strong);
  transform: translateY(-4px);
}

.card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 20px;
  font-size: 1.45rem;
  background: rgba(125, 211, 252, 0.13);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 16px;
}

.card h3,
.feature-item h3,
.steps h3 {
  margin-bottom: 10px;
}

.compact-card {
  padding: 22px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius-md);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.feature-item > span {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  font-size: 1.55rem;
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 17px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: center;
}

.split-copy {
  display: grid;
  gap: 18px;
}

.text-link {
  width: fit-content;
  color: var(--accent);
  font-weight: 900;
  border-bottom: 1px solid rgba(125, 211, 252, 0.45);
}

.text-link:hover {
  color: #bae6fd;
  border-bottom-color: currentColor;
}

.steps {
  display: grid;
  gap: 16px;
  counter-reset: steps;
}

.steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--radius-md);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.steps li > span {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #061120;
  font-size: 0.9rem;
  font-weight: 950;
  background: var(--accent);
  border-radius: 15px;
}

.quick-links {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-lg);
}

.quick-links a {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 4px 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.quick-links a span {
  grid-row: span 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.20);
  border-radius: 15px;
}

.quick-links a strong {
  color: var(--text);
  line-height: 1.2;
}

.quick-links a small {
  color: var(--muted-2);
}

/* Footer */
.site-footer {
  padding-block: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.16);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  margin-bottom: 10px;
}

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
  font-size: 1.15rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright {
  color: var(--muted-2);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .card-grid-3,
  .card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 68px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    z-index: 60;
    top: var(--header-height);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 16px;
    padding: 18px;
    visibility: hidden;
    background: rgba(11, 16, 32, 0.96);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-list {
    display: grid;
    gap: 6px;
  }

  .nav-list a {
    width: 100%;
    padding: 12px;
    border-bottom: 0;
    border-radius: 14px;
  }

  .nav-list a:hover,
  .nav-list a:focus-visible,
  .nav-list a[aria-current="location"] {
    background: rgba(255, 255, 255, 0.07);
  }

  .nav-cta {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .section-pad {
    padding-block: 64px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.6rem, 15vw, 4.4rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    min-height: 52px;
  }

  .notice {
    display: grid;
  }

  .card-grid-3,
  .card-grid-4,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-item,
  .steps li {
    display: grid;
  }

  .quick-links a {
    grid-template-columns: 40px 1fr;
  }

  .quick-links a span {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 420px) {
  .brand-text {
    font-size: 1rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }
}

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

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .site-nav,
  .hero-panel,
  .card,
  .feature-item,
  .quick-links,
  .steps li {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media print {
  body {
    color: #111827;
    background: #ffffff;
  }

  .site-header,
  .hero-actions,
  .site-footer,
  .skip-link,
  .nav-toggle {
    display: none !important;
  }

  .section-pad {
    padding-block: 24px;
  }

  .hero-grid,
  .split,
  .card-grid,
  .feature-grid {
    display: block;
  }

  .card,
  .feature-item,
  .hero-panel,
  .steps li,
  .quick-links {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #d1d5db;
  }

  p,
  .check-list li,
  .quick-links a small {
    color: #374151;
  }
}

/* ── Extended site: office hub, subpages, UI mocks ── */

:root {
  --accent-office: #a78bfa;
  --accent-files: #38bdf8;
  --accent-collab: #34d399;
  --accent-warn: #fbbf24;
  --container-wide: 1280px;
}

h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(88px, 12vw, 140px) clamp(56px, 8vw, 88px);
}

.page-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.16), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(167, 139, 250, 0.12), transparent 24rem);
}

.page-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
}

.page-hero-lead {
  max-width: 62ch;
  margin-top: 20px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted-2);
  font-size: 0.88rem;
  font-weight: 600;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text);
}

.breadcrumbs span[aria-hidden="true"] {
  opacity: 0.45;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.pill-accent {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(125, 211, 252, 0.28);
}

.pill-office {
  color: #ddd6fe;
  background: rgba(167, 139, 250, 0.14);
  border-color: rgba(167, 139, 250, 0.28);
}

.pill-collab {
  color: #a7f3d0;
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.28);
}

/* Nav dropdown */
.nav-list > li {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible,
.nav-dropdown-toggle[aria-expanded="true"],
.nav-list > li.is-active > .nav-dropdown-toggle {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-dropdown-toggle::after {
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  content: "";
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.nav-dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(2px);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 80;
  display: grid;
  gap: 4px;
  min-width: 240px;
  padding: 10px;
  visibility: hidden;
  background: rgba(11, 16, 32, 0.97);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-dropdown.is-open {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.nav-dropdown a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 12px;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible,
.nav-dropdown a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav-dropdown a small {
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 600;
}

.nav-list a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* Module hub cards */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.module-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 100%;
  padding: 26px;
  overflow: hidden;
  color: inherit;
  background: linear-gradient(180deg, var(--bg-card), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.module-card:hover {
  color: inherit;
}

.module-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.55;
  background: radial-gradient(circle at 90% 10%, rgba(125, 211, 252, 0.14), transparent 55%);
}

.module-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-6px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.module-card > * {
  position: relative;
}

.module-card-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  font-size: 1.6rem;
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 18px;
}

.module-card h3 {
  font-size: 1.35rem;
}

.module-card p {
  font-size: 0.98rem;
}

.module-card-link {
  margin-top: auto;
  color: var(--accent);
  font-weight: 900;
}

.module-card--office::before {
  background: radial-gradient(circle at 90% 10%, rgba(167, 139, 250, 0.18), transparent 55%);
}

.module-card--office .module-card-icon {
  background: rgba(167, 139, 250, 0.14);
  border-color: rgba(167, 139, 250, 0.28);
}

.module-card--collab::before {
  background: radial-gradient(circle at 90% 10%, rgba(52, 211, 153, 0.16), transparent 55%);
}

.module-card--collab .module-card-icon {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.26);
}

.module-card-featured {
  grid-column: 1 / -1;
  border-color: rgba(167, 139, 250, 0.35);
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-item {
  padding: 22px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.stat-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-item span {
  color: var(--muted-2);
  font-size: 0.88rem;
  font-weight: 700;
}

/* Workspace mock UI */
.workspace-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 5vw, 48px);
  align-items: center;
}

.workspace-mock {
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.mock-toolbar {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.mock-dot:nth-child(1) { background: #f87171; }
.mock-dot:nth-child(2) { background: #fbbf24; }
.mock-dot:nth-child(3) { background: #34d399; }

.mock-title {
  margin-left: 8px;
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 700;
}

.mock-body {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  min-height: 280px;
}

.mock-sidebar {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 8px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 14px;
}

.mock-sidebar span {
  padding: 8px 10px;
  color: var(--muted-2);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 8px;
}

.mock-sidebar span.is-active {
  color: var(--text);
  background: rgba(125, 211, 252, 0.14);
}

.mock-content {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 8px;
}

.mock-file-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.mock-file-row em {
  color: var(--muted-2);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
}

/* Spreadsheet mock */
.mock-sheet {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.mock-sheet-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.mock-sheet-row span {
  padding: 10px 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-sheet-row:first-child span {
  color: var(--muted-2);
  background: rgba(0, 0, 0, 0.2);
}

.mock-sheet-row span.is-header {
  color: var(--accent);
  background: rgba(125, 211, 252, 0.08);
}

.mock-sheet-row span.is-active {
  color: #061120;
  background: rgba(125, 211, 252, 0.55);
}

/* Document mock */
.mock-doc {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.mock-doc-line {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.mock-doc-line:nth-child(1) { width: 55%; }
.mock-doc-line:nth-child(2) { width: 92%; }
.mock-doc-line:nth-child(3) { width: 88%; }
.mock-doc-line:nth-child(4) { width: 70%; }
.mock-doc-line.is-title {
  height: 16px;
  width: 48%;
  margin-bottom: 6px;
  background: rgba(167, 139, 250, 0.45);
}

/* Use cases */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.use-case {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 180ms ease, border-color 180ms ease;
}

.use-case:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.use-case h3 {
  margin: 14px 0 10px;
  font-size: 1.28rem;
}

.use-case-icon {
  font-size: 2rem;
}

/* Platform strip */
.platform-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* Comparison table */
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-table th {
  color: var(--text);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.05);
}

.compare-table td {
  color: var(--muted);
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table .yes {
  color: #86efac;
  font-weight: 800;
}

/* FAQ accordion */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.faq-question {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  color: var(--text);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
}

.faq-question::after {
  flex: 0 0 auto;
  width: 0.5em;
  height: 0.5em;
  content: "";
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.faq-item.is-open .faq-question::after {
  transform: rotate(-135deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* CTA banner */
.cta-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 5vw, 42px);
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.14), rgba(167, 139, 250, 0.10)),
    linear-gradient(180deg, var(--bg-card), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.cta-banner p {
  margin-top: 10px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Content layout for subpages */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.content-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: grid;
  gap: 14px;
}

.side-nav {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.side-nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  transition: background-color 160ms ease, color 160ms ease;
}

.side-nav a:hover,
.side-nav a:focus-visible,
.side-nav a[aria-current="true"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.content-block {
  display: grid;
  gap: 18px;
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.content-block h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 11px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
}

code {
  padding: 2px 7px;
  color: var(--accent);
  font-size: 0.88em;
  font-weight: 700;
  background: rgba(125, 211, 252, 0.1);
  border-radius: 6px;
}

/* Mega footer */
.footer-mega {
  padding-block: 56px 32px;
}

.footer-mega-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 36px;
}

.footer-col h4 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Two-col feature rows */
.feature-rows {
  display: grid;
  gap: 18px;
}

.feature-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.feature-row-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  font-size: 1.5rem;
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 16px;
}

.feature-row h3 {
  margin-bottom: 6px;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 0;
  padding-left: 28px;
  border-left: 2px solid rgba(125, 211, 252, 0.25);
}

.timeline-item {
  position: relative;
  padding: 0 0 28px 22px;
}

.timeline-item::before {
  position: absolute;
  left: -35px;
  top: 4px;
  width: 14px;
  height: 14px;
  content: "";
  background: var(--accent);
  border: 3px solid var(--bg);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.2);
}

.timeline-item h3 {
  margin-bottom: 6px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* Extended responsive */
@media (max-width: 1080px) {
  .module-grid,
  .use-case-grid,
  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-showcase,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    position: static;
  }

  .footer-mega-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-dropdown {
    position: static;
    min-width: 0;
    padding: 0;
    visibility: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-dropdown:not(.is-open) {
    display: none;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 0;
    border-radius: 14px;
  }

  .nav-dropdown-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-dropdown a {
    padding: 12px 14px 12px 22px;
  }
}

@media (max-width: 680px) {
  .module-grid,
  .use-case-grid,
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .mock-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .mock-sidebar {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-mega-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .button {
    flex: 1;
  }
}
