/* ============================================================
   AI Agents for Business — Shared Stylesheet (FlowNorth design system)
   Fonts: Inter from Google Fonts
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   CSS Reset & Base
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1A202C;
  background-color: #F8FAFC;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: #1A202C;
}

/* Fluid heading sizes */
h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  color: #1A202C;
}

.text-muted {
  color: #64748B;
}

.text-accent {
  color: #00C2FF;
}

.text-blue {
  color: #0055FF;
}

/* ============================================================
   Layout Utilities
   ============================================================ */

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-sm {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.125rem;
  color: #64748B;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.text-center { text-align: center; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary — Blue */
.btn-primary {
  background-color: #0055FF;
  color: #ffffff;
  border-color: #0055FF;
}

.btn-primary:hover {
  background-color: #0044DD;
  border-color: #0044DD;
  box-shadow: 0 4px 16px rgba(0, 85, 255, 0.3);
}

/* Outline */
.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* Outline dark (on light bg) */
.btn-outline-dark {
  background-color: transparent;
  color: #0055FF;
  border-color: #0055FF;
}

.btn-outline-dark:hover {
  background-color: #0055FF;
  color: #ffffff;
}

/* Nav button */
.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  background-color: #ffffff;
  color: #0055FF;
  border-radius: 6px;
  border: 2px solid #0055FF;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.btn-nav:hover {
  background-color: #0055FF;
  color: #ffffff;
}

/* Large button modifier */
.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #0A1628;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}

.logo {
  font-size: 1.375rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo span {
  color: #00C2FF;
}

.logo-footer {
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.nav-links li a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links li a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  flex-direction: column;
  background-color: #0A1628;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.25rem;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s ease;
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile a:hover {
  color: #00C2FF;
}

.nav-mobile .btn-nav {
  margin-top: 0.75rem;
  width: 100%;
  text-align: center;
}

/* ============================================================
   Badges / Tags
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 100px;
  background-color: rgba(0, 194, 255, 0.12);
  color: #00C2FF;
  letter-spacing: 0.01em;
  border: 1px solid rgba(0, 194, 255, 0.25);
}

.badge-blue {
  background-color: rgba(0, 85, 255, 0.1);
  color: #0055FF;
  border-color: rgba(0, 85, 255, 0.2);
}

.badge-dark {
  background-color: rgba(0, 194, 255, 0.15);
  color: #00C2FF;
  border-color: rgba(0, 194, 255, 0.3);
}

/* ============================================================
   Hero Section
   ============================================================ */

.hero {
  background-color: #0A1628;
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 85, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero h1 .accent {
  color: #00C2FF;
}

.hero-subhead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.72);
  max-width: 700px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Trust bar */
.trust-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
}

.trust-bar-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.trust-bar-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
}

.trust-bar-logos span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.trust-bar-logos span:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   Cards
   ============================================================ */

.card {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.1);
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(0, 85, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.card h3 {
  margin-bottom: 0.625rem;
  color: #1A202C;
}

.card p {
  color: #64748B;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0055FF;
  transition: gap 0.2s ease;
}

.card-link:hover {
  gap: 0.625rem;
}

.card-link::after {
  content: '→';
  font-size: 1rem;
}

/* Problem cards */
.problem-card {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  padding: 1.75rem;
  border-left: 4px solid #0055FF;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.1);
}

.problem-emoji {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.problem-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
}

.problem-card p {
  color: #64748B;
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.problem-card .solution-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0055FF;
  background-color: rgba(0, 85, 255, 0.07);
  padding: 0.3125rem 0.75rem;
  border-radius: 100px;
}

/* Service cards */
.service-card {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.12);
  border-color: #0055FF;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(0, 85, 255, 0.1), rgba(0, 194, 255, 0.08));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.375rem;
  font-size: 1.625rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1875rem;
}

.service-card p {
  color: #64748B;
  font-size: 0.9375rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.5rem;
}

.service-card .btn-outline-dark {
  align-self: flex-start;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* Tool cards */
.tool-card {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  padding: 1.375rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
  border-color: #00C2FF;
  box-shadow: 0 4px 16px rgba(0, 194, 255, 0.1);
}

.tool-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1A202C;
}

.tool-desc {
  font-size: 0.85rem;
  color: #64748B;
  line-height: 1.5;
}

/* Blog cards */
.blog-card {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.1);
}

.blog-card-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #0A1628 0%, #0A2040 50%, #0055FF20 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}

.blog-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10, 22, 40, 0.4));
}

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0055FF;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.625rem;
}

.blog-card h3 {
  font-size: 1.0625rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: #1A202C;
}

.blog-card p {
  font-size: 0.9rem;
  color: #64748B;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0055FF;
  transition: gap 0.2s ease;
}

