@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&family=Syne:wght@700;800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  color-scheme: dark;
  --ink: #f1f5f3;
  --muted: #80968a;
  --paper: #0b0f0d;
  --surface: rgba(18, 26, 22, 0.65);
  --line: rgba(255, 255, 255, 0.08);
  --green: #3ad371;
  --blue: #4fa0ea;
  --amber: #b46d20;
  --coral: #c84f3a;
  --mint: rgba(58, 211, 113, 0.12);
  --sky: rgba(79, 160, 234, 0.12);
  --sun: rgba(180, 109, 32, 0.12);
  --rose: rgba(200, 79, 58, 0.12);

  /* Awwwards Premium Dark Theme variables */
  --aw-bg: #0b0f0d;
  --aw-ink: #f1f5f3;
  --aw-muted: #80968a;
  --aw-green: #3ad371;
  --aw-green-glow: rgba(58, 211, 113, 0.12);
  --aw-surface: rgba(18, 26, 22, 0.65);
  --aw-surface-hover: rgba(28, 40, 34, 0.85);
  --aw-border: rgba(255, 255, 255, 0.07);
  --aw-border-hover: rgba(58, 211, 113, 0.3);
  
  font-family: "Plus Jakarta Sans", "Pretendard", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -48px;
  z-index: 10;
  background: var(--green);
  color: #0b0f0d;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  color: #a0b2a7;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(58, 211, 113, 0.12);
  color: var(--green);
}

.hero,
.section-hero,
.content-band,
.cta-band {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 112px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 42px;
  align-items: center;
  padding: 46px 0 36px;
}

.hero-copy {
  padding: 18px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 6.5vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 40%, #a4cfb7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  margin: 0;
  font-size: clamp(26px, 4.5vw, 36px);
  line-height: 1.16;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
}

h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #b0c2b7;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
}

.summary {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 20px;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}

.button.primary {
  background: var(--green);
  color: #0b0f0d;
  box-shadow: 0 10px 30px rgba(58, 211, 113, 0.2);
}

.button.primary:hover {
  background: #f1f5f3;
  box-shadow: 0 10px 30px rgba(241, 245, 243, 0.15);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--green);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.tag-list li {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 14px;
  color: #a0b2a7;
  font-size: 12px;
  font-weight: 650;
}

.hero-visual {
  margin: 0;
  position: relative;
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.section-hero {
  padding: 80px 0 40px;
  border-bottom: 0;
  position: relative;
  overflow: hidden;
}

.section-hero h1 {
  font-size: clamp(32px, 5.5vw, 56px);
  margin-bottom: 16px;
}

.content-band {
  padding: 60px 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  border-bottom: 0;
  padding-bottom: 16px;
  position: relative;
}

.section-title h2 {
  color: #ffffff;
}

.section-hero::after,
.section-title::after,
.post-hero::after,
.post-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0,
    var(--line) var(--edge-line-fade),
    var(--line) calc(100% - var(--edge-line-fade)),
    transparent 100%
  );
}

.section-hero::after,
.section-title::after,
.post-hero::after {
  bottom: 0;
}

.post-footer::before {
  top: 0;
}

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

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.home-panel {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-panel:first-child {
  grid-column: 1 / -1;
}

.home-panel h3 {
  margin-bottom: 12px;
  font-size: 25px;
}

.home-panel h3 a {
  text-decoration: none;
}

.home-panel p {
  margin: 0;
  color: #b0c2b7;
  line-height: 1.75;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0 14px;
  color: #a0b2a7;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.3s;
}

.inline-links a:hover {
  background: rgba(58, 211, 113, 0.12);
  color: var(--green);
  border-color: var(--green);
}

.route-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 24px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.route-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 12px 30px rgba(58, 211, 113, 0.06);
}

.route-card:nth-child(3n + 1) {
  background: linear-gradient(180deg, rgba(18, 26, 22, 0.7), rgba(58, 211, 113, 0.05));
}

.route-card:nth-child(3n + 2) {
  background: linear-gradient(180deg, rgba(18, 26, 22, 0.7), rgba(79, 160, 234, 0.05));
}

.route-card:nth-child(3n) {
  background: linear-gradient(180deg, rgba(18, 26, 22, 0.7), rgba(180, 109, 32, 0.05));
}

