:root {
  --bg: #04060f;
  --bg-soft: #0a1022;
  --text: #eef3ff;
  --muted: #a4b1d0;
  --primary: #4f8cff;
  --primary-2: #8a5cff;
  --card: rgba(15, 21, 42, 0.7);
  --border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% 8%, #1a2750 0%, var(--bg) 42%);
  position: relative;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #6f9dff rgba(10, 15, 32, 0.95);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.editor-code,
.editor-code *,
.editor-tabs,
.editor-top {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

*::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

*::-webkit-scrollbar-track {
  background: rgba(10, 15, 32, 0.95);
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4f8cff 0%, #8a5cff 100%);
  border: 2px solid rgba(10, 15, 32, 0.95);
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #69a1ff 0%, #9f76ff 100%);
}

*::-webkit-scrollbar-corner {
  background: rgba(10, 15, 32, 0.95);
}

.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -2;
  opacity: 0.45;
  pointer-events: none;
  animation: blob-float 11s ease-in-out infinite;
  will-change: transform, opacity;
}

.blob-1 {
  width: 320px;
  height: 320px;
  background: #4f8cff;
  left: -120px;
  top: 80px;
}

.blob-2 {
  width: 380px;
  height: 380px;
  background: #8a5cff;
  right: -120px;
  top: 160px;
  animation-delay: -4s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: #2ad6ff;
  right: 18%;
  bottom: -90px;
  animation-delay: -7s;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 80%);
  pointer-events: none;
  z-index: -1;
  animation: grid-drift 26s linear infinite;
  will-change: transform, opacity;
}

