/* ============================================
   Regusoft Design System — styles.css
   Version: 1.0
   ============================================ */

/* --- Design Tokens (Light) --- */
:root {
  --color-primary: #243A5E;
  --color-ink: #2E4E86;
  --color-accent: #3FA7A3;

  --text-strong: #1B202A;
  --text-body: #5A6473;
  --text-muted: #6E7685;

  --bg-page: #F2F4F7;
  --surface-1: #FFFFFF;
  --surface-2: #F7F9FB;
  --border: rgba(27, 32, 42, 0.10);
  --shadow: 0 10px 32px rgba(0, 0, 0, 0.10);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);

  --radius-card: 18px;
  --radius-btn: 12px;
  --radius-pill: 999px;

  --max-width: 1180px;
  --section-pad: 80px;

  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", "Source Sans 3", system-ui, sans-serif;
}

/* --- Design Tokens (Dark) --- */
html[data-theme="dark"] {
  --color-primary: #3A5C9B;
  --color-ink: #7EA3D8;
  --color-accent: #3FA7A3;

  --text-strong: #EAF0FF;
  --text-body: rgba(234, 240, 255, 0.78);
  --text-muted: rgba(234, 240, 255, 0.62);

  --bg-page: #0B1020;
  --surface-1: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.30);
}

/* Auto dark mode when no explicit preference saved */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) {
    --color-primary: #3A5C9B;
    --color-ink: #7EA3D8;
    --color-accent: #3FA7A3;
    --text-strong: #EAF0FF;
    --text-body: rgba(234, 240, 255, 0.78);
    --text-muted: rgba(234, 240, 255, 0.62);
    --bg-page: #0B1020;
    --surface-1: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.10);
    --shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.30);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-strong);
  line-height: 1.5;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-strong);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 48px);
  letter-spacing: -0.03em;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 34px);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(20px, 2.5vw, 24px);
  letter-spacing: -0.01em;
}

h4 {
  font-size: 18px;
  font-weight: 600;
}

p {
  color: var(--text-body);
  line-height: 1.6;
}

.text-muted { color: var(--text-muted); }
.text-accent { color: var(--color-accent); }
.text-center { text-align: center; }
.font-display { font-family: var(--font-display); }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad) 0;
}

.section-sm {
  padding: 48px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-strong);
}

.nav-logo-text {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.nav-logo-tagline {
  display: none;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

@media (min-width: 768px) {
  .nav-logo-tagline { display: block; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  color: var(--text-body);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-strong);
  background: var(--surface-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-body);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.theme-toggle:hover {
  background: var(--surface-2);
}

.theme-toggle .icon-sun,
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.nav-hamburger {
  display: none;
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-strong);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-page);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-btn);
  color: var(--text-strong);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-mobile a:hover {
  background: var(--surface-2);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* --- Hero --- */
.hero {
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background:
    radial-gradient(900px 520px at 20% 0%, rgba(63, 167, 163, 0.14), transparent 55%),
    radial-gradient(900px 520px at 85% 20%, rgba(46, 78, 134, 0.14), transparent 60%),
    var(--surface-1);
  box-shadow: var(--shadow);
  padding: 64px 48px;
  margin-top: 32px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { margin-bottom: 16px; }

.hero p {
  font-size: 18px;
  max-width: 52ch;
  margin-bottom: 24px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .hero { padding: 40px 24px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-illustration { display: none; }
}

/* --- Buttons --- */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-strong);
  border-radius: var(--radius-btn);
  padding: 11px 20px;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
  line-height: 1.3;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: #2E4E86;
}

html[data-theme="dark"] .btn-primary:hover {
  background: #4A6DB5;
}

.btn-secondary {
  background: transparent;
  border-color: rgba(36, 58, 94, 0.30);
  color: var(--color-primary);
}

html[data-theme="dark"] .btn-secondary {
  border-color: rgba(234, 240, 255, 0.25);
  color: var(--text-strong);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-body);
}

.btn-ghost:hover {
  background: var(--surface-2);
}

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

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* --- Cards --- */
.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-flat {
  box-shadow: none;
  background: var(--surface-2);
}

.card-flat:hover {
  transform: none;
  box-shadow: none;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-ink);
}

.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 12px; }

.card-link {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

html[data-theme="dark"] .card-link {
  color: var(--color-ink);
}

/* --- Chips / Badges --- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 7px 14px;
  font-weight: 700;
  color: var(--text-body);
  font-size: 13px;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.chip-active {
  background: var(--color-primary);
  color: #fff;
  border-color: transparent;
}

.chip-active .chip-dot {
  background: #fff;
}

.chip-clickable {
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.chip-clickable:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: transparent;
}

/* --- Callouts --- */
.callout {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 20px 20px 20px 24px;
  position: relative;
  overflow: hidden;
}

.callout::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-accent);
}

.callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-strong);
}

.callout p {
  margin: 0;
  font-size: 15px;
}

/* --- Tables --- */
.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-1);
}

.table-wrap table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-wrap th,
.table-wrap td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
  font-size: 15px;
}

