/* ===============================================
   GYODON — Homepage
   Theme: Kawaii Pastel Light
   Aligned with core.css variables
   =============================================== */

:root {
  /* Gyodon Kawaii Palette */
  --primary-color: #ffb7ce;
  --primary-hover: #fca3be;
  --primary-glow: rgba(255, 183, 206, 0.2);
  --primary-glow-strong: rgba(255, 183, 206, 0.35);
  --secondary-color: #a0c4ff;

  --body-bg-start: #bde0fe;
  --body-bg-middle: #caf0f8;
  --body-bg-end: #bde0fe;
  --card-bg: rgba(255, 255, 255, 0.85);
  --frame-bg: #f1f8ff;
  --bubble-bg: #fff0f3;
  --sidebar-bg: #e8f0fe;

  --text-primary: #4a4a5a;
  --text-secondary: #7d8cc4;
  --text-muted: #8899aa;
  --text-gray: #6a7a8a;

  --link-color: #7c6bc4;
  --link-hover: #a29bfe;

  --border-color: #a29bfe;
  --border-dark: #d4c5f9;
  --border-subtle: #ddd5f9;
  --shadow-inset: rgba(162, 155, 254, 0.15);
  --shadow-default: rgba(0,0,0,0.06);

  --success-color: #00e68a;
  --error-color: #ff6b6b;
  --info-color: #ffaa00;

  --accent-amber: #ffb7ce;
  --accent-green: #00e68a;
  --accent-red: #ff6b6b;
  --accent-cyan: #72c1f5;
  --accent-blue: #a0c4ff;

  --bg-card-hover: rgba(255, 255, 255, 0.92);

  /* Layout */
  --sidebar-width: 280px;
  --sidebar-collapsed: 62px;

  --border-radius: 25px;
  --border-radius-small: 15px;
  --border-radius-tiny: 5px;
  --radius: 25px;
  --radius-sm: 15px;

  /* Fonts */
  --font-body: 'Ropa Sans', sans-serif;
  --font-display: 'Ropa Sans', sans-serif;
  --font-mono: 'Fira Code', 'JetBrains Mono', 'Source Code Pro', monospace;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17pt;
  font-weight: 300;
  line-height: 1.75em;
  background: var(--body-bg-middle);
  background-image:
    linear-gradient(var(--secondary-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--secondary-color) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--text-primary);
  overflow-x: hidden;
}

a { color: var(--link-color); text-decoration: none; }
a:hover { color: var(--link-hover); text-shadow: var(--link-color) 0 0 2px; }

/* ===============================================
   SIDEBAR
   =============================================== */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-collapsed);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 3px solid var(--border-color);
  box-shadow: 2px 0 12px rgba(162, 155, 254, 0.12);
  z-index: 9999;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar:hover,
.sidebar.expanded {
  width: var(--sidebar-width);
}

.sidebar-logo {
  padding: 14px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--border-color);
  min-height: 62px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.4);
}

.sidebar-logo .logo-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  position: relative;
  transition: all var(--transition);
}

.sidebar:hover .logo-icon {
  box-shadow: 0 0 16px rgba(255, 183, 206, 0.4);
}

.sidebar-logo .logo-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
  letter-spacing: 0.5px;
}

.sidebar:hover .logo-text,
.sidebar.expanded .logo-text {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-nav {
  flex: 1;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 15px;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  transition: all var(--transition);
  white-space: nowrap;
  font-size: 15px;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: var(--primary-color);
  border-radius: 0 4px 4px 0;
  transition: height var(--transition);
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 183, 206, 0.15);
  text-shadow: none;
}

.nav-item:hover::before,
.nav-item.active::before {
  height: 22px;
}

.nav-item.active {
  color: var(--primary-color);
  background: var(--primary-glow);
}

.nav-icon {
  width: 32px;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  border-radius: var(--border-radius-small);
  transition: all var(--transition);
}

