:root {
  --bg: #f8fafc;
  --bg-muted: #f1f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --border: #e2e8f0;
  --brand-violet: #68217a;
  --brand-violet-light: #9b4db3;
  --brand-violet-deep: #4a1860;
  --brand-violet-soft: #f5eaf8;
  --brand-violet-glow: rgba(104, 33, 122, 0.42);
  --brand-violet-glow-soft: rgba(104, 33, 122, 0.16);
  --accent: #68217a;
  --accent-hover: #9b4db3;
  --accent-soft: #f5eaf8;
  --accent-blue: #3b82f6;
  --accent-dark: #0f172a;
  --accent-dark-2: #1a0f2e;
  --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #68217a 52%, #9b4db3 100%);
  --gradient-hero: linear-gradient(155deg, #06040c 0%, #1a0f2e 40%, #0f172a 70%, #12081c 100%);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(104, 33, 122, 0.1);
  --radius: 12px;
  --radius-lg: 18px;
  --max: 72rem;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Source Serif 4", Georgia, serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --page-pad: clamp(1rem, 4vw, 1.5rem);
  --touch-min: 2.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 10, 25, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: var(--safe-top);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem var(--page-pad);
  padding-left: calc(var(--page-pad) + var(--safe-left));
  padding-right: calc(var(--page-pad) + var(--safe-right));
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1 1 auto;
}

.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.brand__logo-full {
  display: block;
  height: 2.4rem;
  width: auto;
  max-width: min(15rem, 58vw);
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.2s, filter 0.2s;
}

.brand:hover .brand__logo-full {
  opacity: 0.92;
}

.brand__logo {
  display: block;
  width: 3.55rem;
  height: 3.55rem;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(104, 33, 122, 0.32));
  transition: filter 0.25s, transform 0.25s;
}

