/*
 * AutoDev Studio — 21st.dev-inspired visual layer.
 * Patterns adapted for semantic HTML/PHP: animated background paths,
 * bento layouts, cursor spotlight cards and luminous gradient borders.
 */

:root {
  --ink: #02080d;
  --ink-soft: #07131b;
  --panel: rgba(10, 28, 39, 0.72);
  --panel-2: rgba(15, 39, 52, 0.84);
  --paper: #dff7f5;
  --paper-soft: #c9edeb;
  --white: #f4fbff;
  --muted: #a6bac3;
  --muted-dark: #91a9b3;
  --acid: #2dd4bf;
  --acid-strong: #14b8a6;
  --cyan: #67d7f2;
  --blue: #4f7cff;
  --violet: #8b7cff;
  --line: rgba(164, 219, 229, 0.14);
  --line-light: rgba(2, 18, 26, 0.16);
  --display: "Sora", "Manrope", sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "DM Mono", Consolas, monospace;
  --shell: min(1320px, calc(100vw - 48px));
  --radius: 28px;
  --radius-sm: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --glow: 0 0 60px rgba(45, 212, 191, 0.12);
}

html {
  background: var(--ink);
}

body {
  background:
    radial-gradient(circle at 8% -10%, rgba(79, 124, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 96% 8%, rgba(45, 212, 191, 0.13), transparent 30rem),
    var(--ink);
  font-family: var(--body);
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(103, 215, 242, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 215, 242, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  content: "";
  pointer-events: none;
}

.page-noise {
  opacity: 0.08;
  mix-blend-mode: screen;
}

.scroll-progress {
  z-index: 200;
  height: 2px;
}

.scroll-progress span {
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--acid));
  box-shadow: 0 0 18px var(--cyan);
}

.section {
  padding-block: clamp(78px, 8vw, 118px);
}

.section-muted {
  border: 0;
  background:
    radial-gradient(circle at 14% 24%, rgba(79, 124, 255, 0.09), transparent 30rem),
    radial-gradient(circle at 86% 70%, rgba(45, 212, 191, 0.08), transparent 30rem),
    rgba(5, 17, 25, 0.74);
}

.section-muted::before,
.calculator-section::after,
.process-section::before {
  position: absolute;
  inset: 0;
  border-block: 1px solid var(--line);
  content: "";
  pointer-events: none;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 45%),
    rgba(8, 25, 35, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.eyebrow {
  width: max-content;
  max-width: 100%;
  gap: 9px;
  margin-bottom: 22px;
  padding: 7px 11px;
  border: 1px solid rgba(103, 215, 242, 0.18);
  border-radius: 999px;
  background: rgba(103, 215, 242, 0.055);
  color: #c0d0d6;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.eyebrow > span {
  width: 6px;
  height: 6px;
  border: 0;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 12px var(--acid);
  transform: none;
}

.eyebrow-dark {
  color: #c0d0d6;
}

.eyebrow-dark > span {
  background: var(--cyan);
}

.button {
  min-height: 52px;
  gap: 16px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.035em;
  overflow: hidden;
  transform: translateZ(0);
}

.button::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.32), transparent 72%);
  content: "";
  transform: translateX(-130%);
  transition: transform 650ms var(--ease);
}

.button:hover::before {
  transform: translateX(130%);
}

