/* =====================================================
   Hardball Technologies — Main Stylesheet
   hardballtech.com
   ===================================================== */

:root {
  /* Brand Colors */
  --blue:           #2196F3;
  --blue-dark:      #1565C0;
  --blue-light:     #64B5F6;
  --blue-xlight:    #E3F2FD;

  /* Accent */
  --orange:         #F97316;
  --orange-dark:    #EA580C;

  /* Dark backgrounds */
  --dark-900:       #0B1526;
  --dark-800:       #112035;
  --dark-700:       #1A2F4A;

  /* Text */
  --text-heading:   #0F172A;
  --text-body:      #334155;
  --text-muted:     #64748B;
  --text-light:     #94A3B8;

  /* Surfaces */
  --surface-white:  #FFFFFF;
  --surface-light:  #F8FAFC;
  --surface-border: #E2E8F0;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;

  /* Spacing */
  --section-pad: 96px 24px;
  --section-pad-sm: 64px 24px;

  /* Radii */
  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 12px 32px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-xl:  0 24px 48px rgba(0,0,0,0.18);
  --shadow-blue: 0 8px 32px rgba(33,150,243,0.28);
}

/* ── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--surface-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

/* ── Layout Helpers ────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-pad); }
.section--sm { padding: var(--section-pad-sm); }
.section--dark { background: var(--dark-900); color: #fff; }
.section--tinted { background: var(--surface-light); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}

/* ── Typography ────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.eyebrow--light { color: var(--blue-light); }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.h3 { font-size: 1.3rem; }

.text-white, .section--dark h1,
.section--dark h2, .section--dark h3 { color: #fff; }

.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header p {
  max-width: 580px;
  margin: 16px auto 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(33,150,243,0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline--dark {
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline--dark:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Navigation ────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--surface-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
  border-radius: var(--radius);
  transition: all 0.15s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { background: var(--surface-light); color: var(--blue); }

.nav-links .btn {
  padding: 8px 18px;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-body);
}

/* ── Hero ──────────────────────────────────────── */
.hero {
  background: var(--dark-900);
  background-image:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(33,150,243,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(33,150,243,0.07) 0%, transparent 60%);
  padding: 110px 24px 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(33,150,243,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33,150,243,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(33,150,243,0.3);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 28px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero h1 span { color: var(--blue-light); }

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  margin-top: 80px;
  display: flex;
  justify-content: center;
}

.scroll-indicator {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, rgba(33,150,243,0.5), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Service Cards ─────────────────────────────── */
.services { padding: var(--section-pad); }

.service-card {
  background: var(--surface-white);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0;
  height: 4px;
  background: var(--blue);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--blue-xlight);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-xlight);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--blue);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.service-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
  display: block;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.97rem;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-body);
}

.service-list li::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  background: var(--blue-xlight);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%232196F3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 8l3.5 3.5L13 4.5'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Stats / Proof ─────────────────────────────── */
.stats {
  background: var(--dark-800);
  padding: 64px 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  padding: 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-number span { color: var(--blue-light); }

.stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Apps Section ──────────────────────────────── */
.apps { padding: var(--section-pad); background: var(--surface-light); }

.app-card {
  background: var(--surface-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.app-card-content {
  padding: 56px 48px;
}

.app-card-content .eyebrow { margin-bottom: 8px; }

.app-card-content h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.app-card-content p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.97rem;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-light);
  border: 1px solid var(--surface-border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.app-card-visual {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  height: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.app-icon-large {
  width: 140px;
  height: 140px;
  background: rgba(255,255,255,0.15);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

.app-icon-large svg {
  width: 72px;
  height: 72px;
  fill: rgba(255,255,255,0.9);
  stroke: none;
}

/* ── Why Section ───────────────────────────────── */
.why { padding: var(--section-pad); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}

.why-item {
  text-align: center;
  padding: 8px;
}

.why-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--blue-xlight), #fff);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--surface-border);
}

.why-icon svg {
  width: 30px;
  height: 30px;
  color: var(--blue);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-item h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.why-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── CTA Band ──────────────────────────────────── */
.cta-band {
  background: var(--dark-900);
  background-image:
    radial-gradient(ellipse 70% 100% at 80% 50%, rgba(33,150,243,0.14) 0%, transparent 70%);
  padding: 96px 24px;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.03em;
}

.cta-band p {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 40px;
}

/* ── Footer ────────────────────────────────────── */
.site-footer {
  background: var(--dark-900);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 56px 24px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-top: 16px;
  line-height: 1.7;
}

.footer-logo { height: 28px; filter: brightness(0) invert(1); }

.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  transition: color 0.15s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ── Policy / Support Pages ────────────────────── */
.page-hero {
  background: var(--dark-900);
  padding: 80px 24px 72px;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

.prose {
  padding: 72px 24px 96px;
}

.prose-inner {
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.4rem;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--surface-border);
  color: var(--text-heading);
}

.prose h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.prose h3 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 10px;
}

.prose p {
  color: var(--text-body);
  margin-bottom: 16px;
  font-size: 0.97rem;
  line-height: 1.75;
}

.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--text-body);
  font-size: 0.97rem;
}

.prose li { margin-bottom: 8px; line-height: 1.7; }

.prose a { color: var(--blue); }
.prose a:hover { color: var(--blue-dark); text-decoration: underline; }
.prose .btn-primary { color: #fff; }
.prose .btn-primary:hover { color: #fff; }
.prose .btn-outline--dark { color: var(--blue); }
.prose .btn-outline--dark:hover { color: #fff; }

.prose strong { color: var(--text-heading); }

.info-box {
  background: var(--blue-xlight);
  border: 1px solid rgba(33,150,243,0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--blue-dark);
  line-height: 1.6;
}

.info-box strong { color: var(--blue-dark); }

/* ── Support FAQ ───────────────────────────────── */
.faq-item {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-heading);
  background: var(--surface-white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 4px 24px 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  background: var(--surface-white);
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-item:nth-child(2n) { border-right: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .app-card { grid-template-columns: 1fr; }
  .app-card-visual { min-height: 240px; }
}

@media (max-width: 640px) {
  :root {
    --section-pad: 72px 20px;
    --section-pad-sm: 48px 20px;
  }

  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    padding: 16px;
    border-bottom: 1px solid var(--surface-border);
    gap: 4px;
    z-index: 99;
  }
  .nav-links.is-open a { padding: 10px 16px; }
  .nav-toggle { display: flex; }

  .grid-3 { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .service-card { padding: 32px 24px; }
  .app-card-content { padding: 36px 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}