.header {
  width: min(1200px, 92%);
  margin: 24px auto 8px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  background: rgba(3, 6, 18, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: header-in 0.85s ease both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.brand-name {
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
  animation: brand-glow 4.5s ease-in-out infinite;
}

.brand:focus-visible {
  outline: 2px solid rgba(79, 140, 255, 0.85);
  outline-offset: 3px;
  border-radius: 12px;
}

.site-nav {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.9;
  font-size: 0.95rem;
  position: relative;
  animation: nav-in 0.75s ease both;
}

.site-nav a:nth-child(1) {
  animation-delay: 0.08s;
}

.site-nav a:nth-child(2) {
  animation-delay: 0.16s;
}

.site-nav a:nth-child(3) {
  animation-delay: 0.24s;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  opacity: 0.85;
}

.site-nav a:hover {
  opacity: 1;
  color: #fff;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

main {
  width: min(1200px, 92%);
  margin: 24px auto 80px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 26px;
  align-items: center;
  margin-bottom: 60px;
}

.hero-text {
  position: relative;
  z-index: 2;
  animation: hero-text-in 1s ease both;
}

.hero-text h1 {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  max-width: min(22ch, 100%);
}

.hero-type-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  animation: fade-up 0.9s ease both;
  animation-delay: 0.12s;
}

.type-cursor {
  display: inline-block;
  font-weight: 700;
  color: #cfe0ff;
  transform: translateY(-1px);
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hero-text p {
  color: var(--muted);
  line-height: 1.65;
  animation: fade-up 0.9s ease both;
  animation-delay: 0.22s;
}

.tag {
  color: #a9c4ff !important;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.82rem;
  font-weight: 600;
  animation: fade-up 0.8s ease both;
}

.hero-buttons {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 11px 18px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 600;
  transition: 0.25s ease;
  position: relative;
  overflow: hidden;
  animation: fade-up 0.85s ease both;
}

.btn-discord,
.btn-instagram {
  gap: 10px;
}

.discord-icon,
.instagram-icon {
  flex: 0 0 auto;
}

.hero-buttons .btn-primary {
  animation-delay: 0.32s;
}

.hero-buttons .btn-ghost {
  animation-delay: 0.4s;
}

.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: -40% auto auto -40%;
  width: 45%;
  height: 220%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  transform: translateX(-120%) rotate(12deg);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-primary:hover::after {
  transform: translateX(220%) rotate(12deg);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.hero-canvas-wrap {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(8, 12, 24, 0.92);
  min-height: 520px;
  position: relative;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  animation: hero-panel-in 1.05s ease both, panel-glow 6s ease-in-out infinite;
  animation-delay: 0s, 0.4s;
  will-change: transform, box-shadow;
}

#hero3d {
  width: 100%;
  height: 420px;
  display: none;
}

.hero-mini-stats {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  padding: 10px 12px;
  min-width: 110px;
  animation: fade-up 0.85s ease both;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.hero-mini-stats .stat:nth-child(1) {
  animation-delay: 0.46s;
}

.hero-mini-stats .stat:nth-child(2) {
  animation-delay: 0.54s;
}

.hero-mini-stats .stat:nth-child(3) {
  animation-delay: 0.62s;
}

.stat:hover {
  transform: translateY(-3px);
  border-color: rgba(111, 157, 255, 0.55);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.stat strong {
  display: block;
  font-size: 0.95rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.8rem;
}

.floating-panel {
  position: absolute;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 14, 36, 0.62);
  backdrop-filter: blur(10px);
  padding: 10px 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.floating-panel span {
  display: block;
  color: #a8b8de;
  font-size: 0.75rem;
}

.floating-panel strong {
  font-size: 0.9rem;
}

.panel-a {
  left: 16px;
  bottom: 16px;
  animation: panel-float 4.6s ease-in-out infinite;
  display: none;
}

.panel-b {
  right: 16px;
  top: 16px;
  animation: panel-float 5.4s ease-in-out infinite;
  animation-delay: -1.4s;
  display: none;
}

.code-editor {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: min(97%, 1080px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(15, 20, 36, 0.9);
  backdrop-filter: blur(8px);
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
  z-index: 4;
}

.editor-top {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #1c2338;
}

.editor-dots {
  display: flex;
  gap: 5px;
}

.editor-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.editor-dots span:nth-child(1) {
  background: #ff5f56;
}

.editor-dots span:nth-child(2) {
  background: #ffbd2e;
}

.editor-dots span:nth-child(3) {
  background: #27c93f;
}

.editor-top p {
  color: #c8d2f0;
  font-size: 0.78rem;
}

.editor-tabs {
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  background: #151b2d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-tabs span {
  font-size: 0.72rem;
  color: #95a7d7;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.editor-tabs span.active {
  color: #e7eeff;
  background: rgba(79, 140, 255, 0.25);
}

.editor-code {
  margin: 0;
  padding: 12px 14px;
  height: 420px;
  overflow: auto;
  white-space: normal;
  font-family: Consolas, "Cascadia Code", "Courier New", monospace;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #d4d4d4;
  background: #1e1e1e;
  scrollbar-width: thin;
  scrollbar-color: #4b4b4b #1e1e1e;
}

.editor-code::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.editor-code::-webkit-scrollbar-track {
  background: #1e1e1e;
  border-radius: 8px;
}

.editor-code::-webkit-scrollbar-thumb {
  background: #4b4b4b;
  border: 2px solid #1e1e1e;
  border-radius: 8px;
}

.editor-code::-webkit-scrollbar-thumb:hover {
  background: #5f5f5f;
}

.code-line {
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 12px;
  white-space: pre;
}

.line-no {
  color: #858585;
  user-select: none;
  text-align: right;
}

.line-code {
  color: #d4d4d4;
}

.tok-keyword {
  color: #c586c0;
}

.tok-string {
  color: #ce9178;
}

.tok-number {
  color: #b5cea8;
}

.tok-comment {
  color: #6a9955;
}

.tok-builtin {
  color: #4ec9b0;
}

.tok-call {
  color: #4ec9b0;
}

.tok-field {
  color: #d4d4d4;
}

.tok-var {
  color: #d4d4d4;
}

.tok-punc {
  color: #d4d4d4;
}

.section {
  margin-top: 58px;
  opacity: 0;
  transform: translateY(18px);
  animation: section-reveal 0.95s ease forwards;
}

.section:nth-of-type(2) {
  animation-delay: 0.12s;
}

.section:nth-of-type(3) {
  animation-delay: 0.22s;
}

.section:nth-of-type(4) {
  animation-delay: 0.32s;
}

.section h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 64px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transform-origin: left;
  animation: underline-grow 0.85s ease both;
  animation-delay: 0.35s;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.35s ease;
  opacity: 0;
  transform: translateY(16px);
  animation: card-rise 0.85s ease forwards;
}

.card:nth-child(1) {
  animation-delay: 0.12s;
}

.card:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(3) {
  animation-delay: 0.28s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(111, 157, 255, 0.75);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.card p {
  color: var(--muted);
  line-height: 1.6;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.lang-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 12px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  text-align: center;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  animation: lang-pop 0.85s ease forwards;
  position: relative;
  overflow: hidden;
}

.lang-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.55), rgba(138, 92, 255, 0.35));
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
}

.lang-card > * {
  position: relative;
  z-index: 1;
}

.lang-card:nth-child(1) {
  animation-delay: 0.05s;
  border-color: rgba(247, 223, 30, 0.35);
  box-shadow: 0 14px 30px rgba(247, 223, 30, 0.12);
}

.lang-card:nth-child(1)::before {
  background: linear-gradient(135deg, rgba(247, 223, 30, 0.75), rgba(79, 140, 255, 0.35));
}

.lang-card:nth-child(2) {
  animation-delay: 0.1s;
  border-color: rgba(42, 214, 255, 0.28);
  box-shadow: 0 14px 30px rgba(42, 214, 255, 0.12);
}

.lang-card:nth-child(2)::before {
  background: linear-gradient(135deg, rgba(42, 214, 255, 0.65), rgba(138, 92, 255, 0.35));
}

.lang-card:nth-child(3) {
  animation-delay: 0.15s;
  border-color: rgba(86, 179, 92, 0.35);
  box-shadow: 0 14px 30px rgba(86, 179, 92, 0.12);
}

.lang-card:nth-child(3)::before {
  background: linear-gradient(135deg, rgba(86, 179, 92, 0.7), rgba(42, 214, 255, 0.25));
}

.lang-card:nth-child(4) {
  animation-delay: 0.2s;
  border-color: rgba(79, 140, 255, 0.35);
  box-shadow: 0 14px 30px rgba(79, 140, 255, 0.12);
}

.lang-card:nth-child(4)::before {
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.75), rgba(138, 92, 255, 0.35));
}

.lang-card:nth-child(5) {
  animation-delay: 0.25s;
  border-color: rgba(138, 92, 255, 0.35);
  box-shadow: 0 14px 30px rgba(138, 92, 255, 0.12);
}

.lang-card:nth-child(5)::before {
  background: linear-gradient(135deg, rgba(138, 92, 255, 0.75), rgba(79, 140, 255, 0.3));
}

.lang-card:nth-child(6) {
  animation-delay: 0.3s;
  border-color: rgba(86, 205, 113, 0.3);
  box-shadow: 0 14px 30px rgba(86, 205, 113, 0.12);
}

.lang-card:nth-child(6)::before {
  background: linear-gradient(135deg, rgba(86, 205, 113, 0.65), rgba(79, 140, 255, 0.3));
}

.lang-card:hover {
  transform: translateY(-6px);
  border-color: rgba(111, 157, 255, 0.75);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.lang-card:hover::before {
  opacity: 0.35;
}

.lang-card img {
  width: 52px;
  height: 52px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 16px rgba(79, 140, 255, 0.2));
  animation: icon-float 3.5s ease-in-out infinite;
}

.lang-card h3 {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 600;
}

@keyframes icon-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-7px) rotate(2deg);
  }
}

