:root {
  --bg: #05070d;
  --panel: rgba(10, 16, 28, .78);
  --panel-strong: #0d1422;
  --text: #f5f8ff;
  --muted: #9aa9bc;
  --cyan: #20e7ff;
  --green: #65ff9f;
  --magenta: #ff4fd8;
  --amber: #ffd166;
  --line: rgba(255, 255, 255, .12);
  --shadow: 0 24px 80px rgba(0, 0, 0, .42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 22% 0%, rgba(32, 231, 255, .22), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(255, 79, 216, .16), transparent 26%),
    linear-gradient(180deg, #05070d 0%, #07111a 48%, #05070d 100%);
}

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

button,
input,
textarea {
  font: inherit;
}

.led-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(32, 231, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 255, 159, .06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
}

.site-header,
.admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 13, .78);
  backdrop-filter: blur(18px);
}

.admin-top-actions {
  display: flex;
  gap: 10px;
}

.admin-lock {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at 40% 10%, rgba(32, 231, 255, .18), transparent 28%),
    rgba(5, 7, 13, .94);
  backdrop-filter: blur(18px);
}

.admin-lock[hidden] {
  display: none;
}

.admin-lock-card {
  display: grid;
  gap: 16px;
  width: min(100%, 430px);
  padding: 28px;
  border: 1px solid rgba(32, 231, 255, .28);
  border-radius: 8px;
  background: rgba(10, 16, 28, .9);
  box-shadow: var(--shadow);
}

.admin-lock-card h1 {
  margin-bottom: 0;
  font-size: 34px;
}

.admin-lock-card button,
#changePasswordButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(101, 255, 159, .65);
  border-radius: 8px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(32, 231, 255, .22), rgba(101, 255, 159, .18));
  cursor: pointer;
}

.admin-locked .admin-header,
.admin-locked .admin-shell {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid rgba(32, 231, 255, .6);
  border-radius: 8px;
  color: var(--cyan);
  font-weight: 800;
  box-shadow: 0 0 22px rgba(32, 231, 255, .36), inset 0 0 20px rgba(32, 231, 255, .12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand small,
.main-nav a,
.site-footer,
.eyebrow,
.hero-text,
.service-card p,
.split-section p,
.plan-grid p,
.contact-section p,
.status-line {
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--cyan);
}

.icon-button,
.primary-action,
.secondary-action,
.contact-form button,
.admin-actions button,
.mini-upload,
#deployButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(32, 231, 255, .42);
  border-radius: 8px;
  color: var(--text);
  background: rgba(32, 231, 255, .08);
  cursor: pointer;
}

.primary-action,
.contact-form button,
.admin-actions button[type="submit"] {
  border-color: rgba(101, 255, 159, .65);
  background: linear-gradient(135deg, rgba(32, 231, 255, .22), rgba(101, 255, 159, .18));
  box-shadow: 0 0 24px rgba(32, 231, 255, .22);
}

.secondary-action {
  background: rgba(255, 255, 255, .04);
}

.hero-section,
.split-section,
.contact-section,
.portfolio-callout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  padding: clamp(54px, 8vw, 108px) clamp(18px, 4vw, 56px);
}

.portfolio-callout {
  grid-template-columns: minmax(0, 1fr) auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(32, 231, 255, .08), rgba(101, 255, 159, .05));
}

.portfolio-callout p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
}

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

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  max-width: 820px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: .96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-text {
  max-width: 640px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

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

.hero-metrics span,
.system-list div,
.product-stack div,
.plan-grid article {
  min-height: 74px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
}

.hero-metrics strong {
  display: block;
  color: var(--cyan);
}

.hero-panel {
  position: relative;
  min-height: 520px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(32, 231, 255, .24);
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(13, 20, 34, .92), rgba(8, 11, 20, .72));
  box-shadow: var(--shadow), inset 0 0 48px rgba(32, 231, 255, .08);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 180deg, transparent, rgba(32, 231, 255, .26), transparent, rgba(255, 79, 216, .2), transparent);
  animation: spin 10s linear infinite;
}

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

.terminal-bar {
  display: flex;
  gap: 8px;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px currentColor;
}

.terminal-bar span:nth-child(2) {
  background: var(--amber);
}

.terminal-bar span:nth-child(3) {
  background: var(--green);
}

.scan-card {
  display: grid;
  place-items: center;
  height: 285px;
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .03) 1px, transparent 1px, transparent 12px);
}

.scan-card p {
  margin: 0;
  color: var(--muted);
}

.scan-card strong {
  font-size: 48px;
  color: var(--green);
  text-shadow: 0 0 22px rgba(101, 255, 159, .48);
}

.pulse-ring {
  width: 118px;
  height: 118px;
  border: 2px solid rgba(32, 231, 255, .75);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(32, 231, 255, .35), inset 0 0 28px rgba(32, 231, 255, .14);
  animation: pulse 1.8s ease-in-out infinite;
}

.system-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.system-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.system-list strong,
.product-stack strong {
  color: var(--green);
}

.content-band {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.service-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  border-radius: 8px;
  background: rgba(32, 231, 255, .1);
}

.product-stack {
  display: grid;
  gap: 14px;
}

.product-stack div {
  display: grid;
  gap: 7px;
}

.product-stack span {
  color: var(--cyan);
  font-weight: 700;
}

.dark-band {
  background: linear-gradient(135deg, rgba(32, 231, 255, .08), rgba(255, 79, 216, .05));
}

.contact-form,
.admin-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(32, 231, 255, .22);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(0, 0, 0, .22);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(32, 231, 255, .65);
  box-shadow: 0 0 0 3px rgba(32, 231, 255, .12);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.admin-body {
  background: #070b12;
}

.admin-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 24px clamp(18px, 4vw, 56px) 180px;
}

.admin-sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  align-content: start;
  gap: 8px;
  height: fit-content;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.admin-sidebar a {
  padding: 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.admin-sidebar a:hover {
  color: var(--text);
  background: rgba(32, 231, 255, .08);
}

.admin-sidebar a.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(32, 231, 255, .16), rgba(101, 255, 159, .1));
  box-shadow: inset 0 0 0 1px rgba(32, 231, 255, .22);
}

.admin-panels {
  min-width: 0;
}

.admin-card {
  gap: 26px;
}

.admin-card-head h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 50px);
}

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

.form-section {
  display: grid;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 120px;
}

#conteudo {
  scroll-margin-top: 120px;
}

.form-section h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.snippet-preview {
  min-height: 110px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: #a8ffcb;
  background: #020409;
}

.upload-zone,
.mini-upload {
  min-height: 128px;
  justify-content: center;
  border: 1px dashed rgba(32, 231, 255, .4);
  border-radius: 8px;
  padding: 18px;
  background: rgba(32, 231, 255, .05);
  cursor: pointer;
}

.upload-zone span {
  color: var(--muted);
  font-weight: 500;
}

.upload-zone input,
.mini-upload input {
  display: none;
}

.file-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-list li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mini-upload {
  min-height: 44px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 42px rgba(32, 231, 255, .55), inset 0 0 32px rgba(32, 231, 255, .2);
  }
}

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

  .hero-section,
  .split-section,
  .contact-section,
  .portfolio-callout,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 430px;
  }

  .hero-metrics,
  .service-grid,
  .plan-grid,
  .form-grid,
  .upload-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .site-header,
  .admin-header,
  .site-footer,
  .hero-actions,
  .admin-actions,
  .admin-top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  h1 {
    font-size: 40px;
  }

  .system-list,
  .admin-sidebar {
    grid-template-columns: 1fr;
  }
}
