/* ==========================================================================
   Infracloud LLC — Full-width SaaS layout (dark theme)
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  --bg:      #06090f;
  --bg2:     #0a0f1a;
  --surface: #0d1220;
  --surface2:#111827;
  --border:  rgba(255,255,255,.06);
  --border2: rgba(255,255,255,.10);
  --text:    #eaf0ff;
  --text2:   #c4ccdf;
  --muted:   #8892a8;
  --acc:     #6aa7ff;
  --acc2:    #7c5cff;
  --ok:      #2ee59d;
  --warn:    #ffcc66;
  --radius:  16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
}

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

/* --- Base --- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco,
               Consolas, monospace;
}

a { color: var(--acc); text-decoration: none; transition: color .15s; }
a:hover { color: #8dbfff; }

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

/* --- Container --- */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

/* ==========================================================================
   HEADER — sticky, transparent, blur
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6,9,15,.70);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .25s;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

/* Brand lockup */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: rgba(255,255,255,.92);
  flex-shrink: 0;
  transition: opacity .15s;
}
.brand:hover { color: rgba(255,255,255,.92); opacity: .88; }

.site-logo {
  height: 24px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  image-rendering: auto;
  display: block;
}

.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.2px;
  line-height: 1;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .brand-name { display: none; }
}
@media (max-width: 768px) {
  .brand { gap: 8px; }
  .site-logo { height: 22px; }
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a:not(.nav-cta) {
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.nav-links a:not(.nav-cta):hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
}
.nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,.08);
}

/* CTA in header */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-xs);
  background: #3b82f6;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, transform .1s;
  margin-left: 8px;
}
.nav-cta:hover {
  background: #4b8ff7;
  color: #fff;
  transform: translateY(-1px);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(6,9,15,.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 20px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-xs);
  }
  .nav-cta {
    margin: 8px 0 4px;
    text-align: center;
    justify-content: center;
  }
}

/* Language switcher — dropdown */
.lang-switcher {
  position: relative;
  margin-left: 12px;
  flex-shrink: 0;
}
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xs);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.lang-trigger:hover {
  border-color: rgba(255,255,255,.25);
  color: var(--text);
}
.lang-trigger:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}
.lang-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 2px;
  transition: transform .15s;
}
.lang-switcher.open .lang-arrow {
  transform: rotate(180deg);
}
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xs);
  min-width: 56px;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.lang-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lang-switcher.open .lang-menu {
  display: block;
}
.lang-option {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  padding: 6px 14px;
  text-align: left;
  cursor: pointer;
  transition: color .1s, background .1s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.lang-option:hover,
.lang-option:focus-visible {
  color: var(--text);
  background: rgba(255,255,255,.08);
}
.lang-option.lang-current {
  color: var(--acc);
}
@media (max-width: 768px) {
  .lang-switcher {
    margin-left: 0;
    position: absolute;
    top: 50%;
    right: 52px;
    transform: translateY(-50%);
  }
}

/* ==========================================================================
   SECTIONS — full-width backgrounds, contained content
   ========================================================================== */
.section {
  position: relative;
  padding: 100px 0;
}
.section-sm {
  padding: 64px 0;
}
@media (max-width: 768px) {
  .section    { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
}
@media (max-width: 480px) {
  .section    { padding: 48px 0; }
  .section-sm { padding: 36px 0; }
}

/* Alternate section backgrounds for visual rhythm */
.section-alt {
  background: var(--surface);
}

/* Very subtle depth wash on select sections */
.section-glow {
  overflow: hidden;
}
.section-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(59,130,246,.04), transparent 70%);
  pointer-events: none;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border2);
  background: rgba(255,255,255,.03);
  color: var(--acc);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-label .label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc);
}

.heading-xl {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--text);
}

.heading-lg {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--text);
}

.heading-md {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--text);
}

.text-lg {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text2);
  max-width: 640px;
}

.text-md {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text2);
}

.section-header {
  margin-bottom: 56px;
}
.section-header .text-lg {
  margin-top: 16px;
}
@media (max-width: 480px) {
  .section-header { margin-bottom: 36px; }
  .text-lg { font-size: 16px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero-section {
  padding: 140px 0 120px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) {
  .hero-section { padding: 88px 0 72px; }
}
@media (max-width: 480px) {
  .hero-section { padding: 64px 0 48px; }
  .hero-heading { font-size: clamp(32px, 8vw, 40px); }
  .hero-text { font-size: 16px; margin-bottom: 28px; }
  .hero-grid { gap: 40px; }
}

/* Single subtle ambient wash — not a glow, just depth */
.hero-section::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(59,130,246,.06), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

/* --- Hero content (left) --- */
.hero-content {
  position: relative;
}

.hero-heading {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--text);
  max-width: 14ch;
  margin-bottom: 24px;
}

.hero-text {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,.65);
  max-width: 52ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* --- Hero right column — info cards --- */
.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 272px;
  margin-left: auto;
}