.brand:hover .brand__logo {
  filter: drop-shadow(0 4px 14px rgba(99, 102, 241, 0.45));
  transform: scale(1.04);
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__text strong {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__text small {
  font-size: 0.76rem;
  color: #d8b4e8;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: #e9d5ff;
}

.site-nav__cta {
  padding: 0.5rem 1rem;
  background: var(--gradient-brand);
  color: #fff !important;
  border-radius: 8px;
  box-shadow: 0 4px 16px var(--brand-violet-glow-soft);
  transition: box-shadow 0.2s, transform 0.2s;
}

.site-nav__cta:hover {
  background: var(--gradient-brand);
  color: #fff !important;
  box-shadow: 0 6px 22px var(--brand-violet-glow);
  transform: translateY(-1px);
}

.lang-switch {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.lang-switch button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.lang-switch button:hover {
  border-color: rgba(192, 132, 252, 0.45);
  color: #fff;
  background: rgba(104, 33, 122, 0.18);
}

.lang-switch button.is-active {
  background: rgba(104, 33, 122, 0.35);
  border-color: rgba(192, 132, 252, 0.5);
  color: #f3e8ff;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--touch-min);
  height: var(--touch-min);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0 auto;
  background: #f8fafc;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 var(--page-pad) calc(1rem + var(--safe-bottom));
  padding-left: calc(var(--page-pad) + var(--safe-left));
  padding-right: calc(var(--page-pad) + var(--safe-right));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 10, 25, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.9rem 0;
  min-height: var(--touch-min);
  display: flex;
  align-items: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav a:last-child {
  border-bottom: none;
  color: #fff;
  font-weight: 600;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--gradient-brand);
  border-radius: 10px;
  box-shadow: 0 4px 16px var(--brand-violet-glow-soft);
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero--wow {
  background: var(--gradient-hero);
  color: #f8fafc;
  min-height: min(100svh, 52rem);
  min-height: min(100dvh, 52rem);
  display: flex;
  align-items: center;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 1;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: floatGlow 12s ease-in-out infinite;
}

.hero__glow--1 {
  width: 28rem;
  height: 28rem;
  top: -8rem;
  right: -6rem;
  background: rgba(104, 33, 122, 0.38);
}

.hero__glow--2 {
  width: 22rem;
  height: 22rem;
  bottom: -6rem;
  left: -4rem;
  background: rgba(59, 130, 246, 0.22);
  animation-delay: -4s;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -16px) scale(1.08); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--page-pad) clamp(2.5rem, 6vw, 4rem);
  padding-left: calc(var(--page-pad) + var(--safe-left));
  padding-right: calc(var(--page-pad) + var(--safe-right));
  transition: transform 0.15s ease-out;
}

.hero--wow .hero__title {
  position: relative;
  z-index: 0;
  max-width: 100%;
  color: #fff;
  text-shadow: 0 0 48px rgba(104, 33, 122, 0.35), 0 0 24px rgba(59, 130, 246, 0.15);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero--wow .hero__title::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 52%;
  width: min(130%, 44rem);
  height: 160%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(90, 130, 255, 0.18) 0%,
    rgba(104, 33, 122, 0.07) 45%,
    transparent 70%
  );
  pointer-events: none;
}

.hero--wow .hero__eyebrow {
  color: #d8b4e8;
  font-size: clamp(0.68rem, 2.5vw, 0.82rem);
  line-height: 1.4;
}

.hero--wow .hero__lead {
  color: #94a3b8;
  max-width: 40ch;
}

.hero--wow .hero__trust li {
  color: #cbd5e1;
}

.hero--wow .hero__trust li::before {
  color: #c084fc;
}

.hero__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0 0 1.25rem;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5vw + 0.5rem, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero__lead {
  margin: 0 0 2rem;
  max-width: 52ch;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero__actions .btn {
  flex: 1 1 auto;
  min-width: min(100%, 11rem);
  min-height: var(--touch-min);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__trust li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  font-weight: 500;
}

.hero__trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-violet);
  font-weight: 700;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  padding: 0.85rem 1.35rem;
  border-radius: 10px;
  font-size: clamp(0.88rem, 2.5vw, 0.95rem);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--brand-violet-deep) 100%);
  color: #fff !important;
  box-shadow:
    0 6px 20px rgba(15, 23, 42, 0.2),
    0 0 32px rgba(70, 130, 255, 0.18);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--brand-violet-deep) 0%, var(--brand-violet) 100%);
  color: #fff !important;
  box-shadow:
    0 8px 26px rgba(15, 23, 42, 0.24),
    0 0 44px rgba(70, 130, 255, 0.3),
    0 0 16px rgba(104, 33, 122, 0.15);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text) !important;
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: #cbd5e1;
  color: var(--text) !important;
}

.btn--light {
  background: #fff;
  color: var(--accent-dark) !important;
}

.btn--light:hover {
  background: #f1f5f9;
  color: var(--accent-dark) !important;
}

.btn--ghost-light {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35);
  margin-top: 0.65rem;
}

.btn--ghost-light:hover {
  background: rgba(104, 33, 122, 0.15);
  border-color: rgba(192, 132, 252, 0.45);
  color: #fff !important;
}

.btn--glow {
  background: var(--gradient-brand);
  color: #fff !important;
  box-shadow:
    0 6px 24px rgba(15, 23, 42, 0.25),
    0 0 40px rgba(70, 130, 255, 0.25);
}

.btn--glow:hover {
  box-shadow:
    0 8px 28px rgba(15, 23, 42, 0.28),
    0 0 48px rgba(70, 130, 255, 0.35),
    0 0 20px rgba(104, 33, 122, 0.18);
  color: #fff !important;
}

.btn--full {
  width: 100%;
}

/* —— Sections —— */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section--muted {
  background: var(--bg-muted);
  border-block: 1px solid var(--border);
}

.section--accent {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--brand-violet-deep) 48%, #1e293b 100%);
  color: #fff;
}

.section--dark {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #06040c 0%, #1a0f2e 42%, #0f172a 100%);
  color: #f8fafc;
  border-block: 1px solid rgba(104, 33, 122, 0.22);
}

