:root {
  --bg: #07101f;
  --bg-2: #0c1730;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --text: #eef4ff;
  --muted: #aeb8d2;
  --primary: #5865f2;
  --primary-2: #7b61ff;
  --cyan: #00d4ff;
  --green: #25d366;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(88, 101, 242, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(0, 212, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #07101f 0%, #081224 40%, #0a1022 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(7, 16, 31, 0.7);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.brand strong {
  color: var(--cyan);
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 0 18px rgba(88, 101, 242, 0.6);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: white;
  margin: 5px auto;
}

.hero {
  padding: 74px 0 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.14);
  border: 1px solid rgba(88, 101, 242, 0.28);
  color: #dfe4ff;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.eyebrow.small {
  margin-bottom: 8px;
  font-size: 0.8rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.7rem);
  line-height: 1.02;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #8bdcff 40%, #9a7cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 22px;
}

.btn {
  min-height: 52px;
  border-radius: 16px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease, border 0.2s ease;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 16px 35px rgba(88, 101, 242, 0.3);
}

.btn-secondary {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.btn-large {
  min-height: 58px;
  padding: 0 26px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-stage {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}
.discord-logo-wrap {
  position: relative;
  width: min(100%, 360px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.discord-logo {
  width: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.08s linear, filter 0.2s ease;
  filter:
    drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 24px rgba(88, 101, 242, 0.2));
}

.discord-eyes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.eye {
  position: absolute;
  width: 22px;
  height: 22px;
  background: #5865f2;
  border-radius: 50%;
  transition: transform 0.08s linear;
}

.eye-left {
  left: 40%;
  top: 43%;
}

.eye-right {
  right: 40%;
  top: 43%;
}

@media (max-width: 560px) {
  .discord-logo-wrap {
    width: min(100%, 250px);
  }

  .eye {
    width: 16px;
    height: 16px;
  }
}

.logo-glow {
  position: absolute;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.45) 0%, rgba(88, 101, 242, 0.08) 55%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.discord-logo {
  width: min(100%, 360px);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.16s ease, filter 0.2s ease;
  filter:
    drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 24px rgba(88, 101, 242, 0.2));
}

.floating-card {
  position: absolute;
  min-width: 180px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(10, 17, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.floating-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.96rem;
}

.floating-card span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-top {
  top: 60px;
  right: 10px;
  animation: floaty 5s ease-in-out infinite;
}

.card-middle {
  left: 20px;
  bottom: 150px;
  animation: floaty 6s ease-in-out infinite 0.4s;
}

.card-bottom {
  right: 40px;
  bottom: 50px;
  animation: floaty 5.5s ease-in-out infinite 0.8s;
}

@keyframes floaty {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.section {
  padding: 80px 0;
}

.alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 820px;
  margin-bottom: 36px;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.trusted {
  padding-top: 30px;
}

.trusted-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trusted-item,
.feature-card,
.service-card,
.license-item,
.mini-folder,
.cta-box,
.folder-card,
.gallery-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.trusted-item {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.feature-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card,
.service-card {
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover,
.service-card:hover,
.folder-card:hover,
.mini-folder:hover {
  transform: translateY(-4px);
  border-color: rgba(88, 101, 242, 0.32);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.18), rgba(0, 212, 255, 0.18));
  border: 1px solid rgba(88, 101, 242, 0.25);
  margin-bottom: 16px;
  font-weight: 700;
}

.license-grid,
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.license-list {
  display: grid;
  gap: 14px;
}

.license-item {
  padding: 18px 20px;
  border-radius: 18px;
}

.showcase-mini {
  display: grid;
  gap: 16px;
}

.mini-folder {
  border-radius: 20px;
  padding: 20px;
}

.mini-folder strong {
  display: block;
  margin-bottom: 6px;
}

.mini-folder span {
  color: var(--muted);
}

.folder-shape {
  width: 74px;
  height: 52px;
  border-radius: 13px;
  background: linear-gradient(135deg, #ffd46a, #ffb72b);
  position: relative;
  margin-bottom: 16px;
  box-shadow: 0 14px 30px rgba(255, 183, 43, 0.18);
}

.folder-shape::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 11px;
  width: 32px;
  height: 16px;
  border-radius: 10px 10px 0 0;
  background: #ffe083;
}

.cta-box {
  border-radius: var(--radius-xl);
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
}

.footer-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: white;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(37, 211, 102, 0.22);
}

/* Projects */
.projects-main {
  min-height: calc(100vh - 78px);
}

.projects-hero {
  padding: 74px 0 24px;
}

.projects-hero-inner {
  max-width: 840px;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.folder-card {
  border-radius: 22px;
  padding: 24px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.folder-card .folder-shape {
  margin-bottom: 18px;
}

.folder-card h3 {
  margin-bottom: 8px;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 200;
}

.gallery-modal.open {
  display: block;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.gallery-panel {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 24px));
  margin: 34px auto;
  padding: 22px;
  border-radius: 24px;
  background: #0b1327;
  max-height: calc(100vh - 68px);
  overflow: auto;
}

.gallery-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.close-button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
}

.gallery-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-images img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  background: #11182e;
  border: 1px solid var(--border);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid,
  .license-grid,
  .showcase-grid,
  .trusted-grid,
  .folder-grid,
  .gallery-images {
    grid-template-columns: 1fr 1fr;
  }

  .feature-grid,
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    min-height: 460px;
  }

  .card-top {
    top: 20px;
  }

  .card-middle {
    left: 0;
    bottom: 110px;
  }

  .card-bottom {
    right: 10px;
    bottom: 10px;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    width: min(280px, calc(100% - 32px));
    padding: 14px;
    border-radius: 18px;
    background: rgba(10, 17, 34, 0.96);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .site-nav.open {
    display: flex;
  }

  .hero-grid,
  .license-grid,
  .showcase-grid,
  .trusted-grid,
  .feature-grid,
  .service-grid,
  .folder-grid,
  .gallery-images,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    min-height: 380px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .floating-card {
    min-width: unset;
    width: 180px;
  }

  .footer-wrap {
    flex-direction: column;
  }

  .cta-box {
    display: grid;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 20px));
  }

  .section {
    padding: 64px 0;
  }

  .hero-badges {
    gap: 10px;
  }

  .hero-badges span {
    font-size: 0.92rem;
  }

  .discord-logo {
    width: min(100%, 250px);
  }

  .floating-card {
    width: 160px;
    padding: 14px;
  }

  .card-top {
    right: 0;
  }

  .card-middle {
    left: 0;
    bottom: 104px;
  }

  .card-bottom {
    right: 0;
    bottom: 0;
  }

  .gallery-panel {
    width: calc(100% - 12px);
    margin: 14px auto;
    padding: 16px;
    max-height: calc(100vh - 28px);
  }
}
.image-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 300;
}

