:root {
  color-scheme: dark;
  --bg: #03050c;
  --bg-soft: #070b17;
  --panel: rgba(9, 15, 31, 0.78);
  --panel-strong: rgba(10, 18, 42, 0.94);
  --line: rgba(118, 173, 255, 0.18);
  --line-strong: rgba(80, 137, 255, 0.42);
  --text: #f4f8ff;
  --muted: #aeb9ce;
  --royal: #1c4cff;
  --royal-2: #1238c7;
  --cyan: #27d9ff;
  --violet: #8b5cf6;
  --mint: #50e3a4;
  --amber: #f5b94b;
  --danger: #ff607d;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(28, 76, 255, 0.25), transparent 32rem),
    linear-gradient(180deg, #02040a 0%, #050812 43%, #04050a 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(39, 217, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 217, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 72%, transparent);
  opacity: 0.35;
  animation: grid-drift 28s linear infinite;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 16px auto 0;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 6, 15, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
  transition:
    min-height 0.28s ease,
    margin 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.topbar::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--royal), transparent);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
  opacity: 0.9;
  transition: transform 0.08s linear;
}

.topbar.is-scrolled {
  min-height: 62px;
  margin-top: 8px;
  border-color: rgba(39, 217, 255, 0.32);
  background: rgba(3, 6, 15, 0.88);
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.44);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 176px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(39, 217, 255, 0.5);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--royal), #06143d 58%, #02040a);
  box-shadow: 0 0 28px rgba(28, 76, 255, 0.48);
  font-weight: 900;
  animation: brand-pulse 4.8s ease-in-out infinite;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  transform: rotate(-4deg) scale(1.05);
  box-shadow: 0 0 36px rgba(39, 217, 255, 0.58);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: var(--cyan);
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  position: relative;
  overflow: hidden;
  min-height: 42px;
  padding: 12px 14px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.94rem;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(28, 76, 255, 0.14);
  color: var(--text);
}

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

.main-nav .nav-cta {
  margin-left: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--royal), #092b91);
  box-shadow: 0 10px 26px rgba(28, 76, 255, 0.28);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 13, 28, 0.8);
  transition:
    border-color 0.22s ease,
    background 0.22s ease;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  border-radius: 1px;
  background: var(--text);
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.section-band,
.section-pad {
  position: relative;
}

.section-pad {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0;
}

.hero {
  display: grid;
  min-height: 100vh;
  align-items: center;
  padding: 148px max(16px, calc((100vw - 1180px) / 2)) 64px;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(105deg, transparent 0 42%, rgba(39, 217, 255, 0.12) 48%, transparent 56%),
    repeating-linear-gradient(90deg, transparent 0 62px, rgba(39, 217, 255, 0.045) 63px 64px);
  opacity: 0.45;
  transform: translateX(-16%);
  animation: hero-scan 8s ease-in-out infinite;
}

