:root {
  --color-primary: #10B981;
  --color-secondary: #1B2B22;
  --color-accent: #34D399;
  --color-background: #EEF1EA;
  --color-surface: #1B2B22;
  --color-surface-light: #FFFFFF;
  --color-text-primary: #111827;
  --color-text-secondary: #4B5563;
  --color-text-on-dark: #F9FAFB;
  --color-text-muted-on-dark: #9CA3AF;
  --color-border-light: rgba(27, 43, 34, 0.12);
  --color-border-dark: rgba(255, 255, 255, 0.12);
  --color-border-accent: rgba(52, 211, 153, 0.28);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Apple SD Gothic Neo", "Yu Gothic Medium", "Yu Gothic", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "JetBrains Mono", monospace;

  --spacing-base: 8px;
  --spacing-sm: 12px;
  --spacing-gap: 16px;
  --spacing-card: 24px;
  --spacing-card-lg: 32px;
  --spacing-section: 80px;

  --rounded-card: 23px;
  --rounded-control: 23px;
  --rounded-pill: 9999px;

  --shadow-card: 0 4px 20px -4px rgba(27, 43, 34, 0.06);
  --shadow-hover: 0 16px 36px -12px rgba(27, 43, 34, 0.14);
  --shadow-glow: 0 16px 36px -12px rgba(16, 185, 129, 0.25);
}

/* Language-specific Typography */
html[lang="ja"] {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", YuGothic, "Meiryo", "Noto Sans JP", sans-serif;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
}

html[lang="ja"] body {
  line-height: 1.7;
}

html[lang="ja"] .hero-title,
html[lang="ja"] .card-title {
  letter-spacing: -0.01em;
}

html[lang="ko"] {
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

html[lang="ko"] .hero-title,
html[lang="ko"] .card-title {
  letter-spacing: -0.03em;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

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

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

/* Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
.header-wrapper {
  position: sticky;
  top: 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  width: 100%;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1024px;
  padding: 8px 12px 8px 18px;
  background: rgba(238, 241, 234, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border-light);
  border-radius: var(--rounded-pill);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--color-secondary);
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(27, 43, 34, 0.08);
  color: var(--color-secondary);
  padding: 3px 8px;
  border-radius: var(--rounded-pill);
  font-weight: 600;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

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

.badge-appstore-link {
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  line-height: 0;
}

.badge-appstore-link:hover {
  transform: scale(1.03);
  opacity: 0.95;
}

.badge-appstore-link:active {
  transform: scale(0.98);
}

.badge-appstore-img {
  height: 38px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Mobile Hamburger Menu Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  color: var(--color-secondary);
  transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
  background-color: rgba(27, 43, 34, 0.08);
}

.mobile-menu-btn .icon-close {
  display: none;
}

.mobile-menu-btn[aria-expanded="true"] .icon-menu {
  display: none;
}

.mobile-menu-btn[aria-expanded="true"] .icon-close {
  display: block;
}

/* Mobile Dropdown Menu */
.mobile-menu {
  width: 100%;
  max-width: 1024px;
  margin-top: 8px;
  background: rgba(238, 241, 234, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border-light);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 12px 32px rgba(27, 43, 34, 0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 16px;
}

.mobile-nav-links a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-decoration: none;
  display: block;
}

.mobile-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.mobile-lang-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.mobile-appstore-wrap {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(27, 43, 34, 0.06);
  border: 1px solid var(--color-border-light);
  border-radius: var(--rounded-pill);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.lang-dropdown-btn:hover {
  background: rgba(27, 43, 34, 0.1);
  color: var(--color-text-primary);
}

.lang-dropdown-btn[aria-expanded="true"] {
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lang-dropdown-btn .lang-chevron {
  transition: transform 0.2s ease;
  color: var(--color-text-secondary);
}

.lang-dropdown-btn[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border-light);
  border-radius: 14px;
  box-shadow: 0 10px 28px -4px rgba(27, 43, 34, 0.14);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.lang-dropdown.is-open .lang-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-option {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lang-option:hover {
  background: rgba(27, 43, 34, 0.06);
  color: var(--color-text-primary);
}

.lang-option.active {
  background: rgba(16, 185, 129, 0.12);
  color: #065F46;
  font-weight: 700;
}

.lang-option.active::after {
  content: "✓";
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: bold;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--rounded-pill);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-text-on-dark);
}

.btn-primary:hover {
  background-color: #121e17;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 43, 34, 0.25);
}

.btn-accent {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.btn-accent:hover {
  background-color: #0d9668;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-secondary {
  background: rgba(27, 43, 34, 0.06);
  color: var(--color-secondary);
  border: 1px solid var(--color-border-light);
}

.btn-secondary:hover {
  background: rgba(27, 43, 34, 0.12);
}

/* Hero Section */
.hero-section {
  padding: 60px 0 40px;
  text-align: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(16, 185, 129, 0.12);
  color: #065F46;
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 6px 14px;
  border-radius: var(--rounded-pill);
  margin-bottom: 24px;
}

.eyebrow-pill .dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--color-secondary);
  max-width: 1060px;
  margin: 0 auto 20px;
  text-align: center;
}

.hero-title .highlight {
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  max-width: 720px;
  margin: 0 auto 32px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-appstore-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  line-height: 0;
}

.hero-appstore-badge img {
  height: 52px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hero-appstore-badge:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-appstore-badge:active {
  transform: scale(0.98);
}

.hero-meta-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  flex-wrap: wrap;
}

.hero-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Bento Showcase Grid */
.bento-section {
  padding: 40px 0 var(--spacing-section);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--spacing-gap);
}

/* Card Base */
.bento-card {
  border-radius: var(--rounded-card);
  padding: var(--spacing-card);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
}

/* Card Themes */
.card-dark {
  background-color: var(--color-surface);
  color: var(--color-text-on-dark);
  border: 1px solid var(--color-border-dark);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.2);
}

