:root {
  --bg: #01020a;
  --text: #f6fbff;
  --muted: #aab7c9;
  --cyan: #00e5ff;
  --blue: #2684ff;
  --blue-deep: #0a3d91;
  --blue-soft: #5ab8ff;
  --blue-ice: #b8ecff;
  --shadow: 0 24px 70px rgba(95, 93, 134, 0.12);
  --radius: 8px;
  --container: min(1160px, calc(100% - 40px));
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-title: 'Plus Jakarta Sans', var(--font-body);
}

@property --loader-trace {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-body);
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 20% 20%, rgba(38, 132, 255, 0.08), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(38, 132, 255, 0.07), transparent 28%),
    radial-gradient(circle at 55% 85%, rgba(10, 61, 145, 0.12), transparent 32%),
    var(--bg);
  pointer-events: none;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
}

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

button {
  font: inherit;
}

::selection {
  color: #031016;
  background: var(--cyan);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 112px 0;
  scroll-margin-top: 88px;
}

.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.58;
  pointer-events: none;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  gap: 14px;
  background: #05070f;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.page-loader.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.loader-mark {
  position: relative;
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  border: 1px solid rgba(0, 229, 255, 0.42);
  border-radius: var(--radius);
  color: var(--cyan);
  font-weight: 900;
  font-size: 1.45rem;
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.32);
  animation: pulseLoader 1.45s ease-in-out infinite;
  isolation: isolate;
}

.loader-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 1px);
}

.loader-mark::before {
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: calc(var(--radius) + 4px);
  padding: 3px;
  background:
    conic-gradient(
      from -90deg,
      var(--cyan) 0deg,
      var(--blue-soft) var(--loader-trace),
      rgba(0, 229, 255, 0.08) var(--loader-trace),
      rgba(0, 229, 255, 0.08) 360deg
    );
  box-shadow: 0 0 34px rgba(0, 229, 255, 0.28);
  content: "";
  animation: traceLoader 1.65s cubic-bezier(0.72, 0, 0.18, 1) infinite;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: background 260ms ease, border-color 260ms ease, transform 260ms ease;
}

.cord {
  color: var(--blue-soft);
}

.site-header.is-scrolled {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(5, 7, 15, 0.78);
  backdrop-filter: blur(18px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  min-height: 76px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(7, 27, 67, 0.46);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(38, 132, 255, 0.2)),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.24);
  color: var(--text);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  font-size: 1.02rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 6px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.nav-links .nav-cta {
  color: #dedede;
  background: linear-gradient(135deg, var(--cyan), var(--blue-soft));
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.18);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  color: #061019;
  background: linear-gradient(135deg, var(--blue-ice), var(--cyan));
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 220ms ease, opacity 220ms ease;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.menu-toggle.is-active span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg);
}

.hero {
  display: grid;
  min-height: 100svh;
  align-items: center;
  padding-top: 132px;
  isolation: isolate;
}


.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 28%, rgba(38, 132, 255, 0.1), transparent 34%),
    radial-gradient(circle at 82% 38%, rgba(38, 132, 255, 0.12), transparent 32%);
  mask-image: linear-gradient(to bottom, #000 0 70%, transparent 96%);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--blue-ice);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
  content: "";
}