.route-card span {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.route-card strong {
  font-size: 24px;
  color: #ffffff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
}

.route-card p {
  margin: 0;
  color: #b0c2b7;
  line-height: 1.65;
}

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

.post-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.post-card:hover {
  background: var(--aw-surface-hover);
  border-color: var(--green);
  transform: translateX(6px);
}

.post-card-main {
  min-width: 0;
}

.post-card-meta,
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.post-card-meta a,
.post-category {
  color: var(--green);
  text-decoration: none;
}

.post-card h3 {
  margin: 10px 0;
  font-size: 23px;
}

.post-card h3 a {
  text-decoration: none;
  color: #ffffff;
  transition: color 0.2s;
}

.post-card h3 a:hover {
  color: var(--green);
}

.post-card p {
  max-width: 760px;
  margin: 0;
  color: #b0c2b7;
  line-height: 1.7;
}

.inline-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.inline-tag-list li {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  color: #a0b2a7;
  font-size: 11px;
  font-weight: 700;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.post-page {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 56px;
}

.post-hero {
  border-bottom: 0;
  padding-bottom: 40px;
  position: relative;
}

.post-category {
  display: inline-flex;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.post-page h1 {
  font-size: clamp(32px, 5.5vw, 56px);
  line-height: 1.08;
  margin: 0;
}

.post-meta {
  margin-top: 24px;
}

.post-content {
  padding-top: 40px;
  font-size: 17px;
  line-height: 1.85;
  color: #ccdcd2;
}

.post-content h2 {
  margin-top: 48px;
  margin-bottom: 20px;
  font-size: 26px;
  border-left: 4px solid var(--green);
  padding-left: 12px;
  color: #ffffff;
}

.post-content p,
.post-content ul {
  margin: 0 0 24px;
}

.post-content ul {
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content li + li {
  margin-top: 8px;
}

.post-footer {
  border-top: 0;
  margin-top: 56px;
  padding-top: 32px;
  position: relative;
}

.article-layout,
.split-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.44fr) minmax(0, 1fr);
  gap: 28px;
}

.article-layout aside {
  border-top: 3px solid var(--green);
  padding-top: 24px;
}

.article-layout aside p,
.split-band p,
.text-panel p,
.cta-band p {
  color: var(--muted);
  line-height: 1.75;
}

.article-stack {
  display: grid;
  gap: 12px;
}

..text-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.split-band {
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.split-band p {
  margin: 0;
  font-size: 18px;
  color: #ccdcd2;
}

.cta-band {
  margin-top: 20px;
  margin-bottom: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #121a16 0%, #080d0b 100%);
  border: 1px solid rgba(58, 211, 113, 0.15);
  color: white;
  padding: 40px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.cta-band p {
  max-width: 760px;
  color: #ccdcd2;
  font-size: 15px;
}

.cta-band .button.primary {
  margin-top: 16px;
  background: var(--green);
  color: #0b0f0d;
}

.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 0;
  color: var(--muted);
  font-size: 14px;
  position: relative;
  z-index: 2;
}

.site-footer a {
  font-weight: 700;
  text-decoration: none;
  color: var(--green);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #ffffff;
}

@media (max-width: 860px) {
  .header-inner {
    min-height: auto;
    align-items: center;
    flex-direction: column;
    padding: 16px 0;
    gap: 16px;
  }

  .nav {
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .nav a {
    font-size: 13px;
    padding: 0 10px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 38px;
    gap: 32px;
  }

  .hero-visual {
    order: -1;
  }

  .card-grid,
  .home-grid,
  .article-layout,
  .split-band {
    grid-template-columns: 1fr;
  }

  .home-panel:first-child {
    grid-column: auto;
  }

  .route-card {
    min-height: 168px;
  }

  .post-card {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero,
  .section-hero,
  .content-band,
  .cta-band,
  .site-footer {
    width: min(100% - 24px, 1160px);
  }

  .nav a {
    padding: 0 9px;
  }

  .lead {
    font-size: 17px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 0;
  }
}

/* ==========================================================================
   Awwwards Premium Dynamic Styling
   ========================================================================== */

/* Noise texture overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  content: "";
  opacity: 0.022;
  z-index: 9999;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom interactive cursor */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  background: rgba(58, 211, 113, 0.25);
  border: 1.5px solid var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0f0d;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#custom-cursor.hovered {
  width: 56px;
  height: 56px;
  background: rgba(58, 211, 113, 0.95);
  border-color: transparent;
}

#custom-cursor.cursor-btn {
  width: 44px;
  height: 44px;
  background: rgba(241, 251, 245, 0.95);
  border-color: transparent;
}

#custom-cursor.has-text::after {
  content: attr(data-text);
  opacity: 1;
}

/* Base style overrides for Dark Theme */
body {
  background-color: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

.site-header {
  background: rgba(11, 15, 13, 0.85);
  border-bottom: 1px solid var(--line);
}

.nav a {
  color: #a0b2a7;
  transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(58, 211, 113, 0.12);
  color: var(--green);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  grid-template-columns: 1.1fr 0.9fr;
  padding: 80px 0;
  gap: 40px;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: all;
}

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

h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #a4cfb7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 0.92;
  margin-bottom: 20px;
}

.eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--green);
  letter-spacing: 0.18em;
  font-size: 11px;
}

