:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0891b2;
  --accent: #10b981;
  --warm: #f59e0b;
  --ink: #0b1220;
  --text: #263244;
  --muted: #667085;
  --surface: #ffffff;
  --surface-soft: #f7fafc;
  --border: rgba(100, 116, 139, 0.18);
  --shadow-sm: 0 10px 26px rgba(15, 23, 42, 0.06);
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 30px 86px rgba(15, 23, 42, 0.18);
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --navbar-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 18px);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 2%, rgba(37, 99, 235, 0.09), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(16, 185, 129, 0.08), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0%, #f4f8fc 46%, #eef8f4 100%);
  font-family: "Kanit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 88px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 72%);
}

a {
  color: var(--primary);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  color: #fff;
  background: var(--primary);
}

:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.75);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  max-width: 1200px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  padding: 0.72rem 1rem;
  color: #fff;
  background: var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transform: translateY(-150%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.noscript-alert {
  margin: calc(var(--navbar-height) + 14px) auto 0;
  max-width: 1120px;
  padding: 12px 16px;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 14px;
}

.section {
  padding: 82px 0;
}

.section-tight {
  padding-top: 34px;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(236, 253, 245, 0.40));
  border-block: 1px solid var(--border);
}

.section-header {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
  margin-bottom: 0.8rem;
  padding: 0.42rem 0.82rem;
  color: #075985;
  font-size: 0.9rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.95), rgba(209, 250, 229, 0.92));
  border: 1px solid rgba(8, 145, 178, 0.18);
  border-radius: 999px;
}

.section-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.section-desc {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

/* Navigation */
.navbar {
  min-height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.navbar-brand {
  padding: 0.28rem 0.66rem;
  background: #fff;
  border: 1px solid rgba(8, 145, 178, 0.15);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.navbar-brand img {
  width: 122px;
  max-height: 38px;
  object-fit: contain;
}

.nav-link {
  padding: 0.48rem 0.7rem !important;
  color: #334155;
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.show {
  color: var(--primary-dark);
  background: #eaf3ff;
}

.navbar-toggler {
  border-color: rgba(100, 116, 139, 0.28);
  border-radius: 12px;
}

.dropdown-menu {
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.dropdown-item {
  padding: 0.58rem 0.72rem;
  color: #334155;
  border-radius: 10px;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.62rem 1.08rem;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 58%, var(--accent) 100%);
  border: 0;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.23);
}

.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

.btn-outline-primary {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(37, 99, 235, 0.30);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
}

.line-btn {
  color: #fff !important;
  background: #06c755;
  border-color: #06c755;
  box-shadow: 0 12px 26px rgba(6, 199, 85, 0.20);
}

.line-btn:hover,
.line-btn:focus {
  color: #fff !important;
  background: #05b64d;
  border-color: #05b64d;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 94vh;
  overflow: hidden;
  padding: 132px 0 112px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6, 12, 24, 0.90) 0%, rgba(7, 26, 47, 0.78) 44%, rgba(7, 26, 47, 0.36) 100%),
    linear-gradient(180deg, rgba(6, 12, 24, 0.08), rgba(6, 12, 24, 0.36)),
    url("../imgs/ai_robot02.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.56), transparent 78%);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 150px;
  content: "";
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(245, 248, 252, 0.98));
}

.hero .container {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.9rem;
  color: #e0f2fe;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero h1 {
  max-width: 900px;
  margin-top: 1.1rem;
  color: #fff;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
  text-wrap: balance;
}

.hero-lead {
  max-width: 780px;
  color: #dbeafe;
  font-size: clamp(1.04rem, 1.5vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 24px;
}

.hero .btn-outline-primary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.hero .btn-outline-primary:hover,
.hero .btn-outline-primary:focus {
  color: var(--ink);
  background: #fff;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 920px;
  margin-top: 24px;
}

.metric {
  min-height: 92px;
  padding: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
}

.metric strong {
  display: block;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.18;
}

.metric span {
  color: #dbeafe;
  font-size: 0.86rem;
}

.ai-visual {
  position: absolute;
  top: 50%;
  right: clamp(18px, 5vw, 86px);
  z-index: 1;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  pointer-events: none;
  filter: drop-shadow(0 28px 70px rgba(14, 165, 233, 0.24));
  transform: translateY(-50%);
}

.ai-visual::before {
  position: absolute;
  inset: 7%;
  content: "";
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.34), transparent 0 18%, rgba(16, 185, 129, 0.12) 19%, transparent 52%),
    conic-gradient(from 110deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.65), rgba(16, 185, 129, 0.66), rgba(245, 158, 11, 0.38), rgba(56, 189, 248, 0));
  opacity: 0.68;
  mask-image: radial-gradient(circle, transparent 0 29%, #000 30% 34%, transparent 35% 47%, #000 48% 52%, transparent 53%);
  animation: ai-spin 30s linear infinite;
}

