/* ============================================
   Prime DB — Main CSS (2026 Refactor)
   @layer base, layout, components, utilities
   Consolidated from inline + pages.css + bento.css + typography.css
   ============================================ */

/* ────────────────────────────────────────
   @layer base
   ──────────────────────────────────────── */
@layer base {

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,87,184,.3) transparent;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,87,184,.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,87,184,.5); }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--brand-blue-700); }

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

::selection {
  background-color: var(--brand-blue);
  color: #ffffff;
}

/* ── Headings ── */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Bai Jamjuree', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1, .h1 {
  font-size: var(--text-4xl);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

h2, .h2 { font-size: var(--text-3xl); margin-bottom: var(--space-sm); }
h3, .h3 { font-size: var(--text-2xl); margin-bottom: var(--space-sm); }
h4, .h4 { font-size: var(--text-xl); }
h5, .h5 { font-size: var(--text-lg); font-weight: 600; }
h6, .h6 { font-size: var(--text-base); font-weight: 600; }

/* ── Paragraphs ── */
p {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}
p:last-child { margin-bottom: 0; }

/* ── Lead / Display ── */
.lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 65ch;
}

.display {
  font-family: 'Bai Jamjuree', system-ui, sans-serif;
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* ── Lists ── */
ul, ol {
  padding-left: 1.5em;
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}
li { margin-bottom: var(--space-xs); }

/* ── Blockquote ── */
blockquote {
  border-left: 3px solid var(--brand-blue);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* ── Code ── */
code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

pre {
  background: var(--neutral-900);
  color: var(--neutral-100);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: var(--space-md);
}
pre code { background: none; border: none; padding: 0; color: inherit; }

/* ── Horizontal rule ── */
hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: var(--space-lg) 0;
}

/* ── Typography utilities ── */
.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-brand     { color: var(--brand-blue); }
.text-cyan      { color: var(--brand-cyan); }
.text-center    { text-align: center; }
.text-right     { text-align: right; }
.text-balance   { text-wrap: balance; }
.text-pretty    { text-wrap: pretty; }

.font-normal    { font-weight: 400; }
.font-medium    { font-weight: 500; }
.font-semibold  { font-weight: 600; }
.font-bold      { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.font-heading { font-family: 'Bai Jamjuree', system-ui, sans-serif; }
.font-body    { font-family: 'Inter', system-ui, sans-serif; }

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-overline {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.text-caption { font-size: var(--text-sm); color: var(--text-muted); }

/* ── Focus visible ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

.btn:focus-visible,
.back-to-top:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

} /* /@layer base */


/* ────────────────────────────────────────
   @layer layout
   ──────────────────────────────────────── */
@layer layout {

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Sections ── */
section {
  padding: 5rem 0;
  content-visibility: visible;
  
}
section.bg-light  { background: var(--bg-light); }
section.bg-white  { background: var(--bg-primary); }
section.bg-dark   { background: var(--brand-blue-dark); color: var(--white); }

/* ── Section header ── */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-header h2 {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.text-brand-cyan { color: var(--brand-cyan); }

/* ── Section divider ── */
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-cyan), transparent);
  margin: 0 auto;
  max-width: 70%;
  opacity: 0.35;
}

/* ── Hero (full layout — home) ── */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--brand-blue-dark) 0%, var(--brand-blue-petroleum) 100%);
  color: var(--white);
  padding: 9rem 0 5rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(35,199,232,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,199,232,0.06) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(35,199,232,0.12) 0%, rgba(0,87,184,0.04) 40%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, 0);
  pointer-events: none;
  z-index: 0;
  animation: heroOrbFloat 20s ease-in-out infinite;
}
@keyframes heroOrbFloat {
  0%, 100% { transform: translate(-50%, 0) scale(1); opacity: 0.6; }
  25% { transform: translate(-35%, -10%) scale(1.15); opacity: 0.8; }
  50% { transform: translate(-65%, -5%) scale(0.95); opacity: 0.5; }
  75% { transform: translate(-40%, 8%) scale(1.1); opacity: 0.7; }
}