h1,
h2,
h3 {
  font-family: var(--font-title);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(2.35rem, 5.8vw, 4.9rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  max-width: 790px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  line-height: 1.2;
  font-weight: 800;
}

.hero-description {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.75;
}

.hero-actions,
.btn {
  display: flex;
  align-items: center;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  position: relative;
  min-height: 50px;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 0 20px;
  font-weight: 850;
  isolation: isolate;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.btn::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateX(-102%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transition: transform 520ms ease;
  content: "";
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateX(102%);
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.btn-primary {
  border-color: rgba(0, 229, 255, 0.42);
  color: #e8e8e8;
  background: linear-gradient(135deg, var(--cyan), var(--blue-soft));
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.24), 0 18px 45px rgba(0, 0, 0, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 0 42px rgba(0, 229, 255, 0.38), 0 22px 55px rgba(0, 0, 0, 0.32);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 28px rgba(38, 132, 255, 0.22);
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.floating-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045)),
    rgba(6, 11, 22, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  animation: floatCard 7s ease-in-out infinite;
}

.terminal-card {
  top: 42px;
  left: 0;
  width: min(100%, 360px);
  padding: 18px;
}

.terminal-top {
  display: flex;
  gap: 7px;
  margin-bottom: 20px;
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FF605C;
  box-shadow: 0 0 16px currentColor;
}

.terminal-top span:nth-child(2) {
  background: #FFBD44;
}

.terminal-top span:nth-child(3) {
  background: #00CA4E;
}

.terminal-lines {
  display: grid;
  gap: 12px;
}

.terminal-lines p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.terminal-lines span,
.terminal-lines strong {
  color: var(--cyan);
}

.interface-card {
  right: 0;
  bottom: 84px;
  width: min(100%, 390px);
  padding: 20px;
  animation-delay: -2.2s;
}

.interface-header,
.interface-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.interface-header span {
  font-weight: 900;
}

.interface-header small {
  border: 1px solid rgba(90, 184, 255, 0.34);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--blue-soft);
  background: rgba(90, 184, 255, 0.08);
}

.interface-chart {
  display: grid;
  height: 160px;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 12px;
  margin: 26px 0;
}

.interface-chart span {
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(38, 132, 255, 0.22));
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.18);
  transform-origin: bottom;
  animation: equalize 3s ease-in-out infinite;
}

.interface-chart span:nth-child(2) {
  animation-delay: -0.5s;
}

.interface-chart span:nth-child(3) {
  animation-delay: -1s;
}

.interface-chart span:nth-child(4) {
  animation-delay: -1.5s;
}

.interface-chart span:nth-child(5) {
  animation-delay: -2s;
}

.interface-metrics div {
  width: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.interface-metrics strong,
.interface-metrics span {
  display: block;
}

.interface-metrics strong {
  margin-bottom: 4px;
  color: var(--text);
}

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

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.about-panel,
.cta-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.about-panel {
  padding: clamp(24px, 4vw, 44px);
}

.about-panel::before,
.cta-panel::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent, rgba(0, 229, 255, 0.13), transparent),
    linear-gradient(45deg, transparent 0 42%, rgba(38, 132, 255, 0.12) 42% 42.4%, transparent 42.4%);
  transform: translateX(-60%);
  animation: panelSweep 8s ease-in-out infinite;
  content: "";
}

.about-panel p {
  position: relative;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

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

.section-heading {
  display: grid;
  gap: 0;
  margin-bottom: 46px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-card,
.project-card,
.advantage-item,
.timeline-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.service-card::before,
.project-card::before,
.advantage-item::before,
.timeline-item::before {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.14), transparent 42%, rgba(38, 132, 255, 0.14));
  transition: opacity 260ms ease;
  content: "";
}

.service-card:hover,
.project-card:hover,
.advantage-item:hover,
.timeline-item:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 229, 255, 0.34);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32), 0 0 34px rgba(0, 229, 255, 0.13);
}

.service-card:hover::before,
.project-card:hover::before,
.advantage-item:hover::before,
.timeline-item:hover::before {
  opacity: 1;
}

.service-card {
  padding: clamp(24px, 4vw, 38px);
}

.card-icon {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 26px;
  border: 1px solid rgba(0, 229, 255, 0.32);
  border-radius: var(--radius);
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.14);
}

.card-icon.accent {
  border-color: rgba(90, 184, 255, 0.34);
  color: var(--blue-soft);
  background: rgba(38, 132, 255, 0.09);
  box-shadow: 0 0 28px rgba(38, 132, 255, 0.16);
}

