@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Rajdhani:wght@400;500;600;700&display=swap");

:root {
  --bg: #05070d;
  --bg-darker: #020309;
  --surface: rgba(9, 16, 30, 0.84);
  --surface-strong: rgba(11, 20, 38, 0.96);
  --card-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --border: rgba(98, 145, 255, 0.18);
  --accent: #4f7dff;
  --accent-strong: #80a4ff;
  --accent-soft: rgba(79, 125, 255, 0.14);
  --accent-warm: #ff5c5c;
  --accent-glow: rgba(79, 125, 255, 0.3);
  --text: #edf2ff;
  --text-muted: #b0bcda;
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Rajdhani", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(79, 125, 255, 0.14), transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(255, 92, 92, 0.08), transparent 28%),
    linear-gradient(180deg, #080b14 0%, #04060d 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

iframe {
  display: block;
  width: 100%;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.section {
  padding: clamp(4rem, 7vw, 6.25rem) 0;
  position: relative;
}

.section-muted {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.hero {
  position: relative;
  min-height: clamp(580px, 82vh, 780px);
  display: flex;
  align-items: flex-end;
  padding: 7rem 0 5rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background-position: center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 4, 10, 0.18) 0%, rgba(2, 4, 10, 0.74) 68%, rgba(2, 4, 10, 0.96) 100%),
    linear-gradient(135deg, rgba(6, 10, 20, 0.78), rgba(14, 22, 41, 0.45));
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-home {
  background-image: url("/background.jpeg");
}

.hero-tools {
  background-image:
    linear-gradient(120deg, rgba(26, 38, 66, 0.52), rgba(10, 12, 20, 0.18)),
    url("/art3.png");
}

.hero-map-creation {
  background-image: url("/assets/bar-tools/map-creation-bg.jpg");
}

.hero-bar-tweaks {
  background-image: url("/assets/bar-tools/bar-tweaks-bg.avif");
}

.hero-content {
  max-width: 840px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: var(--accent-strong);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: "";
  width: 52px;
  height: 1px;
  background: currentColor;
}

.page-title {
  max-width: 16ch;
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.96;
  text-shadow: 0 0 35px var(--accent-glow);
}

.subtitle {
  max-width: 52rem;
  margin-bottom: 2rem;
  color: #f1f5ff;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.hero-focus {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(8, 12, 22, 0.62);
  color: #fff;
  font-size: clamp(1.3rem, 3vw, 2.25rem);
  box-shadow: var(--card-shadow);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.85rem 1.4rem;
  border-radius: 18px;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease;
}

.btn-primary {
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent-warm), #8b5cff);
  color: #fff;
  box-shadow: 0 18px 36px rgba(139, 92, 255, 0.22);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(8, 14, 26, 0.74);
  color: #fff;
}

.btn-secondary:hover {
  border-color: rgba(128, 164, 255, 0.48);
  box-shadow: 0 18px 40px rgba(79, 125, 255, 0.18);
}

.btn-nav {
  min-height: 46px;
  padding-inline: 1.1rem;
  font-size: 0.86rem;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1280px, calc(100% - 2.5rem));
  margin: 1rem auto 0;
  padding: 0.95rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 22px;
  background: rgba(5, 8, 14, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 10px var(--accent-glow);
}

.nav-brand span {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.nav-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

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

.nav-links > a,
.nav-dropdown-link {
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 0.24s ease,
    text-shadow 0.24s ease;
}

.nav-links > a:hover,
.nav-links > a.active,
.nav-dropdown-link:hover,
.nav-dropdown-link.active {
  color: #fff;
  text-shadow: 0 0 14px var(--accent-glow);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.is-open .nav-dropdown-toggle {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-dropdown-toggle svg {
  width: 18px;
  height: 18px;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 0;
  min-width: 220px;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: var(--surface-strong);
  box-shadow: var(--card-shadow);
  display: grid;
  gap: 0.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

.nav-dropdown-panel a {
  display: block;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-dropdown-panel a:hover,
.nav-dropdown-panel a.active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel,
.nav-dropdown.is-open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
}

.section-heading {
  max-width: 58rem;
  margin-bottom: 2.6rem;
}

.section-heading .hero-eyebrow {
  margin-bottom: 0.85rem;
}

.section-title {
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  text-shadow: 0 0 18px rgba(79, 125, 255, 0.18);
}

.section-copy {
  max-width: 54rem;
  font-size: 1.14rem;
}

.grid-2,
.grid-3,
.metric-grid,
.quote-grid,
.tool-grid,
.workflow-grid,
.resource-grid,
.showcase-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

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

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

.card,
.metric-card,
.quote-card,
.workflow-card,
.resource-card,
.showcase-panel,
.command-callout {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.card,
.metric-card,
.quote-card,
.workflow-card,
.resource-card,
.showcase-panel {
  padding: clamp(1.4rem, 2vw, 2rem);
}

.card h3,
.metric-card h3,
.quote-card h3,
.workflow-card h3,
.resource-card h3,
.showcase-panel h3 {
  margin-bottom: 0.9rem;
  color: #fff;
  font-size: 1.18rem;
}

.metric-card {
  background:
    linear-gradient(180deg, rgba(79, 125, 255, 0.14), rgba(79, 125, 255, 0.02)),
    var(--surface);
}

.metric-value {
  margin-bottom: 0.55rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.metric-label {
  margin-bottom: 0.5rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: var(--card-shadow);
}

.media-frame-spaced {
  margin-top: 2rem;
}

.media-frame img {
  width: 100%;
  height: auto;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent-strong);
  font-family: var(--font-heading);
}

.note-strip {
  margin-top: 1.6rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.tool-card {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  text-decoration: none;
  box-shadow: var(--card-shadow);
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 4, 10, 0.02), rgba(2, 4, 10, 0.82)),
    linear-gradient(135deg, rgba(79, 125, 255, 0.22), rgba(255, 92, 92, 0.08));
}

.tool-card > div {
  position: relative;
  z-index: 1;
}

.tool-card.maps {
  background-image: url("/assets/bar-tools/map-creation-bg.jpg");
}

.tool-card.tweaks {
  background-image: url("/assets/bar-tools/bar-tweaks-bg.avif");
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(8, 13, 23, 0.74);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.icon-badge svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.tool-card h3 {
  margin-bottom: 0.65rem;
  color: #fff;
  font-size: 1.55rem;
}

.tool-card p {
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.86);
}

.branch-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 13, 23, 0.62);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.workflow-card {
  counter-increment: workflow-step;
}

.workflow-card::before {
  content: counter(workflow-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
}

.workflow-grid {
  counter-reset: workflow-step;
}

.command-callout {
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--accent-strong);
  background:
    linear-gradient(135deg, rgba(79, 125, 255, 0.1), rgba(79, 125, 255, 0.02)),
    var(--surface);
}

.command-callout p,
.command-callout strong {
  color: #fff;
}

.resource-card h4 {
  margin: 1.2rem 0 0.75rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.resource-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.resource-links a:hover {
  background: rgba(79, 125, 255, 0.22);
}

.embed-shell {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: var(--card-shadow);
}

.embed-shell iframe {
  min-height: 500px;
  border: 0;
}

.footer-note {
  margin-top: 1.2rem;
  font-size: 1rem;
}

footer {
  padding: 2rem 1rem 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(2, 4, 10, 0.78);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.youtube-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: #ff0000;
  color: #fff;
  box-shadow: 0 20px 45px rgba(255, 0, 0, 0.24);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
  z-index: 110;
}

.youtube-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(255, 0, 0, 0.34);
}

.youtube-fab svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

@media (max-width: 1080px) {
  .grid-2,
  .grid-3,
  .metric-grid,
  .quote-grid,
  .tool-grid,
  .workflow-grid,
  .resource-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    width: calc(100% - 1.5rem);
  }
}

@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    margin: 0 auto;
    width: calc(100% - 1rem);
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 22px;
    background: rgba(5, 8, 14, 0.98);
    box-shadow: var(--card-shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    transition:
      max-height 0.28s ease,
      padding 0.28s ease,
      border-color 0.28s ease;
  }

  .nav-links.active {
    max-height: 34rem;
    padding: 1rem 1.25rem 1.25rem;
    border-color: rgba(255, 255, 255, 0.06);
  }

  .nav-links > a,
  .nav-dropdown-link {
    display: block;
    padding: 0.95rem 0;
  }

  .nav-dropdown {
    padding: 0.2rem 0 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-dropdown-head {
    justify-content: space-between;
  }

  .nav-dropdown-panel {
    position: static;
    min-width: unset;
    padding: 0.4rem 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-dropdown:hover .nav-dropdown-panel {
    display: none;
  }

  .nav-dropdown.is-open .nav-dropdown-panel {
    display: grid;
  }

  .nav-dropdown-panel a {
    padding: 0.75rem 0 0.75rem 1rem;
    border-radius: 14px;
  }

  .btn-nav {
    margin-top: 1rem;
    width: 100%;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 18px;
  }

  .container {
    width: min(100%, calc(100% - 1.5rem));
  }

  .hero {
    min-height: 520px;
    padding: 6rem 0 4rem;
  }

  .page-title {
    max-width: none;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .tool-card {
    min-height: 320px;
  }

  .youtube-fab {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
  }

  .youtube-fab svg {
    width: 26px;
    height: 26px;
  }
}