.ai-visual::after {
  position: absolute;
  inset: 18%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.30), rgba(37, 99, 235, 0.10) 46%, transparent 70%);
}

.ai-orbit {
  position: absolute;
  border: 1px solid rgba(226, 246, 255, 0.30);
  border-radius: 50%;
  box-shadow: inset 0 0 32px rgba(56, 189, 248, 0.10);
}

.orbit-one { inset: 9%; animation: ai-spin 24s linear infinite; }
.orbit-two { inset: 20%; transform: rotate(28deg) scaleX(0.78); }
.orbit-three { inset: 30%; transform: rotate(-24deg) scaleX(0.68); }

.ai-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.98), rgba(8, 145, 178, 0.96) 52%, rgba(16, 185, 129, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 32px;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.08), 0 24px 70px rgba(14, 165, 233, 0.38);
  transform: translate(-50%, -50%);
  animation: ai-float 6s ease-in-out infinite;
}

.core-label {
  position: relative;
  z-index: 2;
  font-size: 2rem;
  font-weight: 800;
}

.core-pulse {
  position: absolute;
  inset: -18px;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 40px;
  animation: ai-pulse 3.2s ease-out infinite;
}

.ai-node {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #e0f2fe;
  border: 3px solid rgba(37, 99, 235, 0.82);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.85);
}

.node-1 { top: 22%; left: 18%; }
.node-2 { top: 19%; right: 18%; }
.node-3 { top: 52%; right: 10%; }
.node-4 { right: 26%; bottom: 15%; }
.node-5 { bottom: 19%; left: 21%; }
.node-6 { top: 52%; left: 8%; }

.ai-link {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.82), rgba(16, 185, 129, 0.66), transparent);
  transform-origin: left center;
}

.link-1 { top: 26%; left: 22%; width: 58%; transform: rotate(9deg); }
.link-2 { top: 55%; left: 22%; width: 66%; transform: rotate(-4deg); }
.link-3 { bottom: 23%; left: 30%; width: 48%; transform: rotate(-18deg); }
.link-4 { top: 52%; left: 13%; width: 42%; transform: rotate(27deg); }

.ai-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: #e0f2fe;
  font-size: 0.84rem;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.ai-chip i { color: #67e8f9; }
.chip-1 { top: 31%; left: 2%; }
.chip-2 { top: 34%; right: 3%; }
.chip-3 { bottom: 7%; left: 15%; }

.data-stream {
  position: absolute;
  max-width: 220px;
  overflow: hidden;
  color: rgba(224, 242, 254, 0.68);
  font-family: Consolas, Monaco, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0.72;
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.68);
}

.stream-1 { top: 8%; right: 8%; }
.stream-2 { right: 0; bottom: 28%; }
.stream-3 { bottom: 36%; left: 2%; }

/* Quick navigation and value strip */
.quick-panel {
  position: relative;
  z-index: 3;
  margin-top: -58px;
}

.quick-box,
.card-clean,
.service-card,
.course-card,
.portfolio-card,
.step-card,
.contact-card,
.faq-card {
  height: 100%;
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.quick-box {
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(16px);
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag,
.mini-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.78rem;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
}

.tag:hover,
.tag:focus,
.mini-stat:hover,
.mini-stat:focus {
  color: #075985;
  background: #ecfeff;
  border-color: rgba(8, 145, 178, 0.28);
}

.mini-stat b {
  color: var(--primary);
}

.value-strip {
  padding: 34px 0 8px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.value-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.value-item i {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  place-items: center;
}

.value-item b {
  display: block;
  color: var(--ink);
  line-height: 1.3;
}

.value-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.55;
}

/* Shared cards */
.service-card,
.course-card,
.portfolio-card,
.step-card,
.contact-card,
.faq-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  transition: transform 0.20s ease, box-shadow 0.20s ease, border-color 0.20s ease;
}

.service-card::before,
.course-card::before,
.portfolio-card::before,
.step-card::before,
.faq-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--warm));
  opacity: 0.84;
}

.icon-box {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  color: #fff;
  font-size: 1.38rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary) 58%, var(--accent));
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(8, 145, 178, 0.18);
  place-items: center;
}

.service-card h3,
.step-card h3,
.faq-card h3 {
  color: var(--ink);
  line-height: 1.3;
}

