* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-2: #06b6d4;
  --accent: #f59e0b;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), transparent 24%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img,
video {
  max-width: 100%;
  display: block;
}

video::-webkit-media-controls-panel {
  opacity: 1;
}

.cover-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  height: auto;
  object-fit: cover;
  object-position: center center;
  background: #0f172a;
}

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

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

.hero {
  padding: 24px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-weight: 800;
  box-shadow: var(--shadow);
}

.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.06);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

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

h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.98;
  margin: 18px 0;
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.hero-copy > p,
.section-heading > p,
.about-copy > p,
.contact-panel > p,
.card-body > p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: var(--shadow);
}

.btn-secondary,
.btn-ghost {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--panel-border);
  color: var(--text);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.stats > div,
.hero-card,
.video-card,
.about-list,
.contact-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.stats > div {
  padding: 18px;
  border-radius: 18px;
}

.stats strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.stats span,
.hero-card-meta,
.info-item span {
  color: var(--muted);
}

.hero-card {
  border-radius: 28px;
  overflow: hidden;
  padding: 14px;
  align-self: start;
}

.video-frame,
.video-card video {
  border-radius: 18px;
  overflow: hidden;
}

.hero-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.video-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  height: auto;
  object-fit: cover;
  object-position: center center;
  background: #0f172a;
  cursor: zoom-in;
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--muted);
}


.hero-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 6px 6px;
}

.video-note {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

.section-tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tool-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--panel-border);
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 40px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 18px;
}

.section-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.tool-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--panel-border);
  color: var(--muted);
  font-size: 0.92rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.video-card {
  width: 100%;
  max-width: 230px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
}

.video-cover-wrap {
  position: relative;
}

.video-number {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
}

.video-cover-wrap {
  position: relative;
}

.video-number {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.preview-play {
  position: absolute;
  inset: auto 50% 50% auto;
  transform: translate(50%, 50%);
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #2563eb;
  font-size: 1.3rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
  z-index: 1000;
}

.video-modal.is-open {
  display: flex;
}

.video-modal-inner {
  position: relative;
  width: min(92vw, 460px);
  max-height: 92vh;
}

.video-modal video {
  width: 100%;
  height: auto;
  max-height: 92vh;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.video-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.card-body {
  padding: 12px 12px 14px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-head h3 {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.video-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tags span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #334155;
  font-size: 0.72rem;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.about-list,
.contact-panel {
  border-radius: 24px;
  padding: 24px;
}

.about-list {
  display: grid;
  gap: 16px;
}

.info-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-item:last-child {
  border-bottom: 0;
}

.info-item strong {
  display: block;
  margin-bottom: 4px;
}

.contact-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.contact-links a {
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--panel-border);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px dashed var(--panel-border);
  color: var(--muted);
}

.empty-state code {
  background: #eef4ff;
  padding: 2px 6px;
  border-radius: 6px;
}

.footer {
  padding: 12px 0 34px;
  color: var(--muted);
  text-align: center;
}

.bg-glow {
  position: fixed;
  inset: auto;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}

.bg-glow-1 {
  width: 340px;
  height: 340px;
  top: 80px;
  left: -80px;
  background: rgba(37, 99, 235, 0.12);
}

.bg-glow-2 {
  width: 280px;
  height: 280px;
  right: 0;
  top: 220px;
  background: rgba(6, 182, 212, 0.12);
}

@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .video-card {
    max-width: 260px;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
   
    gap: 14px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-card {
    width: 100%;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    justify-items: center;
  }

  .video-card {
    max-width: 168px;
    width: 100%;
  }

  .card-body {
    padding: 8px 8px 10px;
  }

  .card-head {
    gap: 6px;
  }

  .card-head h3 {
    font-size: 0.76rem;
  }

  .video-badge,
  .tags span {
    font-size: 0.64rem;
  }

  .hero,
  .section,
  .footer {
    width: min(100% - 20px, 1180px);
  }
}