.lead {
  color: #b0c2b7;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.6;
  margin-top: 16px;
  max-width: 600px;
}

/* Button & Magnet Styles */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 700;
  overflow: hidden;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.button.primary {
  background: var(--green);
  color: #0b0f0d;
  box-shadow: 0 10px 30px rgba(58, 211, 113, 0.2);
}

.button.primary:hover {
  background: #f1f5f3;
  box-shadow: 0 10px 30px rgba(241, 245, 243, 0.15);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--green);
}

/* Marquee Scroll Ticker */
.marquee-container {
  grid-column: 1 / -1;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background: rgba(58, 211, 113, 0.04);
  border-top: 1px solid rgba(58, 211, 113, 0.08);
  border-bottom: 1px solid rgba(58, 211, 113, 0.08);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
  margin-top: 40px;
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
}

.marquee-content span {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
}

.marquee-content span::after {
  content: "•";
  margin-left: 40px;
  color: var(--green);
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Interactive Card Widget Column */
.hero-visual-aw {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Bento Grid System for Sections */
.home-index {
  padding: 100px 0;
}

.section-title h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: #ffffff;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto auto auto;
  gap: 20px;
  margin-top: 40px;
}

.bento-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  min-height: 250px;
  backdrop-filter: blur(16px);
}

.bento-card:hover {
  transform: translateY(-5px);
  background: rgba(28, 40, 34, 0.85);
  border-color: rgba(58, 211, 113, 0.3);
  box-shadow: 0 16px 40px rgba(58, 211, 113, 0.06);
}

/* Card Sizes */
.bento-size-4 { grid-column: span 4; }
.bento-size-2 { grid-column: span 2; }
.bento-size-3 { grid-column: span 3; }
.bento-size-6 { grid-column: span 6; }

.bento-card .eyebrow {
  margin-bottom: 8px;
}

.bento-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}

.bento-card h3 a {
  text-decoration: none;
  color: #ffffff;
}

.bento-card h3 a:hover {
  color: var(--green);
}

.bento-card p {
  color: #b0c2b7;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.bento-card-visual {
  margin-top: 24px;
  position: relative;
  min-height: 80px;
}

/* Heatmap Simulated Visual */
.heatmap-visual {
  display: grid;
  grid-template-columns: repeat(22, 1fr);
  gap: 4px;
  width: 100%;
}

.heatmap-cell {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  transition: background-color 0.3s;
}

.heatmap-cell.active-1 { background: rgba(58, 211, 113, 0.2); }
.heatmap-cell.active-2 { background: rgba(58, 211, 113, 0.55); }
.heatmap-cell.active-3 { background: rgba(58, 211, 113, 0.95); }

.bento-card:hover .heatmap-cell {
  filter: brightness(1.2);
}

/* Interactive Forgetting Curve canvas inside bento */
#curve-canvas {
  width: 100%;
  height: 130px;
  display: block;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Pulse Visual for My App */
.app-visual-mock {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
}