.hero .container { position: relative; z-index: 1; max-width: 820px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--brand-cyan);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}
.hero-badge svg { width: 16px; height: 16px; color: var(--brand-cyan); }

.hero h1 {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
/* Audit fix (2026-06-20): hero headings must stay light on the navy hero —
   overrides the global `h1..h6 { color: var(--text-primary) }` dark rule. */
.hero h1, .page-hero h1, .home-gradient-heading {
  color: var(--white);
  -webkit-text-fill-color: var(--white);
}
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 600px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-stat-number {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-cyan);
}
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 0.2rem; }

/* ── Hero cursor glow ── */
.hero-cursor-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(35,199,232,.08) 0%, transparent 70%);
  width: 400px;
  height: 400px;
  transform: translate(-50%,-50%);
  opacity: 0;
  will-change: left, top, opacity;
}

/* ── Page hero (internal pages) ── */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--brand-blue-dark) 0%, var(--brand-blue-petroleum) 100%);
  color: var(--white);
  padding: 9rem 0 4rem;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(35,199,232,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.page-hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Header ── */
.site-header {
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}
.site-header.scrolled {
  background: rgba(6,26,47,0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ── Footer ── */
.site-footer {
  background: var(--brand-blue-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
.site-footer.simple, .site-footer .simple { text-align: center; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-col h4 {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col a, .footer-col p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.footer-col a:hover { color: var(--brand-cyan); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }
.site-footer .container > p a { color: var(--brand-cyan); text-decoration: none; }

/* ── Partner bar ── */
.partner-bar {
  background: var(--bg-light);
  padding: 2.5rem 0;
  overflow: hidden;
}
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  @media (prefers-reduced-motion: no-preference) {
    .partner-strip {
      flex-wrap: nowrap;
      justify-content: flex-start;
      gap: 2.5rem;
      animation: partnerMarquee 28s linear infinite;
      width: max-content;
      min-width: 200%;
    }
    .partner-strip:hover { animation-play-state: paused; }
    @keyframes partnerMarquee {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }
  }
}
.partner-strip .partner-badge {
  flex: 0 0 auto;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.partner-strip .partner-badge:hover {
  box-shadow: 0 2px 8px rgba(0,87,184,0.08);
  transform: translateY(-1px);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .partner-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .partner-grid { grid-template-columns: repeat(6, 1fr); } }

.partner-badge, .provider-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-strong);
}
.partner-badge svg, .provider-badge svg {
  width: 20px;
  height: 20px;
  color: var(--brand-blue);
  flex-shrink: 0;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) { .provider-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── About ── */
.about-grid, .intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) { .about-grid, .intro-grid { grid-template-columns: 1.3fr 1fr; } }
.about-text h3, .intro-text h3 {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 1rem;
}
.about-text p, .intro-text p, .content-block p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.about-text ul { list-style: none; margin-top: 1.5rem; }
.about-text li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.about-text li svg {
  width: 18px;
  height: 18px;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 3px;
}
.content-block { max-width: 820px; margin: 0 auto; }

.about-visual { position: relative; display: flex; justify-content: center; }
.about-shape { position: absolute; border-radius: 1rem; opacity: 0.12; }
.about-shape--1 {
  width: 200px; height: 160px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  top: -20px; right: 10px; transform: rotate(-6deg);
}
.about-shape--2 {
  width: 140px; height: 140px;
  background: var(--brand-cyan);
  bottom: -20px; left: 0; border-radius: 50%; opacity: 0.1;
}
.about-card {
  position: relative; z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(6,26,47,0.08);
  min-width: 240px;
}
.about-card__number {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1;
}
.about-card__label { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.35rem; }

/* ── Contact grid ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 1fr; } }

.contact-info h2 {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.75rem;
}
.contact-info > p { color: var(--text-muted); line-height: 1.6; margin-bottom: 2rem; }
.contact-detail { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-detail__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 0.6rem;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
}
.contact-detail h4 {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.2rem;
}
.contact-detail a, .contact-detail p { display: block; color: var(--text-muted); text-decoration: none; font-size: 0.95rem; line-height: 1.5; }
.contact-detail a:hover { color: var(--brand-blue); }

/* ── Locations ── */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .location-grid { grid-template-columns: repeat(3, 1fr); } }
.location-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}
.location-card__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  margin: 0 auto 1rem;
}
.location-card h3 {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.35rem;
}
.location-card p { font-size: 0.9rem; color: var(--text-muted); }

.contact-locations { margin-top: 2rem; }
.contact-locations h3 {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.75rem;
}
.location-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-strong);
  background: var(--bg-light);
  border-radius: 1rem;
  padding: 0.4rem 0.9rem;
  margin: 0 0.4rem 0.5rem 0;
}
.location-chip svg { width: 16px; height: 16px; color: var(--brand-blue); }