.hero::after {
  background:
    linear-gradient(180deg, transparent 0 18%, rgba(39, 217, 255, 0.09) 19%, transparent 20%),
    linear-gradient(180deg, transparent 0 64%, rgba(28, 76, 255, 0.1) 65%, transparent 66%);
  background-size: 100% 180px, 100% 260px;
  opacity: 0.24;
  animation: signal-lines 10s linear infinite;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transform: scale(1.04);
  animation: hero-image-drift 18s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #02040a 0%, rgba(2, 4, 10, 0.82) 35%, rgba(2, 4, 10, 0.18) 72%),
    linear-gradient(180deg, rgba(2, 4, 10, 0.38) 0%, rgba(2, 4, 10, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding-top: 32px;
}

.hero.is-visible .hero-content > * {
  animation: hero-reveal 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero.is-visible .hero-content > *:nth-child(2) {
  animation-delay: 0.08s;
}

.hero.is-visible .hero-content > *:nth-child(3) {
  animation-delay: 0.16s;
}

.hero.is-visible .hero-content > *:nth-child(4) {
  animation-delay: 0.24s;
}

.hero.is-visible .hero-content > *:nth-child(5) {
  animation-delay: 0.34s;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8.2vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.hero-copy,
.section-heading p,
.workflow p,
.admin-intro p,
.contact p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-copy {
  width: min(660px, 100%);
  margin-bottom: 30px;
  color: #dce7ff;
  font-size: 1.18rem;
}

.hero-actions,
.admin-actions,
.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  font-weight: 800;
  line-height: 1;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: -40% -80%;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.28), transparent 65%);
  transform: translateX(-45%);
  transition: transform 0.55s ease;
}

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

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

.button.primary {
  background: linear-gradient(135deg, var(--royal), #103ecf 55%, #0a1b59);
  box-shadow: 0 18px 38px rgba(28, 76, 255, 0.28);
  background-size: 180% 180%;
  animation: gradient-shift 8s ease infinite;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

.button.subtle {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(620px, 100%);
  margin-top: 46px;
}

.metric {
  position: relative;
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(118, 173, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(5, 11, 27, 0.62);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(39, 217, 255, 0.12), transparent);
  transform: translateX(-110%);
  transition: transform 0.65s ease;
}

.metric:hover {
  transform: translateY(-4px);
  border-color: rgba(39, 217, 255, 0.42);
  background: rgba(7, 15, 36, 0.76);
}

.metric:hover::before {
  transform: translateX(110%);
}

.metric strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.8rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.88rem;
}

.scroll-hint {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  z-index: 1;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  animation: scroll-hint 1.8s ease-in-out infinite;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading.compact {
  grid-template-columns: minmax(0, 760px);
}

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

.service-card {
  position: relative;
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(28, 76, 255, 0.18), transparent 48%),
    rgba(8, 13, 28, 0.72);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.36s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.36s ease,
    background 0.36s ease,
    box-shadow 0.36s ease;
}

.service-card::before,
.template-card::before,
.portal-card::before,
.ticket-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(39, 217, 255, 0.12), transparent 58%);
  opacity: 0;
  transform: translateX(-24%);
  transition:
    opacity 0.3s ease,
    transform 0.6s ease;
  pointer-events: none;
}

.service-card:hover,
.template-card:hover,
.portal-card:hover,
.ticket-card:hover,
.contact-card:hover {
  transform: translateY(-7px);
  border-color: rgba(39, 217, 255, 0.36);
  box-shadow: 0 30px 82px rgba(0, 0, 0, 0.56), 0 0 32px rgba(28, 76, 255, 0.14);
}

.service-card:hover::before,
.template-card:hover::before,
.portal-card:hover::before,
.ticket-card:hover::before,
.contact-card:hover::before {
  opacity: 1;
  transform: translateX(22%);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -52px auto;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(39, 217, 255, 0.24);
  border-radius: 50%;
  transition:
    transform 0.42s ease,
    border-color 0.42s ease;
}

.service-card:hover::after {
  transform: translate(-12px, -10px) scale(1.08);
  border-color: rgba(39, 217, 255, 0.42);
}

.service-icon,
.template-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(39, 217, 255, 0.28);
  border-radius: 8px;
  background: rgba(39, 217, 255, 0.08);
  color: var(--cyan);
  font-weight: 900;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.service-card:hover .service-icon,
.template-card:hover .template-icon {
  transform: translateY(-3px) rotate(-3deg);
  border-color: rgba(39, 217, 255, 0.55);
  background: rgba(39, 217, 255, 0.14);
}

