:root {
  color-scheme: dark;
  --header-height: 72px;
  --bg: #080d14;
  --bg-strong: #04070c;
  --surface: rgba(16, 24, 36, 0.72);
  --surface-strong: rgba(20, 30, 44, 0.92);
  --border: rgba(255, 255, 255, 0.12);
  --text: #eef3fb;
  --muted: #aab6cc;
  --accent: #25dcff;
  --accent-strong: #7bf2cc;
  --accent-warm: #f2b356;
  --glow: rgba(37, 220, 255, 0.35);
  --max-width: 1120px;
  --shadow-soft: 0 24px 60px rgba(6, 10, 18, 0.55);
  --shadow-strong: 0 30px 80px rgba(6, 10, 18, 0.65);
  --radius: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --wordmark-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  --page-fade: linear-gradient(
    180deg,
    rgba(5, 8, 14, 0.94) 0%,
    rgba(20, 34, 50, 0.22) 50%,
    rgba(5, 8, 14, 0.94) 100%
  );
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--wordmark-font);
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--page-fade),
    radial-gradient(
      circle at 18% 18%,
      rgba(34, 211, 238, 0.12),
      transparent 40%
    ),
    radial-gradient(
      circle at 85% 0%,
      rgba(103, 242, 200, 0.12),
      transparent 38%
    ),
    linear-gradient(130deg, rgba(10, 15, 22, 0.9), rgba(6, 9, 15, 0.95)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 80px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 80px
    );
  background-attachment: scroll, fixed, fixed, fixed, fixed, fixed;
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  font-family: var(--wordmark-font);
  letter-spacing: -0.03em;
}

.display {
  font-size: clamp(2.35rem, 2.4vw, 3.9rem);
  line-height: 1.05;
  font-weight: 600;
  color: var(--text);
}

.section:not(.hero) .display {
  font-size: clamp(1.9rem, 2.6vw, 2.8rem);
  line-height: 1.1;
}

.container {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #081016;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(8, 12, 18, 0.92),
    rgba(8, 12, 18, 0.65)
  );
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo {
  font-family: var(--wordmark-font);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--text);
}

.site-header .logo {
  font-family: var(--wordmark-font);
}
.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a {
  position: relative;
  padding-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(8, 12, 18, 0.6);
  color: var(--text);
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav-toggle:hover {
  border-color: rgba(37, 220, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(37, 220, 255, 0.15);
}

.nav-toggle-icon {
  font-family: var(--wordmark-font);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  display: block;
  transform: translateX(-1px);
  transition: transform 0.2s ease;
  pointer-events: none;
}

.nav-toggle.is-open .nav-toggle-icon {
  transform: rotate(180deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.3rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  position: relative;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease,
    border-color 0.3s ease;
  transform: translate3d(var(--btn-x, 0px), var(--btn-y, 0px), 0);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    140px at var(--btn-spot-x, 50%) var(--btn-spot-y, 50%),
    rgba(255, 255, 255, 0.35),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-label {
  position: relative;
  z-index: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #061018;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.25);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: rgba(8, 12, 18, 0.6);
}

.btn-secondary::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 0.6rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-secondary:hover::after,
.btn-secondary:focus-visible::after {
  opacity: 1;
}

.btn:hover::before,
.btn:focus-visible::before {
  opacity: 0.9;
}

.btn:hover {
  box-shadow: 0 18px 40px rgba(6, 10, 18, 0.45);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 14, 0.65);
  backdrop-filter: blur(4px);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(84vw, 360px);
  background: linear-gradient(
    160deg,
    rgba(16, 24, 36, 0.98),
    rgba(8, 12, 18, 0.96)
  );
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  box-shadow: -30px 0 80px rgba(3, 8, 14, 0.7);
}

.drawer.is-open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 18, 0.6);
  color: var(--text);
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.drawer-close span {
  display: block;
  transform: none;
  line-height: 1;
}

.drawer-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.drawer-nav {
  display: grid;
  gap: 0.8rem;
  font-size: 1.05rem;
}

.drawer-nav a {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.drawer-nav a:hover,
.drawer-nav a:focus-visible {
  color: var(--accent-strong);
}

.drawer-actions {
  display: grid;
  gap: 0.8rem;
  margin-top: auto;
}

.drawer-actions .btn {
  width: 100%;
}

body.drawer-open {
  overflow: hidden;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section:not(.hero) {
  padding: 5rem 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  column-gap: clamp(2rem, 4vw, 3.5rem);
  row-gap: 3rem;
  align-items: start;
}

.section-grid--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
}

.section-grid--reverse .section-header {
  grid-column: 2;
  grid-row: 1;
}

.section-grid--reverse .section-body {
  grid-column: 1;
  grid-row: 1;
}

.section-grid--title-align .section-body {
  padding-top: 2.5rem;
}

.section-body {
  display: grid;
  gap: 2rem;
}

.section-header {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 0;
  max-width: 360px;
}

.section-header p:not(.eyebrow) {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(231, 237, 247, 0.68);
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  margin-bottom: 0.6rem;
}

.hero {
  overflow: hidden;
  padding-block: clamp(3rem, 8vh, 6rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 0;
  background: linear-gradient(
    120deg,
    rgba(34, 211, 238, 0.18),
    rgba(103, 242, 200, 0.16),
    rgba(246, 177, 75, 0.12)
  );
  background-size: 200% 200%;
  filter: blur(120px);
  opacity: 0;
  animation: none;
  z-index: 1;
  pointer-events: none;
}

.hero-terminal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.3;
}

.terminal-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  overflow: hidden;
}

.terminal-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 5px
  );
  opacity: 0.18;
  pointer-events: none;
}

