@font-face {
  font-family: "Titillium Web";
  src: url("./TitilliumWeb-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Titillium Web";
  src: url("./TitilliumWeb-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Titillium Web";
  src: url("./TitilliumWeb-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Titillium Web";
  src: url("./TitilliumWeb-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0c1624;
  --bg-hero: #0f1b2b;
  --bg-soft: #112238;
  --card: #17283f;
  --card-2: #152234;
  --line: #243953;
  --text: #e8f0fb;
  --muted: #b9c7de;
  --accent: #2bd3b5;
  --accent-600: #18b89d;
  --badge: #b7f3e9;
  --badge-text: #08332c;
  --price: #37e0b0;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35), 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.28), 0 1px 6px rgba(0, 0, 0, 0.22);
  --r: 18px;
  --r-sm: 14px;
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Titillium Web", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 65% -10%, #203050 0%, var(--bg-hero) 55%) no-repeat,
    var(--bg);
}

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

a:focus-visible,
.button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  font-weight: 700;
}

h1 {
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.2;
  letter-spacing: -0.5px;
  font-family: "Titillium Web", system-ui, sans-serif;
  font-weight: 700;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

.muted {
  color: var(--muted);
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(15, 27, 43, 0.96), rgba(15, 27, 43, 0.78));
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(6px);
}

.nav {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo {
  display: block;
  max-height: 40px;
  width: auto;
}

.menu {
  display: flex;
  gap: 28px;
  align-items: center;
}

.menu a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

.menu a:hover {
  color: #fff;
}

.btn,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn {
  background: var(--accent);
  color: #08232e;
}

.btn:hover {
  background: var(--accent-600);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: #2a415f;
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: #3b5a82;
  color: #fff;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #0f2136;
  border: 1px solid var(--line);
  color: #bfe1ff;
  font-size: 13px;
  margin-bottom: 14px;
}

.chip .ok {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #0bbc8a;
}

.hero p {
  margin: 8px 0 22px;
  color: #c6d4ea;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

section {
  padding: 24px 0;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, 1fr);
}

.card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.k {
  grid-column: span 4;
}

.k6 {
  grid-column: span 6;
}

.k8 {
  grid-column: span 8;
}

.k12 {
  grid-column: span 12;
}

.tutorials-grid {
  margin-top: 8px;
}

.single-column-grid {
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(43, 211, 181, 0.12);
  border: 1px solid rgba(43, 211, 181, 0.35);
  color: #bffcf2;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 10px;
}

.badge {
  position: absolute;
  left: 16px;
  bottom: 14px;
  background: var(--badge);
  color: var(--badge-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
}

.repo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.repo strong {
  display: block;
  font-size: 16px;
}

.star {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.95;
}

.price {
  color: var(--price);
  font-weight: 800;
}

.news-wrap {
  padding: 10px 0 0;
}

.newsbar {
  background: linear-gradient(180deg, var(--card), #122033);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 6px);
  box-shadow: var(--shadow);
  padding: 22px;
}

.newsbar h3 {
  margin: 0 0 6px;
}

.form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.input {
  flex: 1 1 360px;
  min-width: 260px;
  padding: 14px 16px;
  border-radius: 999px;
  background: #0e1b2c;
  color: #eaf2ff;
  border: 1px solid #2b415f;
  outline: none;
}

.input::placeholder {
  color: #7e96b8;
}

footer {
  padding: 26px 0 48px;
  color: #c2d2e9;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: #cfe0ff;
}

.links a {
  color: inherit;
}

.links a:hover {
  color: #fff;
}

.legal {
  padding: 40px 0;
}

.legal h2 {
  margin-bottom: 18px;
}

.legal p {
  margin: 0 0 14px;
  color: var(--muted);
}

.legal strong {
  color: #fff;
}

.legal a {
  color: var(--accent);
}

.legal a:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

@media (max-width: 1100px) {
  .k {
    grid-column: span 6;
  }

  .k8 {
    grid-column: span 12;
  }

  .k6 {
    grid-column: span 12;
  }
}

@media (max-width: 760px) {
  .menu {
    display: none;
  }

  .k {
    grid-column: span 12;
  }

  .hero {
    padding-top: 56px;
  }

  .badge {
    position: static;
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