/* ── History / Timeline ── */
.history-list { max-width: 760px; margin: 0 auto; }
.history-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}
.history-item:last-child { border-bottom: none; }
.history-year {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-cyan);
}
.history-content h3 {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.35rem;
}
.history-content p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
  padding: 5rem 0;
  text-align: center;
  color: var(--white);
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(35,199,232,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0,87,184,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.cta-section h2 {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-section p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85); /* audit: 0.7 dipped to 4.18:1 at the blue end of the CTA gradient */
  max-width: 600px;
  margin: 0 auto 2rem;
}
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
/* Audit fix (2026-06-20): outline buttons on the navy→blue CTA must be white.
   !important overrides a hardcoded inline `color:var(--brand-blue)` on the legal
   cross-link buttons that rendered blue-on-navy (invisible). */
.cta-section .btn-outline { color: var(--white) !important; border-color: rgba(255,255,255,0.55) !important; background: transparent !important; }
.cta-section .btn-outline:hover { background: rgba(255,255,255,0.12) !important; border-color: var(--white) !important; }

/* ── CTA sticky mobile ── */
.cta-sticky-mobile {
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: .75rem 1rem;
  background: rgba(6,26,47,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  display: none;
  justify-content: center;
  transition: transform .3s ease, opacity .3s ease;
}
.cta-sticky-mobile .btn { width: 100%; text-align: center; justify-content: center; }
@media (max-width: 768px) { .cta-sticky-mobile { display: flex; } }
.cta-sticky-mobile--hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }

/* ── Agency section ── */
.agency-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.agency-image.page-hero,
.agency-image .page-hero {
  text-align: center;
}

/* ── Social proof strip ── */
.social-proof-strip {
  padding: 1.5rem 0;
  text-align: center;
  background: var(--bg-secondary);
  overflow: hidden;
  position: relative;
  min-height: 3rem;
}
.social-proof-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .6s ease;
  font-size: 1rem;
  color: var(--text-secondary);
  padding: 0 1rem;
}
.social-proof-item--active { opacity: 1; position: relative; }
.social-proof-item strong { color: var(--brand-blue); font-weight: 700; } /* audit: cyan 1.88:1 → blue ~6:1 on light strip */

/* ── Footer social strip ── */
.footer-social-cards { display: flex; gap: 1rem; margin-top: .75rem; flex-wrap: wrap; }
.footer-social-card {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  background: rgba(255,255,255,.06);
  border-radius: .5rem;
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  text-decoration: none;
  transition: background .2s;
}
.footer-social-card:hover { background: rgba(255,255,255,.12); }
.footer-social-card__icon { font-size: 1.1rem; }
.footer-social-card__count { font-weight: 700; color: var(--brand-cyan); font-size: .9rem; }

