/* ============================================================
   Maxil Systems — Shared Stylesheet
   ============================================================ */

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

:root {
  --bg-primary:    #080d1a;
  --bg-secondary:  #0f1629;
  --bg-card:       #131c34;
  --bg-card-hover: #192240;
  --accent:        #3b82f6;
  --accent-dark:   #1d4ed8;
  --accent-glow:   rgba(59, 130, 246, 0.15);
  --text-primary:  #f1f5f9;
  --text-muted:    #94a3b8;
  --text-faint:    #475569;
  --border:        rgba(59, 130, 246, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --nav-height:    72px;
  --radius:        12px;
  --radius-sm:     8px;
  --transition:    0.2s ease;
  --font-sans:     'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Typography ---------- */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-muted); }

strong { color: var(--text-primary); font-weight: 600; }

/* ---------- Layout Utilities ---------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--alt {
  background-color: var(--bg-secondary);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 20px;
}

.section-lead {
  font-size: 1.1rem;
  max-width: 680px;
  margin-bottom: 48px;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(8, 13, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--text-primary);
}

.nav__cta {
  margin-left: 12px;
}

/* Hamburger (mobile) */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn--outline:hover {
  background: var(--accent-glow);
  transform: translateY(-1px);
}

.btn--lg {
  padding: 15px 30px;
  font-size: 1rem;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 96px;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero__content {
  max-width: 780px;
}

.hero__title {
  margin-bottom: 24px;
}

.hero__lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Card Grid ---------- */
.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  background: var(--bg-card-hover);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.card__title {
  margin-bottom: 10px;
  color: var(--text-primary);
}

.card p {
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- Outcomes / Audience Block ---------- */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.outcome-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
}

.outcome-item h4 {
  color: var(--accent);
  margin-bottom: 6px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.outcome-item p {
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ---------- Team / People ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center top;
}

.team-card__body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.team-card__name {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.team-card__creds {
  font-size: 0.8rem;
  color: var(--text-faint);
  font-style: italic;
  margin-bottom: 16px;
}

.team-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1;
}

.team-card__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  transition: opacity var(--transition);
}

.team-card__linkedin:hover {
  opacity: 0.75;
}

/* ---------- Feature / Highlight Rows ---------- */
.feature-row {
  display: flex;
  align-items: center;
  gap: 64px;
}

.feature-row--reverse {
  flex-direction: row-reverse;
}

.feature-row__text {
  flex: 1;
}

.feature-row__visual {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.feature-row__visual img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* ---------- List Items ---------- */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 32px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.check-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  margin-top: 1px;
}

/* ---------- Contact Section ---------- */
.contact-section {
  background: var(--bg-secondary);
  text-align: center;
  padding: 96px 0;
}

.contact-section .section-title {
  margin-bottom: 16px;
}

.contact-section .section-lead {
  margin: 0 auto 40px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 16px;
  transition: opacity var(--transition);
}

.contact-email:hover {
  opacity: 0.75;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__brand-logo {
  height: 32px;
  width: auto;
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
}

.footer__links a {
  font-size: 0.82rem;
  color: var(--text-faint);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--text-muted);
}

.footer__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__linkedin:hover {
  color: var(--accent);
}

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

/* ---------- Badge / Tag ---------- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* ---------- Divider ---------- */
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0;
}

/* ---------- Legal / Policy Pages ---------- */
.legal-page {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 96px;
}

.legal-hero {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 56px 0 48px;
}

.legal-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.legal-effective {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 0;
}

.legal-body h2 {
  font-size: 1.5rem;
  margin: 48px 0 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.legal-body h2:first-child {
  margin-top: 0;
  border-top: none;
}

.legal-body h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 28px 0 10px;
}

.legal-body h4 {
  font-size: 0.95rem;
  color: var(--accent);
  margin: 20px 0 6px;
  font-weight: 600;
}

.legal-body p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.legal-body ul,
.legal-body ol {
  padding-left: 24px;
  margin: 12px 0 20px;
}

.legal-body li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body a:hover {
  opacity: 0.8;
}

.legal-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  margin: 0 0 40px;
}

.legal-summary p {
  margin-bottom: 0;
}

.legal-summary ul {
  margin-bottom: 0;
}

.legal-section {
  margin-bottom: 8px;
}

/* Legal table */
.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal-table thead {
  background: var(--bg-card);
}

.legal-table th {
  text-align: left;
  padding: 12px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.legal-table td {
  padding: 14px 18px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  line-height: 1.6;
}

.legal-table tbody tr:last-child td {
  border-bottom: none;
}

.legal-table tbody tr:hover {
  background: var(--bg-card);
}

.legal-table td strong {
  color: var(--text-primary);
}

/* Cookie table tag */
.cookie-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .outcomes-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .feature-row { flex-direction: column; gap: 40px; }
  .feature-row--reverse { flex-direction: column; }
  .feature-row__visual img { height: 280px; }
}

@media (max-width: 700px) {
  .section { padding: 64px 0; }
  .card-grid--2 { grid-template-columns: 1fr; }
  .card-grid--3 { grid-template-columns: 1fr; }

  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__links--open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px;
    gap: 20px;
    align-items: flex-start;
  }
  .nav__cta { display: none; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}
