@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap");

:root {
  --bg: 240 15% 97%;
  --fg: 230 25% 12%;
  --primary: 255 85% 60%;
  --primary-dark: 255 85% 48%;
  --secondary: 195 90% 50%;
  --accent: 335 85% 58%;
  --card-bg: 0 0% 100%;
  --card-border: 230 20% 88%;
  --muted: 230 15% 94%;
  --muted-fg: 230 15% 45%;
  --success: 145 65% 42%;
  --danger: 5 80% 55%;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: hsl(var(--bg));
  color: hsl(var(--fg));
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.loading {
  overflow: hidden;
}

/* Preloader */
#av-loader {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-ring {
  width: 44px;
  height: 44px;
  border: 3px solid hsl(var(--muted));
  border-top-color: hsl(var(--primary));
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#av-loader.hide {
  animation: fadeout 0.4s forwards;
}

@keyframes fadeout {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

a {
  color: hsl(var(--primary));
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* TOP BAR */
.topbar {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--card-border));
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 0.75rem;
}

.topbar .logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.topbar .site-name {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: hsl(var(--fg));
  letter-spacing: -0.02em;
  flex: 1;
}

.topbar .site-name span {
  color: hsl(var(--primary));
}

.topbar .back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid hsl(var(--card-border));
  background: hsl(var(--muted));
  color: hsl(var(--fg));
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: background 0.2s;
  text-decoration: none !important;
}

.topbar .back:hover {
  background: hsl(var(--card-border));
  text-decoration: none !important;
}

.topbar .breadcrumb {
  font-size: 0.8rem;
  color: hsl(var(--muted-fg));
  margin-left: auto;
}

.topbar .breadcrumb a {
  color: hsl(var(--primary));
}

@media (max-width: 600px) {
  .topbar .breadcrumb {
    display: none;
  }
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  background: linear-gradient(
    135deg,
    hsl(255 85% 60% / 0.07) 0%,
    hsl(195 90% 50% / 0.06) 50%,
    hsl(335 85% 58% / 0.05) 100%
  );
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  top: -150px;
  left: -100px;
  background: radial-gradient(circle, hsl(255 85% 60% / 0.2), transparent 70%);
}

.hero-shape-2 {
  width: 350px;
  height: 350px;
  bottom: -100px;
  right: -80px;
  background: radial-gradient(circle, hsl(195 90% 50% / 0.18), transparent 70%);
}

