/* ============================================
   BlackFish CSS - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
  --bf-ink: #0b1723;
  --bf-ocean: #10293d;
  --bf-cyan: #48d8d1;
  --bf-mist: #eaf6f7;
  --bf-sand: #f7f5ef;
  --bf-line: rgba(16, 41, 61, 0.12);
  --bf-copy: #415260;
  --bf-warm: #f2b35d;
  --bf-mono-1: #111111;
  --bf-mono-2: #303030;
  --bf-mono-3: #f4f4f4;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--bf-ink);
  background: linear-gradient(180deg, #f8fbfd 0%, #f7f5ef 100%);
  font-family: "DM Sans", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

p {
  color: var(--bf-copy);
}

a {
  color: var(--bf-ocean);
}

/* Layout */
.site-shell {
  width: min(1160px, calc(100vw - 2rem));
  margin: 0 auto;
}

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(248, 251, 253, 0.84);
  border-bottom: 1px solid rgba(11, 23, 35, 0.06);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--bf-ink);
  font-weight: 700;
  text-decoration: none;
}

.site-brand img {
  height: 2.5rem;
  width: auto;
}

.site-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-links a {
  color: var(--bf-ink);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.site-links a:hover {
  color: var(--bf-ocean);
}

.site-links a.site-button {
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.375rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 50;
}

.hamburger span {
  display: block;
  width: 1.75rem;
  height: 2px;
  background: var(--bf-ink);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(calc(0.375rem + 1px)) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(calc(-0.375rem - 1px)) rotate(-45deg);
}

/* Buttons */
.site-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-size: 0.95rem;
}

.site-button:hover {
  transform: translateY(-1px);
}

.site-button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--bf-ocean), #1d3a52);
  box-shadow: 0 14px 30px rgba(11, 23, 35, 0.22);
}

.site-button--primary:hover {
  background: linear-gradient(135deg, #0e2538, var(--bf-ocean));
  box-shadow: 0 18px 36px rgba(11, 23, 35, 0.28);
}

.site-button--ghost {
  color: var(--bf-ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(11, 23, 35, 0.12);
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(72, 216, 209, 0.16);
  color: var(--bf-ocean);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow--quiet {
  background: transparent;
  padding: 0;
  color: var(--bf-ocean);
  font-size: 0.78rem;
  margin-bottom: 0.65rem;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 5rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(72, 216, 209, 0.18), transparent 35%),
    linear-gradient(180deg, #07141f 0%, #0b1c2a 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.hero__copy {
  max-width: 36rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(72, 216, 209, 0.16);
  color: var(--bf-cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 1rem 0 1.25rem;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.02;
  color: #fff;
  max-width: 22ch;
}

.hero__intro {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.78);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.hero__badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.hero__badge {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.hero__badge strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: #fff;
}

.hero__badge p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

/* Hero browser mockup */
.hero__mockup {
  position: relative;
  perspective: 1200px;
}

.hero__browser {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0e1d2b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 12px 30px rgba(72, 216, 209, 0.12);
}

.hero__mockup .hero__browser {
  transform: rotate3d(0, 1, 0, -6deg) rotate3d(1, 0, 0, 2deg);
  transform-origin: left center;
}

.hero__browser-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: #122535;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero__browser-bar span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.hero__browser-bar span:nth-child(1) { background: #ff5f57; }
.hero__browser-bar span:nth-child(2) { background: #febc2e; }
.hero__browser-bar span:nth-child(3) { background: #28c840; }

.hero__browser img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================
   Logo Bar
   ============================================ */
.logo-bar {
  padding: 2.5rem 0;
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid var(--bf-line);
}

.logo-bar__label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6a7a89;
  margin: 0 0 1.5rem;
}

.logo-bar__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.logo-bar__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  opacity: 0.65;
  filter: grayscale(0.4);
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.logo-bar__item:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: translateY(-2px);
}

.logo-bar__item img {
  max-height: 100%;
  max-width: 11rem;
  width: auto;
  display: block;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 5rem 0;
}

.section__heading {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.section__heading h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

.section__heading p {
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ============================================
   System Tiles ("What we build")
   ============================================ */
.system-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.system-tile {
  position: relative;
  padding: 1.75rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--bf-line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.system-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(11, 23, 35, 0.08);
  border-color: rgba(72, 216, 209, 0.4);
}

.system-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(72, 216, 209, 0.18), rgba(72, 216, 209, 0.06));
  color: var(--bf-ocean);
  font-size: 1.15rem;
}

.system-tile h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--bf-ink);
}

.system-tile p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ============================================
   Case Studies (full-bleed band)
   ============================================ */
.case-band {
  padding: 5rem 0;
  background:
    linear-gradient(180deg, var(--bf-mist) 0%, #ffffff 100%);
  border-top: 1px solid var(--bf-line);
  border-bottom: 1px solid var(--bf-line);
}

.case-band .eyebrow--quiet {
  margin-bottom: 1.5rem;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.case-study:last-child {
  margin-bottom: 0;
}

.case-study--reverse .case-study__copy {
  order: 2;
}

.case-study--reverse .case-study__visual {
  order: 1;
}

.case-study__copy h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.case-study__lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--bf-ink);
  margin: 0 0 1rem;
}

.case-study__copy p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.case-study__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bf-line);
  font-size: 0.93rem;
}