.hero-card {
  padding: 20px 22px;
  border-radius: 14px;
  background: rgba(10,14,24,.65);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .2s ease, border-color .2s ease;
}
.hero-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.16);
}

.hero-card-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--acc);
  margin-bottom: 10px;
}

.hero-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-card-list li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text2);
  padding: 3px 0;
}

@media (max-width: 900px) {
  .hero-cards {
    width: 100%;
    max-width: 320px;
    flex-direction: row;
    gap: 12px;
  }
  .hero-card { flex: 1; }
}
@media (max-width: 540px) {
  .hero-cards { flex-direction: column; max-width: 100%; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
  border: 1px solid transparent;
  user-select: none;
}
.btn svg {
  width: 18px;
  height: 18px;
  opacity: .85;
}

/* Solid blue — enterprise primary */
.btn-primary,
a.btn-primary {
  background: #3b82f6;
  color: #fff;
  font-weight: 600;
  border-color: #3b82f6;
  opacity: 1;
}
.btn-primary:hover,
a.btn-primary:hover {
  background: #4b8ff7;
  border-color: #4b8ff7;
  color: #fff;
  box-shadow: 0 4px 16px rgba(59,130,246,.25);
  transform: translateY(-1px);
}

/* Outline — clean secondary */
.btn-outline {
  background: transparent;
  color: var(--text2);
  border-color: rgba(255,255,255,.14);
}
.btn-outline:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.04);
}

/* Filled surface — for sections */
.btn-secondary {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-color: rgba(255,255,255,.10);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.16);
  color: var(--text);
}

/* Ghost — minimal */
.btn-ghost {
  background: none;
  color: var(--text2);
  border-color: rgba(255,255,255,.10);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.18);
  color: var(--text);
}

@media (max-width: 480px) {
  .btn { padding: 11px 20px; font-size: 14px; }
}

/* ==========================================================================
   SERVICE CARDS
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
  box-shadow: 0 12px 40px rgba(0,0,0,.30);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}
.card-icon-purple { background: linear-gradient(135deg, rgba(124,92,255,.20), rgba(106,167,255,.15)); color: var(--acc); }
.card-icon-blue   { background: linear-gradient(135deg, rgba(106,167,255,.20), rgba(78,140,255,.15)); color: var(--acc); }
.card-icon-green  { background: linear-gradient(135deg, rgba(46,229,157,.20), rgba(106,167,255,.10)); color: var(--ok); }
.card-icon-warm   { background: linear-gradient(135deg, rgba(255,204,102,.20), rgba(46,229,157,.10)); color: var(--warn); }

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text2);
}
@media (max-width: 480px) {
  .card { padding: 24px 20px; }
}

/* ==========================================================================
   FEATURE LIST (Why us)
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .feature-item { padding: 16px 12px; gap: 12px; }
  .feature-icon { width: 36px; height: 36px; font-size: 16px; }
  .feature-item p { font-size: 14px; }
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.feature-item:hover {
  border-color: var(--border);
  background: rgba(255,255,255,.02);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(106,167,255,.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  color: var(--acc);
}

.feature-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.feature-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text2);
}

/* ==========================================================================
   PIPELINE (Process Steps)
   ========================================================================== */
.pipeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  padding-top: 24px;
}

/* Horizontal connecting track */
.pipeline-track {
  position: absolute;
  top: 51px; /* vertically centered on 52px node */
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #7c5cff, #3b82f6);
  background-size: 200% 100%;
  animation: pipelineFlow 6s linear infinite;
}
@keyframes pipelineFlow {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* Each pipeline node */
.pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

/* Circular node */
.node-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--bg2);
  border: 2px solid #3b82f6;
  box-shadow: 0 0 12px rgba(59,130,246,.15);
  transition: box-shadow .25s, border-color .25s;
  position: relative;
}
.pipeline-node:hover .node-circle {
  box-shadow: 0 0 24px rgba(59,130,246,.35);
  border-color: #7c5cff;
}

/* Title + subtitle */
.node-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-top: 16px;
}
.node-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* === Branch indicators (Build & Test) === */
.branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}
.branch-line {
  width: 1px;
  height: 20px;
  background: rgba(124,92,255,.35);
}
.branch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(124,92,255,.5);
  border: 1px solid rgba(124,92,255,.3);
}
.branch-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--acc2);
  letter-spacing: .3px;
  margin-top: 6px;
  white-space: nowrap;
  opacity: .7;
}

