/* ============================================================
   FlowNorth.ai — Shared Stylesheet
   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;
  }
}
