/* Corporate Trust visual system overrides */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --primary: #4f46e5;
  --secondary: #7c3aed;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;

  --shadow-soft: 0 4px 20px -2px rgba(79, 70, 229, 0.1);
  --shadow-hover: 0 10px 25px -5px rgba(79, 70, 229, 0.15), 0 8px 10px -6px rgba(79, 70, 229, 0.1);
  --shadow-strong: 0 20px 45px rgba(15, 23, 42, 0.2);

  /* Legacy tokens remapped */
  --deep-blue: var(--text-main);
  --blue: var(--primary);
  --electric-blue: #6366f1;
  --teal: var(--success);
  --green: var(--success);
  --orange: var(--warning);
  --soft-white: var(--bg);
  --gray-100: var(--border);
  --gray-700: var(--text-muted);
  --midnight: #0f172a;
  --surface-glow: rgba(79, 70, 229, 0.18);
  --card-blur: rgba(255, 255, 255, 0.9);
  --border-soft: rgba(15, 23, 42, 0.08);
  --radius-lg: 20px;

  --tfd-ink: #e0e7ff;
  --tfd-ink-soft: rgba(224, 231, 255, 0.8);
  --tfd-hero-1: #111827;
  --tfd-hero-2: #1e1b4b;
  --tfd-hero-glow: rgba(99, 102, 241, 0.35);
}

* {
  font-family: "Plus Jakarta Sans", "Manrope", "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.7;
}

body.subpage,
body.blog-page {
  background: radial-gradient(circle at top, rgba(79, 70, 229, 0.08), transparent 45%), var(--bg);
}

body::before,
body::after {
  width: 560px;
  height: 560px;
  filter: blur(90px);
  opacity: 0.45;
}

body::before {
  background: radial-gradient(circle, rgba(79, 70, 229, 0.25), transparent 65%);
}

body::after {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25), transparent 60%);
}

h1,
h2,
h3,
h4 {
  color: var(--text-main);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
}

header.hero,
.page-hero,
.tfd-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #111827 100%);
  color: #ffffff;
}

header.hero::before,
.page-hero::before,
.tfd-hero::before {
  background: radial-gradient(circle at 18% 20%, rgba(79, 70, 229, 0.35), transparent 55%),
    radial-gradient(circle at 85% 15%, rgba(124, 58, 237, 0.35), transparent 55%);
}

header.hero::after,
.page-hero::after,
.tfd-hero::after {
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 0),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 160px 160px;
  opacity: 0.2;
}