.service-card p,
.template-card p,
.portal-card p,
.ticket-card p {
  color: var(--muted);
  line-height: 1.62;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.service-list li,
.tag {
  padding: 7px 9px;
  border: 1px solid rgba(118, 173, 255, 0.18);
  border-radius: 8px;
  color: #d8e4ff;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.service-list li:hover,
.tag:hover {
  transform: translateY(-2px);
  border-color: rgba(39, 217, 255, 0.38);
  background: rgba(39, 217, 255, 0.09);
}

.workflow {
  padding: 100px max(16px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(135deg, rgba(28, 76, 255, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  border-block: 1px solid var(--line);
}

.workflow-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

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

.timeline article {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 11, 25, 0.76);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--royal));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.32s ease;
}

.timeline article:hover {
  transform: translateX(4px);
  border-color: rgba(39, 217, 255, 0.34);
  background: rgba(10, 18, 42, 0.84);
}

.timeline article:hover::before {
  transform: scaleY(1);
}

.timeline span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--mint);
  font-weight: 900;
}

.portfolio-showcase {
  position: relative;
  margin-bottom: 22px;
  border: 1px solid rgba(118, 173, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(9, 15, 31, 0.65);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portfolio-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 36%, rgba(255, 255, 255, 0.18) 46%, transparent 58%);
  transform: translateX(-100%);
  animation: showcase-sheen 7s ease-in-out infinite;
  pointer-events: none;
}

.portfolio-showcase img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.7s ease;
}

.portfolio-showcase:hover img {
  transform: scale(1.04);
}

.portfolio-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.filter-button {
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    background 0.22s ease;
}

.filter-button:hover,
.filter-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(39, 217, 255, 0.35);
  color: var(--text);
}

.filter-button.active {
  border-color: rgba(39, 217, 255, 0.45);
  color: var(--text);
  background: rgba(28, 76, 255, 0.22);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.portfolio-grid.is-switching,
.portal-view.is-switching,
.feedback-panel.is-switching {
  transform: translateY(8px);
  opacity: 0.18;
}

.template-card {
  position: relative;
  display: flex;
  min-height: 470px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 13, 28, 0.72);
  overflow: hidden;
  transition:
    transform 0.36s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.36s ease,
    box-shadow 0.36s ease;
}

.template-preview {
  position: relative;
  min-height: 210px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(28, 76, 255, 0.7), rgba(139, 92, 246, 0.25) 54%, rgba(2, 4, 10, 0.9)),
    #081024;
  overflow: hidden;
}

.template-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000, transparent);
  animation: preview-grid 8s linear infinite;
}

.template-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(39, 217, 255, 0.16), transparent);
  transform: translateY(-80%);
  animation: preview-scan 4.8s ease-in-out infinite;
  pointer-events: none;
}

.mock-window {
  position: relative;
  z-index: 1;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(2, 5, 14, 0.84);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  transform: perspective(900px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.38s ease;
}

.mock-window::before {
  content: "";
  display: block;
  height: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 15px 12px, #ff607d 0 4px, transparent 5px),
    radial-gradient(circle at 30px 12px, #f5b94b 0 4px, transparent 5px),
    radial-gradient(circle at 45px 12px, #50e3a4 0 4px, transparent 5px),
    rgba(255, 255, 255, 0.05);
}

.mock-window::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(39, 217, 255, 0.8), transparent);
  animation: mock-scan 3.8s ease-in-out infinite;
}

.template-card:hover .mock-window {
  transform: perspective(900px) rotateX(3deg) rotateY(-4deg) translateY(-4px);
}

.mock-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 10px;
  padding: 12px;
}

.mock-hero,
.mock-tile,
.mock-line,
.mock-pill {
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(39, 217, 255, 0.24), rgba(28, 76, 255, 0.6));
  background-size: 180% 180%;
  animation: gradient-shift 5.5s ease infinite;
}

.mock-hero {
  min-height: 88px;
}

.mock-stack {
  display: grid;
  gap: 8px;
}

.mock-line {
  min-height: 10px;
}

.mock-pill {
  width: 62px;
  min-height: 18px;
}

.template-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.template-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.portal {
  padding: 104px max(16px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(135deg, rgba(39, 217, 255, 0.08), transparent 34%),
    #040711;
  border-block: 1px solid var(--line);
}

.portal-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
}

