/* ==========================================================================
   SMTP Relay — Main Stylesheet
   Clean, modern B2B SaaS design. No frameworks.
   ========================================================================== */

/* ---------- Inter (self-hosted, variable font, latin subset) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Font Awesome 4.7 ---------- */
@font-face {
  font-family: 'FontAwesome';
  src: url('/assets/fonts/fontawesome-webfont.woff2') format('woff2'),
       url('/assets/fonts/fontawesome-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.fa {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fa-ban:before { content: "\f05e"; }
.fa-check:before { content: "\f00c"; }
.fa-chevron-down:before { content: "\f078"; }
.fa-envelope:before { content: "\f0e0"; }
.fa-exclamation-circle:before { content: "\f06a"; }
.fa-exclamation-triangle:before { content: "\f071"; }
.fa-eye-slash:before { content: "\f070"; }
.fa-gear:before { content: "\f013"; }
.fa-inbox:before { content: "\f01c"; }
.fa-lock:before { content: "\f023"; }
.fa-paper-plane:before { content: "\f1d8"; }
.fa-random:before { content: "\f074"; }
.fa-send:before { content: "\f1d8"; }
.fa-server:before { content: "\f233"; }
.fa-shield:before { content: "\f132"; }
.fa-windows:before { content: "\f17a"; }

/* ---------- Custom Properties ---------- */
:root {
  --color-primary: #0275D8;
  --color-primary-dark: #025aa5;
  --color-primary-light: #e8f2fc;
  --color-dark: #03090D;
  --color-muted: #6c757d;
  --color-light-bg: #F7F9FA;
  --color-white: #ffffff;
  --color-border: #e2e8f0;
  --color-success: #6BA54A;
  --color-danger: #dc3545;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  --container-max: 1140px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: 150ms ease;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ==========================================================================
   2. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; letter-spacing: -0.025em; }
h2 { font-size: 2rem;   letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-muted);
}

small,
.text-small {
  font-size: 0.875rem;
}

strong {
  font-weight: 600;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-light-bg);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: var(--color-dark);
  color: #e2e8f0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

blockquote {
  border-left: 3px solid var(--color-primary);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--color-primary-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

/* ==========================================================================
   3. Container / Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-sm {
  padding: 2.5rem 0;
}

.section-lg {
  padding: 6rem 0;
}

.bg-light {
  background: var(--color-light-bg);
}

.bg-white {
  background: var(--color-white);
}

.bg-dark {
  background: var(--color-dark);
  color: var(--color-white);
}

/* Grid helpers */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.row > * {
  padding: 0 0.75rem;
  width: 100%;
}

.col-half {
  width: 50%;
}

.col-third {
  width: 33.333%;
}

.col-quarter {
  width: 25%;
}

/* ==========================================================================
   4. Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-dark);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--color-dark);
}

.site-logo img,
.site-header .logo img {
  height: 36px;
  width: auto;
}

/* Desktop nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-dark);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-muted);
  padding: 0;
  transition: color var(--transition);
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--color-dark);
}

.nav-dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-top: 2px;
  transition: transform var(--transition);
}

.nav-dropdown.open .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: background var(--transition), color var(--transition);
}

.nav-dropdown-menu a:hover {
  background: var(--color-light-bg);
  color: var(--color-dark);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Offcanvas mobile menu */
.offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 250ms ease;
  padding: 1.5rem;
  overflow-y: auto;
}

.offcanvas.open {
  transform: translateX(0);
}

.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.offcanvas-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.offcanvas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.offcanvas-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-muted);
  line-height: 1;
}

.offcanvas-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.offcanvas-nav a,
.offcanvas-nav button {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-border);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

.offcanvas-nav .sub-menu {
  padding-left: 1rem;
}

.offcanvas-nav .sub-menu a {
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--color-muted);
  border-bottom-color: transparent;
  padding: 0.5rem 0;
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */
.hero {
  position: relative;
  background: #080f1a;
  color: var(--color-white);
  text-align: center;
  padding: 6rem 0;
  overflow: hidden;
}

