/* ============================================================
   BLACKRIDGE SERVICES — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Colors */
  --bg-base:        #080C14;
  --bg-surface:     #0F1623;
  --bg-card:        rgba(255, 255, 255, 0.04);
  --border:         rgba(255, 255, 255, 0.08);
  --border-hover:   rgba(245, 166, 35, 0.35);

  --accent-gold:    #F5A623;
  --accent-gold-dim:#C47E0E;
  --accent-cyan:    #00C8FF;
  --accent-cyan-dim:#008AAF;

  --text-primary:   #F0F4FF;
  --text-secondary: #B8C4D8;
  --text-muted:     #6B7A99;

  /* Gradients */
  --grad-gold:  linear-gradient(135deg, #F5A623, #FF6B00);
  --grad-cyan:  linear-gradient(135deg, #00C8FF, #0080FF);
  --grad-hero:  linear-gradient(160deg, rgba(8,12,20,0.7) 40%, rgba(0,100,140,0.15) 100%);

  /* Shadows */
  --shadow-gold:  0 0 30px rgba(245,166,35,0.25);
  --shadow-cyan:  0 0 30px rgba(0,200,255,0.2);
  --shadow-card:  0 4px 24px rgba(0,0,0,0.5);

  /* Spacing & Shape */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  40px;

  /* Transitions */
  --ease-fast:  0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-med:   0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow:  0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
  margin-top: 14px;
}

.highlight-gold { color: var(--accent-gold); }
.highlight-cyan { color: var(--accent-cyan); }

/* Fade-in animation for scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--ease-slow), transform var(--ease-slow);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--ease-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-gold);
  color: #fff;
  box-shadow: 0 4px 20px rgba(245,166,35,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245,166,35,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-cyan);
}

.btn-lg { padding: 17px 36px; font-size: 1.05rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--ease-med);
}

#navbar.scrolled {
  padding: 12px 0;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo svg {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--ease-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--ease-fast);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { margin-left: auto; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--ease-fast);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  background:
    var(--grad-hero),
    url('assets/hero_background.png') center/cover no-repeat;
  overflow: hidden;
}

/* Decorative orbs */
#hero::before,
#hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
#hero::before {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(245,166,35,0.18) 0%, transparent 70%);
  top: 10%;
  right: 5%;
  animation: floatOrb 8s ease-in-out infinite;
}
#hero::after {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(0,200,255,0.14) 0%, transparent 70%);
  bottom: 15%;
  left: 5%;
  animation: floatOrb 10s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(245,166,35,0.3);
  background: rgba(245,166,35,0.08);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-title .line-accent {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.hero-stat-num span { color: var(--accent-gold); }
.hero-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
#how-it-works {
  padding: 110px 0;
  background: var(--bg-surface);
  position: relative;
}

#how-it-works::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
  position: relative;
}

/* CAUSE OF ISSUE: Connector line was here. It has been removed. */

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--ease-med);
  position: relative;
  z-index: 1;
}

.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.step-card:nth-child(1) .step-number {
  background: rgba(245,166,35,0.12);
  color: var(--accent-gold);
  border: 2px solid rgba(245,166,35,0.3);
}
.step-card:nth-child(2) .step-number {
  background: rgba(0,200,255,0.1);
  color: var(--accent-cyan);
  border: 2px solid rgba(0,200,255,0.25);
}
.step-card:nth-child(3) .step-number {
  background: rgba(245,166,35,0.12);
  color: var(--accent-gold);
  border: 2px solid rgba(245,166,35,0.3);
}

.step-icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   SERVICES
   ============================================================ */
#services {
  padding: 110px 0;
  background: var(--bg-base);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--ease-med);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease-med);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  border-color: rgba(245,166,35,0.2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.2);
}