/* ── Reading progress bar ── */
.reading-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0; z-index: 10001;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
  transition: width .1s linear;
  opacity: 0;
  pointer-events: none;
}
.reading-progress--visible { opacity: 1; }

} /* /@layer layout */


/* ────────────────────────────────────────
   @layer components
   ──────────────────────────────────────── */
@layer components {

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--brand-blue);
  color: var(--white);
  border-color: var(--brand-blue);
}
.btn-primary:hover {
  background: #004a9a;
  border-color: #004a9a;
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0,87,184,0.45), 0 4px 16px rgba(0,87,184,0.25);
}
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}
/* Audit fix (2026-06-20): outline buttons inside light cards must be blue (were white-on-white). */
.case-card .btn-outline { color: var(--brand-blue); border-color: var(--brand-blue); }
.case-card .btn-outline:hover { background: var(--brand-blue); color: var(--white); border-color: var(--brand-blue); }
.btn-light {
  background: var(--white);
  color: var(--brand-blue-dark);
  border-color: var(--white);
}
.btn-light:hover {
  background: #e5e7eb;
  border-color: #e5e7eb;
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-light);
  color: var(--text-strong);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: var(--border-color);
}

.btn-sm  { font-size: 0.85rem; padding: 0.5rem 1rem; }
.btn-lg  { font-size: 1.1rem; padding: 1rem 2rem; }
.btn-block { width: 100%; }

/* ── Service / Card grids ── */
.services-grid, .benefits-grid, .values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .services-grid, .benefits-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid, .values-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card, .benefit-card, .value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  container-name: card;
}
.service-card:hover, .benefit-card:hover, .value-card:hover {
  border-color: var(--brand-cyan);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,87,184,0.1);
}

@container card (max-width: 300px) {
  .service-card h3, .benefit-card h3, .value-card h3 { font-size: 1rem; }
}

.service-card__icon, .benefit-card__icon, .value-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(0,87,184,0.06), rgba(35,199,232,0.06));
  border: 1px solid rgba(0,87,184,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--brand-blue);
}
.service-card__icon svg {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}
.service-card:hover .service-card__icon svg {
  transform: scale(1.15);
}

.service-card h3, .benefit-card h3, .value-card h3 {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}
.service-card p, .benefit-card p, .value-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
}
.service-card__link:hover { color: #004a9a; }

/* ── AI Card ── */
.ai-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}
.ai-card:hover {
  border-color: var(--brand-cyan);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,87,184,0.1);
}

/* ── Case cards ── */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .cases-grid { grid-template-columns: repeat(3, 1fr); } }

.case-card {
  background: linear-gradient(165deg, var(--white) 0%, #eef5ff 100%);
  border: 1px solid #d0e2f7;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.case-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); transform: translateY(-2px); }
.case-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(0,87,184,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.case-card__metric {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.case-card h3 {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading-color); margin-bottom: 0.5rem;
}
.case-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }

.case-card .case-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}
.case-card .case-card__link:hover { gap: 0.6rem; color: #004a9a; }
.case-card .case-card__link::after {
  content: '→';
  transition: transform 0.2s ease;
}
.case-card .case-card__link:hover::after { transform: translateX(3px); }

.case-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.case-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.75rem;
  background: var(--bg-light);
  color: var(--brand-blue);
  border-radius: 1rem;
}

/* ── Case detail ── */
.case-detail {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2.5rem;
  margin-bottom: 2rem;
}
.case-detail:last-child { margin-bottom: 0; }
.case-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .case-detail-grid { grid-template-columns: 1.6fr 1fr; } }
.case-metric-big {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
  line-height: 1;
}
.case-detail__content h3 {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.75rem;
}
.case-detail__content p { color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.case-detail__result {
  background: var(--bg-light);
  border-radius: 0.75rem;
  padding: 1.5rem;
}
.case-detail__result h4 {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 1rem;
}
.case-result-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-strong);
  margin-bottom: 0.75rem;
}
.case-result-item:last-child { margin-bottom: 0; }
.case-result-item svg { width: 18px; height: 18px; color: #10b981; flex-shrink: 0; margin-top: 2px; }

/* ── Why grid ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.why-item:hover {
  box-shadow: 0 4px 20px rgba(0,87,184,0.08);
  border-color: var(--brand-cyan);
}
.why-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, rgba(0,87,184,0.08), rgba(35,199,232,0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
}
.why-item__icon svg { width: 22px; height: 22px; }
.why-item h4 {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 0.2rem;
}
.why-item p { font-size: 0.9rem; color: var(--text-muted); }

/* ── Process steps / Timeline ── */
.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 0.5rem;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan) 50%, var(--brand-blue));
  z-index: 0;
}
.process-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.process-step__num {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--brand-blue-dark);
  color: var(--brand-cyan);
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 3px solid var(--white);
}
.process-step h4 { font-family: 'Bai Jamjuree', sans-serif; font-size: 1rem; font-weight: 700; color: var(--heading-color); margin-bottom: 0.3rem; }
.process-step p { font-size: 0.85rem; color: var(--text-muted); }

