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

/* ---------- Design tokens ---------- */
:root {
  --background: 0 0% 100%;
  --foreground: 217 50% 20%;

  --primary: 217 55% 32%;
  --primary-foreground: 0 0% 100%;

  --secondary: 215 15% 92%;
  --secondary-foreground: 217 50% 25%;

  --muted: 215 20% 95%;
  --muted-foreground: 215 20% 45%;

  --accent: 217 70% 45%;
  --accent-foreground: 0 0% 100%;

  --border: 215 25% 88%;

  --radius: 0.75rem;

  --gradient-primary: linear-gradient(135deg, hsl(217 55% 32%) 0%, hsl(217 70% 45%) 100%);
  --gradient-light: linear-gradient(180deg, hsl(215 30% 97%) 0%, hsl(0 0% 100%) 100%);
  --gradient-glow: radial-gradient(ellipse at center, hsl(217 55% 32% / 0.10) 0%, transparent 70%);

  --shadow-glow: 0 0 60px hsl(217 55% 32% / 0.15);
  --shadow-card: 0 25px 50px -12px hsl(217 50% 20% / 0.1);
  --shadow-button: 0 10px 40px hsl(217 55% 32% / 0.25);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.text-gradient {
  background-image: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: hsl(var(--primary));
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  z-index: 100;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-button);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-outline {
  background: transparent;
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}
.btn-outline:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.875rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: hsl(var(--background) / 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid hsl(var(--border));
}
.navbar > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 2.5rem; width: auto; }

.nav-links {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1.35rem;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.92rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: hsl(var(--primary));
}

.nav-cta { display: none; }

.nav-toggle {
  background: none;
  border: none;
  color: hsl(var(--foreground));
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  display: none;
  border-top: 1px solid hsl(var(--border));
  padding: 1rem 0 1.5rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a:not(.btn) {
  display: block;
  padding: 0.75rem 0;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}
.mobile-menu a[aria-current="page"]:not(.btn) { color: hsl(var(--primary)); }
.mobile-menu .btn { margin-top: 1rem; }

@media (min-width: 1100px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 9rem 0 6rem;
  overflow: hidden;
  background-image: var(--gradient-light);
}
.hero::before {
  content: "";
  position: absolute;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background-image: var(--gradient-glow);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; text-align: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.06);
  border: 1px solid hsl(var(--primary) / 0.2);
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}
.badge-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: hsl(var(--primary)); }

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: hsl(var(--muted-foreground));
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 4rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
}
.stat-card {
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.stat-card strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 700; }
.stat-card span { font-size: 0.8rem; color: hsl(var(--muted-foreground)); }

