@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700;800&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;700&family=Outfit:wght@400;500;600&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Zen+Maru+Gothic:wght@500;700;900&display=swap');

:root {
  /* Color Palette - Retro Tech & Cabin Fireplace Cozy Warmth */
  --color-bg-deep: #160f0d;
  --color-bg-warm: #231915;
  --color-bg-card: #2e211b;
  --color-firelight: #e8913a;
  --color-firelight-glow: rgba(232, 145, 58, 0.25);
  --color-ember: #c4582a;
  --color-teal: #3fb7a8;
  --color-teal-glow: rgba(63, 183, 168, 0.22);
  --color-plum: #6e4058;
  --color-rose: #d77978;
  --color-cocoa: #6b3a2a;
  --color-cream: #f5e6d0;
  --color-marshmallow: #fff5eb;
  --color-subtext: #c0ab98;
  --color-crt-green: #4af060;
  --color-crt-amber: #ffb347;
  --color-leather: #8b5e3c;
  --color-leather-border: #a4744e;

  /* Typography */
  --font-terminal: 'JetBrains Mono', 'Zen Maru Gothic', monospace;
  --font-code: 'Zen Maru Gothic', 'Space Mono', monospace;
  --font-main: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  --font-jp: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  --font-jp-display: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;

  /* Spacing & Layout */
  --header-height: 72px;
  --container-width: 1200px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;

  /* Shadows */
  --shadow-warm: 0 12px 30px rgba(22, 15, 13, 0.7);
  --shadow-fire: 0 0 25px rgba(232, 145, 58, 0.35);
  --shadow-inset: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Japanese keeps the established rounded, highly legible system. */
html[lang="ja"] {
  --font-terminal: 'JetBrains Mono', 'Zen Maru Gothic', monospace;
  --font-code: 'Zen Maru Gothic', 'Space Mono', monospace;
  --font-main: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  --font-jp: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  --font-jp-display: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
}

/* English uses its own proportional and monospace pair across every component. */
html[lang="en"] {
  --font-terminal: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  --font-code: 'IBM Plex Mono', 'Space Mono', monospace;
  --font-main: 'Manrope', 'Outfit', sans-serif;
  --font-jp: 'Manrope', 'Outfit', sans-serif;
  --font-jp-display: 'Manrope', 'Outfit', sans-serif;
}

body {
  background-color: var(--color-bg-deep);
  color: var(--color-cream);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

html[lang="ja"] body {
  letter-spacing: 0.015em;
  line-height: 1.75;
  font-synthesis: none;
}

html[lang="ja"] .hero-desc,
html[lang="ja"] .section-desc,
html[lang="ja"] .service-text,
html[lang="ja"] .about-text,
html[lang="ja"] .parchment-text,
html[lang="ja"] .char-details {
  font-family: var(--font-main);
  font-weight: 500;
}

html[lang="en"] body {
  letter-spacing: -0.01em;
  line-height: 1.65;
}

html[lang="en"] .hero-title,
html[lang="en"] .section-title {
  letter-spacing: -0.045em;
}

html[lang="en"] .hero-desc,
html[lang="en"] .section-desc,
html[lang="en"] .service-text,
html[lang="en"] .about-text {
  max-width: 62ch;
}

/* Background Fireplace Glow & Ambient Particles Container */
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 50% 90%, rgba(232, 145, 58, 0.18) 0%, rgba(196, 88, 42, 0.1) 40%, transparent 75%),
    radial-gradient(circle at 15% 20%, rgba(139, 94, 60, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(255, 179, 71, 0.06) 0%, transparent 50%);
  animation: firelightPulse 8s ease-in-out infinite alternate;
}

@keyframes firelightPulse {
  0% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0.9; transform: scale(1.01); }
}

#fireplace-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Main Layout Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* =========================================
   HEADER & COZY NAVIGATION
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  background: rgba(22, 15, 13, 0.65);
  border-bottom: 1px solid rgba(139, 94, 60, 0.25);
}