.pulse-ring {
  position: absolute;
  width: 70px;
  height: 70px;
  border: 1px solid var(--green);
  border-radius: 50%;
  animation: pulse 2.5s infinite ease-out;
}

.pulse-ring:nth-child(2) {
  animation-delay: 0.8s;
}

.app-icon-center {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #0b0f0d;
  font-size: 20px;
  z-index: 2;
  box-shadow: 0 0 20px rgba(58, 211, 113, 0.5);
}

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Link bubbles in bento */
.bento-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.bento-links a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: #a0b2a7;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s;
}

.bento-links a:hover {
  background: rgba(58, 211, 113, 0.12);
  color: var(--green);
  border-color: var(--green);
}

/* Recent Posts Timeline Styling */
.post-list-band {
  --post-band-fade: clamp(32px, 6vw, 96px);
  --post-band-bg: rgba(11, 15, 13, 0.9);
  --post-line-fade: clamp(28px, 5vw, 80px);
  background: transparent;
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.post-list-band::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0,
    var(--post-band-bg) var(--post-band-fade),
    var(--post-band-bg) calc(100% - var(--post-band-fade)),
    transparent 100%
  );
}

.post-list-band > * {
  position: relative;
  z-index: 1;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s;
}

.post-card:hover {
  background: rgba(28, 40, 34, 0.85);
  border-color: var(--green);
  transform: translateX(6px);
}

.post-card h3 a {
  color: #ffffff;
}

.post-card h3 a:hover {
  color: var(--green);
}

.post-card p {
  color: #b0c2b7;
}

.inline-tag-list li {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #a0b2a7;
}

.site-footer {
  --footer-bg: rgba(11, 15, 13, 0.9);
  --footer-bottom-fade: clamp(72px, 10vw, 144px);
  background: transparent;
  margin-bottom: var(--footer-bottom-fade);
  overflow: visible;
}

.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  inset-inline: calc(50% - 50vw);
  pointer-events: none;
  z-index: 0;
}

.site-footer::before {
  top: 0;
  bottom: calc(-1 * var(--footer-bottom-fade));
  background: linear-gradient(
    90deg,
    transparent 0,
    var(--footer-bg) var(--edge-fade),
    var(--footer-bg) calc(100% - var(--edge-fade)),
    transparent 100%
  );
  mask-image: linear-gradient(to bottom, #000 0, #000 42%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 42%, transparent 100%);
}

.site-footer::after {
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0,
    var(--line) var(--edge-line-fade),
    var(--line) calc(100% - var(--edge-line-fade)),
    transparent 100%
  );
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

/* Interactive Card Simulator Widget */
.widget-card-container {
  perspective: 1000px;
  width: 320px;
  height: 250px;
  cursor: pointer;
  position: relative;
}

.widget-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.widget-card.is-flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-face.front {
  background: linear-gradient(135deg, #16221c 0%, #0c120f 100%);
  border-left: 4px solid var(--green);
}

.card-face.back {
  background: linear-gradient(135deg, #0c120f 0%, #16221c 100%);
  transform: rotateY(180deg);
  border-right: 4px solid var(--green);
}

.card-face h4 {
  margin: 0;
  font-size: 11px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
}

.card-face p.question {
  font-size: 19px;
  line-height: 1.5;
  color: #ffffff;
  font-weight: 600;
  margin: 12px 0 0 0;
  flex-grow: 1;
}

.card-face p.answer {
  font-size: 18px;
  line-height: 1.5;
  color: #a4cfb7;
  font-weight: 500;
  margin: 12px 0 0 0;
  flex-grow: 1;
}

.card-footer-tip {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

.widget-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#btn-show-answer {
  width: 100%;
  margin-top: 12px;
}

#eval-controls {
  display: none;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
}

#eval-controls button {
  flex: 1;
  padding: 10px 0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #19241f;
  color: #ffffff;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

#eval-controls button span {
  font-size: 9px;
  opacity: 0.6;
}

#eval-controls button:hover {
  transform: translateY(-2px);
}

#eval-controls button.btn-again:hover {
  background: #c84f3a;
  border-color: transparent;
  color: white;
}

#eval-controls button.btn-hard:hover {
  background: #b46d20;
  border-color: transparent;
  color: white;
}