.section--dark .section__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(104, 33, 122, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
    radial-gradient(rgba(192, 132, 252, 0.35) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px;
  animation: particleDrift 24s linear infinite;
}

@keyframes particleDrift {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 0 0, 0 0, 28px 28px; }
}

.section--tech {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  padding-left: calc(var(--page-pad) + var(--safe-left));
  padding-right: calc(var(--page-pad) + var(--safe-right));
}

.section__inner--split {
  display: grid;
  gap: 2rem;
}

.section__inner--contact {
  display: grid;
  gap: 2.5rem;
}

.section__header {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.section__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section__title--light {
  color: #fff;
}

.section__lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.section__lead--light {
  color: rgba(255, 255, 255, 0.82);
}

.prose p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.prose p:last-child {
  margin-bottom: 0;
}

/* —— Cards & Grid —— */
.grid {
  display: grid;
  gap: 1.25rem;
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* —— Steps —— */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step__num {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* —— Tags —— */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tags span {
  padding: 0.45rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* —— Projects —— */
.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.project__type,
.project__status {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}

.project__type {
  background: var(--accent-soft);
  color: var(--brand-violet);
}

.project__status {
  background: var(--bg-muted);
  color: var(--text-soft);
}

.project h3 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
}

.project p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.project__stack {
  font-size: 0.85rem !important;
  color: var(--text-soft) !important;
}

.project__link {
  display: inline-block;
  margin-top: 0.25rem;
  font-weight: 600;
  text-decoration: none;
}

.project__link:hover {
  color: var(--brand-violet);
  text-decoration: underline;
}

/* —— Contact —— */
.contact-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 1.25rem;
}

.contact-list span:first-child {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.contact-list a,
.contact-list li > span:last-child {
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
  color: #fff;
}

.contact-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(8px);
}

.contact-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  color: #fff;
}

.contact-card p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.contact-card .btn {
  width: 100%;
}

.section--compact {
  padding: clamp(2rem, 5vw, 3rem) 0 0;
}

.section__inner--narrow {
  max-width: 40rem;
  text-align: center;
}

.section__header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-cta {
  display: flex;
  justify-content: center;
  padding: 2rem var(--page-pad) clamp(2.5rem, 5vw, 3.5rem);
}

.section-cta .btn {
  width: 100%;
  max-width: 22rem;
}

.differentiator {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.card--wow,
.project--wow {
  transition: transform 0.25s, box-shadow 0.3s, border-color 0.3s;
}

.card--wow:hover,
.project--wow:hover {
  border-color: rgba(104, 33, 122, 0.4);
  box-shadow: 0 16px 48px var(--brand-violet-glow-soft), 0 0 0 1px rgba(155, 77, 179, 0.12);
  transform: translateY(-4px);
}

/* —— Authority & stats —— */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(192, 132, 252, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 32px rgba(104, 33, 122, 0.12);
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, #c084fc, #68217a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.authority-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.authority-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.authority-item:hover {
  border-color: rgba(192, 132, 252, 0.4);
  background: rgba(104, 33, 122, 0.12);
  box-shadow: 0 0 28px rgba(104, 33, 122, 0.18);
}

.authority-item__check {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 0 14px var(--brand-violet-glow);
}

/* —— Tech stack —— */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.25rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.tech-item img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.tech-item span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.tech-item:hover {
  transform: translateY(-3px);
  border-color: rgba(104, 33, 122, 0.35);
  box-shadow: 0 8px 28px var(--brand-violet-glow-soft);
}

.tech-item:hover span {
  color: var(--text);
}

/* —— Scroll reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes subtleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.float-card.is-visible:nth-child(3n + 1) {
  animation: subtleFloat 7s ease-in-out infinite;
}

.float-card.is-visible:nth-child(3n + 2) {
  animation: subtleFloat 7.5s ease-in-out 0.8s infinite;
}

.float-card.is-visible:nth-child(3n) {
  animation: subtleFloat 6.5s ease-in-out 1.6s infinite;
}

.float-card.is-visible:hover {
  animation: none;
}

.steps--compact .step {
  padding: 1.1rem 1.25rem;
}

.steps--compact .step p {
  font-size: 0.88rem;
}

.contact-list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.contact-list--inline li {
  margin: 0;
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.contact-form__field {
  display: grid;
  gap: 0.35rem;
}

.contact-form__field span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.5);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  resize: vertical;
  min-height: var(--touch-min);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #c084fc;
  box-shadow: 0 0 0 3px rgba(104, 33, 122, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .hero__glow {
    animation: none;
  }

  .section--dark .section__particles {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .float-card.is-visible {
    animation: none !important;
  }

  .card--wow:hover,
  .project--wow:hover,
  .btn:hover,
  .tech-item:hover {
    transform: none;
  }
}

/* —— Footer —— */
.site-footer {
  background: var(--accent-dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 2rem var(--page-pad) calc(2rem + var(--safe-bottom));
  padding-left: calc(var(--page-pad) + var(--safe-left));
  padding-right: calc(var(--page-pad) + var(--safe-right));
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 0.5rem;
}

.site-footer__brand {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.site-footer__logo {
  flex-shrink: 0;
  opacity: 0.92;
}

.site-footer__brand strong {
  color: #fff;
}

.site-footer__credit {
  margin: 0;
  font-size: 0.88rem;
}

/* —— Responsive —— */

/* Móvil pequeño */
@media (max-width: 380px) {
  .brand__logo-full {
    height: 2rem;
    max-width: 11.5rem;
  }

  .brand__text small {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
  }

  .brand__text strong {
    font-size: 0.82rem;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .authority-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    min-width: 0;
  }

  .hero__trust {
    flex-direction: column;
    gap: 0.5rem;
  }

  .card,
  .project,
  .step {
    padding: 1.15rem;
  }
}

/* Móvil */
@media (max-width: 639px) {
  .hero--wow .hero__lead {
    max-width: 100%;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .authority-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section__header {
    margin-bottom: 1.75rem;
  }

  .section__lead {
    font-size: 0.98rem;
  }

  .differentiator {
    font-size: clamp(1.05rem, 4.5vw, 1.35rem);
    padding: 0 0.25rem;
  }

  .hero__glow--1 {
    width: 16rem;
    height: 16rem;
    right: -5rem;
  }

  .hero__glow--2 {
    width: 14rem;
    height: 14rem;
    left: -4rem;
  }
}

/* Landscape móvil / tablet baja */
@media (max-height: 32rem) and (orientation: landscape) {
  .hero--wow {
    min-height: auto;
  }

  .hero__inner {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero__trust {
    margin-top: 0.5rem;
  }
}

/* Tablet */
@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .authority-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-row {
    gap: 1.25rem;
  }

  .hero__actions .btn {
    flex: 0 1 auto;
    width: auto;
  }

  .section-cta .btn {
    width: auto;
  }

  .hero--wow .hero__title {
    max-width: 18ch;
  }
}

/* Desktop */
@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }

  .section__inner--split {
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
  }

  .section__inner--contact {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: 3rem;
  }

  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(7, 1fr);
  }

  .authority-item:last-child {
    grid-column: span 1;
  }

  .hero--wow .hero__title {
    max-width: 16ch;
    font-size: clamp(2.25rem, 3.5vw, 3.35rem);
  }
}

/* Pantallas grandes */
@media (min-width: 1100px) {
  .brand__text strong {
    font-size: 1rem;
  }

  .hero--wow .hero__title {
    max-width: 18ch;
  }
}

/* Ultra-wide: contenido centrado sin estirar */
@media (min-width: 1400px) {
  :root {
    --page-pad: 1.5rem;
  }
}

/* Touch: sin hover transform */
@media (hover: none), (pointer: coarse) {
  .card--wow:hover,
  .project--wow:hover,
  .card:hover {
    transform: none;
  }
}
