:root {
  --bg: #0f1720;
  --surface: #13202d;
  --surface-2: #1d2f42;
  --text: #eaf0f6;
  --muted: #b8c5d3;
  --brand: #d8b15e;
  --brand-2: #74b2dd;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #0d141d 0%, #101a25 100%);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 17, 24, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.brand span {
  color: var(--brand);
}

.menu-toggle {
  border: 1px solid var(--line);
  background: #152433;
  color: var(--text);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: none;
}

.nav-links {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: end;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 7, 10, 0.3), rgba(4, 8, 12, 0.66));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.8rem, 5.2vw, 3.35rem);
  line-height: 1.12;
  text-wrap: balance;
}

.hero p {
  margin-top: 1rem;
  max-width: 700px;
  color: #dbe5ef;
  font-size: clamp(1rem, 2.3vw, 1.25rem);
}

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.3rem 1rem 4rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.card {
  background: linear-gradient(180deg, rgba(25, 39, 55, 0.82), rgba(17, 29, 42, 0.92));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  color: #09101a;
  background: var(--brand);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.btn {
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.68rem 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: var(--brand);
  color: #0c131b;
}

.btn.secondary {
  background: transparent;
  border-color: rgba(216, 177, 94, 0.52);
  color: #f4ddaa;
}

.section-title {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: clamp(1.35rem, 2.7vw, 1.95rem);
}

.small-note {
  color: #9ab0c4;
  font-size: 0.95rem;
}

.app-hero {
  min-height: 55vh;
}

.barrelconnect-hero img {
  object-position: center center;
  filter: brightness(1.35);
}

.barrelconnect-hero .overlay {
  background: linear-gradient(180deg, rgba(3, 7, 10, 0.14), rgba(4, 8, 12, 0.44));
}

.bullrider-hero img {
  object-position: center top;
}

.dev-hero {
  min-height: 40vh;
  background: radial-gradient(circle at 10% 20%, rgba(116, 178, 221, 0.22), transparent 30%),
    radial-gradient(circle at 85% 35%, rgba(216, 177, 94, 0.3), transparent 28%),
    linear-gradient(180deg, #142331 0%, #0f1a24 100%);
  align-items: center;
}

.dev-hero .hero-content {
  padding: 3.5rem 1rem;
}

.ranch-hero-home img,
.ranch-hero-contact img {
  filter: brightness(1.28);
}

.ranch-hero-investor img {
  object-position: center center;
}
.brand-accent-barrel {
  color: #85d5ff;
}

.brand-accent-bull {
  color: #e6c97f;
}

.buckle-wrap {
  max-width: 380px;
  margin: 1.5rem auto 0;
  padding-top: 1.4rem;
  overflow: visible;
}

.buckle-wrap img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.apps-dev-preview {
  margin-top: 1rem;
}

.dev-list-grid h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 1fr;
}

.form {
  display: grid;
  gap: 0.7rem;
}

label {
  font-size: 0.9rem;
  color: #d6e0eb;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #102130;
  color: #e9f0f8;
  padding: 0.72rem 0.8rem;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  margin: 0.1rem 0 0.2rem;
  min-height: 1.1rem;
  font-size: 0.9rem;
  color: #c8d7e8;
}

.form-status.success {
  color: #66d59f;
}

.form-status.error {
  color: #ff8888;
}

.form button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.investor-page {
  max-width: 900px;
}

.investor-card {
  margin-top: 1rem;
}

.investor-summary {
  color: #d9e5f2;
  font-size: 1.03rem;
  line-height: 1.7;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0c141d;
}

.footer-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.15rem 1rem;
  color: #9eb0c3;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-subtle-link {
  color: #a9b8c8;
  text-decoration: none;
  border-bottom: 1px dotted rgba(169, 184, 200, 0.45);
}

.footer-subtle-link:hover {
  color: #d8e4f0;
  border-bottom-color: rgba(216, 228, 240, 0.8);
}

.legal h2 {
  margin-top: 2rem;
  margin-bottom: 0.45rem;
}

.legal p,
.legal li {
  color: #d4dfeb;
}

ul.compact {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
}

.overlay-caption {
  display: inline-block;
  margin-top: 0.6rem;
  background: rgba(7, 14, 21, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  color: #eef5fd;
}

.overlay-caption-lower-right {
  position: absolute;
  right: clamp(0.75rem, 2.8vw, 1.6rem);
  bottom: clamp(0.75rem, 3.2vw, 1.6rem);
  margin-top: 0;
  z-index: 2;
  background: rgba(7, 14, 21, 0.82);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.cross-quote-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 95;
  max-width: 220px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
}

.cross-quote-image {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.cross-quote-text {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.3;
  font-style: italic;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

@media (max-width: 760px) {
  .cross-quote-widget {
    right: 0.7rem;
    bottom: 0.7rem;
    max-width: 180px;
  }

  .cross-quote-image {
    width: 52px;
    height: 52px;
  }

  .cross-quote-text {
    font-size: 0.7rem;
  }
}

@media (max-width: 900px) {
  .grid.two,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: rgba(10, 17, 24, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    flex-direction: column;
    align-items: stretch;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.56rem 0.5rem;
  }
}