#eval-controls button.btn-good:hover {
  background: #2f6f4e;
  border-color: transparent;
  color: white;
}

#eval-controls button.btn-easy:hover {
  background: #245d8f;
  border-color: transparent;
  color: white;
}

#scheduler-info {
  font-size: 11px;
  color: var(--muted);
}

#scheduler-info .badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

#scheduler-info .badge.new { background: rgba(58, 211, 113, 0.12); color: var(--green); }
#scheduler-info .badge.learning { background: rgba(200, 79, 58, 0.12); color: var(--coral); }
#scheduler-info .badge.review { background: rgba(36, 93, 143, 0.12); color: #4fa0ea; }

/* Fly Interval Overlay Label */
.fly-interval-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  background: var(--green);
  color: #0b0f0d;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(58, 211, 113, 0.6);
  pointer-events: none;
  font-size: 16px;
  opacity: 0;
  z-index: 10;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fly-interval-label.fly {
  animation: flyUp 0.8s ease forwards;
}

@keyframes flyUp {
  0% { transform: translate(-50%, -20%) scale(0.6); opacity: 0; }
  30% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  100% { transform: translate(-50%, -100%) scale(1); opacity: 0; }
}

/* Confetti sparkles */
.confetti-spark {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99;
}

/* ==========================================================================
   Scroll Entrance Reveal Animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translate3d(0, 35px, 0) rotateX(4deg);
  transition: opacity 0.85s cubic-bezier(0.215, 0.61, 0.355, 1),
              transform 0.85s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: transform, opacity;
}

.reveal-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0deg);
}

/* Stagger adjustments in grids */
.bento-card:nth-child(1) { transition-delay: 50ms; }
.bento-card:nth-child(2) { transition-delay: 150ms; }
.bento-card:nth-child(3) { transition-delay: 250ms; }
.bento-card:nth-child(4) { transition-delay: 350ms; }
.bento-card:nth-child(5) { transition-delay: 450ms; }

/* Responsive adjustments for Bento Grid */
@media (max-width: 960px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-size-4, .bento-size-2, .bento-size-3, .bento-size-6 {
    grid-column: span 1;
  }
  
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
    min-height: auto;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual-aw {
    margin-top: 40px;
  }
}

/* ==========================================================================
   Stable visual atmosphere
   ========================================================================== */
:root {
  --ink: #f5f7f2;
  --muted: #9caf9f;
  --paper: #07100c;
  --surface: rgba(14, 27, 21, 0.72);
  --surface-strong: rgba(15, 30, 23, 0.88);
  --line: rgba(218, 242, 226, 0.12);
  --edge-fade: clamp(32px, 6vw, 96px);
  --edge-line-fade: clamp(28px, 5vw, 80px);
  --green: #3ade78;
  --green-soft: rgba(58, 222, 120, 0.14);
  --green-line: rgba(58, 222, 120, 0.42);
  --amber: #b46d20;
  --amber-soft: rgba(180, 109, 32, 0.2);
  --glow: 0 20px 80px rgba(58, 222, 120, 0.18);
  --font-sans: "Plus Jakarta Sans", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
}

html {
  background: var(--paper);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 14%, rgba(180, 109, 32, 0.1), transparent 22vw),
    radial-gradient(circle at 10% 72%, rgba(58, 222, 120, 0.12), transparent 28vw),
    linear-gradient(180deg, #09110e 0%, #060c09 54%, #09150f 100%);
  color: var(--ink);
  font-family: var(--font-sans);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(218, 242, 226, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(218, 242, 226, 0.018) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 82%);
}

body > * {
  position: relative;
}

.noise-overlay {
  opacity: 0.04;
  mix-blend-mode: screen;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(6, 13, 10, 0.78);
  box-shadow: 0 1px 0 rgba(58, 222, 120, 0.04);
}

.header-inner {
  width: min(100% - 48px, 1890px);
  min-height: 72px;
  justify-content: center;
}

.nav {
  gap: clamp(8px, 1.5vw, 22px);
  justify-content: center;
}

.nav a {
  min-height: 58px;
  border-radius: 8px;
  padding: 0 clamp(14px, 1.2vw, 22px);
  color: rgba(218, 230, 220, 0.72);
  font-size: clamp(15px, 1.05vw, 23px);
  font-weight: 800;
}