.card-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.service-card h3,
.service-card p,
.service-card ul,
.project-content,
.advantage-item span,
.advantage-item h3,
.advantage-item p,
.timeline-item > span,
.timeline-item div {
  position: relative;
}

.service-card p,
.advantage-item p,
.timeline-item p,
.project-content p,
.cta-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.service-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.service-card li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #d7e3ef;
  font-size: 0.94rem;
}

.service-card li::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  content: "";
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  isolation: isolate;
}

.project-media {
  position: relative;
  aspect-ratio: 1.5;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
}

.project-card:hover .project-media img {
  transform: scale(1.05);
}

.project-media::after {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5, 7, 15, 0.82));
  transition: opacity 260ms ease;
  content: "";
}

.project-card:hover .project-media::after {
  opacity: 1;
}

.project-media svg {
  display: block;
  width: 100%;
  height: 100%;
}

.project-media rect:first-child {
  fill: rgba(8, 13, 24, 0.84);
}

.project-media rect:not(:first-child),
.project-media path,
.project-media circle {
  fill: none;
  stroke: rgba(246, 251, 255, 0.82);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8;
}

.web-screen rect:not(:first-child),
.web-screen path,
.dashboard-screen rect:not(:first-child),
.dashboard-screen path {
  stroke: var(--cyan);
}

.landing-screen circle,
.landing-screen rect:not(:first-child),
.landing-screen path {
  stroke: var(--blue-soft);
}

.mobile-screen rect:not(:first-child),
.mobile-screen path,
.mobile-screen circle {
  stroke: var(--blue);
}

.project-card:hover .project-media svg {
  animation: mediaPulse 1.4s ease-in-out;
}

.project-content {
  padding: 22px;
}

.project-content span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-content p {
  min-height: 82px;
  margin-bottom: 20px;
  font-size: 0.94rem;
}

.project-content a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.55);
  color: var(--text);
  font-weight: 850;
  transition: color 180ms ease, border-color 180ms ease;
}

.project-content a:hover,
.project-content a:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
  outline: none;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.advantage-item {
  padding: 24px;
}

.advantage-item span,
.timeline-item > span {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 34px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 229, 255, 0.24);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
}

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 21px;
  width: 1px;
  background: transparent;
  content: "";
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px;
}

.timeline-item > span {
  z-index: 1;
  margin-bottom: 0;
}

.cta {
  padding-top: 78px;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  justify-items: start;
  padding: clamp(28px, 6vw, 68px);
}

.cta-panel > * {
  position: relative;
}

.cta-copy h2 {
  max-width: 780px;
  margin-bottom: 20px;
}

.cta-copy p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: 1.04rem;
}

.contact-tags {
  display: flex;
  max-width: 520px;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-tags span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(90, 184, 255, 0.2);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--blue-ice);
  background: rgba(0, 229, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 850;
}

.contact-form {
  position: relative;
  display: grid;
  width: 100%;
  gap: 16px;
  overflow: hidden;
  border: 1px solid rgba(90, 184, 255, 0.18);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(145deg, rgba(0, 229, 255, 0.08), rgba(38, 132, 255, 0.035)),
    rgba(2, 10, 24, 0.56);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contact-form::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--blue-soft), transparent);
  content: "";
}

.form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 4px;
}

.form-heading span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(0, 229, 255, 0.24);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.07);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.form-heading strong {
  color: var(--text);
  font-size: 1rem;
  text-align: right;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  color: var(--blue-ice);
  font-size: 0.82rem;
  font-weight: 850;
}

.select-wrap {
  position: relative;
  display: block;
}

.select-wrap::before {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 48px;
  border-left: 1px solid rgba(90, 184, 255, 0.14);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(38, 132, 255, 0.16));
  content: "";
  pointer-events: none;
}