.case-study__meta strong {
  color: var(--bf-ink);
}

.case-study__meta a {
  color: var(--bf-ocean);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================
   Website Section (3 simple features)
   ============================================ */
.website-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.website-feature {
  padding: 1.75rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--bf-line);
}

.website-feature h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--bf-ink);
}

.website-feature p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ============================================
   Process (4 numbered steps)
   ============================================ */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.process__step {
  padding: 1.5rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--bf-line);
}

.process__step h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.process__step p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.process__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--bf-ocean);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ============================================
   Support / About split
   ============================================ */
.support-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
}

.highlight {
  padding: 2rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--bf-line);
  box-shadow: 0 18px 50px rgba(10, 25, 38, 0.05);
}

.highlight h2 {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.15;
}

.highlight > p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 0.75rem;
}

.highlight ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  padding: 0;
  list-style: none;
  margin-top: 1.25rem;
}

.highlight ul li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  background: rgba(72, 216, 209, 0.08);
  color: var(--bf-ink);
  font-weight: 600;
  font-size: 0.93rem;
}

.highlight ul li::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--bf-ocean);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.about-panel {
  padding: 2rem;
  border-radius: 24px;
  background: var(--bf-ocean);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.about-panel::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(72, 216, 209, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.about-panel .eyebrow--quiet {
  color: var(--bf-cyan);
}

.about-panel h3 {
  font-size: 1.4rem;
  margin: 0.5rem 0 1rem;
  color: #fff;
}

.about-panel p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0 0 0.85rem;
}

.about-panel__location {
  margin-top: 1.25rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.88rem !important;
  color: rgba(255, 255, 255, 0.65) !important;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: 2.25rem 2.5rem;
  margin: 1rem 0 5rem;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(72, 216, 209, 0.18), rgba(242, 179, 93, 0.12)),
    #fff;
  border: 1px solid var(--bf-line);
  box-shadow: 0 20px 50px rgba(10, 25, 38, 0.06);
}

.cta__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta .eyebrow {
  background: rgba(255, 255, 255, 0.7);
  color: var(--bf-ink);
  margin-bottom: 0.5rem;
}

.cta p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 48ch;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  padding: 4rem 0 3rem;
  border-top: 1px solid var(--bf-line);
  background: rgba(255, 255, 255, 0.7);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer__brand h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.site-footer__brand p,
.site-footer__column a,
.site-footer__column p {
  color: var(--bf-copy);
  font-size: 0.95rem;
  line-height: 1.6;
}

.site-footer__column h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.site-footer__column a {
  display: block;
  margin-top: 0.5rem;
  text-decoration: none;
}

.site-footer__column a:hover {
  color: var(--bf-ocean);
}

.site-footer__legal {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bf-line);
  color: #607180;
  font-size: 0.9rem;
}

/* Policy Page */
.policy-page {
  padding: 4rem 0 5rem;
}

.policy-page .container {
  width: min(860px, calc(100vw - 2rem));
}

.policy-page h2,
.policy-page h3 {
  color: var(--bf-ink);
}

.policy-page p,
.policy-page li {
  line-height: 1.7;
  color: var(--bf-copy);
}

.policy-page ul {
  padding-left: 1.25rem;
}

/* Utility Classes */
.bg-bf-black {
  background-color: #1b1b1b !important;
}

.text-bf-black {
  color: #1b1b1b !important;
}

/* ============================================
   Media Queries
   ============================================ */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero__mockup {
    max-width: 36rem;
    margin: 0 auto;
  }

  .hero__mockup .hero__browser {
    transform: none;
  }

  .case-study {
    gap: 2rem;
  }

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

@media (max-width: 900px) {
  .hero {
    padding: 3.5rem 0 3.5rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }

  .section,
  .case-band {
    padding: 3.5rem 0;
  }

  .system-tiles,
  .website-grid,
  .support-grid,
  .hero__badges {
    grid-template-columns: 1fr;
  }

  .case-study {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .case-study--reverse .case-study__copy {
    order: 2;
  }

  .case-study--reverse .case-study__visual {
    order: 1;
  }

  .cta {
    padding: 1.75rem;
  }

  .cta__row {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .site-nav__inner {
    padding: 1rem 0;
  }

  .hamburger {
    display: flex;
  }

  .site-links {
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(248, 251, 253, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(11, 23, 35, 0.06);
    box-shadow: 0 10px 30px rgba(11, 23, 35, 0.12);
    padding: 1.5rem;
    gap: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                padding 0.4s ease;
  }

  .site-links.mobile-open {
    max-height: 500px;
    opacity: 1;
    padding: 1.5rem;
  }

  .site-links a {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid rgba(11, 23, 35, 0.06);
  }

  .site-links a:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
  }

  .logo-bar__row {
    gap: 2rem;
  }

  .logo-bar__item {
    height: 2.75rem;
  }

  .logo-bar__item img {
    max-width: 9rem;
  }
}

@media (max-width: 560px) {
  .process {
    grid-template-columns: 1fr;
  }
}