.nav a:hover,
.nav a.active {
  background: rgba(58, 222, 120, 0.12);
  color: var(--green);
}

.nav {
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: keep-all;
}

h1 {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.hero {
  width: 100%;
  min-height: calc(100svh - 72px);
  margin: 0;
  padding: clamp(56px, 8vh, 120px) clamp(24px, 3.75vw, 76px) 0;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(40px, 10vw, 164px);
  align-items: center;
  overflow: hidden;
}

.home-hero {
  grid-template-columns: 1fr;
  align-content: center;
}

.home-hero .hero-copy {
  max-width: 1120px;
}

.home-hero .lead {
  max-width: 840px;
}

#hero-canvas {
  inset: 0;
  opacity: 0.95;
}

.hero-copy {
  max-width: 980px;
  padding: 0;
}

.hero .eyebrow {
  margin-bottom: clamp(16px, 2vh, 24px);
  color: var(--green);
  font-size: clamp(12px, 0.95vw, 20px);
  letter-spacing: 0.18em;
}

.hero h1 {
  max-width: 980px;
  margin-bottom: clamp(22px, 3vh, 38px);
  font-size: clamp(56px, 6.4vw, 126px);
  line-height: 0.98;
}

.hero .lead {
  max-width: 1020px;
  color: #c4d1c9;
  font-size: clamp(20px, 2.05vw, 39px);
  line-height: 1.48;
  white-space: pre-line;
}

.hero-actions {
  gap: 16px;
  margin-top: clamp(34px, 5vh, 60px);
}

.hero .button {
  min-height: clamp(54px, 4.7vw, 72px);
  border-radius: 10px;
  padding: 0 clamp(22px, 2vw, 34px);
  font-size: clamp(14px, 1vw, 21px);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.button.primary {
  background: linear-gradient(135deg, #43e57d 0%, #34d873 100%);
  box-shadow: 0 22px 70px rgba(58, 222, 120, 0.22);
}

.button.secondary {
  border-color: rgba(218, 242, 226, 0.14);
  background: rgba(8, 16, 12, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-visual-aw {
  width: min(100%, 520px);
  justify-self: center;
}

.section-hero-with-widget {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(32px, 7vw, 112px);
  align-items: center;
}

.section-hero-copy {
  min-width: 0;
}

.section-hero-widget {
  width: min(100%, 520px);
}

.widget-wrapper,
#btn-show-answer,
#eval-controls,
#scheduler-info {
  width: 100%;
}

.widget-card-container {
  width: 100%;
  height: auto;
  aspect-ratio: 1.28;
}

.card-face {
  border-radius: 22px;
  padding: clamp(28px, 2.4vw, 48px);
  background: linear-gradient(135deg, rgba(18, 35, 27, 0.86), rgba(8, 16, 12, 0.9));
  border-color: rgba(218, 242, 226, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 28px 80px rgba(0, 0, 0, 0.44);
}

.card-face.front {
  border-left: 5px solid var(--green);
}

.card-face h4 {
  color: var(--green);
  font-size: clamp(12px, 1vw, 20px);
  letter-spacing: 0.16em;
}

.card-face p.question,
.card-face p.answer {
  color: #ffffff;
  font-size: clamp(20px, 1.6vw, 32px);
  line-height: 1.5;
  font-weight: 800;
}

.card-face p.answer {
  color: #c9ded1;
}

.card-footer-tip,
#scheduler-info {
  color: rgba(196, 209, 201, 0.62);
}

#btn-show-answer {
  min-height: clamp(54px, 4.7vw, 72px);
}

.marquee-container {
  border-color: rgba(58, 222, 120, 0.14);
  background: rgba(11, 31, 20, 0.72);
}

.marquee-content span::after {
  content: "";
  width: 18px;
  height: 18px;
  margin-left: 40px;
  border-radius: 2px;
  background: var(--green);
  box-shadow: 0 0 32px rgba(58, 222, 120, 0.4);
}

.section-hero,
.content-band,
.cta-band {
  position: relative;
}

.route-card,
.post-card,
.text-panel,
.bento-card,
.empty-state {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.text-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bento-card:hover,
.route-card:hover,
.post-card:hover {
  background: var(--surface-strong);
  border-color: var(--green-line);
}

.index-list {
  border-top: 0;
  position: relative;
}

.index-list-item {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  border-bottom: 0;
  padding: 22px 0;
  color: inherit;
  text-decoration: none;
}

.index-list::before,
.index-list-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0,
    var(--line) var(--edge-line-fade),
    var(--line) calc(100% - var(--edge-line-fade)),
    transparent 100%
  );
}

.index-list::before {
  top: 0;
}

.index-list-item::after {
  bottom: 0;
}

.index-list-item span {
  color: var(--green);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.index-list-item strong {
  display: block;
  color: #ffffff;
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.2;
}

.index-list-item p {
  max-width: 820px;
  margin: 8px 0 0;
  color: #b0c2b7;
  line-height: 1.7;
}

.index-list-item:hover strong {
  color: var(--green);
}

.post-list-plain {
  border-top: 0;
  position: relative;
}

.post-list-band .section-title {
  border-bottom: 0;
  position: relative;
}

.post-list-band .section-title::after,
.post-list-plain::before,
.post-list-plain .post-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0,
    var(--line) var(--post-line-fade),
    var(--line) calc(100% - var(--post-line-fade)),
    transparent 100%
  );
}