.site-header.scrolled {
  background: rgba(22, 15, 13, 0.92);
  border-bottom: 1px solid rgba(232, 145, 58, 0.4);
  box-shadow: var(--shadow-warm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-marshmallow);
  font-family: var(--font-code);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.logo-egg-icon {
  width: 32px;
  height: 32px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover .logo-egg-icon {
  transform: rotate(-12deg) scale(1.15);
}

.brand-title-text span.accent {
  color: var(--color-firelight);
  text-shadow: 0 0 10px var(--color-firelight-glow);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--color-subtext);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-marshmallow);
  text-shadow: 0 0 8px rgba(255, 245, 235, 0.4);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-firelight);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Language Switcher Button */
.lang-switch-btn {
  background: var(--color-bg-warm);
  border: 1px solid var(--color-leather);
  color: var(--color-cream);
  padding: 6px 14px;
  border-radius: 10px;
  font-family: var(--font-code);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.1);
}

.lang-switch-btn:hover {
  border-color: var(--color-firelight);
  background: var(--color-cocoa);
  color: var(--color-marshmallow);
  box-shadow: 0 0 12px var(--color-firelight-glow);
  transform: translateY(-1px);
}

.lang-flag {
  font-size: 1rem;
}

/* Mobile Hamburger Menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-cream);
  font-size: 1.5rem;
  cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  z-index: 3;
}

.badge-fireside {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 145, 58, 0.12);
  border: 1px solid rgba(232, 145, 58, 0.4);
  padding: 6px 16px;
  border-radius: 30px;
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--color-crt-amber);
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(232, 145, 58, 0.15);
}

.badge-fireside .flame-icon {
  display: inline-block;
  animation: flameFlicker 1.5s infinite alternate;
}

@keyframes flameFlicker {
  0% { transform: scale(1) rotate(0deg); opacity: 0.9; }
  50% { transform: scale(1.15) rotate(-3deg); opacity: 1; }
  100% { transform: scale(0.95) rotate(3deg); opacity: 0.85; }
}

.hero-title {
  font-family: var(--font-code);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-marshmallow);
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.hero-title .glow-amber {
  color: var(--color-firelight);
  position: relative;
  display: inline-block;
}

.hero-title .glow-amber::after {
  content: 'STUDIO';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-firelight);
  filter: blur(12px);
  opacity: 0.6;
  z-index: -1;
}

.hero-subtitle-box {
  min-height: 64px;
  margin-bottom: 32px;
  display: flex;
  align-items: flex-start;
}

.typewriter-text {
  font-family: var(--font-code);
  font-size: 1.35rem;
  color: var(--color-cream);
  line-height: 1.5;
  border-left: 3px solid var(--color-firelight);
  padding-left: 14px;
  display: block;
}

.cursor-blink {
  display: inline-block;
  width: 10px;
  height: 1.25rem;
  background-color: var(--color-firelight);
  vertical-align: middle;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--color-subtext);
  max-width: 540px;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Retro Leather / Firelight Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--color-ember) 0%, var(--color-cocoa) 100%);
  border: 1px solid var(--color-firelight);
  color: var(--color-marshmallow);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(196, 88, 42, 0.4), inset 0 1px 1px rgba(255,255,255,0.2);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(232, 145, 58, 0.6), inset 0 1px 2px rgba(255,255,255,0.4);
  background: linear-gradient(135deg, #d86836 0%, #7e4634 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg-warm);
  border: 1px dashed var(--color-leather);
  color: var(--color-cream);
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-code);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  border-color: var(--color-crt-green);
  color: var(--color-crt-green);
  background: rgba(74, 240, 96, 0.08);
  box-shadow: 0 0 15px rgba(74, 240, 96, 0.15);
  transform: translateY(-2px);
}

/* Hero Right Composition: Fireside Couch & Mascot Stage */
.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fireside-pedestal {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: radial-gradient(circle at 50% 30%, var(--color-bg-card) 0%, var(--color-bg-warm) 100%);
  border: 2px solid var(--color-leather);
  border-radius: 24px;
  padding: 36px 24px 28px;
  box-shadow: var(--shadow-warm), inset 0 1px 1px rgba(255,255,255,0.1);
}

/* Stitched leather border effect */
.fireside-pedestal::before {
  content: '';
  position: absolute;
  top: 6px; left: 6px; right: 6px; bottom: 6px;
  border: 1px dashed rgba(139, 94, 60, 0.45);
  border-radius: 18px;
  pointer-events: none;
}

/* =========================================
   SERVICES SECTION (4 LEATHER CARDS)
   ========================================= */