.process-step--hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.process-step--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .process-steps { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .process-steps::before {
    top: 0; bottom: 0; left: 29px; right: auto;
    width: 3px; height: auto;
    background: linear-gradient(180deg, var(--brand-blue), var(--brand-cyan) 50%, var(--brand-blue));
  }
  .process-step { text-align: left; display: flex; gap: 1rem; align-items: flex-start; }
  .process-step__num { margin: 0; flex-shrink: 0; }
}

/* ── Metric cards ── */
.metrics-grid--icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 767px) { .metrics-grid--icons { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (max-width: 480px) { .metrics-grid--icons { grid-template-columns: 1fr; } }

.metric-card {
  position: relative;
  overflow: hidden;
}
.metric-card::before {
  content: attr(data-value);
  position: absolute;
  bottom: -10px; right: 8px;
  font-size: 4rem;
  font-weight: 800;
  font-family: 'Bai Jamjuree', 'Inter', sans-serif;
  color: rgba(255,255,255,0.03);
  pointer-events: none;
  line-height: 1;
  z-index: 0;
}
@media (max-width: 767px) {
  .metric-card::before { font-size: 2.8rem; bottom: -6px; right: 4px; }
}
.metric-card__icon {
  display: block;
  margin: 0 auto .5rem;
  opacity: .65;
  text-align: center;
}
.metric-card__icon svg { width: 28px; height: 28px; display: inline-block; }

/* ── Forms ── */
.contact-form { width: 100%; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 0.4rem;
}
.form-group label span { color: #dc2626; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  background: var(--bg-card);
  color: var(--text-strong);
  transition: border-color 0.2s;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0,87,184,0.1);
}
@media (max-width: 640px) {
  .form-group input, .form-group select, .form-group textarea { font-size: 16px; }
}
.form-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.form-success.visible { display: block; }
.form-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}
.form-error.visible { display: block; }

/* ── Floating labels ── */
.contact-form .form-group { position: relative; }
.contact-form .form-group:has(input) label,
.contact-form .form-group:has(textarea) label {
  position: absolute;
  top: 0.9rem;
  left: 1rem;
  margin-bottom: 0;
  pointer-events: none;
  z-index: 1;
  background: var(--bg-card);
  padding: 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.contact-form .form-group:has(input) input {
  padding-top: 1.2rem;
  padding-bottom: 0.6rem;
}
.contact-form .form-group:has(textarea) textarea {
  padding-top: 1.2rem;
}
.contact-form .form-group:has(input:focus) label,
.contact-form .form-group:has(input:not(:placeholder-shown)) label,
.contact-form .form-group:has(textarea:focus) label,
.contact-form .form-group:has(textarea:not(:placeholder-shown)) label {
  top: -0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand-blue);
}
.contact-form .form-group:has(input:focus) input,
.contact-form .form-group:has(textarea:focus) textarea {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0,87,184,0.1);
}