.portal-sidebar,
.portal-view,
.admin-panel,
.support-form,
.feedback-panel,
.contact-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    border-color 0.32s ease,
    box-shadow 0.32s ease,
    background 0.32s ease;
}

.portal-sidebar:hover,
.portal-view:hover,
.admin-panel:hover,
.support-form:hover,
.feedback-panel:hover {
  border-color: rgba(39, 217, 255, 0.28);
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.5);
}

.portal-sidebar {
  padding: 24px;
}

.portal-tabs {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.portal-tabs button,
.admin-tabs button {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    background 0.22s ease;
}

.portal-tabs button:hover,
.admin-tabs button:hover,
.portal-tabs button:focus-visible,
.admin-tabs button:focus-visible {
  transform: translateX(3px);
  border-color: rgba(39, 217, 255, 0.32);
  color: var(--text);
}

.portal-tabs button.active,
.admin-tabs button.active {
  border-color: rgba(39, 217, 255, 0.4);
  color: var(--text);
  background: rgba(28, 76, 255, 0.2);
}

.portal-view {
  min-height: 430px;
  padding: 22px;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease;
}

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

.portal-card,
.ticket-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.progress {
  height: 10px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--royal), var(--cyan));
  transform-origin: left;
  animation: progress-fill 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 18px;
}

.support-form,
.feedback-panel {
  padding: 24px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #d9e5ff;
  font-size: 0.92rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(118, 173, 255, 0.22);
  border-radius: 8px;
  outline: none;
  color: var(--text);
  background: rgba(2, 6, 16, 0.78);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease;
}

input,
select {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  min-height: 118px;
  padding: 12px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(39, 217, 255, 0.54);
  box-shadow: 0 0 0 3px rgba(39, 217, 255, 0.12);
  transform: translateY(-1px);
}

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--mint);
  font-weight: 800;
}

.feedback-list {
  display: grid;
  gap: 12px;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.ticket-card header,
.portal-card header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #03100b;
  background: var(--mint);
  font-size: 0.76rem;
  font-weight: 900;
  box-shadow: 0 0 0 0 rgba(80, 227, 164, 0.35);
  animation: status-pulse 2.6s ease-in-out infinite;
}

.status-pill.blue {
  color: #fff;
  background: var(--royal);
}

.status-pill.amber {
  color: #151003;
  background: var(--amber);
}

.admin {
  padding: 104px max(16px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(160deg, rgba(28, 76, 255, 0.19), transparent 50%),
    #050712;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
  gap: 18px;
}

.admin-intro {
  padding: 24px 0;
}

.admin-panel {
  min-height: 440px;
  padding: 24px;
}

.admin-lock {
  display: grid;
  max-width: 420px;
  gap: 8px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
}

.admin-tabs {
  display: grid;
  align-content: start;
  gap: 8px;
}

.editor-view {
  min-width: 0;
  animation: panel-in 0.32s ease both;
}

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

.editor-view textarea {
  min-height: 260px;
  font-family:
    "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.55;
}

.editor-actions {
  margin-top: 12px;
}

.admin-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 28px;
  align-items: center;
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.contact-card a,
.contact-card span {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #dce7ff;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  transform: translateX(4px);
  border-color: rgba(39, 217, 255, 0.38);
  background: rgba(39, 217, 255, 0.08);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

[data-animate] {
  transform: translateY(18px);
  opacity: 0;
  transition:
    opacity 0.7s ease var(--delay, 0ms),
    transform 0.7s ease var(--delay, 0ms);
}

[data-animate].is-visible {
  transform: none;
  opacity: 1;
}

.accent-cyan {
  background:
    linear-gradient(135deg, rgba(39, 217, 255, 0.55), rgba(28, 76, 255, 0.35) 54%, rgba(2, 4, 10, 0.92)),
    #081024;
}

.accent-mint {
  background:
    linear-gradient(135deg, rgba(80, 227, 164, 0.4), rgba(28, 76, 255, 0.4) 56%, rgba(2, 4, 10, 0.92)),
    #081024;
}

.accent-violet {
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.58), rgba(28, 76, 255, 0.4) 56%, rgba(2, 4, 10, 0.92)),
    #081024;
}