.section-padding {
  padding: 100px 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--color-crt-amber);
  background: rgba(255, 179, 71, 0.1);
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.section-title {
  font-family: var(--font-code);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-marshmallow);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--color-subtext);
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-leather);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 4px; left: 4px; right: 4px; bottom: 4px;
  border: 1px dashed rgba(164, 116, 78, 0.3);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-firelight);
  box-shadow: 0 15px 35px rgba(232, 145, 58, 0.25), inset 0 1px 2px rgba(255,255,255,0.15);
  background: linear-gradient(180deg, #382921 0%, var(--color-bg-card) 100%);
}

.service-icon-box {
  width: 94px;
  height: 96px;
  padding: 6px 6px 7px;
  background: linear-gradient(180deg, rgba(63, 183, 168, 0.16), rgba(63, 183, 168, 0.06));
  border: 1px solid var(--color-teal);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  overflow: hidden;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.service-mascot-icon {
  display: block;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  background-image: url("../assets/mascot/generated/tamago-chan-sprite.png");
  background-repeat: no-repeat;
  background-size: 300% 200%;
  filter: drop-shadow(0 5px 5px rgba(15, 8, 6, 0.32));
}

.service-mascot-icon--thinking { background-position: 50% 0%; }
.service-mascot-icon--happy { background-position: 0% 100%; }
.service-mascot-icon--speaking { background-position: 100% 0%; }
.service-mascot-icon--wave { background-position: 100% 100%; }

.service-icon-label {
  display: block;
  margin-top: 1px;
  color: var(--color-marshmallow);
  font-family: var(--font-code);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.service-card:hover .service-icon-box {
  transform: scale(1.1) rotate(6deg);
  background: rgba(63, 183, 168, 0.22);
  box-shadow: 0 0 18px rgba(63, 183, 168, 0.2);
}

.service-title {
  font-family: var(--font-code);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-cream);
  margin-bottom: 12px;
}

.service-text {
  color: var(--color-subtext);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.service-card .demo-hint {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--color-crt-amber);
  opacity: 0;
  margin-top: 12px;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-card:hover .demo-hint {
  opacity: 1;
}

/* =========================================
   INTERACTIVE DEMO SECTION (CRT MONITOR)
   ========================================= */
.demo-monitor-wrapper {
  background: #100b09;
  border: 6px solid #36261e;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 
    0 25px 60px rgba(0,0,0,0.85),
    inset 0 2px 5px rgba(255,255,255,0.08),
    0 0 40px rgba(232, 145, 58, 0.15);
  position: relative;
}

/* CRT monitor top badge label */
.monitor-brand-plate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 12px;
}

.monitor-model {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: #8b6b55;
  letter-spacing: 2px;
}

.monitor-status-led {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--color-crt-green);
}

.led-dot {
  width: 10px;
  height: 10px;
  background-color: var(--color-crt-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-crt-green);
  animation: ledPulse 2s infinite;
}

