/* VARIABLES & RESET */
:root {
  --bg-main: #08080a;
  --bg-surface: #101014;
  --bg-glass: rgba(255, 255, 255, 0.03);

  --primary: #ffffff;
  --primary-hover: #e4e4e7;

  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.22);

  --font-sans:
    "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button,
a,
.stack-card,
.s-dot,
.btn {
  touch-action: manipulation;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* REUSABLE UTILITIES & BUTTONS */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: 99px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: #000000;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.25);
}

.btn-secondary-sm {
  background: var(--bg-glass);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  border-radius: 99px;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.btn-secondary-sm:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.08);
}

.btn-large {
  padding: 1rem 2.2rem;
  font-size: 1rem;
}

.section-header {
  text-align: center;
  max-width: 550px;
  margin: 0 auto 3.5rem auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* OFF-SCREEN SECTIONS OPTIMIZATION */
.community-section,
.faq-section,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 500px;
}

/* LOGO HEADER */
.logo-header {
  padding: 1.5rem 0;
  position: relative;
  background-color: transparent;
  border-bottom: none;
  backdrop-filter: none;
}

.logo-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

/* HERO SECTION */
.hero {
  padding: 2rem 0 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: #22c55e;
  border-radius: 50%;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title .highlight {
  color: var(--text-muted);
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.hero-meta .meta-dot {
  width: 3px;
  height: 3px;
  background-color: var(--text-dim);
  border-radius: 50%;
}

.meta-security {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
}

/* 3D PERSPECTIVE CARD STACK */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-stack-wrapper {
  position: relative;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1000px;
  margin: 0 auto;
}

.hero-stack {
  position: relative;
  width: 210px;
  height: 467px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  margin-bottom: 1.5rem;
}

.stack-card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s ease;
  cursor: pointer;
  user-select: none;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3D Depth Positioning */
.stack-card.card-center {
  transform: translateX(0) translateZ(0) rotateY(0deg) scale(1);
  z-index: 10;
  opacity: 1;
  filter: brightness(1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9);
}

.stack-card.card-left {
  transform: translateX(-38%) translateZ(-70px) rotateY(16deg) scale(0.86);
  z-index: 5;
  opacity: 0.6;
  filter: brightness(0.65);
}

.stack-card.card-right {
  transform: translateX(38%) translateZ(-70px) rotateY(-16deg) scale(0.86);
  z-index: 5;
  opacity: 0.6;
  filter: brightness(0.65);
}

.stack-card.card-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.6);
}

.stack-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  z-index: 20;
}

.stack-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.stack-btn:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

.stack-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.s-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition);
}

.s-dot.active {
  width: 22px;
  border-radius: 99px;
  background: var(--text-main);
}

/* TRUST BANNER */
.trust-banner {
  padding: 2rem 0;
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.trust-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.trust-icon {
  color: var(--text-main);
  flex-shrink: 0;
}

/* BENTO HIGHLIGHTS GRID */
.highlights-section {
  padding: 2rem 0;
  border-top: none;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.highlight-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  transition: var(--transition);
}

.highlight-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
}

.highlight-icon {
  color: var(--text-main);
  margin-bottom: 1rem;
}

.highlight-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.highlight-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* HORIZONTAL SCROLL FOR BENTO CARDS ON DESKTOP */
@media (min-width: 768px) {
  .highlights-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.25rem;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-surface);
  }

  .highlight-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }

  .highlights-grid::-webkit-scrollbar {
    height: 5px;
  }

  .highlights-grid::-webkit-scrollbar-track {
    background: var(--bg-surface);
    border-radius: 99px;
  }

  .highlights-grid::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 99px;
  }

  .highlights-grid::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
  }
}

/* COMMUNITY SECTION (Discord) */
.community-section {
  padding: 2rem 0;
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 440px;
  margin: 0 auto;
}

.community-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
  transition: var(--transition);
}

.community-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
}

.community-card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.community-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.community-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.discord-box {
  background: #5865f2;
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.3);
}

.reddit-box {
  background: #ff4500;
  box-shadow: 0 8px 20px rgba(255, 69, 0, 0.3);
}

.community-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.community-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.community-card-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn-community {
  width: 100%;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.btn-discord {
  background: #5865f2;
  color: #ffffff;
}

.btn-discord:hover {
  background: #4752c4;
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
  transform: translateY(-1px);
}

.btn-reddit {
  background: #ff4500;
  color: #ffffff;
}

.btn-reddit:hover {
  background: #e03d00;
  box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .community-grid {
    grid-template-columns: 1fr;
  }

  .community-card {
    padding: 1.5rem;
  }
}

/* FAQ ACCORDION SECTION */
.faq-section {
  padding: 3rem 0;
}

.faq-container {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-hover);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--text-main);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-answer ol {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.faq-answer li {
  margin-bottom: 0.4rem;
}

@media (max-width: 640px) {
  .trust-grid {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.25rem;
  }

  .trust-item {
    justify-content: center;
  }
}

/* CTA SECTION */
.cta-section {
  padding: 2rem 0;
  text-align: center;
}

.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* SITE FOOTER */
.site-footer {
  border-top: none;
  padding: 3rem 0 2.5rem 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand {
  margin-bottom: 1.75rem;
}

.footer-logo {
  height: 28px;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.footer-links a:hover {
  color: var(--text-main);
}

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

.disclaimer {
  font-size: 0.75rem;
  color: var(--text-dim);
  max-width: 650px;
  line-height: 1.5;
}

/* LEGAL PAGES (DMCA) */
.legal-page {
  padding: 4rem 0 6rem 0;
}

.container-narrow {
  max-width: 760px;
}

.legal-header {
  margin-bottom: 2.5rem;
}

.legal-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.legal-warning-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}

.warning-icon {
  width: 20px;
  height: 20px;
  stroke: #f59e0b;
  flex-shrink: 0;
  margin-top: 2px;
}

.warning-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-main);
  margin: 0;
}

.warning-text strong {
  color: #f59e0b;
  font-weight: 600;
}

.legal-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.legal-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.legal-content ol {
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

.legal-content li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.dmca-contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  gap: 1.5rem;
  transition: var(--transition);
}

.dmca-contact-card:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-main);
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.contact-email {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.legal-note {
  font-style: normal;
  font-size: 0.85rem !important;
  color: var(--text-dim) !important;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-meta {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-stack-wrapper {
    max-width: 320px;
  }

  .hero-stack {
    width: 210px;
    height: 467px;
  }

  .dmca-contact-card {
    flex-direction: column;
    align-items: stretch;
  }

  .dmca-contact-card .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .hero-stack-wrapper {
    max-width: 290px;
  }

  .hero-stack {
    width: 195px;
    height: 380px;
  }
}