.button-accent,
.button-primary {
  border-color: rgba(103, 215, 242, 0.34);
  background: linear-gradient(110deg, #55d9ee, #2dd4bf);
  box-shadow: 0 12px 34px rgba(45, 212, 191, 0.18), inset 0 1px rgba(255, 255, 255, 0.42);
  color: #021016;
}

.button-accent:hover,
.button-primary:hover {
  background: linear-gradient(110deg, #7be4f5, #55ddca);
  box-shadow: 0 16px 42px rgba(45, 212, 191, 0.28);
}

.button-ghost,
.button-secondary,
.button-dark {
  border-color: rgba(170, 223, 232, 0.2);
  background: rgba(9, 26, 36, 0.62);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.button-ghost:hover,
.button-secondary:hover,
.button-dark:hover {
  border-color: rgba(103, 215, 242, 0.48);
  background: rgba(17, 45, 58, 0.82);
  color: var(--white);
}

.text-link {
  color: #bcecf0;
}

.text-link:hover {
  color: var(--acid);
}

/* Floating 21st-style navigation */
.site-header {
  top: 14px;
  height: auto;
  border: 0;
  background: transparent;
}

.header-inner {
  min-height: 70px;
  padding: 9px 10px 9px 14px;
  border: 1px solid rgba(164, 219, 229, 0.16);
  border-radius: 22px;
  background: rgba(3, 13, 20, 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(22px) saturate(145%);
}

.site-header.is-scrolled .header-inner {
  border-color: rgba(103, 215, 242, 0.24);
  background: rgba(3, 13, 20, 0.9);
}

.brand-symbol,
.brand-mark {
  filter: saturate(1.2) drop-shadow(0 0 14px rgba(45, 212, 191, 0.18));
}

.brand-symbol {
  width: 50px;
  height: 34px;
  padding: 5px;
  border: 1px solid rgba(103, 215, 242, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.brand-mark {
  width: 48px;
  height: 30px;
}

.brand-copy strong,
.brand-name {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.04em;
}

.brand-copy small,
.brand-tag {
  color: #93aab4;
  font-size: 9px;
}

.site-nav {
  gap: 4px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #b4c5cc;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}

.site-nav a::after {
  display: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(103, 215, 242, 0.08);
  color: var(--white);
}

/* Animated background paths — adapted from the 21st.dev pattern */
.tf-background-paths {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.62;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 5%, rgba(0, 0, 0, 0.75) 62%, transparent 100%);
}

.tf-background-paths path {
  fill: none;
  stroke: url("#tf-path-gradient");
  stroke-linecap: round;
  stroke-width: 1;
  stroke-dasharray: 18 28;
  opacity: 0.2;
  animation: tf-path-drift 18s linear infinite;
  animation-delay: calc(var(--path-index) * -1.7s);
}

.tf-background-paths path:nth-of-type(2n) {
  animation-direction: reverse;
  opacity: 0.3;
}

@keyframes tf-path-drift {
  to { stroke-dashoffset: -460; }
}

/* Home hero */
.hero {
  min-height: 890px;
  padding-top: 138px;
  background:
    radial-gradient(circle at var(--hero-x, 76%) var(--hero-y, 22%), rgba(45, 212, 191, 0.16), transparent 22rem),
    radial-gradient(circle at 18% 24%, rgba(79, 124, 255, 0.16), transparent 28rem);
}

.hero::before {
  top: -20%;
  right: -12%;
  width: min(74vw, 1080px);
  background-size: contain;
  filter: saturate(1.25);
  opacity: 0.055;
  transform: rotate(-8deg);
}

.hero-grid-bg {
  opacity: 0.5;
  background-image:
    radial-gradient(circle at center, rgba(103, 215, 242, 0.24) 0 1px, transparent 1.4px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 30%, black, transparent 70%);
}

.hero-shell {
  position: relative;
  z-index: 2;
  align-items: center;
  grid-template-columns: minmax(0, 0.94fr) minmax(430px, 0.76fr);
  gap: clamp(38px, 5vw, 74px);
}

.hero-copy {
  max-width: 780px;
}

.hero-copy::before {
  display: none;
}

.hero h1 {
  max-width: 12ch;
  margin-bottom: 28px;
  font-size: clamp(58px, 7.4vw, 108px);
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 0.91;
}

.hero h1 em {
  background: linear-gradient(100deg, #7de7f6 0%, #2dd4bf 45%, #7c9bff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-style: normal;
  text-shadow: 0 0 46px rgba(45, 212, 191, 0.11);
}

.hero-lead {
  max-width: 650px;
  color: #b6c8cf;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.75;
}

.hero-actions {
  gap: 10px;
}

.hero-facts {
  width: min(100%, 680px);
  margin-top: 34px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(7, 22, 31, 0.46);
  backdrop-filter: blur(12px);
}

.hero-facts div {
  padding: 8px 18px;
}

.hero-facts div + div {
  border-color: var(--line);
}

.hero-facts dt {
  color: #9fb3bc;
  font-size: 10px;
}

.hero-facts dd {
  color: #d8e8ed;
  font-size: 14px;
}

.flow-console {
  border-color: rgba(103, 215, 242, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(45, 212, 191, 0.11), transparent 38%),
    rgba(4, 17, 25, 0.78);
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.5), 0 0 80px rgba(45, 212, 191, 0.07), inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px);
  transform: perspective(1400px) rotateY(-2.5deg) rotateX(1deg);
}

.flow-console::before,
.flow-console::after {
  border-color: rgba(103, 215, 242, 0.22);
  border-radius: 28px;
}

.console-topbar,
.console-status {
  background: rgba(255, 255, 255, 0.018);
}

.flow-tabs {
  gap: 6px;
  padding: 10px;
}

.flow-tabs button {
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.flow-tabs button[aria-selected="true"],
.flow-tabs button:hover {
  background: rgba(45, 212, 191, 0.1);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.24);
}

.flow-stage {
  padding: 24px;
}

.flow-node {
  border-color: rgba(164, 219, 229, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.console-topbar,
.console-status,
.flow-node > span,
.flow-node small,
.micro-label {
  color: #a4b7bf;
}

.flow-node > span,
.flow-node small,
.micro-label {
  font-size: 10px;
}

.flow-node.is-running {
  border-color: rgba(45, 212, 191, 0.65);
  box-shadow: 0 0 34px rgba(45, 212, 191, 0.14);
}

.flow-result {
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.1), rgba(45, 212, 191, 0.07));
}

.run-button {
  border-radius: 999px;
}

.hero-marquee {
  border-color: var(--line);
  background: rgba(5, 17, 25, 0.8);
  backdrop-filter: blur(12px);
}

/* Cursor spotlight card. One delegated listener updates CSS variables. */
.tf-spotlight {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.tf-spotlight-layer {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(520px circle at var(--spot-x, 50%) var(--spot-y, 0%), rgba(103, 215, 242, 0.12), transparent 42%),
    radial-gradient(340px circle at var(--spot-x, 50%) var(--spot-y, 0%), rgba(45, 212, 191, 0.09), transparent 50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.tf-spotlight:hover .tf-spotlight-layer,
.tf-spotlight:focus-within .tf-spotlight-layer {
  opacity: 1;
}

.tf-spotlight > :not(.tf-spotlight-layer) {
  position: relative;
  z-index: 1;
}

/* Home bento sections */
.section-heading h2,
.calculator-copy h2,
.process-sticky h2,
.contact-copy h2,
.service-hero-copy h1,
.blog-hero-copy h1,
.blog-post-copy h1 {
  font-weight: 600;
  letter-spacing: -0.06em;
}

.section-heading {
  margin-bottom: clamp(40px, 5vw, 58px);
}

.split-heading {
  gap: clamp(34px, 5vw, 72px);
}

.card-number,
.offer-topline,
.work-copy > span,
.footer-label {
  color: #9fb3bc;
  font-size: 10px;
}

.friction-grid {
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.friction-card {
  min-height: 370px;
  grid-column: span 4;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.045), transparent 45%),
    rgba(8, 24, 34, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

.friction-card:nth-child(2) {
  grid-column: span 5;
}

.friction-card:nth-child(3) {
  grid-column: span 3;
}

.friction-card-highlight {
  border-color: rgba(45, 212, 191, 0.28);
  background:
    radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.13), transparent 44%),
    rgba(8, 28, 35, 0.78);
  color: var(--white);
}

.friction-card:hover,
.friction-card-highlight:hover {
  border-color: rgba(103, 215, 242, 0.38);
  transform: translateY(-5px);
}

.friction-card-highlight p,
.friction-card-highlight .card-number {
  color: var(--muted);
}

.calculator-section,
.process-section {
  background:
    radial-gradient(circle at 20% 30%, rgba(79, 124, 255, 0.13), transparent 32rem),
    radial-gradient(circle at 88% 76%, rgba(45, 212, 191, 0.1), transparent 32rem),
    #06141d;
  color: var(--white);
}

.calculator-section::before,
.process-section::after {
  opacity: 0.05;
}

.calculator-shell {
  align-items: center;
}

.calculator-copy > p:not(.eyebrow),
.process-sticky > p:not(.eyebrow) {
  color: var(--muted);
}

.calculator {
  border-color: rgba(103, 215, 242, 0.18);
  border-radius: 30px;
  background: rgba(8, 25, 35, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.range-field {
  padding-block: 24px;
  border-color: var(--line);
}

.calculator-result {
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.12), rgba(79, 124, 255, 0.08));
  color: var(--white);
}

.calculator-result > span,
.calculator-result small {
  color: var(--muted);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.offer-card {
  min-height: 460px;
  grid-column: span 6;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 48%),
    rgba(8, 24, 34, 0.72);
  color: var(--white);
}

.offer-card-diagnostic {
  border-color: rgba(103, 215, 242, 0.34);
  background:
    radial-gradient(circle at 90% 0, rgba(103, 215, 242, 0.18), transparent 42%),
    linear-gradient(145deg, rgba(79, 124, 255, 0.11), rgba(8, 27, 37, 0.78));
  color: var(--white);
}

.offer-card h3,
.offer-card-diagnostic h3,
.offer-price,
.offer-card-diagnostic .offer-price {
  color: var(--white);
}

.offer-card > p:not(.offer-price):not(.offer-note),
.offer-card-diagnostic > p:not(.offer-price):not(.offer-note),
.offer-note {
  color: var(--muted);
}

.offer-card li,
.offer-card-diagnostic li {
  border-color: var(--line);
}

.offer-card-diagnostic li::before {
  background: var(--acid);
  color: var(--ink);
}

.text-button {
  color: #bcecf0;
}

.work-section {
  background: transparent;
  color: var(--white);
}

.work-heading .eyebrow {
  color: var(--muted);
}

.work-heading > p:not(.eyebrow),
.work-copy p {
  color: var(--muted);
}

.work-grid {
  gap: 20px;
}

.work-card,
.work-image,
.work-image img {
  border-radius: 28px;
}

.work-card {
  border: 1px solid var(--line);
  background: rgba(8, 24, 34, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.work-image {
  aspect-ratio: 16 / 9;
}

.work-copy {
  padding: 20px 4px 32px;
}

.work-image::after {
  background: linear-gradient(to top, rgba(2, 8, 13, 0.96), transparent 70%);
}

.capabilities {
  margin-top: 72px;
  gap: 12px;
  border: 0;
}

.capabilities a {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 24, 34, 0.62);
}

.process-shell {
  gap: clamp(50px, 8vw, 120px);
}

.process-list {
  border-color: var(--line);
}

.process-list li {
  border-color: var(--line);
}

.process-list li > span,
.process-list small {
  color: var(--acid);
}

.process-list p {
  color: var(--muted);
}

.faq-list details,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 24, 34, 0.66);
  overflow: hidden;
}

.faq-list summary,
.faq-item summary {
  border-color: var(--line);
}

.contact-section {
  background:
    radial-gradient(circle at 12% 0, rgba(79, 124, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 88% 80%, rgba(45, 212, 191, 0.16), transparent 30rem),
    #030b11;
}

.contact-section::before {
  opacity: 0.035;
}

.contact-shell {
  align-items: start;
  gap: clamp(44px, 6vw, 86px);
}

.contact-direct a {
  border-color: var(--line);
  border-radius: 18px;
  background: rgba(8, 24, 34, 0.5);
}

.contact-form {
  border: 1px solid rgba(103, 215, 242, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 44%),
    rgba(7, 22, 31, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  border: 1px solid rgba(164, 219, 229, 0.14);
  border-radius: 13px;
  background: rgba(2, 11, 17, 0.62);
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: rgba(45, 212, 191, 0.62);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.08);
}

.contact-direct span,
.form-topline,
.form-grid label > span,
.field-error,
.form-submit p,
.form-status {
  color: #a4b7bf;
  font-size: 11px;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: #8da6b0;
  opacity: 1;
}

/* Service pages */
body[data-page="automatizacion"],
body[data-page="desarrollo-web"],
body[data-page="implementacion-tecnica"],
body[data-page^="blog"] {
  background:
    radial-gradient(circle at 8% -5%, rgba(79, 124, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 94% 8%, rgba(45, 212, 191, 0.13), transparent 30rem),
    var(--ink);
}

.section-first {
  min-height: 740px;
  padding-top: 148px;
  background: transparent;
}

.section-first::before {
  top: 80px;
  right: -10vw;
  width: min(66vw, 900px);
  opacity: 0.06;
  filter: saturate(1.3);
}

.section-first > .container,
.section-first > .shell {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 22, 31, 0.46);
  color: #b2c3ca;
  font-size: 11px;
}

.breadcrumb > * {
  min-width: 0;
}

.service-hero {
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.72fr);
  gap: clamp(42px, 6vw, 86px);
}

.service-hero-copy h1 {
  max-width: 14ch;
  font-size: clamp(50px, 5.5vw, 82px);
  line-height: 0.96;
}

.service-hero-copy > p:not(.eyebrow) {
  color: #b6c8cf;
}

.service-hero-card {
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0, rgba(45, 212, 191, 0.14), transparent 44%),
    rgba(6, 21, 30, 0.76);
  transform: perspective(1200px) rotateY(-2deg);
}

.service-hero-card::before {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--acid), transparent);
}

.stack-list li,
.metric-card {
  border-color: var(--line);
}

.metric-card {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.metric-card span {
  color: #a9bbc2;
  font-size: 13px;
}

.feature-card p,
.cross-link-card p,
.case-body p,
.process-step p,
.faq-item p {
  color: #aabdc4;
}

.feature-columns,
.cross-links,
.cases-grid,
.faq-grid {
  gap: 16px;
}

.feature-card,
.cross-link-card,
.case-card,
.check-grid li,
.process-step {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 48%),
    rgba(8, 24, 34, 0.68);
}

.feature-card,
.cross-link-card {
  min-height: 320px;
}

.feature-card:hover,
.cross-link-card:hover,
.case-card:hover {
  border-color: rgba(103, 215, 242, 0.34);
  transform: translateY(-5px);
}

.check-grid {
  gap: 14px;
}

.check-grid li {
  min-height: 132px;
}

.process-grid {
  gap: 14px;
  border: 0;
}

.process-step {
  min-height: 310px;
  border: 1px solid var(--line);
}

.process-number {
  width: 44px;
  height: 44px;
  margin-bottom: 62px;
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(45, 212, 191, 0.06);
  font-size: 11px;
}

.cta-band {
  padding-block: 70px;
  background:
    radial-gradient(circle at 8% 50%, rgba(79, 124, 255, 0.15), transparent 28rem),
    linear-gradient(110deg, #071822, #0b2832);
  color: var(--white);
}

.cta-band::before {
  position: absolute;
  inset: 18px 24px;
  border: 1px solid rgba(103, 215, 242, 0.16);
  border-radius: 30px;
  content: "";
  pointer-events: none;
}

.cta-band .eyebrow {
  color: var(--muted);
}

.cta-band .button-secondary {
  border-color: var(--line);
  color: var(--white);
}

.case-card {
  padding: 8px;
  border-radius: 28px;
}

.case-image,
.case-image img {
  border-radius: 20px;
}

.case-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.case-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.case-body {
  padding: 24px;
}

.case-kicker {
  font-size: 11px;
}

/* Blog */
body[data-page^="blog"] .section-first {
  padding-top: 148px;
}

.blog-shell::before,
.blog-post-shell::before {
  opacity: 0.055;
}

.blog-hero-copy h1,
.blog-post-copy h1 {
  max-width: 16ch;
  background: linear-gradient(115deg, #f4fbff 25%, #a9eaf1 60%, #8da8ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.blog-hero-copy,
.blog-post-copy {
  width: 100%;
  min-width: 0;
}

.blog-post-copy h1 {
  overflow-wrap: anywhere;
}

.blog-hero-lead {
  color: #b6c8cf;
}

.blog-meta-row {
  color: #a8bbc3;
  font-size: 11px;
}

.blog-featured-body p,
.blog-card-body p,
.blog-sidebar-card p,
.blog-cta p {
  color: #aabdc4;
}

.blog-featured,
.blog-post-featured,
.blog-video-embed,
.blog-article,
.blog-gallery,
.blog-sidebar-card,
.blog-card,
.blog-empty,
.blog-cta {
  border-radius: 28px;
}

.blog-featured {
  padding: 8px;
}

.blog-featured::before {
  display: none;
}

.blog-featured-media,
.blog-featured-media img,
.blog-card-media,
.blog-card-media img {
  border-radius: 20px;
}

.blog-post-featured {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-post-featured img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.blog-card {
  padding: 8px;
}

.blog-card:hover {
  border-color: rgba(103, 215, 242, 0.34);
  transform: translateY(-5px);
}

.blog-article-prose p,
.blog-article-prose li,
.blog-article-prose blockquote {
  color: #c8d8dd;
}

.blog-article-prose blockquote {
  border-radius: 0 16px 16px 0;
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.1), rgba(79, 124, 255, 0.04));
}

.pagination-link {
  border-radius: 999px;
}

/* Unified footer */
.site-footer {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 100%, rgba(79, 124, 255, 0.11), transparent 24rem),
    #02080d;
}

.footer-main,
.footer-grid {
  padding-top: 48px;
}

.footer-copy p,
.footer-links a,
.footer-meta,
.footer-meta a {
  color: #a7bac2;
}

.footer-links a,
.footer-meta a {
  transition: color 180ms ease;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero {
    min-height: 0;
  }

  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 900px;
  }

  .hero h1 {
    max-width: 11ch;
  }

  .flow-console {
    width: min(100%, 760px);
    transform: none;
  }

  .friction-card,
  .friction-card:nth-child(2),
  .friction-card:nth-child(3) {
    grid-column: span 6;
  }

  .friction-card:nth-child(3) {
    grid-column: span 12;
    min-height: 320px;
  }

  .service-hero {
    grid-template-columns: 1fr;
  }

  .service-hero-card {
    max-width: 820px;
    transform: none;
  }
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 32px, 760px);
  }

  .site-header {
    top: 10px;
  }

  .header-inner {
    min-height: 64px;
    border-radius: 18px;
  }

  .menu-toggle {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
  }

  .header-menu,
  .header-panel {
    top: calc(100% + 9px);
    right: 0;
    left: 0;
    padding: 14px;
    border: 1px solid rgba(164, 219, 229, 0.18);
    border-radius: 20px;
    background: rgba(3, 13, 20, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
  }

  .site-nav a {
    width: 100%;
    padding: 14px 16px;
  }

  .offer-card {
    grid-column: span 12;
    min-height: 0;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100vw - 28px);
    --radius: 22px;
  }

  .section {
    padding-block: 68px;
  }

  .brand-copy small,
  .brand-tag {
    display: none;
  }

  .brand-symbol {
    width: 44px;
    height: 30px;
  }

  .brand-mark {
    width: 43px;
    height: 27px;
  }

  .brand-copy strong,
  .brand-name {
    font-size: 14px;
  }

  .hero {
    padding-top: 116px;
  }

  .hero h1 {
    font-size: clamp(44px, 13.2vw, 64px);
    letter-spacing: -0.07em;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-facts div,
  .hero-facts div + div {
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-facts div:last-child {
    border-bottom: 0;
  }

  .flow-console {
    border-radius: 22px;
  }

  .flow-stage {
    padding: 16px;
  }

  .friction-card,
  .friction-card:nth-child(2),
  .friction-card:nth-child(3) {
    min-height: 300px;
    grid-column: span 12;
  }

  .calculator,
  .contact-form {
    border-radius: 22px;
  }

  .offer-card {
    border-radius: 22px;
  }

  .section-first,
  body[data-page^="blog"] .section-first {
    padding-top: 114px;
  }

  .service-hero-copy h1,
  .blog-hero-copy h1,
  .blog-post-copy h1 {
    font-size: clamp(40px, 11.5vw, 58px);
    line-height: 0.98;
  }

  .breadcrumb {
    width: 100%;
    overflow: hidden;
  }

  .service-hero-card,
  .feature-card,
  .cross-link-card,
  .case-card,
  .blog-featured,
  .blog-post-featured,
  .blog-video-embed,
  .blog-article,
  .blog-gallery,
  .blog-sidebar-card,
  .blog-card,
  .blog-empty,
  .blog-cta {
    border-radius: 22px;
  }

  .feature-card,
  .cross-link-card {
    min-height: 220px;
  }

  .process-step {
    min-height: 0;
  }

  .cta-band {
    padding-block: 64px;
  }

  .cta-band::before {
    inset: 12px;
    border-radius: 22px;
  }

  .blog-featured,
  .blog-card,
  .case-card {
    padding: 6px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .service-hero,
  .blog-shell,
  .blog-post-shell {
    gap: 32px;
  }

  .case-body,
  .blog-featured-body,
  .blog-card-body,
  .blog-sidebar-card,
  .blog-gallery,
  .blog-cta {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tf-background-paths path {
    animation: none;
  }

  .tf-spotlight-layer {
    display: none;
  }

  .button::before {
    display: none;
  }
}
