/* ============================================
   Blue Bison Digital
   ============================================ */

:root {
  --bg: #08090e;
  --bg-elevated: #0e1018;
  --accent: #89B6FD;
  --accent-bright: #a8cbff;
  --accent-glow: rgba(137, 182, 253, 0.12);
  --accent-glow-strong: rgba(137, 182, 253, 0.25);
  --white: #f0f2f5;
  --white-muted: rgba(240, 242, 245, 0.55);
  --white-subtle: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.07);
  --gradient-blue: #89B6FD;
  --gradient-purple: #b48eff;
  --gradient-cyan: #56d4e0;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--white);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* ---- Grain texture overlay ---- */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ---- Background atmosphere ---- */

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-glow .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.bg-glow .orb-1 {
  width: 700px;
  height: 700px;
  top: -15%;
  left: -10%;
  background: radial-gradient(circle, rgba(137, 182, 253, 0.12) 0%, transparent 70%);
}

.bg-glow .orb-2 {
  width: 500px;
  height: 500px;
  top: 30%;
  right: -15%;
  background: radial-gradient(circle, rgba(180, 142, 255, 0.08) 0%, transparent 70%);
}

.bg-glow .orb-3 {
  width: 600px;
  height: 600px;
  bottom: -10%;
  left: 20%;
  background: radial-gradient(circle, rgba(86, 212, 224, 0.06) 0%, transparent 70%);
}

/* ---- Grid pattern ---- */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 20%, transparent 100%);
}

/* ---- Layout ---- */

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

section {
  padding: 7rem 0;
  position: relative;
}

/* ---- Typography ---- */

h1, h2, h3 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
}

.hero-headline {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--white) 0%, var(--accent) 50%, var(--gradient-cyan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-subhead {
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--white-muted);
  font-weight: 400;
  margin-top: 1.75rem;
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 3.5rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--white);
}

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

/* ---- Section label ---- */

.section-label {
  display: inline-block;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(137, 182, 253, 0.2);
  border-radius: 100px;
  background: rgba(137, 182, 253, 0.05);
}

/* ---- Navigation ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled {
  background: rgba(8, 9, 14, 0.8);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  height: 30px;
  width: auto;
  display: block;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.nav-logo:hover {
  opacity: 1;
}

.nav-cta {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bg);
  text-decoration: none;
  letter-spacing: 0.03em;
  padding: 0.55rem 1.4rem;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 20px rgba(137, 182, 253, 0.2);
}

.nav-cta:hover {
  background: var(--accent-bright);
  box-shadow: 0 0 30px rgba(137, 182, 253, 0.35);
  transform: translateY(-1px);
}

/* ---- Hero ---- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(137, 182, 253, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

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

/* ---- Divider ---- */

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 20%, rgba(137, 182, 253, 0.12) 50%, var(--border) 80%, transparent 100%);
  max-width: 1000px;
  margin: 0 auto;
}

/* ---- Capabilities ---- */

.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.capability {
  padding: 2.25rem;
  background: var(--bg);
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.capability::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(137, 182, 253, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.capability:hover::before {
  opacity: 1;
}

.capability:hover {
  background: var(--bg-elevated);
}

.capability h3 {
  font-size: 1.05rem;
  color: var(--accent);
  position: relative;
}

.capability p {
  font-size: 0.92rem;
  line-height: 1.65;
  position: relative;
}

/* ---- About ---- */

.about-content {
  max-width: 640px;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.85;
}

/* ---- Contact ---- */

.contact {
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(137, 182, 253, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.contact-intro {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--white);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 3rem;
}

.contact-form {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-muted);
}

.form-field input,
.form-field textarea {
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 0.9rem 1rem;
  outline: none;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(137, 182, 253, 0.4);
  background: rgba(137, 182, 253, 0.03);
  box-shadow: 0 0 0 3px rgba(137, 182, 253, 0.08);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-submit {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--bg);
  background: var(--accent);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  align-self: flex-start;
  margin-top: 0.5rem;
  box-shadow: 0 0 24px rgba(137, 182, 253, 0.2);
}

.form-submit:hover {
  background: var(--accent-bright);
  box-shadow: 0 0 36px rgba(137, 182, 253, 0.35);
  transform: translateY(-2px);
}

.form-submit:active {
  transform: translateY(0);
}

/* ---- Footer ---- */

.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ---- Fade-in animation ---- */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.12s; }
.fade-in-delay-2 { transition-delay: 0.24s; }
.fade-in-delay-3 { transition-delay: 0.36s; }
.fade-in-delay-4 { transition-delay: 0.48s; }

/* ---- Responsive ---- */

@media (min-width: 640px) {
  .capabilities-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  section {
    padding: 9rem 0;
  }

  .nav-logo {
    height: 34px;
  }

  .container {
    padding: 0 2.5rem;
  }

  .capability {
    padding: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 85vh;
  }

  .capability {
    padding: 1.75rem;
  }

  section {
    padding: 5rem 0;
  }

  .bg-glow .orb {
    filter: blur(80px);
  }
}