.table-wrap th {
  background: var(--surface-2);
  color: var(--text-strong);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.table-wrap tr:nth-child(even) td {
  background: var(--surface-2);
}

/* --- Steps / How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin: 0 auto 16px;
  position: relative;
  z-index: 2;
}

.step-connector {
  position: absolute;
  top: 24px;
  left: calc(50% + 32px);
  right: calc(-50% + 32px);
  height: 2px;
  background: var(--border);
  z-index: 1;
}

.step:last-child .step-connector { display: none; }

.step h3 { margin-bottom: 8px; }
.step p { font-size: 15px; }

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .step-connector { display: none; }
}

/* --- Standards Grid --- */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.standard-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-strong);
}

.standard-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-ink);
}

@media (max-width: 900px) {
  .standards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .standards-grid { grid-template-columns: 1fr; }
}

/* --- Credentials / Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  text-align: center;
  padding: 24px 16px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-body);
  font-weight: 600;
}

@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface-1);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  appearance: none;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text-strong);
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-question:hover {
  background: var(--surface-2);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--text-muted);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-body);
  line-height: 1.6;
}

/* --- Resource Cards --- */
.resource-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.resource-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.resource-card h3 { margin-bottom: 8px; }

.resource-card p {
  flex: 1;
  margin-bottom: 16px;
  font-size: 15px;
}

.resource-card-meta {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- Tool Cards (full-width, horizontal layout) --- */
.tool-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  display: flex;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.tool-card-icon {
  flex: 0 0 140px;
  background: #1B2F50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

html[data-theme="dark"] .tool-card-icon {
  background: #0C1824;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) .tool-card-icon {
    background: #0C1824;
  }
}

.tool-card-body {
  flex: 1;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
}

.tool-card-body h3 {
  margin-bottom: 10px;
}

.tool-card-body p {
  flex: 1;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .tool-card {
    flex-direction: column;
  }
  .tool-card-icon {
    flex: 0 0 auto;
    height: 110px;
    padding: 20px;
  }
  .tool-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Resource Article --- */
.article-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.article-header h1 {
  margin-bottom: 12px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.article-body h2 {
  margin: 40px 0 16px;
  font-size: 24px;
}

.article-body h3 {
  margin: 32px 0 12px;
  font-size: 20px;
}

.article-body p {
  margin-bottom: 16px;
}

.article-body ul, .article-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.article-body li {
  list-style: disc;
  margin-bottom: 8px;
  color: var(--text-body);
  line-height: 1.6;
}

.article-body ol li {
  list-style: decimal;
}

.article-sidebar {
  position: sticky;
  top: 96px;
}

.toc {
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.toc h4 {
  margin-bottom: 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.toc a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-body);
  font-weight: 600;
}

.toc a:hover { color: var(--text-strong); text-decoration: none; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

/* --- Search --- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 12px 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.search-bar input {
  flex: 1;
  border: none;
  background: none;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--text-strong);
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* --- Filter chips row --- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

/* --- CTA Section --- */
.cta-section {
  background:
    radial-gradient(600px 300px at 30% 50%, rgba(63, 167, 163, 0.12), transparent 55%),
    radial-gradient(600px 300px at 70% 50%, rgba(46, 78, 134, 0.12), transparent 55%),
    var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 64px 48px;
  text-align: center;
}

.cta-section h2 { margin-bottom: 12px; }
.cta-section p {
  max-width: 56ch;
  margin: 0 auto 24px;
  font-size: 18px;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: var(--section-pad);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  font-size: 14px;
  margin-top: 12px;
  max-width: 36ch;
}

.footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer a {
  display: block;
  padding: 4px 0;
  font-size: 15px;
  color: var(--text-body);
  font-weight: 600;
}

.footer a:hover { color: var(--text-strong); text-decoration: none; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-strong);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--surface-1);
  color: var(--text-strong);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- Package Cards (Solutions) --- */
.package-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.package-card.featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent), var(--shadow);
}

.package-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  align-self: flex-start;
}

.package-card h3 { margin-bottom: 8px; }
.package-card > p { margin-bottom: 20px; }

.package-features {
  flex: 1;
  margin-bottom: 24px;
}

.package-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.5;
}

.package-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

/* --- Timeline Compare --- */
.timeline-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.timeline-track {
  padding: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.timeline-track h4 { margin-bottom: 16px; }

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child { border-bottom: none; }

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .timeline-compare { grid-template-columns: 1fr; }
}

/* --- Section Headers --- */
.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 { margin-bottom: 12px; }

.section-header p {
  font-size: 18px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

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

/* --- About Page --- */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 768px) {
  .about-hero { grid-template-columns: 1fr; }
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > .fade-in:nth-child(1) { transition-delay: 0.05s; }
.stagger > .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stagger > .fade-in:nth-child(3) { transition-delay: 0.15s; }
.stagger > .fade-in:nth-child(4) { transition-delay: 0.2s; }

/* --- Utilities --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* --- Responsive grid overrides --- */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { margin-top: 16px; }
  .section { padding: 48px 0; }
  .cta-section { padding: 40px 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