.service-card.cyan-accent .service-icon-wrap {
  background: rgba(0,200,255,0.08);
  border-color: rgba(0,200,255,0.2);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   WHY BLACKRIDGE
   ============================================================ */
#why-us {
  padding: 110px 0;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

#why-us::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.07) 0%, transparent 70%);
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-visual {
  position: relative;
}

.why-metrics-card {
  background: rgba(15,22,35,0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.metric-row:last-child { border-bottom: none; }

.metric-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.metric-bar-wrap {
  flex: 1;
  margin: 0 20px;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  overflow: hidden;
}

.metric-bar {
  height: 100%;
  border-radius: 6px;
  background: var(--grad-gold);
  width: 0;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-bar.cyan { background: var(--grad-cyan); }
.metric-val { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }

.floating-badge {
  position: absolute;
  background: rgba(15,22,35,0.95);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-gold);
  animation: floatBadge 4s ease-in-out infinite;
}

.floating-badge.badge-1 {
  top: -24px;
  right: -24px;
}

.floating-badge.badge-2 {
  bottom: -24px;
  left: -16px;
  animation-delay: 2s;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.badge-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-gold);
}
.badge-lbl { font-size: 0.75rem; color: var(--text-muted); }

.why-features {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
}

.why-feature {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.why-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.why-feature h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.why-feature p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   STATS / COUNTERS
   ============================================================ */
#stats {
  padding: 90px 0;
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.stat-item {
  padding: 36px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--ease-fast);
}

.stat-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  max-width: 160px;
  margin: 0 auto;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
#testimonials {
  padding: 110px 0;
  background: var(--bg-surface);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--ease-med);
}

.testimonial-card:hover {
  border-color: rgba(0,200,255,0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-cyan);
}

.testimonial-stars { color: var(--accent-gold); font-size: 0.9rem; margin-bottom: 16px; }
.testimonial-text { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; font-style: italic; }

.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}
.author-name { font-weight: 600; font-size: 0.95rem; }
.author-role { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   CTA BANNER
   ============================================================ */
#cta-banner {
  padding: 100px 0;
  background: var(--grad-hero);
  text-align: center;
}

.cta-inner { max-width: 700px; margin: 0 auto; }
.cta-title { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 900; line-height: 1.1; margin-bottom: 24px; }
.cta-sub { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 40px; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
#contact { padding: 110px 0; background: var(--bg-surface); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.contact-detail { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; font-size: 1.05rem; }
.contact-detail-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(245,166,35,0.1); display: flex; align-items: center; justify-content: center;
}

.contact-form {
  background: var(--bg-base); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-card);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--bg-surface); border: 1px solid var(--border);
  color: var(--text-primary); font-family: 'Inter', sans-serif; font-size: 0.95rem; transition: all var(--ease-fast);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent-gold); background: rgba(255,255,255,0.05);
}
.form-submit { width: 100%; justify-content: center; }
.form-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer { background: var(--bg-base); padding: 80px 0 40px; border-top: 1px solid var(--border); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; max-width: 400px; }
.footer-col h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 24px; color: #fff; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: var(--text-muted); transition: color var(--ease-fast); }
.footer-col a:hover { color: var(--accent-gold); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }
.footer-socials { display: flex; gap: 16px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-surface); display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: all var(--ease-fast);
}
.social-btn:hover { background: var(--accent-gold); color: #fff; transform: translateY(-3px); }

#scroll-top {
  position: fixed; bottom: 30px; right: 30px; z-index: 99;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--bg-surface); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer; transition: all var(--ease-fast);
  opacity: 0; pointer-events: none; transform: translateY(20px);
}
#scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#scroll-top:hover { background: var(--accent-gold); color: #fff; border-color: var(--accent-gold); }

/* ============================================================
   RESPONSIVE (MOBILE)
   ============================================================ */
@media (max-width: 992px) {
  .hero-title { font-size: 3.2rem; }
  .hero-stats { gap: 24px; }
  .steps-grid, .services-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .why-inner, .contact-inner { grid-template-columns: 1fr; gap: 50px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-stats, .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 2.5rem; }
  .steps-grid, .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
  .hero-content { align-items: center; text-align: center; }
  .hero-desc { margin: 0 auto 30px; }
  .hero-actions { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
}