.post-list-band .section-title::after {
  bottom: 0;
}

.post-list-plain::before {
  top: 0;
}

.post-list-plain .post-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 24px 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.post-list-plain .post-card:hover {
  background: transparent;
  border-color: var(--line);
  transform: none;
}

.post-list-plain .post-card::after {
  bottom: 0;
}

.post-list-plain .post-card h3 {
  margin: 10px 0 8px;
}

.notice-list-band {
  padding-top: clamp(48px, 7vw, 72px);
  padding-bottom: clamp(48px, 7vw, 72px);
}

.heatmap-cell.active-1 { background: rgba(58, 222, 120, 0.22); }
.heatmap-cell.active-2 { background: rgba(58, 222, 120, 0.58); }
.heatmap-cell.active-3 { background: rgba(58, 222, 120, 0.95); }

.reveal {
  opacity: 1;
  transform: none;
}

.js-ready .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}

.js-ready .reveal-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 960px) {
  .header-inner {
    width: min(100% - 32px, 1890px);
    align-items: center;
    gap: 14px;
  }

  .nav {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav a {
    min-height: 44px;
    flex: 0 0 auto;
    font-size: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: clamp(44px, 8vh, 72px) 24px 0;
    gap: 34px;
    text-align: left;
  }

  .hero-copy {
    align-items: flex-start;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 82px);
  }

  .hero .lead {
    margin-left: 0;
    margin-right: 0;
    font-size: clamp(18px, 5vw, 28px);
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-visual-aw {
    width: min(100%, 520px);
    justify-self: start;
    margin-top: 0;
  }

  .section-hero-with-widget {
    grid-template-columns: 1fr;
  }

  .section-hero-widget {
    justify-self: start;
  }

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

  .bento-size-4,
  .bento-size-2,
  .bento-size-3,
  .bento-size-6 {
    grid-column: span 1;
  }
}

@media (max-width: 520px) {
  .header-inner {
    width: min(100% - 24px, 1890px);
    padding: 10px 0 8px;
    gap: 8px;
  }

  .nav {
    gap: 6px;
    padding-bottom: 0;
  }

  .nav a {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero {
    padding-inline: 16px;
    padding-top: 34px;
    gap: 24px;
  }

  .hero h1 {
    margin-bottom: 16px;
    font-size: clamp(40px, 12.8vw, 52px);
    line-height: 1.02;
  }

  .hero .eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .hero .lead {
    font-size: 17px;
    line-height: 1.55;
  }

  .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 22px;
  }

  .hero .button {
    width: 100%;
    min-height: 46px;
    padding: 0 8px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hero-visual-aw {
    width: 100%;
  }

  .index-list-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .post-list-plain .post-card {
    grid-template-columns: 1fr;
  }

  .widget-wrapper {
    gap: 12px;
  }

  .widget-card-container {
    aspect-ratio: 1.52;
  }

  .card-face {
    border-radius: 16px;
    padding: 20px;
  }

  .card-face h4 {
    font-size: 10px;
  }

  .card-face p.question,
  .card-face p.answer {
    font-size: clamp(15px, 4.7vw, 19px);
    line-height: 1.45;
  }

  .card-footer-tip {
    font-size: 10px;
  }

  #btn-show-answer {
    min-height: 48px;
  }

  #scheduler-info {
    font-size: 10px;
  }

  .marquee-container {
    margin-top: 28px;
  }
}

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

  .js-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Admin CMS
   ========================================================================== */
