:root {
  --bg: #08111f;
  --bg-soft: #101b2d;
  --panel: rgba(10, 20, 37, 0.82);
  --panel-strong: rgba(12, 24, 44, 0.96);
  --text: #f7f7fb;
  --muted: #b9c4d4;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #f8b84e;
  --gold-deep: #ff8b2d;
  --cyan: #55d1ff;
  --green: #5ce1a5;
  --danger: #ff6b77;
  --shadow-xl: 0 30px 90px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.24);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(85, 209, 255, 0.18), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(248, 184, 78, 0.16), transparent 24%),
    linear-gradient(180deg, #07111d 0%, #0c1525 48%, #111d31 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(40px);
  z-index: -3;
  opacity: 0.6;
}

body::before {
  top: -80px;
  left: -100px;
  background: rgba(85, 209, 255, 0.12);
  animation: drift 14s ease-in-out infinite;
}

body::after {
  right: -120px;
  bottom: -120px;
  background: rgba(248, 184, 78, 0.12);
  animation: drift 17s ease-in-out infinite reverse;
}

a {
  color: inherit;
}

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

.site-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
  z-index: -2;
}

.topbar,
.hero,
.stats,
.services,
.projects,
.process,
.lead-section,
.footer,
.admin-shell,
.admin-login {
  width: min(1200px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.topbar {
  position: sticky;
  top: 16px;
  margin-top: 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  background: rgba(6, 12, 23, 0.78);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  z-index: 30;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background:
    linear-gradient(155deg, rgba(85, 209, 255, 0.28), rgba(248, 184, 78, 0.28)),
    rgba(16, 27, 45, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.brand-roof {
  position: absolute;
  top: 13px;
  width: 34px;
  height: 20px;
  border-top: 5px solid var(--gold);
  border-right: 5px solid var(--gold);
  transform: rotate(-45deg);
  border-radius: 4px;
}

.brand-letter {
  position: relative;
  top: 9px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.brand-copy small {
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav a,
.call-pill,
.footer a {
  text-decoration: none;
}

.nav a {
  color: var(--muted);
  transition: color 180ms ease;
}

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

.call-pill {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(248, 184, 78, 0.16), rgba(255, 139, 45, 0.08));
  font-weight: 700;
}

.hero,
.stats,
.services,
.projects,
.process,
.lead-section,
.footer,
.admin-panel,
.admin-login-card {
  margin-top: 28px;
}

.hero,
.services,
.projects,
.process,
.lead-section,
.stats,
.admin-panel,
.admin-login-card,
.admin-sidebar,
.admin-content {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-xl);
}

.hero,
.services,
.projects,
.process,
.lead-section,
.stats,
.admin-panel,
.admin-login-card {
  border-radius: var(--radius-xl);
}

.hero {
  min-height: calc(100vh - 140px);
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 28px;
  padding: 36px;
  align-items: center;
}

.hero-copy h1,
.section-heading h2,
.lead-copy h2,
.admin-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(3rem, 6vw, 6.4rem);
}

.hero-copy h1 span {
  display: block;
  background: linear-gradient(120deg, var(--gold) 0%, #ffd86c 35%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text,
.lead-copy p,
.service-card p,
.gallery-card span,
.process-grid p,
.stats span,
.admin-muted {
  color: var(--muted);
  line-height: 1.75;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  font-size: 0.8rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  padding: 14px 24px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.btn-primary {
  color: #06111d;
  background: linear-gradient(135deg, #ffd86c 0%, var(--gold) 42%, var(--gold-deep) 100%);
  box-shadow: 0 18px 40px rgba(255, 165, 55, 0.22);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-points {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
  margin: 26px 0 0;
}

.hero-points li,
.badge,
.status-badge {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-points li {
  padding: 11px 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  padding: 26px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42%),
    radial-gradient(circle at 20% 20%, rgba(85, 209, 255, 0.2), transparent 28%),
    rgba(5, 13, 24, 0.94);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.hero-card {
  position: absolute;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.main-card {
  top: 24px;
  left: 24px;
  max-width: 320px;
  background: linear-gradient(160deg, rgba(18, 31, 52, 0.9), rgba(11, 18, 31, 0.76));
}

.main-card strong,
.metric-card strong,
.gallery-card strong,
.service-card h3,
.process-grid h3,
.lead-copy h2,
.stats strong {
  display: block;
}

.metric-card {
  top: 80px;
  right: 28px;
  min-width: 180px;
  background: linear-gradient(160deg, rgba(248, 184, 78, 0.22), rgba(255, 139, 45, 0.09));
}

.metric-card strong {
  font-size: 2.4rem;
  line-height: 1;
}

.accent-card {
  left: 46px;
  bottom: 40px;
  display: flex;
  gap: 12px;
  background: rgba(8, 17, 31, 0.78);
}

.spark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  box-shadow: 0 0 24px rgba(85, 209, 255, 0.55);
}

.hero-grid {
  position: absolute;
  inset: auto 24px 24px auto;
  width: min(390px, calc(100% - 48px));
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-grid article {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-grid strong {
  display: block;
  margin-bottom: 6px;
}

.hero-grid span,
.badge,
.metric-card span {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  padding: 8px 12px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.stats,
.service-grid,
.gallery-grid,
.process-grid,
.lead-section,
.admin-shell {
  display: grid;
}

.stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
}

.stats article {
  padding: 28px;
  background: rgba(255, 255, 255, 0.02);
}

.stats strong {
  margin-bottom: 10px;
  font-size: 1.24rem;
}

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

.services,
.projects,
.process,
.lead-section,
.admin-panel,
.admin-login-card {
  padding: 34px;
}

.section-heading h2,
.lead-copy h2,
.admin-title {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

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

.service-card,
.gallery-card,
.process-grid article,
.flash,
.table-shell,
.detail-card,
.admin-toolbar {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.service-card {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(85, 209, 255, 0.07), transparent 48%, rgba(248, 184, 78, 0.06));
  opacity: 0;
  transition: opacity 220ms ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card span,
.process-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(248, 184, 78, 0.22), rgba(255, 139, 45, 0.1));
  color: var(--gold);
  font-weight: 800;
}

.gallery-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.gallery-card {
  border-radius: 28px;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.gallery-card-large img {
  min-height: 100%;
}

.gallery-card figcaption {
  padding: 18px 18px 20px;
}

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

.process-grid article {
  border-radius: 24px;
  padding: 24px;
}

.lead-section {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.contact-stack {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-stack a,
.contact-stack span,
.form-note a {
  color: var(--cyan);
  text-decoration: none;
}

.form-shell {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.lead-form,
.admin-login-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.lead-form label,
.admin-login-form label {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-wide {
  grid-column: 1 / -1;
}

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

input,
textarea,
select {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 17, 31, 0.88);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(85, 209, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(85, 209, 255, 0.16);
}

textarea {
  resize: vertical;
  min-height: 160px;
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.form-submit {
  width: 100%;
}

.form-note {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: var(--muted);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.flash {
  padding: 16px 18px;
  border-radius: 18px;
  margin-bottom: 18px;
}

.flash-success {
  border-color: rgba(92, 225, 165, 0.28);
  background: rgba(92, 225, 165, 0.08);
}

.flash-error {
  border-color: rgba(255, 107, 119, 0.28);
  background: rgba(255, 107, 119, 0.09);
}

.footer {
  margin-top: 28px;
  margin-bottom: 36px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-radius: 24px;
}

.footer div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

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

.float-card {
  animation: floatCard 6s ease-in-out infinite;
}

.metric-card {
  animation-delay: 0.6s;
}

.accent-card {
  animation-delay: 1.2s;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.admin-login-card {
  width: min(560px, 100%);
}

.admin-shell {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 28px;
  margin-bottom: 28px;
}

.admin-sidebar,
.admin-content,
.admin-panel {
  border-radius: 28px;
}

.admin-sidebar {
  padding: 26px;
  position: sticky;
  top: 112px;
}

.admin-sidebar nav {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.admin-sidebar a,
.admin-sidebar button {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
}

.admin-content {
  padding: 26px;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.table-shell,
.detail-card {
  border-radius: 24px;
  padding: 18px;
}

.table-shell {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-badge {
  display: inline-flex;
  padding: 7px 12px;
  font-size: 0.82rem;
  text-transform: capitalize;
  background: rgba(255, 255, 255, 0.05);
}

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

.detail-card p {
  margin: 0;
}

.detail-card strong {
  display: block;
  margin-bottom: 8px;
}

.stack {
  display: grid;
  gap: 18px;
}

.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(24px, 16px, 0) scale(1.08);
  }
}

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

@media (max-width: 1080px) {
  .hero,
  .lead-section,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .stats,
  .service-grid,
  .gallery-grid,
  .process-grid,
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-card-large {
    grid-column: 1 / -1;
  }

  .admin-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .topbar,
  .footer,
  .admin-toolbar {
    border-radius: 26px;
  }

  .topbar,
  .footer,
  .admin-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    gap: 14px;
  }

  .hero,
  .services,
  .projects,
  .process,
  .lead-section,
  .admin-panel,
  .admin-content,
  .admin-sidebar,
  .admin-login-card {
    padding: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .lead-form,
  .admin-login-form,
  .stats,
  .service-grid,
  .gallery-grid,
  .process-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 210px;
  }

  .hero-card {
    position: absolute;
  }

  .main-card {
    max-width: calc(100% - 48px);
  }

  .metric-card {
    right: 24px;
    top: 160px;
  }

  .accent-card {
    left: 24px;
    bottom: 200px;
  }
}
