/**
 * Avahouse Pro — design system (static prototype)
 * Direction: midnight navy, fuchsia / cyan / orange accents, layered cards, premium spacing
 */

:root {
  --bg-void: #040810;
  --bg-midnight: #0a1424;
  --bg-panel: rgba(12, 22, 42, 0.65);
  --fuchsia: #e12bbf;
  --cyan: #00c8ff;
  --orange: #ff6b2c;
  --violet: #7c3aed;
  --text: #eef3ff;
  --text-dim: rgba(238, 243, 255, 0.66);
  --stroke: rgba(255, 255, 255, 0.1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --font-sans: "Onest", system-ui, sans-serif;
  --font-display: "Unbounded", var(--font-sans);
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: clamp(56px, 8vw, 96px);
  --content-max: 1160px;
  --shadow-glow-cyan: 0 0 60px rgba(0, 200, 255, 0.35), 0 0 120px rgba(0, 200, 255, 0.12);
  --shadow-glow-fuchsia: 0 0 50px rgba(225, 43, 191, 0.35);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg-void);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% 115%, rgba(0, 200, 255, 0.12), transparent 52%),
    radial-gradient(ellipse 70% 40% at 85% 15%, rgba(225, 43, 191, 0.09), transparent 50%),
    radial-gradient(ellipse 50% 35% at 10% 40%, rgba(255, 107, 44, 0.06), transparent 45%),
    linear-gradient(180deg, var(--bg-void) 0%, var(--bg-midnight) 48%, #060d18 100%);
  min-height: 100vh;
}

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

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

.pro-shell {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-md) var(--space-xl);
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  margin-bottom: var(--space-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(4, 8, 16, 0.92) 65%, rgba(4, 8, 16, 0));
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.2), transparent) 1;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-lockup img {
  height: 38px;
  width: auto;
  display: block;
}

.brand-lockup .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 6px;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav a.is-active {
  color: var(--text);
  background: rgba(0, 200, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(0, 200, 255, 0.25);
}

.site-nav .nav-cta {
  background: linear-gradient(105deg, var(--cyan), #0090c9);
  color: #020508;
  font-weight: 700;
  margin-left: 8px;
  box-shadow: var(--shadow-glow-cyan);
}

.site-nav .nav-cta:hover {
  color: #020508;
  filter: brightness(1.06);
}

@media (max-width: 880px) {
  .site-nav {
    display: none;
  }
  .nav-toggle {
    display: flex !important;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* ----- Typography ----- */
.headline-xl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4.2vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-sm);
}

.headline-lg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
}

.text-lead {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 46ch;
  margin: 0 0 var(--space-md);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--space-sm);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--fuchsia), var(--cyan));
  border-radius: 2px;
}

.text-gradient {
  background: linear-gradient(100deg, var(--fuchsia), var(--orange) 45%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), filter 0.2s, box-shadow 0.2s;
}

.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.btn--primary {
  background: linear-gradient(100deg, var(--cyan), #00a8dd);
  color: #030810;
  box-shadow: var(--shadow-glow-cyan);
}

.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--stroke);
}

.btn--secondary:hover {
  border-color: rgba(0, 200, 255, 0.45);
  background: rgba(0, 200, 255, 0.08);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

/* ----- Hero fan deck ----- */
.hero-pro {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--space-lg);
  align-items: end;
  padding: var(--space-md) 0 var(--space-xl);
  position: relative;
}

@media (max-width: 960px) {
  .hero-pro {
    grid-template-columns: 1fr;
  }
}

.hero-pro__copy {
  padding-bottom: var(--space-lg);
}

.hero-pro__stage {
  position: relative;
  min-height: min(58vh, 520px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-pro__glow {
  position: absolute;
  inset: auto 5% -5% 5%;
  height: 45%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 200, 255, 0.25), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

.fan-deck {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  perspective: 1400px;
  padding-bottom: var(--space-md);
}

.fan-card {
  --tilt: 0deg;
  --lift: 0px;
  position: relative;
  width: clamp(72px, 11vw, 118px);
  flex-shrink: 0;
  margin: 0 -14px;
  border-radius: var(--radius-md);
  transform: rotateY(var(--tilt)) translateY(var(--lift));
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.fan-card:nth-child(1) {
  --tilt: -18deg;
  --lift: 8px;
  z-index: 1;
}
.fan-card:nth-child(2) {
  --tilt: -11deg;
  z-index: 2;
}
.fan-card:nth-child(3) {
  --tilt: -4deg;
  z-index: 3;
}
.fan-card:nth-child(4) {
  --tilt: 4deg;
  z-index: 4;
}
.fan-card:nth-child(5) {
  --tilt: 11deg;
  z-index: 3;
}
.fan-card:nth-child(6) {
  --tilt: 17deg;
  --lift: 8px;
  z-index: 2;
}
.fan-card:nth-child(7) {
  --tilt: 22deg;
  --lift: 14px;
  z-index: 1;
}

.fan-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(145deg, var(--fuchsia), var(--orange), var(--cyan));
  -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.85;
  pointer-events: none;
}

.fan-card:hover {
  transform: rotateY(var(--tilt)) translateY(calc(var(--lift) - 8px)) scale(1.03);
  z-index: 20;
  box-shadow: var(--shadow-glow-fuchsia), 0 28px 56px rgba(0, 0, 0, 0.5);
}

.fan-card__inner {
  position: relative;
  border-radius: calc(var(--radius-md) - 2px);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #0a1424;
}

.fan-card__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ----- Sections ----- */
.section-pro {
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-head-pro {
  max-width: 640px;
  margin-bottom: var(--space-lg);
}

.section-head-pro.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Cards grid */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
}

.card-pro {
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}

.card-pro:hover {
  border-color: rgba(0, 200, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

.card-pro__media {
  aspect-ratio: 1;
  background: #060d18;
}

.card-pro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-pro__body {
  padding: var(--space-sm) var(--space-md) var(--space-md);
}

.card-pro__body h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

.card-pro__body .link-arrow {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Feature row */
.split-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.feature-pro {
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
}

.feature-pro h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

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

/* FAQ */
.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 10px;
}

.faq-item summary {
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] {
  border-color: rgba(225, 43, 191, 0.3);
}

.faq-item p {
  margin: 0;
  padding: 0 var(--space-md) var(--space-md);
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* Documents list */
.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 10px;
}

.doc-row:hover {
  border-color: rgba(0, 200, 255, 0.25);
}

.doc-row span.meta {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Catalog toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  align-items: center;
}

.search-pro {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.search-pro::placeholder {
  color: rgba(238, 243, 255, 0.4);
}

.search-pro:focus {
  outline: none;
  border-color: rgba(0, 200, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.15);
}

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

.chip {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  color: var(--text-dim);
  cursor: default;
}

.chip.is-on {
  background: rgba(225, 43, 191, 0.2);
  border-color: rgba(225, 43, 191, 0.45);
  color: var(--text);
}

.js-tab.is-on {
  background: rgba(225, 43, 191, 0.18);
  border-color: rgba(225, 43, 191, 0.4);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(0, 200, 255, 0.15);
}

/* Footer */
.site-footer {
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
  color: rgba(238, 243, 255, 0.45);
  text-align: center;
}

.site-footer a {
  color: rgba(0, 200, 255, 0.8);
}

/* Utilities */
.mt-lg {
  margin-top: var(--space-lg);
}
.mb-0 {
  margin-bottom: 0;
}
.center {
  text-align: center;
}