@keyframes panel-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes blob-float {
  0%,
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 0.42;
  }
  50% {
    transform: translateY(-22px) scale(1.08) rotate(6deg);
    opacity: 0.55;
  }
}

@keyframes grid-drift {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.55;
  }
  50% {
    transform: translate3d(-18px, -10px, 0);
    opacity: 0.7;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.55;
  }
}

@keyframes header-in {
  0% {
    opacity: 0;
    transform: translateY(-14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nav-in {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 0.9;
    transform: translateY(0);
  }
}

@keyframes brand-glow {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(79, 140, 255, 0);
  }
  50% {
    text-shadow: 0 0 18px rgba(79, 140, 255, 0.45);
  }
}

@keyframes hero-text-in {
  0% {
    opacity: 0;
    transform: translateX(-14px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-panel-in {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes panel-glow {
  0%,
  100% {
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), 0 0 0 rgba(79, 140, 255, 0);
  }
  50% {
    box-shadow: 0 28px 86px rgba(0, 0, 0, 0.55), 0 0 42px rgba(79, 140, 255, 0.22);
  }
}

@keyframes section-reveal {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes underline-grow {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

@keyframes card-rise {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lang-pop {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.contact {
  border: 1px solid var(--border);
  background: rgba(4, 10, 28, 0.7);
  border-radius: 16px;
  padding: 24px;
  animation: section-reveal 0.9s ease both;
  animation-delay: 0.08s;
}

.contact p {
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

.site-footer {
  width: min(1200px, 92%);
  margin: 48px auto 28px;
  padding: 26px 22px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(6, 10, 24, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1.1fr;
  gap: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 1.05rem;
  background: linear-gradient(120deg, #eaf0ff, #9fb7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-tagline {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 46ch;
  font-size: 0.92rem;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c8d6ff;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #dbe6ff;
  text-decoration: none;
  font-size: 0.92rem;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
  transform: translateX(2px);
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #eef3ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-social-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 157, 255, 0.55);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.footer-bottom {
  padding-top: 14px;
  display: grid;
  gap: 8px;
  text-align: center;
}

.footer-copy {
  color: #dbe6ff;
  font-size: 0.9rem;
}

.footer-note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
  max-width: 72ch;
  margin: 0 auto;
}

.footer-security-note {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
  max-width: 52rem;
  margin: 4px auto 0;
  opacity: 0.82;
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

@media (max-width: 980px) {
  .header {
    width: min(1200px, 94%);
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .lang-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .floating-panel {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-social {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-social-btn {
    flex: 1 1 220px;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding: 22px 16px 16px;
  }

  .header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
    margin: 12px auto 8px;
    width: min(1200px, 96%);
  }

  .brand {
    min-height: 44px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .site-nav {
    justify-content: center;
    gap: 6px 12px;
    row-gap: 4px;
  }

  .site-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    font-size: 0.9rem;
  }

  .lang-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .code-editor {
    width: calc(100% - 20px);
    top: 10px;
  }

  .editor-code {
    height: 330px;
    font-size: 0.76rem;
  }
}

@media (max-width: 420px) {
  .site-nav a {
    font-size: 0.84rem;
    padding: 0 6px;
  }

  .brand-name {
    font-size: 0.92rem;
    letter-spacing: 0.05em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .section,
  .card,
  .lang-card,
  .contact {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-text,
  .hero-text h1,
  .hero-type-wrap,
  .hero-text p,
  .tag,
  .btn,
  .stat,
  .hero-canvas-wrap {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .lang-card img {
    animation: none !important;
  }

  .type-cursor {
    animation: none !important;
    opacity: 0 !important;
  }
}