/* === Responsive: vertical timeline === */
@media (max-width: 768px) {
  .pipeline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-top: 0;
    padding-left: 28px;
  }

  /* Vertical track */
  .pipeline-track {
    top: 28px;
    bottom: 28px;
    left: 52px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, #3b82f6, #7c5cff, #3b82f6);
    background-size: 100% 200%;
    animation: pipelineFlowV 6s linear infinite;
  }
  @keyframes pipelineFlowV {
    0%   { background-position: 0 0%; }
    100% { background-position: 0 200%; }
  }

  .pipeline-node {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
  }

  .node-circle { flex-shrink: 0; }
  .node-title { margin-top: 0; }
  .node-sub { margin-top: 2px; }

  /* Branch goes right instead of down */
  .branch {
    flex-direction: row;
    margin-top: 4px;
    margin-left: 0;
    gap: 6px;
  }
  .branch-line {
    width: 16px;
    height: 1px;
  }
  .branch-dot {
    width: 6px;
    height: 6px;
  }
}
@media (max-width: 480px) {
  .pipeline { padding-left: 12px; }
  .pipeline-track { left: 36px; }
  .node-circle { width: 44px; height: 44px; font-size: 14px; }
  .node-title { font-size: 14px; }
  .node-sub { font-size: 11px; }
  .pipeline-node { gap: 12px; padding: 12px 0; }
}

/* ==========================================================================
   CONTACT INFO BLOCK
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.contact-info-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.contact-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text2);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .contact-label {
  color: var(--muted);
  min-width: 72px;
  font-size: 14px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
@media (max-width: 480px) {
  .contact-grid { gap: 24px; }
  .contact-info-card { padding: 24px 20px; }
  .contact-actions { gap: 8px; }
  .contact-actions .btn { flex: 1; min-width: 0; padding: 10px 12px; font-size: 13px; }
}

/* ==========================================================================
   FORM
   ========================================================================== */
.form-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.form-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  line-height: 1.5;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px rgba(106,167,255,.12);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

@media (max-width: 480px) {
  .form-card { padding: 24px 20px; }
  .form-group input,
  .form-group textarea { padding: 10px 14px; font-size: 14px; }
  .form-group textarea { min-height: 120px; }
}

/* Honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ==========================================================================
   MESSAGES (Django)
   ========================================================================== */
.messages {
  list-style: none;
  margin: 0 0 20px;
}
.messages li {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 8px;
}
.messages .success {
  background: rgba(46,229,157,.08);
  border: 1px solid rgba(46,229,157,.20);
  color: var(--ok);
}
.messages .error {
  background: rgba(255,80,80,.08);
  border: 1px solid rgba(255,80,80,.20);
  color: #ff6b6b;
}
.messages .warning {
  background: rgba(255,204,102,.08);
  border: 1px solid rgba(255,204,102,.20);
  color: var(--warn);
}

/* ==========================================================================
   CTA BANNER (bottom of pages)
   ========================================================================== */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 250px;
  background: radial-gradient(ellipse, rgba(59,130,246,.04), transparent 70%);
  pointer-events: none;
}
.cta-section .heading-md {
  margin-bottom: 12px;
}
.cta-section .text-md {
  margin-bottom: 28px;
  color: var(--muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color .15s;
}
.footer-links a:hover {
  color: var(--text2);
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-links { gap: 16px; }
}

/* ==========================================================================
   PAGE: About
   ========================================================================== */
.about-content {
  max-width: 720px;
}
.about-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text2);
  margin-bottom: 20px;
}
.about-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text);
}
.about-content h2:first-child {
  margin-top: 0;
}
@media (max-width: 480px) {
  .about-content p { font-size: 15px; }
  .about-content h2 { font-size: 20px; margin-top: 36px; }
}

/* ==========================================================================
   PAGE: Policy / Legal
   ========================================================================== */
.policy-content {
  max-width: 720px;
}
.policy-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 12px;
}
.policy-content h3:first-child { margin-top: 0; }
.policy-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text2);
  margin-bottom: 16px;
}
.policy-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--text2);
}
.policy-content li {
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.65;
}

/* ==========================================================================
   PAGE: Services detail
   ========================================================================== */
.services-group {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.services-group:last-of-type {
  border-bottom: none;
}
@media (max-width: 768px) {
  .services-group { padding: 56px 0; }
}
@media (max-width: 480px) {
  .services-group { padding: 40px 0; }
}

/* ==========================================================================
   TWO-COLUMN GRID
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

/* ==========================================================================
   UTILITY
   ========================================================================== */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-48 { margin-top: 48px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