.terminal-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px at 15% 20%,
    rgba(37, 220, 255, 0.12),
    transparent 60%
  );
  opacity: 0.7;
  pointer-events: none;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 18, 0.85);
  position: relative;
  z-index: 1;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  opacity: 0.8;
}

.terminal-dot.dot-red {
  background: #ff6b6b;
}

.terminal-dot.dot-yellow {
  background: #f6c356;
}

.terminal-dot.dot-green {
  background: #58d68d;
}

.terminal-title {
  margin-left: auto;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(231, 237, 247, 0.6);
}

.terminal-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.4rem;
  padding: 1.8rem 3vw 2.4rem;
  font-family: var(--wordmark-font);
  font-size: clamp(0.75rem, 1vw, 0.92rem);
  line-height: 1.6;
  position: relative;
  z-index: 1;
  color: rgba(140, 248, 210, 0.9);
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.terminal-body::-webkit-scrollbar {
  display: none;
}

.terminal-line {
  display: block;
  white-space: pre-wrap;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
  opacity: 0.9;
  min-height: 1.6em;
  line-height: 1.6;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
  will-change: opacity;
}

.terminal-animate .terminal-line {
  opacity: 0;
}

.terminal-line.is-active::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 1em;
  margin-left: 6px;
  background: var(--accent);
  opacity: 0.7;
  animation: cursorBlink 1s steps(2) infinite;
  vertical-align: -0.1em;
}

.terminal-prompt {
  color: rgba(37, 220, 255, 1);
  text-shadow: 0 0 14px rgba(37, 220, 255, 0.3);
}

.terminal-output {
  color: rgba(231, 237, 247, 0.92);
}

.terminal-ok {
  color: rgba(123, 242, 204, 0.9);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4rem;
  position: relative;
  z-index: 4;
}

.hero-center {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 48vh;
  text-align: center;
}