/* Soft glowing orbs */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px circle at 20% 40%, rgba(2, 117, 216, 0.25) 0%, transparent 70%),
    radial-gradient(500px circle at 75% 25%, rgba(56, 152, 236, 0.15) 0%, transparent 60%),
    radial-gradient(400px circle at 50% 90%, rgba(2, 90, 165, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero-cover {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 6rem 0;
}

.hero-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(2, 117, 216, 0.9) 0%, rgba(3, 9, 13, 0.85) 100%);
}

.hero-cover > * {
  position: relative;
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--color-white);
  font-size: 2.75rem;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.hero .social-proof-badge {
  display: block;
  font-size: 0.9375rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
}

/* Bottom edge — subtle noise grain for texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-diagram {
  margin-top: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-diagram svg {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   6. Features Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.feature-icon.icon-success {
  background: rgba(107, 165, 74, 0.12);
  color: var(--color-success);
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.feature-item p {
  color: var(--color-muted);
  margin-bottom: 0;
  font-size: 0.9375rem;
}

/* Compact stacked features (6-grid) */
.features-grid-compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-compact {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow var(--transition);
}

.feature-compact:hover {
  box-shadow: var(--shadow-md);
}

.feature-compact .feature-icon {
  margin-bottom: 0.75rem;
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.feature-compact h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.feature-compact p {
  color: var(--color-muted);
  font-size: 0.875rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Stacked card variant for "problems" / value-prop cards */
.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
}

.feature-card .feature-icon {
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--color-muted);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.features-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* ==========================================================================
   7. "Works With" Logos
   ========================================================================== */
.logos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.logo-item img {
  max-height: 40px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.logo-item:hover img {
  opacity: 1;
}

/* ==========================================================================
   8. Pricing Cards
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition);
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-md);
  position: relative;
}

.pricing-card.featured .pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Ensure consistent top padding so badge doesn't misalign content */
.pricing-card-header {
  padding-top: 0.5rem;
}

.pricing-card-footer {
  margin-top: auto;
  text-align: center;
}

.pricing-card-footer .btn {
  width: 100%;
  margin-bottom: 0.75rem;
}

.pricing-card-footer p {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-bottom: 0;
}

.pricing-card-features {
  flex: 1;
  margin-bottom: 1.5rem;
}

.pricing-card-features li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.9375rem;
  color: var(--color-dark);
}

.pricing-card-features li::before {
  content: '\f00c';
  font-family: FontAwesome;
  font-size: 0.8rem;
  color: var(--color-success);
  flex-shrink: 0;
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-muted);
}

.pricing-description {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.pricing-features {
  flex: 1;
  margin-bottom: 1.5rem;
}

.pricing-features li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.9375rem;
  color: var(--color-dark);
}

.pricing-features li::before {
  content: '\f00c'; /* fa-check */
  font-family: FontAwesome;
  font-size: 0.8rem;
  color: var(--color-success);
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   9. CTA Sections
   ========================================================================== */
.cta-section {
  background: linear-gradient(135deg, #0275D8 0%, #025aa5 100%);
  color: var(--color-white);
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.cta-section .btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 600;
}

.cta-section .btn-white:hover {
  background: var(--color-light-bg);
}

/* ==========================================================================
   10. Contact Form
   ========================================================================== */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--color-dark);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* ==========================================================================
   11. Documentation Page (Prose Content)
   ========================================================================== */
.doc-content {
  max-width: 760px;
  margin: 0 auto;
}

.doc-content h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.doc-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.doc-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.doc-content p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: #374151;
}

.doc-content ul,
.doc-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.doc-content ul {
  list-style: disc;
}

.doc-content ol {
  list-style: decimal;
}

.doc-content li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
  color: #374151;
}

.doc-content img {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin: 1.5rem 0;
}