/* ── Metrics Section (Números que falam) ── */
.metrics-section {
  background: var(--bg-hero);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.metrics-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(35,199,232,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,199,232,0.04) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px;
  pointer-events: none;
}
.metrics-section .container { position: relative; z-index: 1; }

/* ── Metrics Grid ── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (max-width: 767px) {
  .metrics-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

.metric-card__number {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--brand-cyan);
  line-height: 1.1;
  margin-bottom: 0.3rem;
  position: relative;
  z-index: 1;
}
.metric-card__label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

/* ── AI Grid ── */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1023px) {
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ai-grid { grid-template-columns: 1fr; }
}

.ai-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(0,87,184,0.06), rgba(35,199,232,0.06));
  border: 1px solid rgba(0,87,184,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--brand-blue);
  transition: transform 0.3s ease;
}
.ai-card__icon svg {
  width: 28px;
  height: 28px;
}
.ai-card:hover .ai-card__icon svg {
  transform: scale(1.15);
}

.ai-card h3 {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.5rem; }
.ai-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
}

/* ── Multi-step form ── */
.form-steps-wrapper { overflow: hidden; }
.form-step { transition: opacity .3s ease, transform .3s ease; }
.form-step--hidden { display: none; }
.form-step--exit { opacity: 0; transform: translateX(-20px); }
.form-step--enter { animation: formStepIn .35s ease forwards; }
@keyframes formStepIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.form-progress { display: flex; gap: .5rem; align-items: center; margin-bottom: 1.5rem; font-size: .85rem; color: var(--text-muted); }
.form-progress__step {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--neutral-200);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem; flex-shrink: 0;
  transition: background .3s, color .3s;
}
.form-progress__step--active { background: var(--brand-blue); color: #fff; }
.form-progress__step--done { background: var(--brand-cyan); color: #fff; }
.form-progress__line { flex: 1; height: 2px; background: var(--neutral-200); transition: background .3s; }
.form-progress__line--done { background: var(--brand-cyan); }

} /* /@layer components */


/* ────────────────────────────────────────
   @layer utilities
   ──────────────────────────────────────── */
@layer utilities {

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(0,87,184,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 999;
}
.back-to-top:hover {
  background: #004a9a;
  box-shadow: 0 6px 20px rgba(0,87,184,0.4);
  transform: translateY(-2px);
}
.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ── Nav link active ── */
.header-nav a.nav-active { color: var(--brand-cyan) !important; }

/* ── Underline animation on text links ── */
p a, li a, .footer-col a, .section-header a, .hero a:not(.btn) {
  text-decoration: none;
  background-image: linear-gradient(var(--brand-cyan), var(--brand-cyan));
  background-size: 0% 1.5px;
  background-position: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease, color 0.2s ease;
  padding-bottom: 2px;
}
p a:hover, li a:hover, .footer-col a:hover, .section-header a:hover {
  background-size: 100% 1.5px;
  color: var(--brand-blue);
}
.header-nav a, .btn, .header-lang a, .header-logo, .case-card__link {
  background-image: none !important;
  background-size: auto !important;
  padding-bottom: 0;
}

/* ── Glass panel ── */
.glass-panel {
  background: light-dark(rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid light-dark(rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border-radius: var(--radius-lg);
}

/* ── Text gradient ── */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.text-gradient-white {
  background: linear-gradient(135deg, var(--neutral-50), var(--neutral-300));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.home-gradient-heading {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ── Pulse glow ── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,87,184,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(0,87,184,0); }
}
.pulse-glow {
  animation: pulse-glow 2s var(--ease-in-out) infinite;
}

/* ── Float ── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float {
  animation: float 3s var(--ease-in-out) infinite;
}

/* ── Underline animation ── */
.underline-anim { position: relative; }
.underline-anim::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--brand-blue);
  transition: width var(--duration-normal) var(--ease-out);
}
.underline-anim:hover::after { width: 100%; }

/* ── Scale in ── */
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.scale-in {
  animation: scale-in var(--duration-normal) var(--ease-out) both;
}

/* ── Card tilt 3D ── */
.card-tilt { perspective: 800px; }
.card-tilt-inner { transition: transform .15s ease-out; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .card-tilt-inner { transition: none !important; } }

/* ── Magnetic buttons ── */
.btn-magnetic { transition: transform .15s ease-out; }
@media (prefers-reduced-motion: reduce) { .btn-magnetic { transition: none !important; } }

/* ── Page transition ── */
.page-transition-overlay {
  position: fixed; inset: 0;
  background: var(--brand-blue-dark);
  z-index: 99999;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.page-transition-overlay--active { opacity: 1; pointer-events: auto; }

/* ── Motion reduction ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero::after,
  .partner-strip,
  .hero-cursor-glow,
  .social-proof-item { animation: none !important; }
  .card-tilt-inner { transform: none !important; }
  .fade-in-up, .fade-in-scale, .stagger-children > * { opacity: 1; transform: none; }
  .section-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  h1, .h1 { font-size: var(--text-3xl); }
  h2, .h2 { font-size: var(--text-2xl); }
  .display { font-size: var(--text-4xl); }
  .lead { font-size: var(--text-base); }
}

} /* /@layer utilities */

/* ═══════════════════════════════════════════
   Hero Illustration — Restaurado
   Formas geométricas, database cylinder, cloud, network
   ═══════════════════════════════════════════ */
.hero-illustration {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-illus-shape {
  position: absolute;
  border-radius: 1rem;
  opacity: 0.12;
}
.hero-illus-shape--1 {
  width: 200px; height: 140px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  top: 40px; right: 40px;
  transform: rotate(-6deg);
}
.hero-illus-shape--2 {
  width: 160px; height: 100px;
  background: linear-gradient(135deg, var(--brand-blue-accent), var(--brand-cyan));
  bottom: 60px; left: 20px;
  transform: rotate(4deg);
  border-radius: 50%;
  opacity: 0.1;
}
.hero-illus-shape--3 {
  width: 120px; height: 120px;
  background: var(--brand-cyan);
  top: 120px; left: 80px;
  border-radius: 1rem;
  opacity: 0.08;
}
.hero-illus-db {
  position: relative;
  z-index: 2;
  width: 180px;
  height: 220px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.hero-illus-db::before {
  content: '';
  width: 50px; height: 50px;
  border: 3px solid var(--brand-cyan);
  border-radius: 50%;
  opacity: 0.6;
}
.hero-illus-db::after {
  content: '';
  width: 100px; height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}
.hero-illus-cloud {
  position: absolute;
  z-index: 3;
  width: 100px; height: 60px;
  background: rgba(35,199,232,0.15);
  border-radius: 50%;
  top: -30px; right: 0;
}
.hero-illus-net {
  position: absolute;
  z-index: 1;
  bottom: 30px; right: 60px;
}
.hero-illus-net svg {
  width: 120px; height: 120px;
  opacity: 0.3;
}
@media (max-width: 768px) {
  .hero-illustration { height: 200px; }
  .hero-illus-shape--1 { width: 120px; height: 80px; top: 20px; right: 10px; }
  .hero-illus-shape--2 { width: 100px; height: 60px; bottom: 30px; left: 5px; }
  .hero-illus-shape--3 { width: 80px; height: 80px; top: 60px; left: 30px; }
  .hero-illus-db { width: 120px; height: 150px; }
  .hero-illus-db::before { width: 35px; height: 35px; }
  .hero-illus-db::after { width: 70px; }
  .hero-illus-cloud { width: 70px; height: 40px; top: -20px; right: -10px; }
  .hero-illus-net { bottom: 15px; right: 20px; }
  .hero-illus-net svg { width: 80px; height: 80px; }
}