.nav-item:hover .nav-icon {
  transform: scale(1.08);
}

.nav-label {
  font-size: 14px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
}

.sidebar:hover .nav-label,
.sidebar.expanded .nav-label {
  opacity: 1;
  transform: translateX(0);
}

.nav-item:nth-child(2) .nav-label { transition-delay: 0.06s; }
.nav-item:nth-child(3) .nav-label { transition-delay: 0.08s; }
.nav-item:nth-child(4) .nav-label { transition-delay: 0.10s; }
.nav-item:nth-child(5) .nav-label { transition-delay: 0.12s; }
.nav-item:nth-child(6) .nav-label { transition-delay: 0.14s; }

.sidebar-footer {
  padding: 14px 15px;
  border-top: 2px solid var(--border-color);
  background: rgba(255, 240, 243, 0.5);
}

.sidebar-status {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  min-width: 8px;
  height: 8px;
  background: var(--success-color);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 230, 138, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(0, 230, 138, 0); }
}

.status-text {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.3s ease 0.15s;
}

.sidebar:hover .status-text,
.sidebar.expanded .status-text { opacity: 1; }

/* ===============================================
   MAIN CONTENT
   =============================================== */

.main {
  transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===============================================
   HERO
   =============================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(162, 155, 254, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(162, 155, 254, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 183, 206, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-glow);
  border: 2px solid rgba(255, 183, 206, 0.4);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary-color);
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  width: fit-content;
  animation: fadeInUp 0.8s ease both;
}

.hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: pulse-dot-pink 2s infinite;
}

@keyframes pulse-dot-pink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 183, 206, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(255, 183, 206, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 68px) !important;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary-color);
  text-shadow: 0 0 30px rgba(255, 183, 206, 0.3);
}

.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.btn {
  padding: 13px 30px;
  border-radius: var(--border-radius-small);
  font-family: var(--font-body);
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255, 183, 206, 0.3);
}

a.btn-primary:visited {
  color: #fff;
  background-color: var(--primary-hover);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 183, 206, 0.4);
  text-shadow: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.8);
  text-shadow: none;
}


/* ===============================================
   TIMELINE
   =============================================== */

.timeline-section {
  padding: 80px 60px;
}

.timeline {
  position: relative;
  max-width: 880px;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-cyan), var(--success-color));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 0 0 44px 30px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -41px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  transition: all var(--transition);
}

.timeline-item:hover::before {
  background: var(--primary-color);
  box-shadow: 0 0 12px rgba(255, 183, 206, 0.5);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary-color);
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.timeline-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-tag {
  display: inline-block;
  padding: 2px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  border-radius: var(--border-radius-tiny);
  margin-top: 8px;
  background: var(--primary-glow);
  color: var(--primary-color);
  border: 1px solid rgba(255, 183, 206, 0.3);
}

.timeline-tag.security {
  background: rgba(0, 230, 138, 0.1);
  color: var(--success-color);
  border-color: rgba(0, 230, 138, 0.3);
}

.timeline-tag.milestone {
  background: rgba(255, 183, 206, 0.15);
  color: var(--primary-color);
  border-color: rgba(255, 183, 206, 0.4);
  font-weight: 600;
}

/* ===============================================
   CMS COMPARISON TABLE
   =============================================== */

.compare-section {
  padding: 80px 60px;
  background: var(--card-bg);
  border-top: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
  border-radius: var(--border-radius);
}

.compare-table-wrap {
  max-width: 1000px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.compare-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.compare-table thead th.highlight {
  color: var(--primary-color);
  background: var(--primary-glow);
  border-radius: var(--radius) var(--radius) 0 0;
}

.compare-table tbody td {
  padding: 13px 18px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-dark);
  vertical-align: middle;
  font-size: 13px;
}

.compare-table tbody td:first-child {
  font-weight: 600;
  color: var(--text-secondary);
}

.compare-table tbody td.highlight {
  background: rgba(255, 183, 206, 0.08);
  color: var(--text-primary);
  font-weight: 600;
}