.hero-shape-3 {
  width: 250px;
  height: 250px;
  top: 30%;
  right: 20%;
  background: radial-gradient(circle, hsl(335 85% 58% / 0.12), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.2);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero h1 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: hsl(var(--fg));
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.hero h1 .highlight {
  background: linear-gradient(
    135deg,
    hsl(var(--primary)),
    hsl(var(--secondary))
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1rem;
  color: hsl(var(--muted-fg));
  max-width: 520px;
  margin: 0 auto;
}

/* MAIN */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

section {
  margin-bottom: 3rem;
}

.section-title {
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: hsl(var(--fg));
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 1.2rem;
  background: linear-gradient(
    to bottom,
    hsl(var(--primary)),
    hsl(var(--secondary))
  );
  border-radius: 2px;
  flex-shrink: 0;
}

/* APP GRID */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 560px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1100px) {
  .grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* CARD */
.card {
  display: flex;
  flex-direction: column;
  background: hsl(var(--card-bg));
  border: 1px solid hsl(var(--card-border));
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none !important;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: hsl(var(--primary) / 0.35);
  text-decoration: none !important;
}

.card-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  padding: 0.75rem;
  background: hsl(var(--muted));
}

.card-label {
  display: block;
  padding: 0.6rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: hsl(var(--fg));
  text-align: center;
  border-top: 1px solid hsl(var(--card-border));
  background: #fff;
  transition:
    color 0.2s,
    background 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card:hover .card-label {
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.05);
}

/* FEATURED CARD */
.card.featured {
  grid-column: span 2;
  grid-row: span 2;
  border: 2px solid hsl(var(--primary) / 0.3);
  box-shadow: 0 6px 20px hsl(var(--primary) / 0.1);
}

.card.featured .card-img {
  padding: 1rem;
}

.card.featured .card-label {
  font-size: 1.1rem;
  padding: 0.9rem;
  font-weight: 700;
  background: linear-gradient(
    to right,
    hsl(var(--primary) / 0.07),
    hsl(var(--secondary) / 0.05)
  );
  color: hsl(var(--primary));
}

/* CATEGORY PILL */
.category-pill {
  display: inline-block;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

/* INFO SECTION */
.info-section {
  background: hsl(var(--card-bg));
  border: 1px solid hsl(var(--card-border));
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-section h2 {
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-section h2::before {
  content: "";
  width: 4px;
  height: 1.1rem;
  background: hsl(var(--primary));
  border-radius: 2px;
}

.info-section p {
  color: hsl(var(--fg));
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.info-section p:last-child {
  margin-bottom: 0;
}

/* STATS BAR */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: hsl(var(--card-border));
  border: 1px solid hsl(var(--card-border));
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.stat {
  background: hsl(var(--card-bg));
  padding: 1.25rem 1rem;
  text-align: center;
}

.stat-value {
  font-family: "Sora", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    hsl(var(--primary)),
    hsl(var(--secondary))
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-fg));
  font-weight: 500;
}

/* DETAIL PAGE */
.detail-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.channel-header {
  text-align: center;
  margin-bottom: 2rem;
}

.channel-header img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  object-fit: contain;
  background: hsl(var(--muted));
  padding: 0.6rem;
  margin: 0 auto 1rem;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.channel-header h1 {
  font-family: "Sora", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.channel-header .tagline {
  color: hsl(var(--muted-fg));
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* BUTTON GROUP */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;

  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn i {
  font-size: 0.8rem;
}

.btn.primary {
  background: hsl(var(--primary));
  color: #fff;
  border-color: hsl(var(--primary));
}

.btn.primary:hover {
  background: hsl(var(--primary-dark));
  border-color: hsl(var(--primary-dark));
  text-decoration: none;
}

.btn.danger {
  color: hsl(var(--danger));
  border-color: hsl(var(--danger));
  background: transparent;
}

.btn.danger:hover {
  background: hsl(var(--danger));
  color: #fff;
  text-decoration: none;
}

.btn.success {
  color: hsl(var(--success));
  border-color: hsl(var(--success));
  background: transparent;
}

.btn.success:hover {
  background: hsl(var(--success));
  color: #fff;
  text-decoration: none;
}

@media (max-width: 600px) {
  .button-group {
    flex-direction: column;
    margin-top: 20px;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 601px) {
  .button-group {
    width: 100%;
    margin-top: 20px;
  }
  .btn {
    flex: 1;
    justify-content: center;
  }
}

/* DETAIL SECTIONS */
.detail-section {
  background: hsl(var(--card-bg));
  border: 1px solid hsl(var(--card-border));
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.detail-section h2 {
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-section h2::before {
  content: "";
  width: 4px;
  height: 1.1rem;
  background: hsl(var(--primary));
  border-radius: 2px;
  flex-shrink: 0;
}

.detail-section p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: hsl(var(--fg));
  margin-bottom: 0.75rem;
}

.detail-section p:last-child {
  margin-bottom: 0;
}

/* NUMBER LIST */
.number-list {
  list-style: none;
  counter-reset: step;
  padding: 0;
}

.number-list li {
  counter-increment: step;
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.number-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: hsl(var(--primary));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* TWO COL */
.two-col {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.two-col h3 {
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.two-col h3::before {
  content: "";
  width: 3px;
  height: 0.9rem;
  border-radius: 2px;
  background: hsl(var(--accent));
}

.dot-list {
  list-style: none;
  padding: 0;
}

.dot-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(var(--primary));
}

/* WARNING BOX */
.warning-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: hsl(40 90% 96%);
  border: 1px solid hsl(40 70% 80%);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  max-width: 760px;
  margin: 0 auto 1.5rem;
  font-size: 0.85rem;
  color: hsl(30 30% 25%);
}

.warning-box .icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* FOOTER */
footer {
  background: hsl(var(--fg));
  color: hsl(0 0% 80%);
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  color: hsl(0 0% 70%);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: none;
}

footer p {
  font-size: 0.8rem;
  color: hsl(0 0% 50%);
  margin-top: 0.5rem;
}

footer a {
  color: hsl(var(--primary));
}

/* STATIC PAGES */
.static-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.static-content h1 {
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.static-content .subtitle {
  color: hsl(var(--muted-fg));
  margin-bottom: 2rem;
  font-size: 1rem;
}

.static-content h2 {
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.75rem 0 0.6rem;
  color: hsl(var(--fg));
}

.static-content p,
.static-content li {
  font-size: 0.95rem;
  color: hsl(var(--fg));
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.static-content ul,
.static-content ol {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

.static-content li {
  margin-bottom: 0.35rem;
}

.gradient-title {
  background: linear-gradient(
    135deg,
    hsl(var(--primary)),
    hsl(var(--secondary))
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* CONTACT FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: hsl(var(--fg));
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid hsl(var(--card-border));
  border-radius: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  background: #fff;
  color: hsl(var(--fg));
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: hsl(var(--primary));
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: hsl(var(--primary));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.btn-submit:hover {
  background: hsl(var(--primary-dark));
}

/* KEYWORD META - hidden visually but great for SEO */
.seo-keywords {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
