/* =========================
   GRIDSZY WEBSITE
========================= */

:root {
  --bg: #050816;
  --card: #0b1023;
  --purple: #8b5cf6;
  --purple-light: #a855f7;
  --text: #ffffff;
  --text-secondary: #b8c0d4;
  --border: rgba(139, 92, 246, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at top, #15103a 0%, var(--bg) 45%);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* NAVBAR */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 8%;
  background: rgba(5, 8, 22, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  color: var(--text-secondary);
  transition: 0.3s;
}

nav a:hover {
  color: var(--purple-light);
}

/* HERO BANNER */

.hero-banner {
  width: 100%;
  padding: 35px 8% 10px;
}

.hero-banner img {
  width: 100%;
  display: block;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 90px rgba(139, 92, 246, 0.22);
}

/* GENERAL SECTIONS */

section {
  padding: 90px 8%;
}

section h1,
section h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 25px;
}

section p {
  color: var(--text-secondary);
}

/* ABOUT / LEGAL */

.about {
  max-width: 900px;
  margin: 0 auto;
}

.about h1,
.about h2 {
  text-align: center;
}

.about p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  text-align: left;
  margin-bottom: 15px;
}

.about ul {
  max-width: 800px;
  margin: 20px auto;
  padding-left: 30px;
  text-align: left;
  color: var(--text-secondary);
}

.about li {
  margin-bottom: 12px;
}

/* FEATURES */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.feature-card {
  background: rgba(11, 16, 35, 0.85);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 20px;
  transition: 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--purple);
  box-shadow: 0 20px 50px rgba(139, 92, 246, 0.12);
}

.feature-card h3 {
  margin-bottom: 15px;
  color: white;
}

/* SCREENSHOTS */

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 50px;
  align-items: start;
}

.screenshot-grid figure {
  text-align: center;
}

.screenshot-grid img {
  width: 100%;
  max-width: 360px;
  height: 620px;
  object-fit: cover;
  object-position: top;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  transition: 0.3s;
}

.screenshot-grid img:hover {
  transform: scale(1.03);
}

.screenshot-grid figcaption {
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* SUPPORT */

.support-box {
  margin: 80px 8%;
  padding: 50px;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.16),
    rgba(168, 85, 247, 0.06)
  );
  border: 1px solid var(--border);
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.support-box h2 {
  text-align: left;
  margin-bottom: 10px;
}

.support-box a,
.contact-email a,
.about a {
  color: var(--purple-light);
  font-weight: 700;
}

.support-box a {
  font-size: 1.2rem;
}

/* FOOTER */

footer {
  border-top: 1px solid var(--border);
  padding: 50px 8%;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.footer-brand p {
  color: var(--text-secondary);
}

.footer-links {
  margin: 30px 0;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--purple-light);
}

footer > p:last-child {
  color: #7c8599;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    gap: 20px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .support-box {
    flex-direction: column;
    text-align: center;
  }

  .support-box h2 {
    text-align: center;
  }
}

@media (max-width: 700px) {
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-grid img {
    max-width: 330px;
    height: auto;
  }
}

@media (max-width: 600px) {
  .hero-banner {
    padding: 24px 5% 10px;
  }

  section {
    padding: 65px 6%;
  }

  nav {
    gap: 18px;
    font-size: 0.9rem;
  }
}