.select-wrap::after {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: translateY(-68%) rotate(45deg);
  content: "";
  pointer-events: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.select-wrap:focus-within::after {
  transform: translateY(-38%) rotate(225deg);
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.75));
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--text);
  font: inherit;
  background: rgba(3, 10, 24, 0.78);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-field textarea {
  min-height: 148px;
  resize: vertical;
}

.form-field select {
  appearance: none;
  min-height: 51px;
  padding-right: 58px;
  cursor: pointer;
  color: var(--blue-ice);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.055), rgba(38, 132, 255, 0.08)),
    rgba(3, 10, 24, 0.78);
}

.form-field select:valid {
  color: var(--text);
}

.form-field select option {
  color: var(--text);
  background: #061126;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(170, 183, 201, 0.72);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(0, 229, 255, 0.58);
  background: rgba(5, 18, 38, 0.86);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1), 0 0 28px rgba(0, 229, 255, 0.12);
}

.form-submit {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

.form-submit.is-sending {
  color: #d8f6ff;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  pointer-events: none;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--blue-ice);
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-status a {
  color: var(--cyan);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.form-status.is-success {
  color: var(--blue-ice);
}

.form-status.is-error {
  color: var(--blue-soft);
}


.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 56px 0 28px;
  background: rgba(2, 4, 10, 0.76);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 32px;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
}

.site-footer p {
  max-width: 380px;
  line-height: 1.7;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-footer a:not(.brand) {
  display: table;
  margin-bottom: 10px;
  transition: color 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--cyan);
  outline: none;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

@keyframes pulseLoader {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }

  50% {
    transform: scale(1.06);
    filter: brightness(1.24);
  }
}

@keyframes traceLoader {
  0% {
    --loader-trace: 0deg;
    opacity: 0.56;
  }

  72% {
    --loader-trace: 360deg;
    opacity: 1;
  }

  100% {
    --loader-trace: 360deg;
    opacity: 0.72;
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -16px, 0);
  }
}

@keyframes equalize {
  0%,
  100% {
    transform: scaleY(0.94);
  }

  50% {
    transform: scaleY(1.08);
  }
}

@keyframes panelSweep {
  0%,
  100% {
    transform: translateX(-72%);
  }

  50% {
    transform: translateX(72%);
  }
}

@keyframes mediaPulse {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.4) drop-shadow(0 0 18px rgba(0, 229, 255, 0.22));
  }
}

@media (max-width: 1024px) {
  :root {
    --container: min(100% - 32px, 920px);
  }

  .section {
    padding: 92px 0;
  }

  .hero-content,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 460px;
  }

  .terminal-card {
    left: 6%;
  }

  .interface-card {
    right: 4%;
  }

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