.blog-read-more:hover {
  gap: 0.625rem;
}

.blog-read-more::after {
  content: '→';
}

/* ============================================================
   How It Works — Step Cards
   ============================================================ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  position: relative;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0055FF, #00C2FF);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step-card h3 {
  margin-bottom: 0.625rem;
  font-size: 1.0625rem;
}

.step-card p {
  font-size: 0.9375rem;
  color: #64748B;
  line-height: 1.65;
}

/* ============================================================
   About Teaser
   ============================================================ */

.about-teaser {
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-teaser-content h2 {
  margin-bottom: 1rem;
}

.about-teaser-content p {
  color: #64748B;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.about-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.about-stat {
  background-color: #F8FAFC;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  padding: 1.25rem;
  text-align: center;
}

.about-stat-number {
  font-size: 1.875rem;
  font-weight: 700;
  color: #0055FF;
  line-height: 1;
  margin-bottom: 0.375rem;
}

.about-stat-label {
  font-size: 0.8125rem;
  color: #64748B;
  font-weight: 500;
}

/* ============================================================
   CTA Section
   ============================================================ */

.cta-section {
  background-color: #0A1628;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 85, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

.cta-section .btn-primary {
  font-size: 1.0625rem;
  padding: 0.9375rem 2.25rem;
}

/* ============================================================
   Testimonial / Trust Section
   ============================================================ */

.trust-section {
  background-color: #F8FAFC;
}

.testimonial-card {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  padding: 1.75rem;
}

.testimonial-quote {
  font-size: 1rem;
  color: #1A202C;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-quote::before {
  content: '"';
  font-size: 1.5rem;
  color: #00C2FF;
  font-style: normal;
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 0.125rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 85, 255, 0.1);
  color: #0055FF;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1A202C;
}

.testimonial-title {
  font-size: 0.8125rem;
  color: #64748B;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background-color: #0A1628;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer .logo {
  display: block;
  margin-bottom: 0.625rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 320px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
  padding: 0.25rem 0;
}

.footer-links a:hover {
  color: #00C2FF;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}

/* ============================================================
   Section Backgrounds
   ============================================================ */

.bg-white {
  background-color: #ffffff;
}

.bg-light {
  background-color: #F8FAFC;
}

.bg-navy {
  background-color: #0A1628;
}

/* ============================================================
   Utility Dividers / Spacers
   ============================================================ */

.divider {
  border: none;
  border-top: 1px solid #E2E8F0;
  margin: 2rem 0;
}

/* ============================================================
   Responsive — Tablet (≤1024px)
   ============================================================ */

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-teaser {
    gap: 2rem;
    padding: 2rem;
  }
}

/* ============================================================
   Responsive — Mobile (≤768px)
   ============================================================ */

@media (max-width: 768px) {
  /* Nav */
  .nav-links {
    display: none;
  }

  .nav-inner > .btn-nav {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Grids collapse to single column */
  .grid-2,
  .grid-3,
  .grid-4,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  /* Hero */
  .hero {
    padding: 4rem 0 3.5rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Sections */
  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  /* About teaser */
  .about-teaser {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.75rem;
  }

  .about-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CTA */
  .cta-section {
    padding: 3.5rem 0;
  }

  /* Footer */
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ============================================================
   Responsive — Small Mobile (≤480px)
   ============================================================ */

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .trust-bar-logos {
    gap: 0.5rem 1.25rem;
  }

  .about-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   Extras for the AI agents / automation sites
   (appended to the FlowNorth base stylesheet by _sitegen/build.py)
   ============================================================ */

/* Long wordmarks */
.logo-long { font-size: 1.15rem; }
@media (max-width: 480px) { .logo-long { font-size: 0.98rem; } }

/* Inner-page hero */
.page-hero {
  background-color: #0A1628;
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(0, 85, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow {
  color: #00C2FF;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.page-hero h1 { color: #ffffff; margin-bottom: 1rem; max-width: 860px; }
.page-hero p { color: rgba(255, 255, 255, 0.72); font-size: 1.125rem; max-width: 700px; line-height: 1.7; }
.page-hero .hero-ctas { justify-content: flex-start; margin: 2rem 0 0; }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 1.25rem; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: #00C2FF; }

/* Long-form text */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin: 2.5rem 0 1rem; }
.prose h3 { margin: 2rem 0 0.75rem; }
.prose p { color: #334155; font-size: 1.0625rem; line-height: 1.8; margin-bottom: 1.25rem; }
.prose ul, .prose ol { margin: 0 0 1.5rem 1.25rem; color: #334155; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.5rem; line-height: 1.7; font-size: 1.0625rem; }
.prose a { color: #0055FF; text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: #1A202C; }
.prose table { margin: 1.5rem 0 2rem; }

/* Long URLs and citation strings must wrap on phones */
.prose, .callout, .faq details p { overflow-wrap: anywhere; }

/* Callout box */
.callout {
  background: rgba(0, 85, 255, 0.05);
  border: 1px solid rgba(0, 85, 255, 0.18);
  border-left: 4px solid #0055FF;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}
.callout p { margin: 0; color: #1A202C; }

/* Check list */
.check-list { display: flex; flex-direction: column; gap: 0.875rem; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  color: #334155;
  line-height: 1.65;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #0055FF;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-list li strong { color: #1A202C; }

/* Two-column feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.split-card { background: #ffffff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 2rem; }
.split-card h3 { margin-bottom: 1rem; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.price-card {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border: 2px solid #0055FF; box-shadow: 0 12px 40px rgba(0, 85, 255, 0.12); }
.price-card .price-label { font-size: 0.85rem; font-weight: 600; color: #0055FF; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.price-card h3 { margin-bottom: 0.75rem; }
.price-amount { font-size: 2rem; font-weight: 700; color: #0A1628; line-height: 1.1; margin-bottom: 0.25rem; }
.price-amount small { font-size: 0.95rem; font-weight: 500; color: #64748B; }
.price-note { font-size: 0.875rem; color: #64748B; margin-bottom: 1.25rem; }
.price-card .check-list { margin-bottom: 1.5rem; flex: 1; }
.price-card .btn { align-self: flex-start; }
.needs-price { background: #FEF3C7; color: #92400E; padding: 0 0.35rem; border-radius: 4px; font-size: 0.9em; }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; overflow: hidden; font-size: 0.95rem; }
.compare-table th, .compare-table td { text-align: left; padding: 0.875rem 1rem; border-bottom: 1px solid #E2E8F0; vertical-align: top; }
.compare-table th { background: #F1F5F9; font-weight: 600; color: #0A1628; }
.compare-table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq details { background: #ffffff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 0 1.5rem; }
.faq details[open] { border-color: #0055FF; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 0;
  font-weight: 600;
  color: #0A1628;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: #0055FF; font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: #475569; line-height: 1.75; padding-bottom: 1.25rem; }

/* Area / link cards */
.link-card {
  display: block;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.35rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.link-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(10, 22, 40, 0.1); border-color: #0055FF; }
.link-card h3 { font-size: 1.0625rem; margin-bottom: 0.4rem; }
.link-card p { color: #64748B; font-size: 0.9rem; line-height: 1.6; }
.link-card .card-link { margin-top: 0.75rem; }

/* Founder block */
.founder { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; align-items: start; }
.founder-photo { border-radius: 14px; overflow: hidden; background: #E2E8F0; aspect-ratio: 3 / 4; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.founder-bio p { color: #334155; font-size: 1.0625rem; line-height: 1.8; margin-bottom: 1.1rem; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 4rem; align-items: start; }
.form-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 2.5rem; }
.form-card h2 { font-size: 1.4rem; color: #0A1628; margin-bottom: 0.5rem; }
.form-sub { color: #64748B; font-size: 0.95rem; margin-bottom: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-card label { display: block; font-size: 0.875rem; font-weight: 600; color: #374151; margin-bottom: 0.375rem; }
.form-card .req { color: #ef4444; margin-left: 2px; }
.form-card input[type="text"], .form-card input[type="email"], .form-card input[type="tel"], .form-card select, .form-card textarea {
  width: 100%; padding: 0.7rem 0.875rem; border: 1.5px solid #E2E8F0; border-radius: 8px; font-family: 'Inter', sans-serif;
  font-size: 0.95rem; color: #1A202C; background: #fff; transition: border-color 0.2s; outline: none;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { border-color: #0055FF; box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.08); }
.form-card textarea { resize: vertical; min-height: 120px; }
.submit-btn { width: 100%; background: #0055FF; color: #fff; border: none; padding: 0.95rem 1.5rem; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background 0.2s; margin-top: 0.5rem; }
.submit-btn:hover { background: #0044cc; }
.submit-btn:disabled { opacity: 0.7; cursor: wait; }
.form-note { font-size: 0.8rem; color: #94a3b8; text-align: center; margin-top: 0.75rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.expect-list { display: flex; flex-direction: column; gap: 1.25rem; margin: 1.5rem 0 2rem; }
.expect-list li { display: flex; gap: 0.875rem; }
.expect-icon { width: 36px; height: 36px; background: #eff6ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }
.expect-list h3 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.expect-list p { font-size: 0.9rem; color: #64748B; line-height: 1.55; }

/* Responsive extras */
@media (max-width: 1024px) {
  .price-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .split, .founder, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 1.75rem; }
  .page-hero { padding: 3.5rem 0 2.75rem; }
  .page-hero .hero-ctas { justify-content: center; }
  .founder-photo { max-width: 260px; }
}

/* ============================================================
   Systems portfolio (/systems.html)
   ============================================================ */
.sys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.sys-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; transition: border-color 0.2s ease, box-shadow 0.2s ease; scroll-margin-top: 90px; }
.sys-card:hover { border-color: #0055FF; box-shadow: 0 8px 28px rgba(10, 22, 40, 0.08); }
.sys-card:target { border-color: #00C2FF; box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.25); }
.sys-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.sys-head h3 { font-size: 1.05rem; line-height: 1.35; }
.sys-card p { color: #475569; font-size: 0.925rem; line-height: 1.65; }
.sys-stack { margin-top: auto; }
.sys-stack summary { cursor: pointer; font-size: 0.8rem; font-weight: 600; color: #64748B; list-style: none; padding: 0.25rem 0; }
.sys-stack summary::-webkit-details-marker { display: none; }
.sys-stack summary::before { content: '+ '; color: #0055FF; font-weight: 700; }
.sys-stack[open] summary::before { content: '2  '; }
.sys-stack[open] .chips { margin-top: 0.5rem; }
.sys-industry { font-size: 0.8rem !important; font-weight: 600; color: #0055FF !important; text-transform: uppercase; letter-spacing: 0.05em; }
.status { flex-shrink: 0; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.25rem 0.55rem; border-radius: 100px; white-space: nowrap; }
.st-live { background: #DCFCE7; color: #166534; }
.st-use { background: #E0F2FE; color: #075985; }
.st-proto { background: #FEF3C7; color: #92400E; }
.st-dev { background: #EDE9FE; color: #5B21B6; }
.st-rnd { background: #F1F5F9; color: #475569; }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; font-weight: 500; padding: 0.2rem 0.55rem; border-radius: 6px; background: rgba(0, 85, 255, 0.07); color: #0044cc; }
.chip-stack { background: #F1F5F9; color: #334155; }
.chips-cloud { gap: 0.45rem; justify-content: center; }
.chip-tech { font-size: 0.82rem; background: #fff; border: 1px solid #E2E8F0; color: #1A202C; padding: 0.3rem 0.65rem; }
.chip-tech small { color: #0055FF; font-weight: 700; font-size: 0.7rem; }
.founder-quote { border-left: 4px solid #00C2FF; padding: 0.5rem 0 0.5rem 1.25rem; margin: 1rem 0 0.5rem; font-size: 1.2rem; font-weight: 600; line-height: 1.5; color: #0A1628; }
.founder-quote cite { display: block; margin-top: 0.6rem; font-size: 0.875rem; font-weight: 500; font-style: normal; color: #64748B; }
.founder-quote cite a, .footer-copy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sys-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 2.5rem; }
.sys-jump a { font-size: 0.85rem; font-weight: 600; padding: 0.45rem 0.85rem; border-radius: 100px; border: 1px solid #E2E8F0; background: #fff; color: #0A1628; }
.sys-jump a:hover { border-color: #0055FF; color: #0055FF; }
.sys-method { text-align: center; color: #64748B; font-size: 0.85rem; margin-top: 2rem; }
@media (max-width: 480px) { .sys-grid { grid-template-columns: 1fr; } .sys-head { flex-direction: column; } }
.sys-teaser-more { margin-top: auto; font-weight: 600; font-size: 0.9rem; color: #0055FF; }
.sys-teaser-more:hover { text-decoration: underline; }
.sys-more { display: none; }
@media (max-width: 768px) {
  .sys-grid:not(.open) > .sys-card:nth-child(n+4) { display: none; }
  .sys-more { display: block; width: 100%; margin-top: 1rem; padding: 0.85rem 1rem; border-radius: 10px; border: 1px solid #0055FF; background: #fff; color: #0055FF; font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; }
}


/* "Don't trust us. Don't trust them. Ask for evidence." */
.evidence .section-header h2 { color: #fff; }
.evidence .section-header p { color: rgba(255, 255, 255, 0.72); }
.evidence-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.evidence-item { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 1.5rem; }
.evidence-item span { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center; background: linear-gradient(135deg, #0055FF, #00C2FF); color: #fff; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.9rem; }
.evidence-item h3 { color: #fff; font-size: 1.02rem; margin-bottom: 0.5rem; }
.evidence-item p { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; line-height: 1.6; }
.evidence-item a { color: #00C2FF; text-decoration: underline; }
.evidence-close { text-align: center; color: #00C2FF; font-weight: 700; font-size: 1.15rem; margin-top: 2.25rem; }
@media (max-width: 1024px) { .evidence-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .evidence-grid { grid-template-columns: 1fr; } }