.doc-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc-content table {
  margin: 1.5rem 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.doc-content th,
.doc-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.doc-content th {
  background: var(--color-light-bg);
  font-weight: 600;
}

/* ==========================================================================
   12. Documentation Hub (Card Grid)
   ========================================================================== */
.docs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.doc-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow var(--transition), border-color var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.doc-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.doc-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.doc-card p {
  color: var(--color-muted);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.doc-card .doc-card-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.doc-card-logo {
  height: 32px;
  width: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}

/* ==========================================================================
   12b. FAQ Items
   ========================================================================== */
.faq-item {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.faq-item p {
  color: #374151;
  line-height: 1.75;
  margin-bottom: 0;
}

/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  display: block;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-newsletter {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.footer-newsletter input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  font-size: 0.875rem;
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8125rem;
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   14. Legal Pages (Terms, Privacy)
   ========================================================================== */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: 0.5rem;
}

.legal-content .last-updated {
  color: var(--color-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
  line-height: 1.8;
  color: #374151;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  margin-bottom: 0.3rem;
}

/* ==========================================================================
   15. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}

.btn-secondary:hover {
  background: #1a2332;
  border-color: #1a2332;
  color: var(--color-white);
}

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

.btn-outline-primary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
  font-weight: 600;
}

.btn-white:hover {
  background: var(--color-light-bg);
  border-color: var(--color-light-bg);
  color: var(--color-primary-dark);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-lg {
  padding: 0.8rem 1.75rem;
  font-size: 1.0625rem;
  border-radius: var(--radius);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
}

/* ==========================================================================
   16. Forms
   ========================================================================== */
.form-control {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-dark);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(2, 117, 216, 0.15);
}

.form-control::placeholder {
  color: #9ca3af;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  margin-top: 0.3rem;
  accent-color: var(--color-primary);
}

.form-text {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.form-error {
  color: var(--color-danger);
  font-size: 0.8125rem;
  margin-top: 0.35rem;
}

/* ==========================================================================
   17. Cards
   ========================================================================== */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-img {
  width: 100%;
  height: auto;
  display: block;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card-body p {
  color: var(--color-muted);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* ==========================================================================
   18. Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-muted   { color: var(--color-muted); }
.text-primary { color: var(--color-primary); }
.text-success { color: var(--color-success); }
.text-white   { color: var(--color-white); }
.text-dark    { color: var(--color-dark); }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.mx-auto { margin-left: auto; margin-right: auto; }

.d-flex    { display: flex; }
.d-block   { display: block; }
.d-none    { display: none; }
.d-grid    { display: grid; }

.align-center    { align-items: center; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap       { flex-wrap: wrap; }
.gap-1           { gap: 0.5rem; }
.gap-2           { gap: 1rem; }
.gap-3           { gap: 1.5rem; }

.w-100 { width: 100%; }

.rounded    { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }

.shadow    { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }

.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;
}

/* ==========================================================================
   19. Font Awesome Icon Circles
   ========================================================================== */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.icon-circle-lg {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
}

.icon-circle-sm {
  width: 36px;
  height: 36px;
  font-size: 0.95rem;
}

.icon-circle-success {
  background: rgba(107, 165, 74, 0.12);
  color: var(--color-success);
}

.icon-circle-dark {
  background: rgba(3, 9, 13, 0.08);
  color: var(--color-dark);
}

/* ==========================================================================
   20. Responsive Images
   ========================================================================== */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.img-thumbnail {
  max-width: 100%;
  height: auto;
  padding: 4px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.img-rounded {
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Responsive — Tablet (768px+)
   ========================================================================== */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }

  .hero h1 {
    font-size: 3.25rem;
  }

  .hero {
    padding: 8rem 0;
  }

  .hero-cover {
    padding: 8rem 0;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .docs-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 5rem 0;
  }

  .section-lg {
    padding: 7rem 0;
  }
}

/* ==========================================================================
   Responsive — Desktop (1024px+)
   ========================================================================== */
@media (min-width: 1024px) {
  .hamburger {
    display: none !important;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.5fr 0.75fr;
  }
}

/* ==========================================================================
   Responsive — Mobile (below 768px)
   ========================================================================== */
@media (max-width: 767px) {
  .nav-links,
  .site-header .btn-primary {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .lead {
    font-size: 1.05rem;
  }

  .col-half,
  .col-third,
  .col-quarter {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 3rem 0;
  }

  .section-lg {
    padding: 4rem 0;
  }
}
