/* Torsión Balanced Crimson (-25% Red) + Warm Amber Gold + Obsidian Slate */
:root {
  --ink: #111118;
  --dark: #0a0a0f;
  --forest: #151620;
  --green: #d97706;
  --mint: #f59e0b;
  --crimson: #dc2626;
  --crimson-soft: rgba(220, 38, 38, 0.14);
  --amber: #f59e0b;
  --amber-bright: #fbbf24;
  --paper: #faf9fa;
  --canvas: #f4f2f4;
  --white: #ffffff;
  --muted: #4b4d59;
  --border: #dfdbe0;
}

.reading-progress {
  height: 3px;
  background: linear-gradient(90deg, #b91c1c, #dc2626 55%, #f59e0b);
}

:focus-visible { outline: 3px solid #f59e0b; outline-offset: 4px; }

.preview-note {
  background: #161722;
  border-bottom: 1px solid rgba(245, 158, 11, 0.32);
  color: #f1f5f9;
  font-size: .84rem;
}

.masthead {
  background: rgba(10, 10, 15, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand-place { border-left-color: rgba(245, 158, 11, 0.55); color: #fcd34d; font-weight: 750; }
.navigation a:hover, .language:hover { color: #fcd34d; text-decoration: none; }
.language {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.1);
  color: #fef3c7;
  transition: background-color .18s, transform .18s;
}
.language:hover { background: #d97706; color: #fff; transform: translateY(-1px); }

/* Hero + Subtle Red & Gold Particle Canvas */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 50% 4%, rgba(220, 38, 38, 0.14) 0%, transparent 52%),
    radial-gradient(ellipse at 50% 90%, rgba(245, 158, 11, 0.08) 0%, #0a0a0f 70%);
  padding-block: clamp(2.4rem, 4.4vw, 3.8rem) 2rem;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.88;
}
.hero > .shell, .hero > .portfolio { position: relative; z-index: 1; }
.hero-tag {
  color: #fde68a;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.42);
  padding: .34rem .9rem;
  border-radius: 999px;
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hero-tag::before {
  width: .52rem;
  height: .52rem;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 8px #dc2626;
  animation: live-pulse 1.8s infinite;
}
.hero h1 em {
  color: #fbbf24;
  text-shadow: 0 0 28px rgba(245, 158, 11, 0.25);
}
.hero-copy > p { color: #d4d6e0; max-width: 62ch; }

/* Buttons: Red Primary Action + Calm Slate/Gold Secondary */
.button.primary {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #ffffff;
  border-color: rgba(248, 113, 113, 0.55);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.28);
}
.button.primary:hover {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.4);
}
.button.outline { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.04); color: #f8fafc; }
.button.outline:hover { background: rgba(245, 158, 11, 0.14); border-color: #fbbf24; color: #fef3c7; }
.button.line { border-color: #334155; color: #111827; background: #fff; }
.button.line:hover { background: #fffbeb; border-color: #d97706; color: #92400e; }

/* Portfolio 3D Cards */
.portfolio-stage::before {
  border-block-color: rgba(255, 255, 255, 0.1);
  background: repeating-linear-gradient(90deg, transparent 0 12.4%, rgba(255, 255, 255, 0.04) 12.4% 12.5%);
}
.portfolio-card {
  background: #14151e;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 1.4rem 4rem rgba(0, 0, 0, 0.72);
}
.portfolio-card:nth-child(2) { background: #181519; color: #fff; border-color: rgba(245, 158, 11, 0.3); }
.portfolio-card:nth-child(3) { background: #11131b; color: #fff; border-color: rgba(220, 38, 38, 0.28); }
.portfolio-kicker { color: #fbbf24; }
.portfolio-art-heading { color: #ffffff; }
.portfolio-card-copy p { color: #cbd5e1; }
.portfolio-status { background: #1c1917; border-top: 1px solid rgba(245, 158, 11, 0.35); color: #fef3c7; }
.portfolio-status::before { background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: live-pulse 1.6s infinite; }

.portfolio-controls button {
  border-color: rgba(255, 255, 255, 0.18);
  background: #171822;
  color: #e2e8f0;
}
.portfolio-controls button:hover { background: #222433; border-color: #fbbf24; }
.portfolio-controls button[aria-pressed="true"] {
  background: #dc2626;
  border-color: #f87171;
  color: #ffffff;
}
.portfolio-caption { color: #cbd5e1; font-weight: 600; }

/* Ticker & KPI Strip (Gold Amber + Crisp Slate, Crimson only on alert/CTA) */
.ticker-band {
  background: #12131c;
  border-block: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  padding-block: .8rem;
  white-space: nowrap;
}
.ticker-track { display: inline-flex; gap: 2.3rem; align-items: center; animation: ticker-scroll 28s linear infinite; }
.ticker-band:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: .55rem; color: #e2e8f0; font-size: .83rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ticker-dot { width: 6px; height: 6px; border-radius: 50%; background: #f59e0b; }

.stats-band { background: #0c0d14; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-block: 1.45rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat-box {
  background: #141520;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: .75rem;
  padding: 1rem 1.1rem;
  transition: transform .22s ease, border-color .22s ease;
}
.stat-box:hover { transform: translateY(-3px); border-color: rgba(245, 158, 11, 0.55); }
.stat-num { display: block; font: 900 clamp(1.7rem, 3.2vw, 2.35rem)/1.05 var(--heading); letter-spacing: -.04em; color: #fbbf24; }
.stat-lbl { display: block; margin-top: .32rem; font-size: .82rem; font-weight: 700; color: #cbd5e1; }

/* OPTION 1: Clean Before vs Rescued Comparison Card (Replaces Rotating Sphere) */
.capabilities {
  background: #0d0e15;
  color: #f8fafc;
  border-block: 1px solid rgba(255, 255, 255, 0.09);
}
.capabilities-copy .label { color: #fbbf24; }
.capabilities-copy h2 { color: #ffffff; }
.capabilities-copy > p:not(.label) { color: #cbd5e1; }
.capabilities-detail {
  border-left: 3px solid #f59e0b;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.15rem;
  border-radius: 0 .7rem .7rem 0;
}
.capabilities-detail h3 { color: #ffffff; }
.capabilities-detail p { color: #cbd5e1; }
.capabilities-copy .button.line { border-color: rgba(245, 158, 11, 0.5); color: #fef3c7; background: rgba(245, 158, 11, 0.1); }
.capabilities-copy .button.line:hover { background: #d97706; color: #ffffff; border-color: #fbbf24; }

.capabilities-stage {
  aspect-ratio: auto;
  display: block;
  padding: 1.15rem;
  background: #141521;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
}
.capabilities-stage::before { display: none; }
.rescue-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
  margin-bottom: 1rem;
}
.rescue-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #1c1d2b;
  color: #cbd5e1;
  border-radius: .6rem;
  padding: .62rem .55rem;
  font-size: .79rem;
  font-weight: 800;
  text-align: center;
  transition: background-color .18s, border-color .18s, color .18s;
}
.rescue-tab:hover { border-color: rgba(245, 158, 11, 0.55); color: #fff; }
.rescue-tab[aria-selected="true"] {
  background: #dc2626;
  border-color: #f87171;
  color: #ffffff;
}
.rescue-panel { animation: fade-up .26s ease both; }
.rescue-compare { display: grid; gap: .75rem; }
.rescue-card {
  border-radius: .75rem;
  padding: .95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.rescue-card--before {
  background: rgba(220, 38, 38, 0.08);
  border-left: 4px solid #dc2626;
}
.rescue-card--after {
  background: rgba(245, 158, 11, 0.09);
  border-left: 4px solid #f59e0b;
}
.rescue-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.rescue-card--before .rescue-badge { color: #fca5a5; }
.rescue-card--after .rescue-badge { color: #fcd34d; }
.rescue-card strong { display: block; font-size: 1rem; color: #ffffff; margin-bottom: .28rem; }
.rescue-card p { font-size: .86rem; color: #cbd5e1; margin: 0; line-height: 1.45; }

/* Service Showcase */
.service-showcase { background: #f7f5f6; border-bottom: 1px solid #e4dfe2; }
.service-showcase .label { color: #b91c1c; }
.service-tab { border-color: #cbd5e1; color: #1e1e26; background: #fff; }
.service-tab:hover { background: #fffbeb; border-color: #d97706; }
.service-tab[aria-selected="true"] { border-color: #dc2626; background: #dc2626; color: #ffffff; }
.service-panel {
  border: 1px solid #e2dde1;
  background: #ffffff;
  --stage-bg: #161722;
}
.service-panel--marketing { --stage-bg: #1b1514; }
.service-panel--ai { --stage-bg: #131522; }
.service-panel--vision { --stage-bg: #11131a; }
.service-visual {
  background-color: var(--stage-bg);
  background-image:
    radial-gradient(circle at 20% 15%, rgba(245, 158, 11, 0.14), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 100%, 24px 24px;
}
.service-visual::before { border-color: rgba(245, 158, 11, 0.22); box-shadow: none; }
.service-art { background: #141520; color: #f8fafc; border: 1px solid rgba(255, 255, 255, 0.16); }
.service-browser-top { background: #1d1e2b; color: #fcd34d; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.service-menu-item { border-bottom-color: rgba(255, 255, 255, 0.08); color: #e2e8f0; }
.service-menu-item span { color: #fbbf24; }
.service-menu-action { background: #dc2626; color: #ffffff; }
.service-workflow li { background: #1c1d2b; border-left: 3px solid #f59e0b; color: #f8fafc; }
.service-campaign-image { background: url("nfc-crimson-stand.jpg") center / cover no-repeat; border-radius: .5rem; }
.service-status { background: #292012; border: 1px solid rgba(245, 158, 11, 0.45); color: #fde68a; }

/* Pricing */
.pricing .label, .process .label { color: #b45309; }
.package { border-top: 3px solid #cbd5e1; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.package:hover { border-color: #d97706; box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08); }
.package.highlighted {
  border-color: #d97706;
  border-top: 4px solid #dc2626;
  background: linear-gradient(180deg, #fffaf5, #ffffff 55%);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.09);
}
.price strong { color: #111827; }
.package.highlighted .price strong { color: #b91c1c; }
.addons summary::after { color: #dc2626; }
.steps li::marker { color: #d97706; }
.monthly-plan { padding-inline: 1rem; border-radius: .65rem; transition: transform .22s ease, background-color .2s ease; }
.monthly-plan:hover { background: #fffbeb; }

/* Demo & Vision */
.demo-section {
  background: radial-gradient(circle at 82% 20%, rgba(245, 158, 11, 0.14), transparent 55%), #0c0d14;
}
.demo-copy .label { color: #fbbf24; }
.demo-copy .button.line { border-color: rgba(255, 255, 255, 0.38); color: #ffffff; background: transparent; }
.demo-copy .button.line:hover { background: rgba(245, 158, 11, 0.15); border-color: #fbbf24; color: #fef3c7; }
.demo-picture {
  position: relative; overflow: hidden; border-radius: .85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.65);
}
.demo-picture::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2.5px;
  background: linear-gradient(90deg, transparent, #ef4444, #fbbf24, transparent);
  animation: radar-scan 3.4s ease-in-out infinite;
  pointer-events: none;
}
.demo-overlay { background: rgba(12, 13, 20, 0.92); color: #f8fafc; border: 1px solid rgba(245, 158, 11, 0.45); backdrop-filter: blur(8px); }
.demo-overlay small { color: #fcd34d; }
.demo-overlay strong::before { background: #ef4444; box-shadow: 0 0 8px #ef4444; animation: live-pulse 1.3s infinite; }
.demo-overlay .sample-line { background: linear-gradient(90deg, #f59e0b 72%, #272734 72%); }

.close-banner { background: linear-gradient(135deg, #13141f, #2b0f14 60%, #0a0a0f); }
.footer { background: #101119; color: #cbd5e1; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer .brand-name { color: #ffffff; }
.credits { border-top-color: rgba(255, 255, 255, 0.1); }
.credits a { color: #fcd34d; }

@keyframes live-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(1.22); } }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes radar-scan { 0% { top: 4%; opacity: .85; } 50% { top: 92%; opacity: 1; } 100% { top: 4%; opacity: .85; } }
@keyframes fade-up { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rescue-tabs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .demo-picture::after, .hero-tag::before, .portfolio-status::before, .demo-overlay strong::before, .rescue-panel { animation: none !important; }
  .package, .monthly-plan, .demo-picture, .stat-box { transition: none !important; transform: none !important; }
}

/* Production Hero Sharpness Override (100% crisp from frame 0) */
.hero-tag, .hero-line, .hero h1, .hero h1 em, .hero-copy > p, .hero-actions {
  opacity: 1 !important;
}
.hero h1 { color: #ffffff; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55); }
.hero-copy > p { color: #e2e8f0; }