@media (max-width: 820px) {
  .menu-toggle {
    position: relative;
    display: inline-flex;
    z-index: 24;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    right: 16px;
    left: 16px;
    z-index: 23;
    display: grid;
    gap: 8px;
    padding: 14px;
    transform: translateY(-18px);
    border-radius: var(--radius);
    background: rgba(5, 7, 15, 0.92);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(18px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  }

  .nav-links.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    justify-content: center;
  }

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

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

  .hero {
    padding-top: 116px;
  }

  h1 {
    font-size: clamp(2.15rem, 10vw, 3.35rem);
  }

  .hero-visual {
    min-height: 420px;
  }

  .terminal-card,
  .interface-card {
    position: relative;
    inset: auto;
  }

  .hero-visual {
    display: grid;
    gap: 16px;
  }

  .terminal-card,
  .interface-card {
    width: 100%;
  }

}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 24px, 100%);
  }

  .section {
    padding: 76px 0;
  }

  .navbar {
    min-height: 70px;
  }

  .nav-links {
    top: 70px;
  }

  .brand-text {
    font-size: 0.98rem;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  .hero-content {
    gap: 28px;
  }

  .hero-description {
    line-height: 1.65;
  }

  .hero-actions {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

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

  .form-submit {
    justify-self: stretch;
  }

  .portfolio-grid,
  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 0;
    gap: 10px;
  }

  .terminal-card,
  .interface-card {
    padding: 14px;
  }

  .terminal-top {
    margin-bottom: 12px;
  }

  .terminal-lines {
    gap: 8px;
  }

  .terminal-lines p {
    font-size: 0.78rem;
  }

  .interface-header small {
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  .interface-chart {
    height: 92px;
    gap: 8px;
    margin: 14px 0;
  }

  .interface-metrics {
    gap: 8px;
  }

  .interface-metrics div {
    padding: 10px;
  }

  .interface-metrics strong {
    font-size: 0.9rem;
  }

  .interface-metrics span {
    font-size: 0.74rem;
  }

  .portfolio-grid {
    gap: 12px;
  }

  .project-media {
    aspect-ratio: 2.05;
  }

  .project-content {
    padding: 14px 15px 16px;
  }

  .project-content span {
    margin-bottom: 6px;
    font-size: 0.7rem;
  }

  .project-content h3 {
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .project-content p {
    min-height: auto;
    margin-bottom: 12px;
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .project-content a {
    min-height: 28px;
    font-size: 0.88rem;
  }

  .timeline::before {
    left: 17px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .timeline-item > span {
    min-width: 36px;
    width: 36px;
  }

}

@media (max-width: 420px) {
  .hero-content {
    gap: 24px;
  }

  h1 {
    font-size: 2.08rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-visual {
    min-height: 0;
  }

  .terminal-card,
  .interface-card {
    padding: 12px;
  }

  .interface-chart {
    height: 78px;
  }

  .project-media {
    aspect-ratio: 2.3;
  }

  .project-content {
    padding: 13px;
  }

  .service-card,
  .about-panel,
  .cta-panel {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

/* ==========================================================================
   MODAL DO PORTFOLIO (WEB & VIDEO PREVIEWS)
   ========================================================================== */
.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
  overflow-y: auto;
  padding: clamp(20px, 4vw, 50px);
}

.portfolio-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 1, 13, 0.537);
  backdrop-filter: blur(28px);
}

.modal-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 960px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(20px, 4vw, 36px);
  background: rgba(5, 8, 20, 0.813);
  backdrop-filter: blur(25px);
  box-shadow: 
    0 30px 90px rgba(1, 2, 10, 0.9),
    0 0 50px rgba(0, 229, 255, 0.14),
    0 0 100px rgba(38, 132, 255, 0.08);
  transform: scale(0.93);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  margin: auto;
}

.portfolio-modal.is-active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  z-index: 15;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.modal-close:hover {
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.08);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-header {
  margin-bottom: 24px;
  padding-right: 48px;
}

.modal-header .eyebrow {
  margin-bottom: 6px;
}

.modal-header h2 {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  line-height: 1.15;
  margin: 0;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.modal-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-col h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-ice);
  margin-bottom: 0;
}

.preview-box {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  background: #01020a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.preview-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #01020a;
}

.btn-preview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: var(--radius);
  padding: 0 16px;
  font-size: 0.9rem;
  font-weight: 850;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
  width: 100%;
}

.btn-preview-link svg {
  flex-shrink: 0;
}

@media (max-width: 820px) {
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.portfolio-actions-center {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* Custom scrollbar para o modal de outros projetos */
.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 999px;
}
.modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.25);
  border-radius: 999px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 229, 255, 0.45);
}

/* Customizações específicas para o modal de Mais Projetos */
#other-projects-modal .modal-backdrop {
  background: rgba(1, 2, 10, 0.88); /* Fundo bem mais escuro */
  backdrop-filter: blur(35px); /* Blur de fundo muito mais intenso */
}

#other-projects-modal .modal-content {
  background: rgba(2, 3, 10, 0.75); /* Caixinha do modal mais escura e transparente */
  border-color: rgba(0, 229, 255, 0.15);
}