.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: rgba(255, 183, 206, 0.05); }

.check { color: var(--success-color); font-size: 16px; }
.cross { color: var(--error-color); opacity: 0.7; font-size: 16px; }
.partial { color: var(--primary-color); font-size: 16px; }

/* ===============================================
   ZERO BS BADGE
   =============================================== */

.zerobs-section {
  padding: 80px 60px;
  display: flex;
  justify-content: center;
}

.zerobs-card {
  max-width: 680px;
  width: 100%;
  background: var(--card-bg);
  border: 3px solid var(--border-color);
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-default);
}

.zerobs-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--success-color), var(--accent-cyan), var(--primary-color));
}

.zerobs-badge-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  background: rgba(0, 230, 138, 0.1);
  border: 3px solid rgba(0, 230, 138, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  position: relative;
}

.zerobs-badge-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(0, 230, 138, 0.15);
  animation: pulse-ring 3s infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.3; }
}

.zerobs-title {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.zerobs-subtitle {
  font-size: 15px;
  color: var(--success-color);
  font-weight: 600;
  margin-bottom: 22px;
}

.zerobs-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto;
}

.zerobs-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 2px solid var(--border-dark);
}

.zerobs-metric-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--success-color);
}

.zerobs-metric-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

/* ===============================================
   FEATURES GRID
   =============================================== */

.features-section {
  padding: 80px 60px;
  background: var(--card-bg);
  border-top: 2px solid var(--border-color);
  border-radius: var(--border-radius);
}

.section-header,
.features-grid,
.compare-table-wrap,
.timeline,
.stats-dashboard,
.counters-grid {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--frame-bg);
  border: 2px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 26px;
  transition: all var(--transition);
  box-shadow: 0 2px 6px rgba(162, 155, 254, 0.08);
}

.feature-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 183, 206, 0.2);
}

.feature-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  background: var(--primary-glow);
  border-radius: var(--border-radius-small);
  margin-bottom: 14px;
}

.feature-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===============================================
   CTA
   =============================================== */

.cta-section {
  padding: 100px 60px;
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 183, 206, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.cta-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 32px;
}


/* ===============================================
   ANIMATIONS
   =============================================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===============================================
   RESPONSIVE
   =============================================== */

@media (max-width: 1024px) {
  .stats-dashboard { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    flex-direction: row;
    overflow-x: auto;
  }
  .sidebar-nav { flex-direction: row; padding: 0; }
  .nav-label { display: none; }
  .sidebar-logo .logo-text { display: none; }
  .sidebar-footer { display: none; }
  .main { margin-left: 0; }

  .hero, .counters-section, .stats-section, .timeline-section,
  .compare-section, .zerobs-section, .features-section, .cta-section {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero { min-height: auto; padding-top: 50px; padding-bottom: 50px; }
  .stats-dashboard { grid-template-columns: 1fr; }
  .zerobs-metrics { grid-template-columns: 1fr; }
  .compare-table { font-size: 11px; }
  .site-footer { padding: 20px; }
}


/* ===============================================
   ANIMATED COUNTERS
   =============================================== */

.counters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.counter-card {
  background: var(--card-bg) !important;
  border: 2px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.counter-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.counter-card:hover {
  border-color: var(--primary-color);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 4px 24px rgba(255, 183, 206, 0.15);
}

.counter-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.counter-card:hover::after { opacity: 1; }

.counter-value {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.counter-value .counter-suffix {
  font-size: 20px;
  color: var(--primary-color);
}

.counter-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Counter accent colors */
.counter-card[data-accent="gold"] .counter-value { color: var(--primary-color); }
.counter-card[data-accent="green"] .counter-value { color: var(--success-color); }
.counter-card[data-accent="cyan"] .counter-value { color: var(--accent-cyan); }
.counter-card[data-accent="red"] .counter-value { color: var(--error-color); }