.hero-text h1,
.page-hero-content h1,
.tfd-slide-title {
  background: linear-gradient(120deg, #ffffff 0%, #dbeafe 45%, #c7d2fe 70%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle,
.page-hero-content p,
.tfd-slide-content .hero-subtitle {
  color: rgba(255, 255, 255, 0.88);
}

.hero-badge {
  background: linear-gradient(120deg, rgba(79, 70, 229, 0.2), rgba(124, 58, 237, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.seo-keyword-highlight {
  background: rgba(79, 70, 229, 0.12);
  color: var(--text-main);
}

.seo-article-card a {
  color: var(--primary);
}

.internal-link-card a {
  color: var(--text-main);
}

summary::after,
details[open] summary::after {
  color: var(--primary);
}

.page-timeline li::before {
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.15);
}

.page-hero-grid {
  width: min(1200px, calc(100% - 2rem));
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.page-hero-grid .page-hero-content {
  max-width: none;
  margin: 0;
  padding: 0;
}

.page-hero-visual {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.35);
  background: rgba(255, 255, 255, 0.04);
  transform: rotateX(2deg) rotateY(-6deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-hero-visual img {
  width: 100%;
  display: block;
}

.page-hero-visual:hover {
  transform: rotateX(1deg) rotateY(-4deg) translateY(-4px);
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.4);
}

.top-nav {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(18px);
}

.brand {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand span {
  letter-spacing: 0.08em;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-links a.highlight {
  color: #ffffff;
  background: rgba(79, 70, 229, 0.25);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.45);
}

.menu-toggle {
  border-color: rgba(255, 255, 255, 0.3);
}

.pill,
.tag {
  background: linear-gradient(120deg, rgba(79, 70, 229, 0.18), rgba(124, 58, 237, 0.2));
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  letter-spacing: 0.08em;
}

.pill-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.88);
}

.pill-outline.light {
  color: rgba(255, 255, 255, 0.92);
}

.btn {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.2);
}

.btn.primary {
  background: linear-gradient(120deg, #4f46e5, #7c3aed);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn.secondary {
  background: #ffffff;
  color: #334155;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(148, 163, 184, 0.15);
}

.btn.whatsapp {
  background: linear-gradient(120deg, #10b981, #22c55e);
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.hero-visual {
  perspective: 1800px;
}

.hero-logo,
.hero-panels,
.tfd-slide-card,
.floating-card,
.hero-shot {
  transform: rotateX(4deg) rotateY(-8deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-logo:hover,
.hero-panels:hover,
.tfd-slide-card:hover,
.floating-card:hover,
.hero-shot:hover {
  transform: rotateX(2deg) rotateY(-6deg) translateY(-6px);
}

.hero-logo {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(224, 231, 255, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 30px 65px rgba(15, 23, 42, 0.25);
}

.hero-logo span {
  color: var(--text-main);
}

.hero-shot {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.hero-shot img {
  width: 100%;
  display: block;
}

.hero-shot-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.hero-panels {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-card:hover {
  transform: translateY(-4px);
}

header.hero .metric-tile {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
  color: #ffffff;
}

header.hero .metric-label,
header.hero .metric-tile small {
  color: rgba(255, 255, 255, 0.75);
}

header.hero .metric-tile strong {
  color: #ffffff;
}

.section-shell,
.page-section,
.seo-benefit-card,
.seo-article-card,
.internal-link-card,
.page-card,
.solution-card,
.video-card,
.tfd-card,
.stack-card,
.focus-card,
.metric-tile,
.metric-card,
.snapshot-card,
details {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.section-shell::before {
  background: radial-gradient(circle at 12% 18%, rgba(79, 70, 229, 0.08), transparent 55%),
    radial-gradient(circle at 88% 10%, rgba(124, 58, 237, 0.08), transparent 55%);
}

.section-lead,
.page-section p,
.page-card p,
.tfd-card-body p {
  color: var(--text-muted);
}

.solution-card,
.page-card,
.tfd-card,
.internal-link-card,
.seo-benefit-card,
.seo-article-card,
.video-card,
details {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.solution-card:hover,
.page-card:hover,
.tfd-card:hover,
.internal-link-card:hover,
.seo-benefit-card:hover,
.seo-article-card:hover,
.video-card:hover,
details:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.solution-card h4,
.page-card h3,
.tfd-card-body h3,
.video-card h3,
.seo-article-card h3 {
  color: var(--text-main);
}

.benefits-grid .card,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.checklist li::before {
  color: var(--success);
}

.page-hero-content p,
.page-hero-content .section-lead {
  color: rgba(255, 255, 255, 0.9);
}

.page-main {
  max-width: 1100px;
}

.faq-question {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.faq-question::after {
  color: var(--primary);
}

.faq-answer {
  color: var(--text-muted);
}

input,
select,
textarea,
.contact-card form input,
.contact-card form textarea {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-main);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.tfd-hero {
  background: linear-gradient(135deg, #111827 0%, #1e1b4b 60%, #4c1d95 100%);
}

.tfd-slide-card {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.35);
}

.tfd-slide-content h1,
.tfd-slide-content h2 {
  color: #ffffff;
}

.tfd-link {
  color: rgba(255, 255, 255, 0.85);
}

.toolbar-pill,
.snapshot-card {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(124, 58, 237, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--text-main);
}

.snapshot-card .label,
.snapshot-card small {
  color: var(--text-muted);
}

.pulse-dot {
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.35);
}

.pulse-dot.green {
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35);
}

.pulse-dot.amber {
  background: var(--warning);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.35);
}

.tfd-filter-grid input,
.tfd-filter-grid select {
  background: #ffffff;
}

.tfd-cta {
  background: linear-gradient(135deg, #111827, #1e1b4b);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.tfd-cta .section-lead {
  color: rgba(255, 255, 255, 0.85);
}

.video-card video {
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.floating-cta {
  background: rgba(15, 23, 42, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.floating-cta a {
  background: linear-gradient(120deg, #4f46e5, #7c3aed);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.3);
}

footer {
  background: linear-gradient(145deg, #0f172a, #111827);
}

footer::before {
  background: radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.2), transparent 55%);
}

footer a {
  color: #c7d2fe;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-brand {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-whatsapp {
  background: linear-gradient(120deg, #10b981, #22c55e);
  color: #0f172a;
}

@media (max-width: 900px) {
  .top-nav {
    backdrop-filter: blur(14px);
  }

  .hero-logo,
  .hero-panels,
  .tfd-slide-card,
  .floating-card,
  .hero-shot,
  .page-hero-visual {
    transform: none;
  }

  .page-hero-grid {
    margin-top: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo,
  .hero-panels,
  .tfd-slide-card,
  .floating-card,
  .hero-shot,
  .page-hero-visual {
    transform: none;
    transition: none;
  }
}