.hero-wordmark {
  font-family: var(--wordmark-font);
  font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  font-weight: 500;
  margin: 0;
  background: linear-gradient(120deg, #eef3fb, #7bf2cc 45%, #25dcff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 26px 60px rgba(37, 220, 255, 0.35);
}

.hero-tagline {
  margin: 0;
  font-size: clamp(0.8rem, 1.2vw, 1.1rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(231, 237, 247, 0.72);
}

.hero-content .lead {
  font-size: 1.15rem;
  max-width: 560px;
  color: rgba(231, 237, 247, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.9rem;
  color: rgba(231, 237, 247, 0.8);
}

.hero-meta span + span {
  padding-left: 1.2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-panel {
  background: linear-gradient(
    160deg,
    rgba(18, 26, 38, 0.85),
    rgba(12, 18, 28, 0.95)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg));
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    320px at var(--shine-x, 30%) var(--shine-y, 30%),
    rgba(255, 255, 255, 0.16),
    transparent 60%
  );
  opacity: 0.7;
  pointer-events: none;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.panel-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
}

.panel-status {
  font-size: 0.75rem;
  color: var(--accent-strong);
  background: rgba(103, 242, 200, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.panel-metrics {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.panel-metrics strong {
  font-size: 1.4rem;
  display: block;
  color: var(--text);
}

.panel-metrics span {
  font-size: 0.85rem;
  color: var(--muted);
}

.panel-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(8, 12, 18, 0.6);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.7;
  pointer-events: none;
  transform: translate3d(0, var(--parallax, 0px), 0);
  z-index: 3;
}

.orb-1 {
  display: none;
  width: 280px;
  height: 280px;
  left: -80px;
  top: 80px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.45), transparent 70%);
}

.orb-2 {
  width: 220px;
  height: 220px;
  right: -60px;
  top: 180px;
  background: radial-gradient(
    circle,
    rgba(103, 242, 200, 0.4),
    transparent 70%
  );
}

.orb-3 {
  width: 180px;
  height: 180px;
  right: 15%;
  bottom: 60px;
  background: radial-gradient(
    circle,
    rgba(246, 177, 75, 0.35),
    transparent 70%
  );
}

.grid {
  display: grid;
  gap: 1.4rem;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cards-compact {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: linear-gradient(
    140deg,
    rgba(18, 26, 38, 0.7),
    rgba(10, 14, 22, 0.92)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--radius) - 4px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  will-change: transform;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    260px at 80% 0%,
    rgba(34, 211, 238, 0.2),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: var(--shadow-strong);
}

.card:hover::after {
  opacity: 1;
}

.card h3 {
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.card:hover h3 {
  color: var(--accent-strong);
}

.card p {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

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

.services {
  display: grid;
  gap: 1rem;
}

.service {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.1rem;
  padding: 1.1rem 1.2rem;
  background: rgba(12, 18, 28, 0.5);
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s var(--ease), border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.service:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 220, 255, 0.3);
  box-shadow: 0 20px 40px rgba(6, 10, 18, 0.4);
}

.service h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.service p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.service-step {
  font-family: var(--wordmark-font);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.project-result {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.project-stack {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(231, 237, 247, 0.65);
  margin-top: auto;
}

.projects-logos {
  margin-top: 1.8rem;
  display: grid;
  gap: 0.8rem;
}

.projects-logos-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(231, 237, 247, 0.55);
}

.logo-carousel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(8, 12, 18, 0.6);
  padding: 0.35rem 0;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
}

.logo-track {
  display: flex;
  width: max-content;
  animation: logoScroll 26s linear infinite;
}

.logo-set {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0 1.2rem;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(231, 237, 247, 0.7);
  background: rgba(10, 14, 22, 0.65);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tech-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: rgba(231, 237, 247, 0.7);
  background: rgba(8, 12, 18, 0.6);
  text-align: center;
}

.cta {
  position: relative;
  display: grid;
  gap: 1.5rem;
  background: linear-gradient(
    150deg,
    rgba(16, 24, 36, 0.9),
    rgba(8, 12, 18, 0.96)
  );
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2rem, 3vw, 2.8rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      280px at 85% 0%,
      rgba(37, 220, 255, 0.18),
      transparent 60%
    ),
    radial-gradient(
      360px at 0% 100%,
      rgba(123, 242, 204, 0.12),
      transparent 65%
    );
  opacity: 0.9;
  pointer-events: none;
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta-highlights {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 0.6rem;
}

.cta-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 18, 0.6);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(231, 237, 247, 0.72);
  line-height: 1.2;
}

.cta-highlights span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(37, 220, 255, 0.5);
}

.cta-form {
  display: grid;
  gap: 1rem;
}

.cta-fields {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cta-form label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(231, 237, 247, 0.8);
}

.cta-form input,
.cta-form textarea {
  width: 100%;
  background: rgba(6, 10, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cta-form input:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}

.form-note {
  font-size: 0.8rem;
  color: rgba(231, 237, 247, 0.6);
}

.form-status {
  margin: 0.2rem 0 0;
  min-height: 1.2em;
  font-size: 0.85rem;
  color: rgba(231, 237, 247, 0.75);
}

.form-status[data-status="success"] {
  color: var(--accent-strong);
}

.form-status[data-status="error"] {
  color: rgba(246, 177, 75, 0.95);
}

.hidden {
  display: none;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
  box-shadow: none;
  transform: none;
}

.circuit-lines {
  position: relative;
  isolation: isolate;
}

.circuit-lines::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      90deg,
      rgba(37, 220, 255, 0.22) 0,
      rgba(37, 220, 255, 0.22) 1px,
      transparent 1px,
      transparent 100%
    ),
    linear-gradient(
      0deg,
      rgba(123, 242, 204, 0.16) 0,
      rgba(123, 242, 204, 0.16) 1px,
      transparent 1px,
      transparent 100%
    );
  background-size: 96px 96px, 72px 72px;
  background-repeat: repeat;
  opacity: 0.2;
  animation: circuitShift 16s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
}

