:root {
  --bg: #070812;
  --panel: rgba(17, 20, 38, .78);
  --panel2: rgba(25, 29, 55, .86);
  --text: #f6f7ff;
  --muted: #aab1d6;
  --line: rgba(255,255,255,.12);
  --accent: #8b5cf6;
  --accent2: #06b6d4;
  --danger: #ff5c7a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(139,92,246,.32), transparent 32rem),
    radial-gradient(circle at 80% 15%, rgba(6,182,212,.22), transparent 28rem),
    linear-gradient(135deg, #060712, #0c1022 45%, #070812);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.orb {
  position: fixed;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(75px);
  opacity: .22;
  pointer-events: none;
}

.orb-a {
  top: 8%;
  left: -10rem;
  background: var(--accent);
}

.orb-b {
  right: -8rem;
  bottom: 10%;
  background: var(--accent2);
}

.site {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: 82vh;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 38px;
  align-items: center;
  padding: 70px 0 38px;
}

.kicker {
  color: #99f6ff;
  letter-spacing: .22em;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 8px 0 8px;
  font-size: clamp(64px, 10vw, 138px);
  line-height: .86;
  letter-spacing: -.08em;
  text-shadow: 0 0 42px rgba(139,92,246,.45);
}

.subtitle {
  max-width: 760px;
  color: #f0f3ff;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 750;
  line-height: 1.05;
  margin: 0 0 18px;
}

.intro {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions a,
.actions a,
button {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 18px 45px rgba(6,182,212,.14);
}

.hero-actions .ghost {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero-feature > p {
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 14px;
}

.section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.section h2,
.panel h2,
.admin h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -.04em;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 360px);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.095), rgba(255,255,255,.045));
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.project-card:hover {
  transform: translateY(-7px) scale(1.01);
  border-color: rgba(153,246,255,.38);
  box-shadow: 0 32px 90px rgba(6,182,212,.13);
}

.project-card.big {
  transform: rotate(1deg);
}

.project-card.big:hover {
  transform: rotate(0deg) translateY(-7px);
}

.thumb {
  height: 170px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(139,92,246,.75), rgba(6,182,212,.45)),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.28), transparent 13rem);
  background-size: cover;
  background-position: center;
}

.project-card.big .thumb {
  height: 245px;
}

.thumb span {
  font-size: 58px;
  font-weight: 950;
  letter-spacing: -.08em;
  opacity: .9;
}

.card-body {
  padding: 18px;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.status {
  color: #baffef;
}

.card-body h3 {
  margin: 14px 0 8px;
  font-size: 25px;
  letter-spacing: -.04em;
}

.card-body p {
  color: var(--muted);
  line-height: 1.55;
  min-height: 48px;
}

.actions {
  margin-top: 16px;
}

footer {
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 28px 0 40px;
}

.back-home {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 5;
  color: var(--muted);
  font-weight: 800;
}

.admin-login,
.admin {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
}

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

.admin {
  padding: 70px 0;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 24px;
  margin-bottom: 22px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 70px rgba(0,0,0,.24);
}

.panel.small {
  width: min(430px, 100%);
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 750;
}

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

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

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 25px;
}

.check input {
  width: auto;
}

.danger {
  background: rgba(255,92,122,.15);
  border: 1px solid rgba(255,92,122,.38);
  color: #ffd6de;
  box-shadow: none;
}

.admin-project {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255,255,255,.045);
  margin-top: 12px;
}

.admin-project summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.admin-project summary strong {
  color: var(--text);
}

.empty {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero,
  .grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 90px;
  }

  .section-head,
  .admin-head {
    align-items: start;
    flex-direction: column;
  }
}

.thumb.has-img {
  background-size: cover;
  background-position: top center;
}

.admin-preview {
  height: 180px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background-size: cover;
  background-position: top center;
  margin: 16px 0;
  box-shadow: inset 0 -80px 80px rgba(0,0,0,.22);
}

.empty-preview {
  display: grid;
  place-items: center;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(139,92,246,.18), rgba(6,182,212,.12)),
    rgba(255,255,255,.04);
  font-weight: 800;
}

.inline-actions {
  margin: 12px 0 18px;
}

.secondary {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  box-shadow: none;
}
