* {
  box-sizing: border-box;
}

:root {
  --bg: #080c18;
  --bg-soft: #0d1325;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --text: #f5f7ff;
  --muted: #a8b0c8;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #8ca2ff;
  --accent-2: #c08bff;
  --max: 1160px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(79, 105, 255, 0.18), transparent 32rem),
    radial-gradient(circle at 90% 18%, rgba(177, 101, 255, 0.14), transparent 26rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.site-header {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 8px 30px rgba(128, 105, 255, 0.35);
}

.nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.hero,
.section,
.footer {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding: 72px 0 88px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #b8c4ff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 800;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3.25rem, 7vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 4vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
  line-height: 1.15;
}

.lead,
.section-heading > p,
.about-copy,
.contact > div > p {
  color: var(--muted);
  font-size: 1.05rem;
}

.lead {
  max-width: 680px;
  margin-bottom: 30px;
  font-size: 1.14rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 750;
  transition: 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}

.secondary {
  border: 1px solid var(--line);
  background: var(--panel);
}

.hero-card {
  min-height: 430px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

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

.orb-one {
  width: 260px;
  height: 260px;
  top: 24px;
  right: -30px;
  background: linear-gradient(135deg, #7590ff, #8e62ff);
  opacity: 0.82;
}

.orb-two {
  width: 190px;
  height: 190px;
  left: -30px;
  bottom: -20px;
  background: linear-gradient(135deg, #4dddcf, #6883ff);
  opacity: 0.55;
}

.mini-card {
  position: absolute;
  width: 190px;
  padding: 18px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 20px;
  background: rgba(7, 10, 22, 0.66);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.3);
}

.mini-card.one {
  top: 84px;
  left: 46px;
  transform: rotate(-7deg);
}

.mini-card.two {
  right: 46px;
  bottom: 68px;
  transform: rotate(6deg);
}

.mini-icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: #bec8ff;
}

.mini-card small {
  color: var(--muted);
}

.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 40px;
}

.cards {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
}

.project-art {
  min-height: 230px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  font-weight: 850;
  letter-spacing: 0.12em;
}

.project-art.tavern {
  background:
    radial-gradient(circle at 25% 35%, rgba(255, 204, 116, 0.22), transparent 15rem),
    linear-gradient(135deg, #1a2033, #291f2b);
}

.project-art.app {
  background:
    radial-gradient(circle at center, rgba(121, 147, 255, 0.28), transparent 15rem),
    linear-gradient(135deg, #11182a, #171d31);
  font-size: 2rem;
}

.project-content {
  padding: 26px;
}

.project-content p {
  color: var(--muted);
}

.tag {
  margin-bottom: 8px;
  color: #c3ccff !important;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.text-link {
  font-weight: 700;
}

.muted {
  color: #909ab6;
}

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 64px;
}

.contact-card {
  padding: 28px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(123, 144, 255, 0.14), rgba(181, 119, 255, 0.09));
}

.contact-card strong {
  font-size: clamp(1.05rem, 2.6vw, 1.55rem);
  word-break: break-word;
}

.contact-card span:last-child {
  color: var(--muted);
}

.contact-label {
  color: #bdc8ff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer {
  padding: 42px 0 54px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 36px;
  align-items: end;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer strong {
  color: var(--text);
}

.footer p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.legal-page {
  width: min(calc(100% - 32px), 860px);
  margin: 0 auto;
  padding: 70px 0 100px;
}

.legal-page h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.legal-page h2 {
  margin-top: 48px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.notice {
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 204, 115, 0.35);
  border-radius: 14px;
  background: rgba(255, 204, 115, 0.08);
  color: #f4dfb2;
}

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: #c3ccff;
  font-weight: 700;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 16px;
    left: 16px;
    padding: 18px;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #0b1020;
    z-index: 10;
  }

  .nav.open {
    display: flex;
  }

  .hero,
  .about,
  .contact,
  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 34px;
    padding-top: 56px;
  }

  .hero-card {
    min-height: 340px;
  }

  .about,
  .contact {
    gap: 30px;
  }

  .footer {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 3.2rem;
  }

  .hero-card {
    min-height: 300px;
  }

  .mini-card {
    width: 158px;
  }

  .mini-card.one {
    left: 20px;
  }

  .mini-card.two {
    right: 20px;
  }

  .section {
    padding: 68px 0;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}
