:root {
  --black: #05080d;
  --ink: #0b1118;
  --charcoal: #101820;
  --panel: rgba(9, 16, 24, 0.78);
  --line: rgba(255, 255, 255, 0.13);
  --line-dark: rgba(8, 24, 38, 0.12);
  --white: #ffffff;
  --muted: #b9c4cf;
  --muted-dark: #516170;
  --blue: #12a8ff;
  --blue-strong: #2fc4ff;
  --blue-deep: #0878d8;
  --ice: #eaf8ff;
  --surface: #f4f8fb;
  --card: rgba(255, 255, 255, 0.07);
  --orange: #f47b05;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--black);
  line-height: 1.5;
  letter-spacing: 0;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 48px);
  color: var(--white);
  background: rgba(5, 8, 13, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-elevated {
  background: rgba(5, 8, 13, 0.92);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: clamp(176px, 17vw, 230px);
  height: auto;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.94rem;
}

.nav-links a:hover {
  color: var(--blue-strong);
}

.top-cta,
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.top-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.top-cta {
  min-height: 42px;
  padding: 0 16px;
  color: var(--ice);
  background: rgba(18, 168, 255, 0.08);
  border: 1px solid rgba(47, 196, 255, 0.36);
}

.top-cta:hover {
  border-color: rgba(47, 196, 255, 0.62);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(34px, 5vw, 74px);
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  padding: 118px clamp(20px, 4vw, 48px) 72px;
  color: var(--white);
  background: var(--black);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero::before {
  background-image: url("/assets/barberhub-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  filter: grayscale(0.32) hue-rotate(152deg) saturate(0.9) brightness(0.82);
}

.hero::after {
  background:
    radial-gradient(circle at 72% 28%, rgba(18, 168, 255, 0.18), transparent 30%),
    linear-gradient(90deg, rgba(5, 8, 13, 0.98) 0%, rgba(5, 8, 13, 0.91) 42%, rgba(5, 8, 13, 0.68) 100%),
    linear-gradient(0deg, rgba(5, 8, 13, 0.96) 0%, rgba(5, 8, 13, 0.14) 42%, rgba(5, 8, 13, 0.74) 100%);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid rgba(47, 196, 255, 0.42);
  border-radius: 999px;
  color: var(--blue-strong);
  background: rgba(18, 168, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

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

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 5.8vw, 5.55rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.24;
}

.hero-lead,
.split > p,
.operation-copy p,
.proof p,
.cta-band p,
.faq p {
  color: var(--muted-dark);
  font-size: clamp(1rem, 1.45vw, 1.17rem);
  line-height: 1.7;
}

.hero-lead,
.operation-copy p,
.cta-band p {
  color: var(--muted);
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 18px;
}

.button {
  padding: 0 24px;
  border: 1px solid transparent;
}

.button.primary {
  color: #02111c;
  background: linear-gradient(135deg, var(--blue-strong), var(--blue-deep));
  box-shadow: 0 18px 40px rgba(18, 168, 255, 0.34);
}

.button.primary:hover {
  box-shadow: 0 22px 54px rgba(18, 168, 255, 0.48);
}

.button.secondary {
  color: var(--ice);
  background: rgba(18, 168, 255, 0.08);
  border-color: rgba(47, 196, 255, 0.36);
}

.button.secondary:hover {
  border-color: rgba(47, 196, 255, 0.62);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  border: 1px solid rgba(47, 196, 255, 0.32);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(18, 168, 255, 0.08);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-visual {
  min-height: 500px;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid rgba(47, 196, 255, 0.28);
  border-radius: 8px;
  background: rgba(7, 12, 19, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-logo {
  width: min(620px, 100%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.36));
}

.dashboard-preview {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: min(420px, calc(100% - 44px));
  padding: 16px;
  border: 1px solid rgba(47, 196, 255, 0.28);
  border-radius: 8px;
  background: rgba(7, 12, 19, 0.82);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.preview-top {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-strong), var(--blue));
  box-shadow: 0 0 0 6px rgba(18, 168, 255, 0.12);
}

.preview-top em {
  color: var(--blue-strong);
  font-style: normal;
  font-weight: 900;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.preview-grid div {
  min-width: 0;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.preview-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.preview-grid b {
  display: block;
  margin-top: 8px;
  color: var(--white);
  font-size: 1.35rem;
}

.section,
.operation,
.proof,
.faq,
.cta-band {
  padding: clamp(74px, 9vw, 124px) clamp(20px, 4vw, 48px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: end;
  background: var(--surface);
}

.split .eyebrow,
.proof .eyebrow,
.faq .eyebrow {
  color: #075f9e;
  border-color: rgba(8, 120, 216, 0.22);
  background: rgba(18, 168, 255, 0.12);
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(74px, 9vw, 124px) clamp(20px, 4vw, 48px);
  background: var(--surface);
}

.features article {
  min-height: 205px;
  padding: 22px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--white);
}

.features p {
  margin-bottom: 0;
  color: var(--muted-dark);
  line-height: 1.62;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #02111c;
  background: linear-gradient(135deg, var(--blue-strong), var(--blue));
  font-weight: 950;
}

.features article:nth-child(3n) .icon {
  background: linear-gradient(135deg, #ffae45, var(--orange));
}

.operation {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  color: var(--white);
  background: var(--black);
}

.operation .eyebrow,
.cta-band .eyebrow {
  color: var(--blue-strong);
}

.flow {
  display: grid;
  gap: 12px;
}

.flow div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 6px 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.flow span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #02111c;
  background: linear-gradient(135deg, var(--blue-strong), var(--blue));
  font-weight: 950;
}

.flow strong {
  color: var(--white);
  font-size: 1.08rem;
}

.flow small {
  color: var(--muted);
  font-size: 0.95rem;
}

.proof {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  background: var(--surface);
}

.proof img {
  justify-self: center;
  width: min(360px, 80vw);
  border: 1px solid rgba(8, 120, 216, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
}

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(360px, 1fr);
  gap: clamp(32px, 5vw, 70px);
  background: var(--surface);
}

details {
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 20px;
  background: var(--white);
}

details + details {
  margin-top: 14px;
}

summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 850;
}

details p {
  margin: 12px 0 0;
}

.cta-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  color: var(--white);
  background: var(--black);
  border-top: 1px solid var(--line);
}

.cta-band img {
  width: 230px;
  height: auto;
}

.cta-band h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
}

.cta-band p {
  max-width: 780px;
  margin-bottom: 0;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 34px clamp(20px, 4vw, 48px);
  color: var(--white);
  background: #03060a;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}

.footer span {
  color: var(--muted);
}

.footer a {
  color: var(--blue-strong);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .hero,
  .operation,
  .proof,
  .faq,
  .split {
    grid-template-columns: 1fr;
  }

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

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

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding: 12px 14px;
  }

  .brand img {
    width: 166px;
  }

  .top-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .hero {
    padding: 102px 14px 56px;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.4rem);
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 2.65rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .hero-visual {
    min-height: 360px;
  }

  .dashboard-preview {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 22px;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
    padding-left: 14px;
    padding-right: 14px;
  }

  .features article {
    min-height: auto;
  }

  .section,
  .operation,
  .proof,
  .faq,
  .cta-band {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .cta-band img {
    width: 180px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
