﻿:root {
  --bg: #0c0d10;
  --bg-soft: #14161c;
  --text: #f3f5f8;
  --muted: #b2b7c2;
  --line: rgba(255, 255, 255, 0.12);
  --brand: #b8f75a;
  --brand-2: #d5ff88;
  --card: linear-gradient(160deg, rgba(26, 29, 37, 0.92), rgba(17, 19, 26, 0.92));
  --shadow: 0 24px 45px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(circle at 18% 16%, rgba(184, 247, 90, 0.08), transparent 30%),
    radial-gradient(circle at 78% 10%, rgba(143, 87, 255, 0.1), transparent 28%),
    radial-gradient(circle at 52% 82%, rgba(0, 220, 255, 0.06), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  min-height: 100vh;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  opacity: 0.24;
  pointer-events: none;
  z-index: -1;
}

.topbar {
  width: 100%;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(95deg, rgba(8, 10, 16, 0.98), rgba(10, 13, 22, 0.98));
  backdrop-filter: blur(10px);
  padding: 0.65rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.topbar-inner {
  width: 100%;
  margin: 0;
  padding: 0 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-mark {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background-color: #070b16;
  background-image: url("./logo-gmstudio3d.jpg");
  background-size: 122%;
  background-position: center;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4) inset;
  overflow: hidden;
}

.logo-mark::after {
  content: "GM";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #d8ecff;
  text-shadow: 0 0 8px rgba(76, 164, 255, 0.6);
  background: radial-gradient(circle at 50% 50%, rgba(9, 20, 46, 0.12), rgba(7, 11, 22, 0.42));
}

.logo-text {
  color: #c5ff79;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}

nav {
  display: flex;
  gap: 1.2rem;
}

nav a {
  text-decoration: none;
  color: #d8dcea;
  font-size: 0.95rem;
  font-weight: 600;
}

.topbar-action {
  text-decoration: none;
  color: #eef3ff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.topbar-action:hover {
  color: #c5ff79;
  border-color: rgba(197, 255, 121, 0.7);
}

main {
  width: min(1150px, calc(100% - 2rem));
  margin: 2rem auto 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 3vw, 3.8rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
  margin: 0.5rem 0 0.9rem;
  max-width: 14ch;
}

.subtitle {
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.05rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(184, 247, 90, 0.45);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #d6ff97;
  background: rgba(184, 247, 90, 0.1);
}

.hero-visual {
  position: relative;
  min-height: 450px;
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.55));
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  z-index: 2;
}

.orb-a {
  width: 140px;
  height: 140px;
  background: rgba(197, 255, 121, 0.3);
  top: 8%;
  right: 8%;
}

.orb-b {
  width: 190px;
  height: 190px;
  background: rgba(155, 89, 255, 0.25);
  bottom: 8%;
  left: 8%;
}

.printer-card {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 4;
  width: 230px;
  border: 1px solid rgba(184, 247, 90, 0.35);
  border-radius: 1rem;
  padding: 0.85rem;
  background: rgba(9, 11, 16, 0.72);
  color: #fff;
  backdrop-filter: blur(6px);
}

.printer-card p,
.printer-card span {
  margin: 0;
  opacity: 0.88;
  font-size: 0.78rem;
}

.printer-card h3 {
  margin: 0.45rem 0;
  font-family: "Sora", sans-serif;
}

.btn {
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 0.72rem 1.2rem;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-main {
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  color: #0d1109;
  box-shadow: 0 8px 20px rgba(184, 247, 90, 0.25);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: #f2f5fb;
  background: rgba(255, 255, 255, 0.04);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.1rem 0;
}

.proofs {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
}

.use-cases {
  margin: 3.8rem 0 1.2rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: end;
}

.case-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 26px;
  min-height: 188px;
  padding: 7.4rem 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  cursor: pointer;
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%);
  pointer-events: none;
}