@keyframes ledPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Retro Channel Dial Navigation Tabs */
.demo-tabs-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.demo-tab-btn {
  flex: 1;
  min-width: 180px;
  background: var(--color-bg-warm);
  border: 2px solid var(--color-leather);
  color: var(--color-subtext);
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.demo-tab-btn:hover {
  border-color: var(--color-crt-amber);
  color: var(--color-cream);
  background: #2e211b;
}

.demo-tab-btn.active {
  background: linear-gradient(135deg, var(--color-cocoa), var(--color-plum));
  border-color: var(--color-firelight);
  color: var(--color-marshmallow);
  box-shadow: 0 0 20px rgba(232, 145, 58, 0.35);
}

.compact-btn {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.archive-signature,
.file-index-label,
.reg-id,
.trait-label {
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: #8b5e3c;
}

.archive-signature {
  text-align: right;
  margin-top: 24px;
}

.demo-tab-content {
  display: none;
}

.demo-tab-content.active {
  display: block;
  animation: crtTurnOn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes crtTurnOn {
  0% { transform: scaleY(0.005) scaleX(0.8); opacity: 0.3; filter: brightness(3); }
  60% { transform: scaleY(1.02) scaleX(1); opacity: 1; filter: brightness(1.2); }
  100% { transform: scaleY(1) scaleX(1); opacity: 1; filter: brightness(1); }
}

/* =========================================
   ABOUT & CONTACT SECTION
   ========================================= */
.about-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-leather);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  position: relative;
  box-shadow: var(--shadow-warm);
}

.about-title {
  font-size: 2.2rem;
}

.about-text {
  color: var(--color-cream);
  font-size: 1.05rem;
  margin-bottom: 18px;
  line-height: 1.8;
}

.about-text.muted {
  color: var(--color-subtext);
  font-size: 1rem;
}

.philosophy-panel {
  background: linear-gradient(145deg, rgba(63, 183, 168, 0.11), rgba(110, 64, 88, 0.22));
  border: 1px solid rgba(63, 183, 168, 0.45);
  border-radius: 8px;
  padding: 36px;
  text-align: center;
  box-shadow: inset 0 0 25px rgba(0,0,0,0.35);
}

.philosophy-mark {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border: 2px solid var(--color-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--color-teal-glow);
}

.philosophy-mascot-icon,
.footer-mascot-icon {
  display: inline-block;
  background-image: url("../assets/mascot/generated/tamago-chan-sprite.png");
  background-repeat: no-repeat;
  background-size: 300% 200%;
}

.philosophy-mascot-icon {
  width: 72px;
  height: 72px;
  background-position: 50% 100%;
  filter: drop-shadow(0 4px 5px rgba(15, 8, 6, 0.26));
}

.philosophy-panel h3 {
  font-family: var(--font-code);
  color: var(--color-marshmallow);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.philosophy-panel p {
  color: var(--color-subtext);
  font-size: 0.85rem;
  font-family: var(--font-code);
}

.brand-emoji,
.footer-emoji {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
  font-style: normal;
}

.brand-emoji {
  font-size: 0.95em;
  vertical-align: -0.05em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.tech-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.retro-tag {
  background: #18120f;
  border: 1px solid var(--color-teal);
  color: #9be8df;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: var(--font-code);
  font-size: 0.85rem;
  box-shadow: 0 0 10px rgba(74, 240, 96, 0.15);
  display: flex;
  align-items: center;
  gap: 6px;
}

.retro-tag::before {
  content: '>';
  opacity: 0.7;
}

/* Contact Social Cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.contact-section {
  padding-bottom: 120px;
}

.social-card {
  background: var(--color-bg-warm);
  border: 1px solid var(--color-leather);
  border-radius: var(--radius-md);
  padding: 24px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.social-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-firelight);
  background: var(--color-bg-card);
  box-shadow: 0 10px 25px rgba(232, 145, 58, 0.2);
}

.social-icon {
  width: 44px;
  height: 44px;
  background: rgba(232, 145, 58, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-firelight);
}

.social-info h4 {
  font-family: var(--font-code);
  font-size: 1.1rem;
  color: var(--color-cream);
  margin-bottom: 2px;
}

.social-info span {
  font-size: 0.85rem;
  color: var(--color-subtext);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: #110b09;
  border-top: 1px solid rgba(139, 94, 60, 0.3);
  padding: 48px 0 36px;
  text-align: center;
}

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

.footer-logo {
  font-family: var(--font-code);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-marshmallow);
}

.footer-mascot-icon {
  width: 30px;
  height: 30px;
  margin-right: 4px;
  vertical-align: middle;
  background-position: 100% 100%;
  filter: drop-shadow(0 3px 4px rgba(15, 8, 6, 0.3));
}

.footer-sub {
  color: var(--color-subtext);
  font-size: 0.9rem;
}

.footer-emoji {
  margin-right: 0.15em;
}

.back-to-top-btn {
  background: var(--color-bg-warm);
  border: 1px solid var(--color-leather);
  color: var(--color-cream);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.25s ease;
  margin-top: 12px;
}

.back-to-top-btn:hover {
  background: var(--color-cocoa);
  border-color: var(--color-firelight);
  transform: translateY(-3px);
  box-shadow: 0 0 15px var(--color-firelight-glow);
}

/* =========================================
   RESPONSIVE BREAKPOINTS
   ========================================= */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-actions {
    justify-content: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .typewriter-text {
    border-left: none;
    padding-left: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; /* Can be toggled via JS mobile menu */
  }

  .mobile-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .demo-monitor-wrapper {
    padding: 14px;
    border-width: 4px;
  }

  .about-card {
    padding: 32px 20px;
  }
}