.service-card p,
.course-card p,
.portfolio-card p,
.faq-card p,
.step-card p {
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  color: var(--muted);
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.feature-list i {
  margin-top: 4px;
  color: var(--accent);
}

.card-footer-clean {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 22px;
  border-top: 1px dashed rgba(100, 116, 139, 0.20);
}

.course-card {
  display: flex;
  flex-direction: column;
}

.course-code,
.portfolio-card .badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.3rem 0.68rem;
  margin-bottom: 12px;
  color: #075985;
  font-size: 0.84rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.95), rgba(209, 250, 229, 0.90)) !important;
  border: 1px solid rgba(8, 145, 178, 0.17);
  border-radius: 999px;
}

.knowledge-link-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  color: inherit;
  transition: transform 0.20s ease, box-shadow 0.20s ease, border-color 0.20s ease;
}

.knowledge-link-card .icon-box {
  flex: 0 0 auto;
  margin: 0;
}

.knowledge-link-card:hover h3,
.knowledge-link-card:focus h3 {
  color: var(--primary);
}

.portfolio-card {
  display: flex;
  flex-direction: column;
}

.portfolio-card > a {
  margin-top: auto;
}

.step-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-number {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 999px;
  place-items: center;
}

/* Game hub */
.game-hub-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(37, 99, 235, 0.11), transparent 24rem),
    radial-gradient(circle at 92% 16%, rgba(16, 185, 129, 0.11), transparent 25rem),
    linear-gradient(180deg, rgba(239, 246, 255, 0.76), rgba(248, 250, 252, 0.98));
  border-block: 1px solid var(--border);
}

.game-hub-section::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 145, 178, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.50), transparent 82%);
}

.game-hub-section .container {
  position: relative;
  z-index: 1;
}

.game-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: -12px auto 34px;
}

.game-summary-item {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  color: #334155;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.game-summary-item i {
  color: var(--primary);
  font-size: 1.08rem;
}

.game-card {
  --game-a: #2563eb;
  --game-b: #0891b2;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.20s ease, box-shadow 0.20s ease, border-color 0.20s ease;
}

.game-scene {
  position: relative;
  display: grid;
  min-height: 154px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.30), transparent 24%),
    linear-gradient(135deg, var(--game-a), var(--game-b));
  place-items: center;
}

.game-scene::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.34;
  background-image:
    radial-gradient(circle at 12% 18%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 78% 24%, #fff 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 64% 72%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 28% 80%, #fff 0 1px, transparent 2px);
  background-size: 92px 92px, 120px 120px, 112px 112px, 74px 74px;
}

.game-scene::after {
  position: absolute;
  width: 210px;
  height: 210px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.055), 0 0 0 48px rgba(255, 255, 255, 0.035);
  transform: rotate(-14deg) scaleY(0.55);
}

.game-scene-icon {
  position: relative;
  z-index: 2;
  display: grid;
  width: 82px;
  height: 82px;
  color: #fff;
  font-size: 2.35rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 25px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(10px);
  transition: transform 0.20s ease;
  place-items: center;
}

.game-level {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 10px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.game-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.game-course {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  margin-bottom: 12px;
  color: var(--game-a);
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(239, 246, 255, 0.92);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 999px;
}

.game-card h3 {
  color: var(--ink);
  line-height: 1.35;
}

.game-card p {
  color: var(--muted);
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 20px;
}

.game-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  background: #f8fafc;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 999px;
}

.game-card .btn-game {
  margin-top: auto;
  color: #fff;
  background: linear-gradient(135deg, var(--game-a), var(--game-b));
  border: 0;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.20);
}

.game-card .btn-game:hover,
.game-card .btn-game:focus {
  color: #fff;
  transform: translateY(-1px);
}