.admin-shell {
  background:
    linear-gradient(180deg, rgba(7, 16, 12, 0.96), rgba(5, 10, 8, 0.98)),
    var(--paper);
}

.admin-app {
  width: min(100% - 32px, 1480px);
  margin: 0 auto;
  padding: 40px 0 64px;
}

.admin-login {
  min-height: calc(100svh - 96px);
  display: grid;
  place-items: center;
}

.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 27, 21, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.admin-login-form {
  width: min(100%, 440px);
  display: grid;
  gap: 18px;
  padding: 28px;
}

.admin-panel-head h1,
.admin-topbar h1 {
  font-size: clamp(32px, 4vw, 52px);
}

.admin-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-topbar-actions,
.admin-actions,
.admin-panel-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-topbar-actions {
  justify-content: flex-end;
}

.admin-topbar-actions span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-list-panel,
.admin-editor {
  padding: 18px;
}

.admin-list-panel {
  position: sticky;
  top: 96px;
}

.admin-panel-toolbar {
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  cursor: pointer;
}

.admin-post-list {
  display: grid;
  gap: 8px;
}

.admin-post-row {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.admin-post-row:hover,
.admin-post-row.active {
  border-color: var(--green-line);
  background: rgba(58, 222, 120, 0.08);
}

.admin-post-row strong {
  color: #fff;
  line-height: 1.35;
}

.admin-post-row small,
.admin-empty {
  color: var(--muted);
}

.admin-status {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.admin-status.draft {
  background: rgba(180, 109, 32, 0.16);
  color: #d8a86e;
}

.admin-status.published {
  background: rgba(58, 222, 120, 0.14);
  color: var(--green);
}

.admin-editor {
  display: grid;
  gap: 16px;
}

.admin-grid {
  display: grid;
  gap: 12px;
}

.admin-grid.two {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.admin-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 14px;
}

.admin-panel label {
  display: grid;
  gap: 7px;
}

.admin-panel label span {
  color: #b8c9bf;
  font-size: 12px;
  font-weight: 800;
}

.admin-panel input,
.admin-panel select,
.admin-panel textarea {
  width: 100%;
  border: 1px solid rgba(218, 242, 226, 0.12);
  border-radius: 8px;
  background: rgba(4, 10, 7, 0.72);
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
}

.admin-panel textarea {
  resize: vertical;
  line-height: 1.65;
}

.admin-panel input:focus,
.admin-panel select:focus,
.admin-panel textarea:focus {
  outline: 2px solid rgba(58, 222, 120, 0.35);
  outline-offset: 1px;
}

.admin-preview {
  min-height: 460px;
  max-height: 760px;
  overflow: auto;
  border: 1px solid rgba(218, 242, 226, 0.1);
  border-radius: 8px;
  background: rgba(4, 10, 7, 0.45);
  padding: 0 18px 18px;
}

.admin-preview .post-content {
  padding-top: 18px;
  font-size: 15px;
}

.admin-preview .post-content h2:first-child {
  margin-top: 0;
}

.button.danger {
  border-color: rgba(200, 79, 58, 0.42);
  color: #f1b5a9;
}

.button.danger:hover {
  border-color: rgba(200, 79, 58, 0.86);
  color: #fff;
}

.admin-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-message.error {
  color: #f1b5a9;
}

@media (max-width: 980px) {
  .admin-topbar,
  .admin-layout,
  .admin-editor-grid,
  .admin-grid.two,
  .admin-grid.three {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    display: grid;
  }

  .admin-topbar-actions {
    justify-content: flex-start;
  }

  .admin-list-panel {
    position: static;
  }
}
