/*
Theme Name: rune Site
Theme URI: https://rune.naoya.site/
Author: disolo Co., Ltd.
Description: WordPress theme for the rune app family.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: rune-site
*/
/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 5rem;
}

:root {
  --bg-color: #0b0e14;
  --text-primary: #eef2f6;
  --text-secondary: #aebcd0;
  --accent-1: #6e56cf;
  --accent-2: #3e82f7;
  --glass-bg: rgba(20, 24, 34, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --btn-primary-bg: linear-gradient(135deg, #6e56cf, #3e82f7);
  --btn-primary-hover: linear-gradient(135deg, #7c66df, #4e92ff);
  --spacing-unit: 1rem;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Theme variables */
  --theme-hub-primary: #10b981;
  --theme-hub-secondary: #059669;
  --theme-hub-hover: #34d399;
  --theme-hub-light: rgba(16, 185, 129, 0.15);
  --theme-hub-border: rgba(16, 185, 129, 0.3);
  
  --theme-studio-primary: #ec4899;
  --theme-studio-secondary: #f43f5e;
  --theme-studio-hover: #f472b6;
  --theme-studio-light: rgba(236, 72, 153, 0.15);
  --theme-studio-border: rgba(244, 63, 94, 0.3);

  --theme-lux-primary: #eab308;
  --theme-lux-secondary: #ca8a04;
  --theme-lux-hover: #fbbf24;
  --theme-lux-light: rgba(234, 179, 8, 0.15);
  --theme-lux-border: rgba(202, 138, 4, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 1.125rem;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

.container {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0;
}

/* Background Effects */
.bg-base {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 10%, #111422 0%, #0b0e14 60%);
  z-index: -3;
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(7.5rem);
  z-index: -2;
  opacity: 0.5;
  animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 37.5rem;
  height: 37.5rem;
  background: rgba(110, 86, 207, 0.4);
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 31.25rem;
  height: 31.25rem;
  background: rgba(62, 130, 247, 0.3);
  animation-delay: -5s;
}

.blob-3 {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25rem;
  height: 25rem;
  background: rgba(255, 100, 200, 0.15);
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(1.875rem, -3.125rem) scale(1.1);
  }
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
  z-index: -1;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 100;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(11, 14, 20, 0.8);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn-primary) {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:not(.btn-primary):hover {
  color: var(--text-primary);
}

/* Hamburger Base */
.hamburger {
  display: none;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 6.1875rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: #fff;
  box-shadow: 0 0.25rem 0.875rem rgba(110, 86, 207, 0.4);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-0.125rem);
  box-shadow: 0 0.375rem 1.25rem rgba(110, 86, 207, 0.6);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(0.5rem);
  -webkit-backdrop-filter: blur(0.5rem);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-0.125rem);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 1.1rem;
}

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
}

.btn-xl {
  padding: 1rem 2.5rem;
  font-size: 1.3rem;
}

/* Typography Enhancements */
.gradient-text {
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-glow {
  text-shadow: 0 0 1.875rem rgba(167, 139, 250, 0.4);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(62, 130, 247, 0.1);
  border: 1px solid rgba(62, 130, 247, 0.3);
  border-radius: 6.1875rem;
  font-size: 1rem;
  font-weight: 600;
  color: #8eb4f8;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 0.375rem;
  height: 0.375rem;
  background: #60a5fa;
  border-radius: 50%;
  box-shadow: 0 0 0.5rem #60a5fa;
  animation: blink 2s infinite;
}

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

.hero-title {
  font-size: 3.4rem;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title-sub {
  font-size: 2.25rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Glass Panels (Reusable) */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(1.25rem);
  -webkit-backdrop-filter: blur(1.25rem);
  border-radius: 1.25rem;
  box-shadow: 0 1.5rem 2.5rem rgba(0, 0, 0, 0.2);
}

.glass-card {
  background: rgba(20, 24, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(0.75rem);
  -webkit-backdrop-filter: blur(0.75rem);
  border-radius: 1rem;
  padding: 2rem;
}

/* Real App Mockup Widget */
.real-app-mockup {
  position: relative;
  width: 23.75rem;
  height: auto;
  background: linear-gradient(135deg, #0a1a16 0%, #0d2b1e 100%);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow:
    0 1.5rem 2.5rem rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: perspective(62.5rem) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
  margin: 0 auto;
}

.real-app-mockup:hover {
  transform: perspective(62.5rem) rotateY(0deg) rotateX(0deg);
}

.rune-header {
  text-align: center;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.rune-header .rune-logo {
  width: 2.5rem;
  height: 2.5rem;
}

.rune-header h1,
.rune-header .rune-app-title {
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: 0.25rem;
  color: #10b981;
  margin: 0;
  line-height: 1;
}

.rune-content {
  display: flex;
  flex-direction: column;
  gap: 0.9375rem;
}

.rune-status-box {
  background: rgba(10, 26, 22, 0.92);
  backdrop-filter: blur(0.5rem);
  -webkit-backdrop-filter: blur(0.5rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.625rem;
  text-align: center;
}

.rune-status-box.rune-success {
  background: rgba(107, 255, 140, 0.1);
  border-color: rgba(107, 255, 140, 0.3);
}

.rune-status-box p {
  font-size: 1rem;
  color: #fff;
  margin: 0;
}

.rune-status-box.rune-success p {
  color: #6bff8c;
}

.rune-preset-section {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.rune-preset-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rune-preset-section-header h2 {
  font-size: 1rem;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.0625rem;
  margin: 0;
}

.rune-settings-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #888;
  padding: 0.3125rem 0.625rem;
  border-radius: 0.25rem;
  font-size: 1rem;
}

.rune-preset-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rune-preset-btn {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border: none;
  border-radius: 0.5rem;
  padding: 0.875rem 1.125rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.rune-preset-btn span:first-child {
  font-size: 1.0625rem;
}

.rune-mode-badge {
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.1875rem 0.5rem;
  border-radius: 0.625rem;
  font-weight: 500;
}

.rune-folder-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rune-folder-header-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 0.5rem;
}

.rune-folder-arrow {
  font-size: 0.6875rem;
  color: #34d399;
}

.rune-folder-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6ee7b7;
  flex: 1;
}

.rune-folder-count {
  font-size: 0.6875rem;
  color: #666;
}

.rune-folder-content {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding-left: 0.75rem;
}

.rune-folder-content .rune-preset-btn {
  padding: 0.75rem 1rem;
}

.rune-folder-content .rune-preset-btn span:first-child {
  font-size: 0.9375rem;
}

/* Sections */
.section {
  padding: 8rem 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(11, 14, 20, 0.8),
    transparent
  );
}

.section-header {
  text-align: center;
  max-width: 50rem;
  margin: 0 auto 5rem;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.feature-icon-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(
    135deg,
    rgba(110, 86, 207, 0.15),
    rgba(62, 130, 247, 0.15)
  );
  border: 1px solid rgba(110, 86, 207, 0.3);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: var(--accent-1);
}

.theme-hub .feature-icon-wrapper {
  background: var(--theme-hub-light);
  border-color: var(--theme-hub-border);
  color: var(--theme-hub-hover);
}

.feature-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Portal Layout */
.portal-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10rem 0.625rem 6rem;
  min-height: 80vh;
}

.portal-header {
  margin-bottom: 4rem;
  text-align: center;
}

.portal-title {
  margin-bottom: 1rem;
  line-height: 1.4;
  min-height: 2.8em; /* Reserve space for 2 lines */
}

.portal-subtitle {
  max-width: 37.5rem;
  margin: 0 auto;
}

.portal-series-text {
  font-size: 2.25rem;
  display: block;
  margin-top: 1rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  width: 100%;
  max-width: 56.25rem;
  margin: 0 auto;
}

.portal-card-wide {
  grid-column: span 2;
}

.flex-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Hero ribbon wrapper */
.hero-ribbon-wrap {
  position: relative;
  overflow: hidden;
  display: inline-block;
  border-radius: 0.75rem;
  transform: perspective(62.5rem) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}
.hero-ribbon-wrap:hover {
  transform: perspective(62.5rem) rotateY(0deg) rotateX(0deg);
}
.hero-ribbon-wrap .real-app-mockup {
  transform: none;
}

/* Free ribbon */
.card-ribbon {
  position: absolute;
  top: 0.5rem;
  right: -2.375rem;
  background: linear-gradient(135deg, #ec4899, #e11d48);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 2.5rem;
  transform: rotate(45deg);
  box-shadow: 0 0.125rem 0.5rem rgba(225, 29, 72, 0.5);
  z-index: 1;
}

.flex-card:hover {
  transform: translateY(-0.3125rem);
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-icon-wrapper {
  width: 4rem;
  height: 4rem;
  min-width: 4rem;
  background: linear-gradient(135deg, rgba(110, 86, 207, 0.15), rgba(62, 130, 247, 0.15));
  border: 1px solid rgba(110, 86, 207, 0.3);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #a78bfa;
}

.card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.btn-md {
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  text-align: center;
  width: 100%;
  max-width: 25rem;
  align-self: center;
}

.flex-mt-auto {
  margin-top: auto;
}

.btn-pink {
  background: linear-gradient(135deg, #6a2fd8, #8b5cf6) !important;
  color: #fff;
  box-shadow: 0 0.25rem 0.875rem rgba(106, 47, 216, 0.4) !important;
}

.btn-pink:hover {
  background: linear-gradient(135deg, #7c3aed, #a78bfa) !important;
  box-shadow: 0 0.375rem 1.25rem rgba(106, 47, 216, 0.6) !important;
}

.icon-pink {
  background: rgba(106, 47, 216, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

.btn-green {
  background: linear-gradient(135deg, var(--theme-hub-primary), var(--theme-hub-secondary)) !important;
  color: #fff;
  box-shadow: 0 0.25rem 0.875rem rgba(16, 185, 129, 0.4) !important;
}

.btn-green:hover {
  background: linear-gradient(135deg, var(--theme-hub-hover), var(--theme-hub-primary)) !important;
  box-shadow: 0 0.375rem 1.25rem rgba(16, 185, 129, 0.6) !important;
}

.icon-green {
  background: var(--theme-hub-light);
  border-color: var(--theme-hub-border);
  color: #34d399;
}

.btn-gold {
  background: linear-gradient(135deg, var(--theme-lux-primary), var(--theme-lux-secondary)) !important;
  color: #fff;
  box-shadow: 0 0.25rem 0.875rem rgba(202, 138, 4, 0.4) !important;
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--theme-lux-hover), var(--theme-lux-primary)) !important;
  box-shadow: 0 0.375rem 1.25rem rgba(202, 138, 4, 0.6) !important;
}

.icon-gold {
  background: var(--theme-lux-light);
  border-color: var(--theme-lux-border);
  color: #fbbf24;
}

/* Typing Effect Cursor */
.typing-cursor {
  display: inline-block;
  font-weight: 300;
  margin-left: 0.125rem;
  animation: blink-cursor 1s step-end infinite;
}

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

/* Inline Style Utilities */
.flex-gap-4 { display: flex; gap: 0.25rem; }
.btn-disabled { opacity: 0.6; cursor: not-allowed; }
.link-accent { color: var(--accent-2); text-decoration: underline; }
.doc-date { margin-top: 4rem; text-align: right; color: var(--text-primary); font-weight: 500; }
.page-content { padding: 10rem 0 6rem; min-height: 80vh; }
.mb-2rem { margin-bottom: 2rem; }

/* Policy and Contact Pages */
.policy-content {
  max-width: 50rem;
  margin: 0 auto;
  padding: 0;
}
.policy-content > h1,
.policy-content > .policy-meta,
.policy-content > h2,
.policy-content > p {
  padding-left: 1rem;
  padding-right: 1rem;
}
.policy-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.policy-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 3rem;
}
.policy-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.policy-content h2::before {
  content: "";
  display: inline-block;
  width: 0.25rem;
  height: 1.2em;
  background: var(--accent-1);
  border-radius: 0.125rem;
}
.policy-content p, 
.policy-content ul {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.policy-content ul {
  list-style-type: none;
  padding-left: 1.5rem;
}
.policy-content li {
  position: relative;
  margin-bottom: 0.5rem;
}
.policy-content li::before {
  content: "・";
  position: absolute;
  left: -1.5rem;
  color: var(--accent-1);
}

.policy-section {
  background: rgba(20, 24, 34, 0.6);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(0.75rem);
  -webkit-backdrop-filter: blur(0.75rem);
  border-radius: 1rem;
  padding: 2.5rem 3rem;
  margin-top: 2.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}
.policy-section h2:first-child {
  margin-top: 0;
}

/* Profile Page */
.profile-intro {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin: 2rem 0 3rem;
  padding: 2rem;
  background: rgba(20, 24, 34, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  backdrop-filter: blur(0.75rem);
  -webkit-backdrop-filter: blur(0.75rem);
}
.profile-portrait-wrap {
  flex-shrink: 0;
  text-align: center;
  margin: 0;
}
.profile-portrait {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  object-fit: cover;
  border: 0.1875rem solid var(--accent-1);
  box-shadow: 0 0.5rem 1.5rem rgba(110, 86, 207, 0.3);
}
.profile-portrait-wrap figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.profile-greeting p {
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.profile-greeting p:last-child {
  margin-bottom: 0;
}
.profile-greeting ruby rt {
  font-size: 0.6em;
}
.profile-books {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}
.profile-book {
  width: 12.5rem;
  height: auto;
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.4);
  transition: transform var(--transition);
}
.profile-book:hover {
  transform: translateY(-0.25rem);
}
.profile-links {
  list-style: none !important;
  padding-left: 0 !important;
}
.profile-links li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.profile-links li::before {
  content: none !important;
}
.profile-links li i {
  font-size: 1.3rem;
  color: var(--accent-1);
}

@media (max-width: 45.8125rem) {
  .profile-intro {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .profile-portrait {
    width: 8.75rem;
    height: 8.75rem;
  }
  .profile-book {
    width: 8.75rem;
  }
}

.form-container {
  width: 100%;
  max-width: 42.5rem;
  background: #f8f9fa; /* Softer, slightly off-white background */
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(0.75rem);
  -webkit-backdrop-filter: blur(0.75rem);
  border-radius: 1.25rem;
  padding: 0;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.3);
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  overflow: hidden;
  height: 76.25rem;
}
.form-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
}

/* Language Portal */
.lang-portal-main {
  min-height: 100vh;
  padding: 0 1.25rem;
}
.lang-portal-logo {
  width: 5rem;
  height: 5rem;
  border-radius: 1.25rem;
  margin-bottom: 2rem;
}
.lang-portal-grid {
  max-width: 37.5rem;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.lang-card {
  align-items: center;
  padding: 1.5rem;
  flex-direction: row;
  justify-content: space-between;
}
.lang-card-active {
  background: var(--btn-primary-bg);
  border-color: rgba(110, 86, 207, 0.4);
  box-shadow: 0 0.25rem 0.875rem rgba(110, 86, 207, 0.4);
}
.lang-card-active:hover {
  background: var(--btn-primary-hover);
  box-shadow: 0 0.375rem 1.25rem rgba(110, 86, 207, 0.6);
  border-color: rgba(110, 86, 207, 0.6);
}
.lang-card-title {
  margin-bottom: 0;
  font-size: 1.4rem;
}
.lang-card-icon {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Detailed Section (How it works) */
.content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.content-text .section-title {
  text-align: left;
  margin-bottom: 1.5rem;
  font-size: 2.8rem;
}

.image-showcase {
  position: relative;
  padding: 2.5rem 1.25rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 25rem;
  height: auto;
}

.showcase-img {
  width: 60%;
  object-fit: contain;
  filter: drop-shadow(0 0 1.875rem rgba(0, 0, 0, 0.5));
}

/* Infographic CSS */
.infographic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

.info-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.info-icon {
  width: 5rem;
  height: 5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.info-step.active .info-icon {
  background: rgba(110, 86, 207, 0.2);
  border-color: rgba(110, 86, 207, 0.5);
  color: #a78bfa;
  box-shadow: 0 0 1.875rem rgba(110, 86, 207, 0.4);
}

.info-step span {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.info-arrow {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.2);
}

/* Triangle infographic layout */
.infographic-triangle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 3rem 2rem;
}
.info-triangle-top {
  display: flex;
  justify-content: center;
}
.info-triangle-arrow-down {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.2);
}
.info-triangle-bottom {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.info-arrow-bi {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.35);
}

.pulse-glow {
  animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0.625rem rgba(110, 86, 207, 0.2);
  }
  100% {
    box-shadow: 0 0 1.875rem rgba(110, 86, 207, 0.6);
  }
}

/* CTA Section */
.section-cta {
  padding: 6rem 0;
}

.cta-box {
  text-align: center;
  padding: 5rem 3rem;
  background: linear-gradient(
    135deg,
    rgba(20, 24, 34, 0.6),
    rgba(30, 36, 48, 0.3)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-badge {
  margin-bottom: 2rem;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

.cta-badge .badge-dot {
  background: #fbbf24;
  box-shadow: 0 0 0.5rem #fbbf24;
}

.cta-title {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
}

.app-store-badge-link {
  display: inline-block;
  line-height: 0;
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 0.5rem;
}

.app-store-badge-link:hover {
  transform: translateY(-0.125rem) scale(1.03);
  opacity: 0.92;
}

.app-store-badge-link:focus-visible {
  outline: 2px solid var(--theme-studio-primary);
  outline-offset: 0.25rem;
}

.app-store-badge {
  display: block;
  height: 3.5rem;
  width: auto;
}

.cta-note {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0;
  margin-top: 4rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
}

.footer-title {
  font-weight: 700;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 1rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.95rem;
  opacity: 0.6;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(1.875rem);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}

/* Responsive */
@media (max-width: 62rem) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .hero-subtitle {
    margin: 0 auto 2.5rem;
  }

  .content-row {
    grid-template-columns: 1fr;
  }

  .content-text .section-title {
    text-align: center;
  }

  .section-title {
    font-size: 2rem;
  }

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

@media (max-width: 45.8125rem) {
  /* Navigation & Hamburger Menu */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1.875rem;
    height: 1.3125rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
  }

  .hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(0.5625rem) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-0.5625rem) rotate(-45deg);
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 25rem;
    height: 100vh;
    background: rgba(11, 14, 20, 0.98);
    backdrop-filter: blur(1.25rem);
    -webkit-backdrop-filter: blur(1.25rem);
    padding: 6.25rem 0.625rem 1.875rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid var(--glass-border);
    box-shadow: -0.625rem 0 1.875rem rgba(0, 0, 0, 0.5);
    z-index: 100;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a:not(.btn-primary) {
    font-size: 1.1rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links .btn-primary {
    margin-top: 1.25rem;
    text-align: center;
    width: 100%;
    justify-content: center;
  }
  /* General Mobile Typography */
  body {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 1.98rem;
    letter-spacing: -0.02em;
    line-height: 1.4;
  }

  .hero-title-sub {
    font-size: 1.3rem;
  }

  .portal-series-text {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin: 0 auto 2rem;
  }

  .section-title,
  .content-text .section-title {
    font-size: 1.8rem; /* 1.8rem */
  }

  .section-desc {
    font-size: 1rem;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .cta-desc {
    font-size: 1rem;
  }

  .feature-title {
    font-size: 1.25rem;
  }

  .feature-desc {
    font-size: 0.95rem;
  }

  .badge {
    font-size: 0.85rem;
  }

  /* Features Grid & Portal Grid */
  .features-grid,
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portal-card-wide {
    grid-column: span 1;
  }

  /* Hero CTA Buttons */
  .hero-cta {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Real App Mockup Image */
  .real-app-mockup {
    width: 100%;
    max-width: 100%;
    transform: none !important;
  }

  /* Infographic Setup for how-it-works */
  .image-showcase {
    padding: 2.5rem 0.625rem;
    min-height: auto;
  }
  
  .infographic {
    flex-direction: column;
    gap: 2.5rem;
  }

  .info-arrow {
    transform: rotate(90deg);
  }

  /* Padding Adjustments for Mobile (0.625rem standard) */
  .container {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
  }

  .nav-container {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
  }

  .glass-card {
    padding: 1.5rem 0.625rem;
  }

  .cta-box {
    padding: 3rem 0.625rem;
  }

  .section {
    padding: 5rem 0;
  }

  /* Policy and Contact Pages responsive */
  .policy-content {
    padding: 0;
  }
  .policy-section {
    padding: 1.5rem;
  }
  .form-container {
    height: 88.75rem; /* Adjust height for narrow screens since form gets longer */
  }

  /* Footer Links */
  .footer-links {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* --- Themes --- */

/* Theme: rune Hub (Emerald / Yellow-Green) */
body.theme-hub {
  --btn-primary-bg: linear-gradient(135deg, #10b981, #059669);
  --btn-primary-hover: linear-gradient(135deg, #34d399, #10b981);
  --theme-accent-primary: var(--theme-hub-primary);
  --theme-accent-hover: var(--theme-hub-hover);
}
body.theme-hub .blob-1 { background: rgba(16, 185, 129, 0.3); }
body.theme-hub .blob-2 { background: rgba(5, 150, 105, 0.2); }
body.theme-hub .blob-3 { background: rgba(163, 230, 53, 0.15); }

body.theme-hub .gradient-text {
  background: linear-gradient(135deg, #6ee7b7, #34d399);
  background-clip: text;
  -webkit-background-clip: text;
}
body.theme-hub .text-glow { text-shadow: 0 0 1.875rem rgba(110, 231, 183, 0.4); }
body.theme-hub .btn-primary { box-shadow: 0 0.25rem 0.875rem rgba(16, 185, 129, 0.4); }
body.theme-hub .btn-primary:hover { box-shadow: 0 0.375rem 1.25rem rgba(16, 185, 129, 0.6); }

body.theme-hub .badge {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}
body.theme-hub .badge-dot {
  background: #34d399;
  box-shadow: 0 0 0.5rem #34d399;
}
body.theme-hub .info-icon {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.15);
  color: var(--theme-hub-secondary);
}

body.theme-hub .info-step.active .info-icon {
  background: var(--theme-hub-light);
  border-color: var(--theme-hub-border);
  color: var(--theme-hub-primary);
  box-shadow: 0 0 1.875rem rgba(16, 185, 129, 0.4);
}

body.theme-hub .info-icon.pulse-glow {
  box-shadow: 0 0 1.5625rem rgba(16, 185, 129, 0.5);
}
body.theme-hub .rune-success {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

/* Theme: rune Studio (Purple — matches logo #6a2fd8 → #8b5cf6) */
body.theme-studio {
  --btn-primary-bg: linear-gradient(135deg, #6a2fd8, #8b5cf6);
  --btn-primary-hover: linear-gradient(135deg, #7c3aed, #a78bfa);
  --theme-accent-primary: #6a2fd8;
  --theme-accent-hover: #7c3aed;
}
body.theme-studio .blob-1 { background: rgba(106, 47, 216, 0.3); }
body.theme-studio .blob-2 { background: rgba(139, 92, 246, 0.2); }
body.theme-studio .blob-3 { background: rgba(167, 139, 250, 0.15); }

body.theme-studio .gradient-text {
  background: linear-gradient(135deg, #c4b5fd, #a78bfa);
  background-clip: text;
  -webkit-background-clip: text;
}
body.theme-studio .text-glow { text-shadow: 0 0 1.875rem rgba(167, 139, 250, 0.4); }
body.theme-studio .btn-primary { box-shadow: 0 0.25rem 0.875rem rgba(106, 47, 216, 0.4); }
body.theme-studio .btn-primary:hover { box-shadow: 0 0.375rem 1.25rem rgba(106, 47, 216, 0.6); }

body.theme-studio .badge {
  background: rgba(106, 47, 216, 0.1);
  border-color: rgba(106, 47, 216, 0.3);
  color: #c4b5fd;
}
body.theme-studio .badge-dot {
  background: #8b5cf6;
  box-shadow: 0 0 0.5rem #8b5cf6;
}
body.theme-studio .info-icon.pulse-glow {
  box-shadow: 0 0 1.5625rem rgba(106, 47, 216, 0.4);
}
body.theme-studio .feature-icon-wrapper {
  background: rgba(106, 47, 216, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}
body.theme-studio .info-icon {
  background: rgba(106, 47, 216, 0.05);
  border-color: rgba(106, 47, 216, 0.15);
  color: #8b5cf6;
}
body.theme-studio .info-step.active .info-icon {
  background: rgba(106, 47, 216, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  color: #6a2fd8;
  box-shadow: 0 0 1.875rem rgba(106, 47, 216, 0.4);
}
body.theme-studio .rune-success {
  background: rgba(106, 47, 216, 0.2);
  border-color: rgba(106, 47, 216, 0.4);
  color: #c4b5fd;
}

/* Studio Hero: vertical layout (text top, image bottom) */
body.theme-studio .hero-content {
  grid-template-columns: 1fr;
  text-align: center;
}
body.theme-studio .hero-cta {
  justify-content: center;
}
body.theme-studio .hero-subtitle {
  margin: 0 auto 2.5rem;
}
body.theme-studio .real-app-mockup {
  width: 100%;
  max-width: 56.25rem;
  filter: none;
  background: none;
  padding: 0;
  box-shadow: 0 1.5rem 2.5rem rgba(0, 0, 0, 0.4);
  border-radius: 0.75rem;
}

body.theme-lux .real-app-mockup {
  width: 23.75rem;
  max-width: 100%;
  background: none;
  padding: 0;
  box-shadow: none;
  filter: none;
}

@media (max-width: 30rem) {
  .hero-title .gradient-text {
    white-space: normal !important;
  }
}

/* Theme: rune Lux (Gold / Amber) */
body.theme-lux {
  --btn-primary-bg: linear-gradient(135deg, #eab308, #ca8a04);
  --btn-primary-hover: linear-gradient(135deg, #fbbf24, #eab308);
  --theme-accent-primary: var(--theme-lux-primary);
  --theme-accent-hover: var(--theme-lux-hover);
}
body.theme-lux .blob-1 { background: rgba(234, 179, 8, 0.3); }
body.theme-lux .blob-2 { background: rgba(202, 138, 4, 0.2); }
body.theme-lux .blob-3 { background: rgba(253, 224, 71, 0.15); }

body.theme-lux .gradient-text {
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  background-clip: text;
  -webkit-background-clip: text;
}
body.theme-lux .text-glow { text-shadow: 0 0 1.875rem rgba(253, 230, 138, 0.4); }
body.theme-lux .btn-primary { box-shadow: 0 0.25rem 0.875rem rgba(234, 179, 8, 0.4); }
body.theme-lux .btn-primary:hover { box-shadow: 0 0.375rem 1.25rem rgba(234, 179, 8, 0.6); }

body.theme-lux .badge {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.3);
  color: #fde68a;
}
body.theme-lux .badge-dot {
  background: #fbbf24;
  box-shadow: 0 0 0.5rem #fbbf24;
}
body.theme-lux .feature-icon-wrapper {
  background: var(--theme-lux-light);
  border-color: var(--theme-lux-border);
  color: var(--theme-lux-hover);
}
body.theme-lux .info-icon {
  background: rgba(234, 179, 8, 0.05);
  border-color: rgba(234, 179, 8, 0.15);
  color: var(--theme-lux-secondary);
}
body.theme-lux .info-step.active .info-icon {
  background: var(--theme-lux-light);
  border-color: var(--theme-lux-border);
  color: var(--theme-lux-primary);
  box-shadow: 0 0 1.875rem rgba(234, 179, 8, 0.4);
}
body.theme-lux .info-icon.pulse-glow {
  box-shadow: 0 0 1.5625rem rgba(234, 179, 8, 0.5);
}

/* ========================================
   Utility Classes
   ======================================== */

/*配列*/
.text_right { text-align: right; }
.text_left { text-align: left; }
.text_center { text-align: center; }

/*PCのみ配列*/
@media screen and (min-width: 45.875rem) {
  .text_right_pc { text-align: right; }
  .text_left_pc { text-align: left; }
  .text_center_pc { text-align: center; }
/*pc end*/}

/*スマホのみ配列*/
@media screen and (max-width: 45.8125rem) {
  .text_right_smp { text-align: right; }
  .text_left_smp { text-align: left; }
  .text_center_smp { text-align: center; }
/*smp end*/}

/* 表示切り替え */
.display_pc { display: block; }
.display_smp { display: none; }
img.display_pc { display: inline-block; }
img.display_smp { display: none; }

@media screen and (max-width: 45.8125rem) {
  .display_pc { display: none; }
  .display_smp { display: block; }
  img.display_pc { display: none; }
  img.display_smp { display: inline-block; }
/*smp end*/}

/* ========================================
   Feature Video & Modal
   ======================================== */

/* Video thumbnail in feature card */
.feature-video {
  position: relative;
  margin-top: 1.5rem;
  border-radius: 0.625rem;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.feature-video img,
.feature-video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.625rem;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.feature-video:hover video {
  opacity: 0.85;
}

/* Play button overlay on thumbnail — CSS triangle */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
  z-index: 2;
  backdrop-filter: blur(0.25rem);
  -webkit-backdrop-filter: blur(0.25rem);
}

.video-play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.75rem 0 0.75rem 1.375rem;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

.video-play-btn:hover {
  background: rgba(236, 72, 153, 0.7);
  border-color: rgba(236, 72, 153, 0.9);
  transform: translate(-50%, -50%) scale(1.12);
}

/* Mute button on thumbnail */
.video-mute-btn {
  position: absolute;
  bottom: 0.625rem;
  right: 0.625rem;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s;
  z-index: 2;
}

.video-mute-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* ---- Video Modal ---- */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 75rem;
  z-index: 1;
}

.video-modal-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Modal player wrapper */
.video-modal-player {
  border-radius: 0.75rem;
  overflow: hidden;
  background: #000;
}

.video-modal-player video {
  width: 100%;
  display: block;
}

/* Click area over video (not over controls) */
.video-modal-video-wrap {
  position: relative;
}

/* Canvas overlay — captures paused frame to avoid black screen in Safari */
/* width/height/top/left are set by JS in captureFrame() to match the exact rendered frame */
#modalCanvas {
  position: absolute;
  display: none;
  pointer-events: none;
}

/* Large center play/pause overlay */
.video-modal-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}

/* Overlay icon — play triangle / pause bars via CSS */
.overlay-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s, transform 0.3s;
  backdrop-filter: blur(0.25rem);
  -webkit-backdrop-filter: blur(0.25rem);
  position: relative;
}

/* Play triangle (default = paused) */
.overlay-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.875rem 0 0.875rem 1.625rem;
  border-color: transparent transparent transparent #fff;
  margin-left: 0.25rem;
}

/* Pause bars (when playing) */
.video-modal-play-overlay.is-playing .overlay-icon::after {
  border: none;
  width: 1rem;
  height: 1.625rem;
  margin-left: 0;
  border-left: 0.3125rem solid #fff;
  border-right: 0.3125rem solid #fff;
}

/* Hide overlay by default while playing */
.video-modal-play-overlay.is-playing .overlay-icon {
  opacity: 0;
  transform: scale(1.3);
  pointer-events: none;
}

/* Show pause icon only after user has interacted (clicked once) */
.video-modal-play-overlay.has-interacted:hover .overlay-icon {
  opacity: 1;
  transform: scale(1);
}

/* Bottom control bar — static, below video */
.video-modal-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem 0.875rem;
}

.modal-ctrl-play,
.modal-ctrl-mute {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  flex-shrink: 0;
}

.modal-ctrl-play:hover,
.modal-ctrl-mute:hover {
  color: var(--theme-accent-hover, #f472b6);
}

/* Seekbar */
.modal-ctrl-seekbar {
  flex: 1;
  height: 0.375rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.1875rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.modal-ctrl-seekbar-fill {
  height: 100%;
  width: 0%;
  background: var(--theme-accent-primary, #ec4899);
  border-radius: 0.1875rem;
  pointer-events: none;
}

.modal-ctrl-time {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* Paging arrows */
.video-modal-prev,
.video-modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s;
  z-index: 5;
}

.video-modal-prev { left: -3.5rem; }
.video-modal-next { right: -3.5rem; }

.video-modal-prev:hover,
.video-modal-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 62rem) {
  .video-modal-prev { left: 0.5rem; }
  .video-modal-next { right: 0.5rem; }
}
/* Keep the fixed site navigation below WordPress's toolbar for signed-in users. */
body.admin-bar .navbar {
  top: var(--wp-admin--admin-bar--height, 2rem);
}

@media (max-width: 45.8125rem) {
  body.admin-bar .nav-links {
    top: var(--wp-admin--admin-bar--height, 2.875rem);
    height: calc(100vh - var(--wp-admin--admin-bar--height, 2.875rem));
  }
}

@media (max-width: 37.5rem) {
  html #wpadminbar {
    position: fixed;
  }
}

.usecase-section,
.usecase-archive,
.article-shell,
.not-found-shell {
  position: relative;
  z-index: 1;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.usecase-card {
  --usecase-card-hover-bg: linear-gradient(135deg, rgba(110, 86, 207, 0.18), rgba(62, 130, 247, 0.08));
  --usecase-card-hover-border: rgba(139, 92, 246, 0.42);
  --usecase-card-hover-shadow: 0 1rem 2.125rem rgba(110, 86, 207, 0.2);
  overflow: hidden;
  padding: 0;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

body.theme-studio .usecase-card {
  --usecase-card-hover-bg: linear-gradient(135deg, rgba(106, 47, 216, 0.22), rgba(139, 92, 246, 0.08));
  --usecase-card-hover-border: rgba(139, 92, 246, 0.48);
  --usecase-card-hover-shadow: 0 1rem 2.125rem rgba(106, 47, 216, 0.24);
}

body.theme-lux .usecase-card {
  --usecase-card-hover-bg: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(202, 138, 4, 0.07));
  --usecase-card-hover-border: rgba(234, 179, 8, 0.46);
  --usecase-card-hover-shadow: 0 1rem 2.125rem rgba(202, 138, 4, 0.22);
}

body.theme-hub .usecase-card {
  --usecase-card-hover-bg: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.07));
  --usecase-card-hover-border: rgba(16, 185, 129, 0.46);
  --usecase-card-hover-shadow: 0 1rem 2.125rem rgba(5, 150, 105, 0.22);
}

.usecase-card:hover,
.usecase-card:focus-within {
  background: var(--usecase-card-hover-bg);
  border-color: var(--usecase-card-hover-border);
  box-shadow: var(--usecase-card-hover-shadow);
}

.usecase-card-link {
  display: block;
  box-sizing: border-box;
  height: 100%;
  padding: 2rem;
  color: inherit;
  text-decoration: none;
}

.usecase-card-link:focus-visible {
  border-radius: 0.9375rem;
  outline: 2px solid var(--theme-accent-hover, #a78bfa);
  outline-offset: -0.25rem;
}

.usecase-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.usecase-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.usecase-card:hover .usecase-card-image img,
.usecase-card:focus-within .usecase-card-image img {
  transform: scale(1.025);
}

.category-card-title a {
  color: inherit;
  text-decoration: none;
}

.usecase-card-meta,
.usecase-card-title,
.usecase-card-excerpt {
  display: block;
}

.usecase-card-meta,
.article-meta {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.85rem;
}

.usecase-card-excerpt {
  color: var(--text-secondary, rgba(255, 255, 255, 0.72));
}

.archive-pagination {
  margin-top: 2.5rem;
  text-align: center;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  margin: 0.2rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.archive-pagination .current {
  background: rgba(255, 255, 255, 0.12);
}

.article-content {
  max-width: 62.5rem;
  margin: 0 auto;
}

.article-page-header {
  max-width: 62.5rem;
  margin-bottom: 1.5rem;
}

.article-page-title {
  margin-bottom: 0;
  line-height: 1.35;
}

.article-breadcrumbs .rune-breadcrumb {
  margin: 0 auto 1.5rem;
max-width: 62.5rem;
}

.article-header-meta {
  margin: 0 auto 2rem;
  text-align: center;
}

.article-shell .article-content {
  padding: 2.5rem;
}

.article-content figure {
  margin-right: 0;
  margin-left: 0;
}

.article-content .wp-block-image > figcaption.wp-element-caption {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: center;
}

.article-content img,
.article-content video,
.article-content iframe {
  max-width: 100%;
  height: auto;
}

.article-content > * + * {
  margin-top: 1.25em;
}

.article-content {
  --article-heading-accent: #8b5cf6;
  --article-heading-line: rgba(139, 92, 246, 0.5);
  --article-heading-background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(106, 47, 216, 0.08));
}

body.theme-studio .article-content {
  --article-heading-accent: #8b5cf6;
  --article-heading-line: rgba(139, 92, 246, 0.5);
  --article-heading-background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(106, 47, 216, 0.08));
}

body.theme-hub .article-content {
  --article-heading-accent: var(--theme-hub-primary);
  --article-heading-line: rgba(16, 185, 129, 0.5);
  --article-heading-background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.07));
}

body.theme-lux .article-content {
  --article-heading-accent: var(--theme-lux-primary);
  --article-heading-line: rgba(234, 179, 8, 0.55);
  --article-heading-background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(202, 138, 4, 0.07));
}

.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: var(--text-primary, #f8fafc);
  font-weight: 700;
  line-height: 1.5;
  scroll-margin-top: 7rem;
}

.article-content h2 {
  margin: 5.25rem 0 1.5rem;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  background: var(--article-heading-background);
  font-size: 1.75rem;
}

.article-content h3 {
  margin: 2.75rem 0 1.25rem;
  padding-bottom: 0.55rem;
  border-bottom: 0.125rem solid var(--article-heading-line);
  font-size: 1.5rem;
}

.article-content h4 {
  position: relative;
  margin: 2.25rem 0 1rem;
  padding-inline-start: 0.9rem;
  font-size: 1.375rem;
}

.article-content h4::before {
  position: absolute;
  top: 0.35em;
  bottom: 0.35em;
  left: 0;
  width: 0.25rem;
  border-radius: 999rem;
  background: var(--article-heading-accent);
  content: "";
}

.article-content h5 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}

.article-content h6 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1.25rem;
}

.article-content ul,
.article-content ol {
  list-style-position: outside;
}

.article-content ul {
  padding-inline-start: 1.75em;
}

.article-content ol {
  padding-inline-start: 2.25em;
}

.article-content li + li {
  margin-top: 0.35em;
}

.article-content li > ul,
.article-content li > ol {
  margin-top: 0.5em;
}

.rune-breadcrumb {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.rune-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rune-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: rgba(255, 255, 255, 0.4);
}

.rune-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

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

.article-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.article-categories a {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 62.4375rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  text-decoration: none;
}

.article-categories a:hover,
.article-categories a:focus-visible {
  border-color: var(--theme-accent-hover, #a78bfa);
  color: #fff;
}

.article-product-cta {
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.article-product-cta p {
  margin: 0 0 1rem;
}

.article-footer-meta {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.58);
  text-align: right;
}

.article-footer-meta .article-modified {
  margin: 0;
}

.related-usecases {
  margin-top: 3rem;
}

.related-usecases > .feature-title {
  margin-bottom: 1.25rem;
  text-align: center;
}

.footer-copyright {
  color: #a8b0bd;
  opacity: 1;
}

.changelog-list details > summary {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 1.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  cursor: pointer;
}

@media (max-width: 56.25rem) {
  .usecase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 40rem) {
  .article-page-header {
    margin-bottom: 1rem;
  }

  .article-page-title {
    line-height: 1.45;
  }

  .article-breadcrumbs .rune-breadcrumb {
    margin-bottom: 1rem;
  }

  .article-shell .article-content {
    padding: 1.5rem 1rem 1.5rem;
  }

  .article-content h2 {
    margin-top: 4.5rem;
    padding: 0.7rem 0.8rem;
    font-size: 1.5rem;
  }

  .article-content h3 {
    margin-top: 2.5rem;
    font-size: 1.375rem;
  }

  .article-content h4 {
    margin-top: 2rem;
    font-size: 1.25rem;
  }

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

  .usecase-card-link {
    padding: 1.5rem 0.625rem;
  }
}