.image-lightbox.open {
  display: block;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
}

.image-lightbox-panel {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 24px));
  height: calc(100vh - 40px);
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox-panel img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  background: #0b1327;
}

.image-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 3;
}

.gallery-images img {
  cursor: zoom-in;
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.gallery-images img:hover {
  transform: scale(1.02);
  border-color: rgba(88, 101, 242, 0.35);
}

@media (max-width: 560px) {
  .image-lightbox-panel {
    width: calc(100% - 10px);
    height: calc(100vh - 20px);
    margin: 10px auto;
  }

  .image-lightbox-close {
    top: 6px;
    right: 6px;
    width: 46px;
    height: 46px;
  }
}
.lightbox-image-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.lightbox-arrow:hover {
  background: rgba(88, 101, 242, 0.22);
  border-color: rgba(88, 101, 242, 0.35);
}

.lightbox-arrow-left {
  left: 12px;
}

.lightbox-arrow-right {
  right: 12px;
}

@media (max-width: 560px) {
  .lightbox-arrow {
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
  }

  .lightbox-arrow-left {
    left: 6px;
  }

  .lightbox-arrow-right {
    right: 6px;
  }
}
.error-page {
  min-height: 100vh;
}

.error-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.error-box {
  width: min(760px, 100%);
  text-align: center;
  padding: 40px 24px;
}

.error-logo-stage {
  position: relative;
  width: min(100%, 420px);
  margin: 0 auto 28px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.error-logo-wrap {
  width: min(100%, 420px);
}

.error-discord-logo {
  width: 100%;
}

.error-glow {
  width: 78%;
  height: 78%;
}

.error-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 14px;
}

.error-text,
.error-redirect {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.error-redirect strong {
  color: var(--text);
  font-size: 1.2em;
}

@media (max-width: 560px) {
  .error-logo-stage {
    width: min(100%, 280px);
  }

  .error-logo-wrap {
    width: min(100%, 280px);
  }
}