.card-dark:hover {
  box-shadow: var(--shadow-glow);
  border-color: var(--color-border-accent);
}

.card-light {
  background-color: var(--color-surface-light);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-card);
}

.card-light:hover {
  box-shadow: var(--shadow-hover);
}

/* Card Column Spans */
.col-8 {
  grid-column: span 8;
}

.col-4 {
  grid-column: span 4;
}

.col-6 {
  grid-column: span 6;
}

.col-12 {
  grid-column: span 12;
}

/* Bento Card Elements */
.card-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
  margin-bottom: 14px;
}

.badge-dark-mint {
  background: rgba(52, 211, 153, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-light-green {
  background: rgba(16, 185, 129, 0.1);
  color: #065F46;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.card-title {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.card-description {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 20px;
}

.card-dark .card-description {
  color: var(--color-text-muted-on-dark);
}

.card-light .card-description {
  color: var(--color-text-secondary);
}

/* Mock Showcase Frames */
.mock-showcase-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: #EAE8D0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.mock-showcase-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Metrics Array Inside Dark Bento */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-dark);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.03em;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--color-text-muted-on-dark);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.card-light .metrics-grid {
  border-top-color: var(--color-border-light);
}

.card-light .metric-value {
  color: var(--color-primary);
}

.card-light .metric-label {
  color: var(--color-text-secondary);
}

/* Feature List */
.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.feature-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
}

.check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  flex-shrink: 0;
}

/* Testimonials Array (Neuform Sylvan Inspired) */
.testimonials-section {
  padding: 40px 0 var(--spacing-section);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-secondary);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 24px;
}

.card-dark .testimonial-quote {
  color: #E5E7EB;
}

.card-light .testimonial-quote {
  color: #1F2937;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
}

.card-dark .testimonial-author {
  border-top-color: var(--color-border-dark);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.author-handle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-primary);
}

.author-role {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
}

.card-dark .author-role {
  color: var(--color-text-muted-on-dark);
}

/* Privacy CTA Banner */
.privacy-banner {
  background: var(--color-surface);
  color: var(--color-text-on-dark);
  border-radius: var(--rounded-card);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--color-border-dark);
  margin-bottom: var(--spacing-section);
  gap: 24px;
  flex-wrap: wrap;
}

.privacy-banner-text {
  max-width: 640px;
}

.privacy-banner-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--color-text-on-dark);
}

.privacy-banner-desc {
  color: var(--color-text-muted-on-dark);
  font-size: 0.95rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--color-border-light);
  padding: 48px 0 36px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(27, 43, 34, 0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-tagline {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  margin: 0;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* Legal Page (Privacy) Specific Styles */
.legal-page {
  padding: 40px 0 80px;
}

.legal-card {
  background: var(--color-surface-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--rounded-card);
  padding: 48px;
  box-shadow: var(--shadow-card);
  max-width: 860px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 24px;
}

.legal-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.legal-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.legal-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 28px 0 12px;
}

.legal-body p {
  margin-bottom: 16px;
  color: #374151;
  font-size: 0.98rem;
  line-height: 1.7;
}

.legal-body ul {
  margin-bottom: 20px;
  padding-left: 24px;
}

.legal-body li {
  margin-bottom: 8px;
  color: #374151;
  font-size: 0.98rem;
  line-height: 1.6;
}

.legal-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(16, 185, 129, 0.12);
  color: #065F46;
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
  margin-bottom: 16px;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .col-8, .col-4, .col-6 {
    grid-column: span 12;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nav-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .legal-card {
    padding: 24px;
  }

  .footer-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
