/* ==========================================================================
   Mathyas AI Solutions — design system
   ========================================================================== */

:root {
  --navy-950: #081222;
  --navy-900: #0d1c33;
  --navy-800: #142c4d;
  --navy-700: #1c3d68;
  --blue-600: #2f5c8a;
  --blue-500: #3d76b0;
  --cyan-500: #17c3b2;
  --cyan-400: #3fe0cf;
  --amber-500: #f5a623;
  --amber-600: #d98c0f;

  --ink-900: #10151c;
  --ink-700: #36404a;
  --ink-500: #5b6675;
  --gray-300: #c9d1da;
  --gray-200: #e4e8ec;
  --gray-100: #f4f6f8;
  --white: #ffffff;

  --font-head: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(13, 28, 51, 0.08);
  --shadow-md: 0 12px 32px rgba(13, 28, 51, 0.12);
  --shadow-lg: 0 24px 64px rgba(13, 28, 51, 0.18);

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-700); }

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--cyan-500); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--gray-100); }
.section-dark {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--white);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.78); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-500);
  background: rgba(23, 195, 178, 0.1);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.section-dark .eyebrow { background: rgba(63, 224, 207, 0.15); }

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.08rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cyan-500); color: var(--navy-950); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--cyan-400); color: var(--navy-950); box-shadow: var(--shadow-md); }
.btn-outline { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.08); }
.btn-dark { background: var(--navy-900); color: var(--white); }
.btn-dark:hover { background: var(--navy-700); color: var(--white); }
.btn-amber { background: var(--amber-500); color: var(--navy-950); }
.btn-amber:hover { background: var(--amber-600); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 18, 34, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.brand img { height: 36px; width: 36px; }
.brand span small { display: block; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.06em; color: var(--cyan-400); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: rgba(255,255,255,0.85); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--cyan-400); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; background: var(--navy-950); flex-direction: column; align-items: flex-start; padding: 24px; gap: 18px; transform: translateY(-120%); transition: transform .25s ease; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links.open { transform: translateY(0); }
  .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .nav-cta-mobile { display: block; width: 100%; margin-top: 8px; }
}

/* Hero */
.hero {
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(23,195,178,0.25), transparent 65%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.15rem; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero-badge { font-size: 0.82rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.85); padding: 8px 14px; border-radius: var(--radius-pill); }
.hero-visual { display: flex; justify-content: center; }
.hero-visual svg { width: 100%; max-width: 420px; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* Cards / grids */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
}
.card h3 { margin-bottom: 10px; }

/* Approach steps */
.steps { counter-reset: step; }
.step { display: flex; gap: 20px; padding: 24px 0; border-top: 1px solid var(--gray-200); }
.step:first-child { border-top: none; }
.step-num {
  counter-increment: step;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--cyan-500);
  font-size: 1.5rem;
  min-width: 48px;
}

/* Testimonial */
.testimonial-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  position: relative;
}
.testimonial-card .stars { color: var(--amber-500); letter-spacing: 3px; margin-bottom: 16px; }
.testimonial-card blockquote { font-size: 1.25rem; font-family: var(--font-head); margin: 0 0 20px; color: var(--white); }
.testimonial-card cite { font-style: normal; color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.testimonial-more {
  text-align: center;
  margin-top: 28px;
  color: var(--ink-500);
  font-size: 0.95rem;
}

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-grid img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* Forms */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
  border: 1px solid var(--gray-200);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy-900); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--gray-100);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--cyan-500);
  background: var(--white);
}
.field-radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.field-radio {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
  flex: 1;
  min-width: 160px;
}
.field-radio input { width: auto; }
.field-hint { font-size: 0.82rem; color: var(--ink-500); margin-top: 6px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }

/* Pricing / track comparison */
.track-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.track-table th, .track-table td { padding: 20px 22px; text-align: left; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
.track-table thead th { background: var(--navy-900); color: var(--white); font-family: var(--font-head); }
.track-table thead th:first-child { border-top-left-radius: var(--radius-lg); }
.track-table thead th:last-child { border-top-right-radius: var(--radius-lg); }
.track-price { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--navy-900); }
.track-table tr:last-child td { border-bottom: none; }
.track-highlight { background: rgba(23,195,178,0.06); }
@media (max-width: 700px) {
  .track-table, .track-table thead, .track-table tbody, .track-table th, .track-table td, .track-table tr { display: block; }
  .track-table thead { display: none; }
  .track-table td { border-bottom: none; padding: 6px 20px; }
  .track-table tr { padding: 18px 0; border-bottom: 1px solid var(--gray-200); }
  .track-table td::before { content: attr(data-label); display: block; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-500); margin-bottom: 4px; }
}

/* Module accordion */
.module-list { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-200); }
.module-item { border-bottom: 1px solid var(--gray-200); background: var(--white); }
.module-item:last-child { border-bottom: none; }
.module-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy-900);
}
.module-item summary::-webkit-details-marker { display: none; }
.module-item summary .mod-num {
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  color: var(--white);
  font-size: 0.85rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.module-item summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--ink-500); }
.module-item[open] summary::after { content: "\2212"; }
.module-item .mod-body { padding: 0 24px 22px 74px; color: var(--ink-700); }
.module-item .mod-body ul { margin: 0; padding-left: 18px; }

/* FAQ (reuse details/summary) */
.faq-item summary { padding: 18px 0; border-bottom: 1px solid var(--gray-200); cursor: pointer; list-style: none; font-weight: 600; font-family: var(--font-head); color: var(--navy-900); display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--cyan-500); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 6px 0 18px; }

/* Stat row */
.stat-row { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--cyan-500); }
.stat span { font-size: 0.85rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.04em; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-950), var(--blue-600));
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); }
.cta-banner .btn-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* Footer */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.75); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,0.72); }
.footer-grid a:hover { color: var(--cyan-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: var(--cyan-400); }

/* Map */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* Alert / notice */
.notice { background: rgba(23,195,178,0.08); border: 1px solid rgba(23,195,178,0.3); border-radius: var(--radius-sm); padding: 16px 20px; font-size: 0.92rem; color: var(--navy-900); }
.notice-amber { background: rgba(245,166,35,0.1); border-color: rgba(245,166,35,0.35); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.small { font-size: 0.85rem; color: var(--ink-500); }
.badge-pill { display: inline-block; background: var(--gray-100); border: 1px solid var(--gray-200); padding: 4px 12px; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 600; color: var(--ink-700); margin: 0 6px 6px 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 12px; top: 12px; }