#soluzioni.circuit-lines::before {
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.55) 40%,
    #000 75%
  );
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.55) 40%,
    #000 75%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.circuit-lines > * {
  position: relative;
  z-index: 1;
}

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 18, 0.7);
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: center;
}

.footer-links,
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes logoScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes glowShift {
  0% {
    background-position: 0% 50%;
    opacity: 0.55;
  }
  50% {
    background-position: 100% 50%;
    opacity: 0.85;
  }
  100% {
    background-position: 0% 50%;
    opacity: 0.55;
  }
}

@keyframes circuitShift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 160px -120px, -140px 100px;
  }
}

@keyframes cursorBlink {
  0%,
  49% {
    opacity: 0.2;
  }
  50%,
  100% {
    opacity: 0.85;
  }
}

@media (min-width: 1024px) {
  .cards,
  .cards-compact,
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 6.5rem;
  }

  .section-grid {
    grid-template-columns: 1fr;
    row-gap: 2rem;
    column-gap: 0;
  }

  .section-grid--reverse {
    grid-template-columns: 1fr;
  }

  .section-grid--reverse .section-header,
  .section-grid--reverse .section-body {
    grid-column: auto;
    grid-row: auto;
  }

  .section-grid--title-align .section-body {
    padding-top: 0;
  }

  .section-header {
    max-width: none;
  }

}

@media (max-width: 720px) {
  :root {
    --page-fade: linear-gradient(
      180deg,
      rgba(5, 8, 14, 0.96) 0%,
      rgba(30, 52, 76, 0.38) 42%,
      rgba(30, 52, 76, 0.38) 58%,
      rgba(5, 8, 14, 0.96) 100%
    );
  }

  .section {
    padding: 4.5rem 0;
  }

  .hero-wordmark {
    font-size: clamp(2.4rem, 8vw, 3.8rem);
  }

  .hero-tagline {
    font-size: clamp(1.05rem, 3.8vw, 1.5rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-terminal {
    opacity: 0.25;
  }

  .terminal-body {
    font-size: 0.72rem;
  }

  .cta {
    padding: 2rem;
  }

  .cta-fields {
    grid-template-columns: 1fr;
  }

  .logo-set {
    gap: 1.4rem;
    padding: 0 0.9rem;
  }

  .logo-badge {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    padding: 0.4rem 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0ms;
  }

  .logo-track {
    animation: none;
  }

  .hero::before {
    animation: none;
  }

  .circuit-lines::before {
    animation: none;
  }

  .terminal-line {
    opacity: 0.6;
  }

  .terminal-line.is-active::after {
    animation: none;
    opacity: 0.3;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