.case-card img {
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  width: 122px;
  height: 122px;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 14px 25px rgba(0, 0, 0, 0.42);
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.case-card h3 {
  margin: 0;
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.55rem;
  text-align: center;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  line-height: 1.08;
  min-height: 2.2em;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  letter-spacing: -0.02em;
  color: #edf2ff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.case-card:hover {
  transform: translateY(-8px);
  border-color: rgba(184, 247, 90, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 36px rgba(0, 0, 0, 0.45), 0 0 22px rgba(184, 247, 90, 0.12);
}

.case-card.is-active {
  border-color: rgba(184, 247, 90, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 16px 30px rgba(0, 0, 0, 0.45), 0 0 26px rgba(184, 247, 90, 0.22);
}

.case-card:hover img {
  transform: translateX(-50%) translateY(-6px) scale(1.05);
  filter: saturate(1.08) contrast(1.04);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.52), 0 0 24px rgba(197, 255, 121, 0.18);
}

.tone-a { background: linear-gradient(165deg, #1f2338, #2f2a58); }
.tone-b { background: linear-gradient(165deg, #1a2a3d, #214673); }
.tone-c { background: linear-gradient(165deg, #1d2f2a, #2f5a46); }
.tone-d { background: linear-gradient(165deg, #1d2f3d, #275f75); }
.tone-e { background: linear-gradient(165deg, #2c2643, #5a3f6f); }
.tone-f { background: linear-gradient(165deg, #31262a, #5f474d); }

.catalog {
  margin: 2.2rem 0 2.6rem;
}

.catalog-subtitle {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.catalog-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.catalog-item {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(12, 14, 21, 0.9);
}

.catalog-item img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.catalog-item figcaption {
  padding: 0.7rem 0.85rem;
  color: #eaf0ff;
  font-weight: 600;
}

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

.card,
.step {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.2rem;
  background: var(--card);
}

.card p,
.step p {
  color: var(--muted);
}

.card h3,
.step h4,
h2 {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.03em;
  margin-top: 0;
}

.title-row {
  margin: 4rem 0 1.2rem;
}

.title-row h2 {
  margin: 0.55rem 0 0;
  font-size: clamp(1.5rem, 2.7vw, 2.45rem);
}

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

.item {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(17, 20, 28, 0.9);
}

.item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.item figcaption {
  padding: 0.8rem 0.9rem;
  font-weight: 600;
}

.step span {
  font-size: 0.85rem;
  border: 1px solid rgba(184, 247, 90, 0.4);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  display: inline-block;
  margin-bottom: 0.55rem;
  color: #d6ff97;
}

.final-cta {
  margin-top: 4.2rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: linear-gradient(115deg, rgba(184, 247, 90, 0.09), rgba(20, 23, 31, 0.92));
  padding: 1.5rem;
}

.final-cta p {
  color: var(--muted);
}

footer {
  width: min(1150px, calc(100% - 2rem));
  margin: 1.5rem auto 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-top: 0.8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.24s;
}

.float {
  animation: floaty 4.6s ease-in-out infinite;
}

@keyframes track {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

@media (max-width: 990px) {
  .topbar {
    padding: 0.6rem 0;
  }

  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

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

  .use-cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .case-card {
    min-height: 170px;
    padding-top: 6.8rem;
  }

  .case-card img {
    width: 112px;
    height: 112px;
    bottom: 42px;
  }

  .portfolio .grid,
  .catalog-grid,
  .services,
  .steps {
    grid-template-columns: 1fr;
  }
}

.admin-main {
  width: min(720px, calc(100% - 2rem));
  margin: 2.6rem auto;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(13, 16, 25, 0.9);
  padding: 1.2rem;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.admin-card h1,
.admin-card h2 {
  margin-top: 0;
  font-family: "Sora", sans-serif;
}

.admin-form {
  display: grid;
  gap: 0.55rem;
}

.admin-form input,
.admin-form select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  color: #edf2ff;
  padding: 0.65rem 0.75rem;
}

.admin-form input:focus,
.admin-form select:focus {
  outline: 1px solid rgba(184, 247, 90, 0.55);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.admin-message {
  margin-top: 0.85rem;
  color: #d6ff97;
  min-height: 1.2em;
}

.admin-tip {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.hidden {
  display: none;
}