.accent-amber {
  background:
    linear-gradient(135deg, rgba(245, 185, 75, 0.36), rgba(28, 76, 255, 0.46) 58%, rgba(2, 4, 10, 0.92)),
    #081024;
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 144px 216px, 144px 216px;
  }
}

@keyframes brand-pulse {
  0%,
  100% {
    box-shadow: 0 0 24px rgba(28, 76, 255, 0.42);
  }
  50% {
    box-shadow: 0 0 38px rgba(39, 217, 255, 0.56);
  }
}

@keyframes hero-image-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.09) translate3d(1.6%, -1.2%, 0);
  }
}

@keyframes hero-scan {
  0%,
  100% {
    transform: translateX(-18%);
    opacity: 0.24;
  }
  50% {
    transform: translateX(12%);
    opacity: 0.5;
  }
}

@keyframes signal-lines {
  from {
    background-position: 0 -180px, 0 -260px;
  }
  to {
    background-position: 0 180px, 0 260px;
  }
}

@keyframes hero-reveal {
  from {
    transform: translateY(24px);
    opacity: 0;
    filter: blur(8px);
  }
  to {
    transform: none;
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes scroll-hint {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

@keyframes showcase-sheen {
  0%,
  45% {
    transform: translateX(-110%);
  }
  70%,
  100% {
    transform: translateX(110%);
  }
}

@keyframes preview-grid {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 56px 56px, 56px 56px;
  }
}

@keyframes preview-scan {
  0%,
  100% {
    transform: translateY(-88%);
    opacity: 0;
  }
  45%,
  60% {
    opacity: 0.5;
  }
  80% {
    transform: translateY(88%);
    opacity: 0;
  }
}

@keyframes mock-scan {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0;
  }
  40%,
  60% {
    opacity: 0.75;
  }
  80% {
    transform: translateY(132px);
    opacity: 0;
  }
}

@keyframes progress-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(80, 227, 164, 0);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(80, 227, 164, 0.12);
  }
}

@keyframes panel-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes menu-drop {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .topbar {
    width: min(100% - 24px, 740px);
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 98px;
    left: 12px;
    right: 12px;
    display: none;
    grid-template-columns: 1fr;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(3, 6, 15, 0.96);
  }

  body.nav-open .main-nav {
    display: grid;
    animation: menu-drop 0.22s ease both;
  }

  .main-nav a {
    display: flex;
    align-items: center;
  }

  .main-nav .nav-cta {
    margin-left: 0;
  }

  .hero {
    min-height: 860px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(2, 4, 10, 0.44) 0%, rgba(2, 4, 10, 0.93) 66%, #02040a 100%),
      linear-gradient(90deg, rgba(2, 4, 10, 0.75), rgba(2, 4, 10, 0.34));
  }

  .section-heading,
  .workflow-inner,
  .portal-shell,
  .support-layout,
  .admin-shell,
  .contact-inner {
    grid-template-columns: 1fr;
  }

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

  .admin-workspace {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .section-pad,
  .workflow,
  .portal,
  .admin {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .hero {
    min-height: 820px;
    padding-top: 126px;
  }

  h1 {
    font-size: clamp(2.6rem, 13vw, 4.4rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .editor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-metrics,
  .service-grid,
  .portfolio-grid,
  .timeline,
  .portal-grid,
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 84px;
  }

  .portfolio-showcase img {
    aspect-ratio: 4 / 3;
  }

  .template-card {
    min-height: 0;
  }

  .admin-tabs {
    grid-template-columns: 1fr;
  }

  .scroll-hint {
    display: none;
  }
}

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

  [data-animate],
  [data-animate].is-visible {
    transform: none;
    opacity: 1;
  }
}