.game-blue { --game-a: #2563eb; --game-b: #06b6d4; }
.game-purple { --game-a: #7c3aed; --game-b: #2563eb; }
.game-green { --game-a: #059669; --game-b: #0891b2; }
.game-orange { --game-a: #ea580c; --game-b: #f59e0b; }
.game-pink { --game-a: #db2777; --game-b: #7c3aed; }
.game-slate { --game-a: #334155; --game-b: #2563eb; }

/* Advertising */
.ad-clean {
  overflow: hidden;
  padding: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.18), transparent 18rem),
    linear-gradient(135deg, rgba(8, 47, 73, 0.96), rgba(37, 99, 235, 0.93) 50%, rgba(5, 150, 105, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  box-shadow: 0 28px 78px rgba(8, 47, 73, 0.22);
}

.ad-clean .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.ad-copy {
  color: rgba(255, 255, 255, 0.84);
}

.ad-mini-card {
  height: 100%;
  padding: 18px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  backdrop-filter: blur(10px);
}

.ad-price {
  font-size: 1.46rem;
  font-weight: 800;
}

.ad-price small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Contact */
.contact-card {
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.09);
}

.contact-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.contact-line i {
  color: var(--primary);
  font-size: 1.22rem;
}

.form-label {
  color: var(--ink);
}

.form-control,
.form-select {
  min-height: 48px;
  padding: 0.76rem 0.92rem;
  color: var(--text);
  background: #fff;
  border-color: rgba(100, 116, 139, 0.28);
  border-radius: 12px;
}

textarea.form-control {
  min-height: 140px;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: rgba(8, 145, 178, 0.52);
  box-shadow: 0 0 0 0.22rem rgba(8, 145, 178, 0.12);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.privacy-consent {
  padding: 12px 12px 12px 2.25rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* Footer and floating contact */
.footer {
  padding: 52px 0 24px;
  color: #dbeafe;
  background: linear-gradient(135deg, #07111f, #082f49 58%, #064e3b);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer h6 {
  color: #fff;
  font-weight: 700;
}

.footer a {
  color: #e0f2fe;
}

.footer a:hover,
.footer a:focus {
  color: #fff;
  text-decoration: underline;
}

.bottom-contact {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 1031;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

#visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #334155;
  font-size: 0.9rem;
}

#visitor-counter b {
  color: var(--primary);
}

/* Legal pages */
.legal-page {
  padding: 124px 0 72px;
}

.legal-card {
  max-width: 900px;
  padding: clamp(24px, 5vw, 48px);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.legal-card h1,
.legal-card h2 {
  color: var(--ink);
}

.legal-card h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

/* Hover is reserved for devices that actually support it. */
@media (hover: hover) and (pointer: fine) {
  .service-card:hover,
  .course-card:hover,
  .portfolio-card:hover,
  .step-card:hover,
  .faq-card:hover,
  .card-clean:hover,
  .game-card:hover {
    border-color: rgba(8, 145, 178, 0.28);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.13);
    transform: translateY(-5px);
  }

  .game-card:hover .game-scene-icon {
    transform: translateY(-4px) rotate(-3deg) scale(1.04);
  }
}

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

@keyframes ai-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes ai-pulse {
  0% { opacity: 0.62; transform: scale(0.88); }
  100% { opacity: 0; transform: scale(1.26); }
}

@media (max-width: 1199.98px) {
  .nav-link {
    padding-inline: 0.56rem !important;
    font-size: 0.9rem;
  }
}

@media (max-width: 991.98px) {
  .navbar-nav {
    align-items: stretch !important;
    padding-top: 12px;
  }

  .navbar .nav-cta {
    width: 100%;
    margin: 0.22rem 0;
  }

  .hero {
    min-height: auto;
    padding: 116px 0 94px;
  }

  .ai-visual {
    top: 54%;
    right: -90px;
    width: 430px;
    opacity: 0.40;
  }

  .hero-mini-card {
    grid-template-columns: 1fr 1fr;
  }

  .quick-panel {
    margin-top: -42px;
  }

  .value-grid,
  .step-line,
  .game-summary {
    grid-template-columns: 1fr;
  }

  .game-summary {
    max-width: 520px;
  }
}

@media (max-width: 575.98px) {
  body {
    padding-bottom: 94px;
  }

  .section {
    padding: 58px 0;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .hero {
    padding: 106px 0 84px;
  }

  .hero h1 {
    font-size: 2.18rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .ai-visual {
    top: 46%;
    right: -145px;
    width: 360px;
    opacity: 0.22;
  }

  .ai-chip,
  .data-stream {
    display: none;
  }

  .hero-mini-card {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: auto;
  }

  .quick-box {
    padding: 18px;
    border-radius: 18px;
  }

  .quick-tags .tag {
    flex: 1 1 calc(50% - 0.55rem);
    justify-content: center;
  }

  .value-strip {
    padding-top: 24px;
  }

  .card-footer-clean {
    flex-direction: column;
    align-items: flex-start;
  }

  .game-card-body {
    padding: 21px;
  }

  .game-scene {
    min-height: 138px;
  }

  .ad-clean {
    padding: 24px;
  }

  .bottom-contact {
    right: 12px;
    left: 12px;
    justify-content: center;
    border-radius: 22px;
    transform: none;
  }

  .bottom-contact .btn {
    flex: 1;
    padding: 0.54rem 0.65rem;
    font-size: 0.88rem;
  }

  #visitor-counter {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .navbar,
  .bottom-contact,
  .hero .ai-visual,
  .quick-panel,
  .footer {
    display: none !important;
  }

  body {
    padding: 0;
    background: #fff;
  }

  .section {
    padding: 24px 0;
  }

  .hero {
    min-height: auto;
    padding: 24px 0;
    color: #000;
    background: #fff;
  }

  .hero h1,
  .hero-lead {
    color: #000;
    text-shadow: none;
  }
}