/* ---------- Page header (non-home hero) ---------- */
.page-header {
  padding: 8.5rem 0 4rem;
  background-image: var(--gradient-light);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-header::before {
  content: "";
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background-image: var(--gradient-glow);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1rem; }
.page-header p { color: hsl(var(--muted-foreground)); font-size: 1.1rem; max-width: 620px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: hsl(var(--primary)); }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: hsl(var(--secondary) / 0.35); }
.section-header { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.eyebrow {
  display: block;
  color: hsl(var(--primary));
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.section-header h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.section-header p { color: hsl(var(--muted-foreground)); font-size: 1.05rem; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.75rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover { border-color: hsl(var(--primary) / 0.35); transform: translateY(-3px); }

.icon-tile {
  width: 3.25rem; height: 3.25rem;
  border-radius: 0.85rem;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  color: #fff;
  font-size: 1.4rem;
}
.icon-tile-soft {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.card p { color: hsl(var(--muted-foreground)); margin-bottom: 1.25rem; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.9rem; color: hsl(var(--muted-foreground));
  padding: 0.35rem 0;
}
.feature-list li::before {
  content: "";
  width: 0.4rem; height: 0.4rem;
  border-radius: 50%;
  background: hsl(var(--primary));
  margin-top: 0.5rem;
  flex-shrink: 0;
}
.check-list li {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 0;
  color: hsl(var(--foreground));
}
.check-list li::before {
  content: "✓";
  display: flex; align-items: center; justify-content: center;
  width: 1.4rem; height: 1.4rem;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ---------- CTA band ---------- */
.cta-card {
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.cta-card::before {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 260px; height: 260px;
  background-image: var(--gradient-glow);
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0.75rem 0 1rem; }
.cta-card p { color: hsl(var(--muted-foreground)); max-width: 560px; margin: 0 auto 2rem; font-size: 1.05rem; }

/* ---------- Contact info ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }
.contact-tile {
  background: hsl(var(--secondary) / 0.5);
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
}
.contact-tile .icon-tile { margin: 0 auto 1rem; width: 3rem; height: 3rem; background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }
.contact-tile h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.contact-tile a, .contact-tile span { color: hsl(var(--muted-foreground)); font-size: 0.92rem; }
.contact-tile a:hover { color: hsl(var(--primary)); }

/* ---------- Contact form ---------- */
.form-grid { display: grid; gap: 1.25rem; max-width: 640px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.6rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: hsl(var(--primary));
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.9rem; }
.faq-item {
  border: 1px solid hsl(var(--border));
  border-radius: 0.85rem;
  background: hsl(var(--background));
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.5rem 1.25rem; color: hsl(var(--muted-foreground)); }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.08);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.post-card time { font-size: 0.8rem; color: hsl(var(--muted-foreground)); margin-bottom: 0.5rem; display: block; }
.post-card h3 { margin-bottom: 0.75rem; }
.post-card .read-more { margin-top: auto; font-weight: 600; color: hsl(var(--primary)); font-size: 0.9rem; }

.article { max-width: 720px; margin: 0 auto; }
.article h2 { font-size: 1.5rem; margin: 2.25rem 0 1rem; }
.article h3 { font-size: 1.2rem; margin: 1.75rem 0 0.75rem; }
.article p { margin-bottom: 1.15rem; color: hsl(var(--foreground) / 0.9); }
.article ul, .article ol { margin: 0 0 1.15rem 1.25rem; color: hsl(var(--foreground) / 0.9); }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin-bottom: 0.5rem; }
.article-meta { display: flex; gap: 0.75rem; align-items: center; color: hsl(var(--muted-foreground)); font-size: 0.9rem; margin-bottom: 2.5rem; }

/* ---------- Testimonial ---------- */
.stars { color: hsl(var(--primary)); letter-spacing: 0.15em; margin-bottom: 1rem; }
.quote { font-size: 1.1rem; font-style: italic; margin-bottom: 1rem; }
.quote-author { font-weight: 600; font-size: 0.9rem; color: hsl(var(--muted-foreground)); }

/* ---------- Logic band (industries) ---------- */
.industry-card { display: flex; flex-direction: column; }
.industry-card ul { margin-top: 1rem; }

/* ---------- Footer ---------- */
.footer { padding: 3.5rem 0 2rem; border-top: 1px solid hsl(var(--border)); background: hsl(var(--background)); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand img { height: 2.25rem; margin-bottom: 1rem; }
.footer-brand p { color: hsl(var(--muted-foreground)); font-size: 0.9rem; max-width: 300px; }
.footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; color: hsl(var(--foreground)); }
.footer ul li { margin-bottom: 0.6rem; }
.footer a { color: hsl(var(--muted-foreground)); font-size: 0.9rem; }
.footer a:hover { color: hsl(var(--primary)); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}
.social-links { display: flex; gap: 0.75rem; }
.social-links a {
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  border: 1px solid hsl(var(--border));
  display: flex; align-items: center; justify-content: center;
  background: hsl(var(--secondary) / 0.5);
}
.social-links a:hover { border-color: hsl(var(--primary) / 0.4); color: hsl(var(--primary)); }

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 0.6rem; }
  .stat-card { padding: 0.85rem 0.4rem; }
}
