/*
Theme Name: Fixey - AI Equipment Maintenance
Theme URI: https://fa-craft.co.jp/fixey
Author: FAcraft Co., Ltd.
Author URI: https://fa-craft.co.jp
Description: English landing page theme for Fixey — AI-powered equipment maintenance agent for manufacturing.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fixey
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: #242528; background: #fff; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

:root {
  --primary: #163676;
  --primary-mid: #1955a7;
  --primary-light: #e9eff8;
  --accent: #ff5d00;
  --accent-hover: #e85400;
  --dark: #163676;
  --text: #242528;
  --text-muted: #5f6368;
  --border: #e5e7eb;
  --bg-light: #f7f9fc;
  --white: #ffffff;
  --max-w: 1160px;
  --radius: 12px;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.text-center { text-align: center; }

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; line-height: 1.3; }
.subtitle { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; max-width: 640px; }
.label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 14px;
}

/* === GLOBAL SCROLL ANIMATIONS === */
.anim-fade { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.anim-fade.in-view { opacity: 1; transform: translateY(0); }
.anim-fade-left { opacity: 0; transform: translateX(-36px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.anim-fade-left.in-view { opacity: 1; transform: translateX(0); }
.anim-fade-right { opacity: 0; transform: translateX(36px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.anim-fade-right.in-view { opacity: 1; transform: translateX(0); }
.anim-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.anim-scale.in-view { opacity: 1; transform: scale(1); }
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 34px; font-size: 0.95rem; font-weight: 600;
  border-radius: 8px; border: none; cursor: pointer;
  transition: all 0.25s; font-family: inherit;
}
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(255,93,0,0.3); }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,93,0,0.4); }
.btn-white { background: #fff; color: var(--primary); border: 2px solid #fff; }
.btn-white:hover { background: rgba(255,255,255,0.9); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-outline-dark { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline-dark:hover { background: var(--primary-light); transform: translateY(-2px); }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #fff; transition: box-shadow 0.3s;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 8px 24px; height: 72px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: calc(72px * 0.8); width: auto; }
.nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.08); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  transition: color 0.3s; position: relative;
}
.nav-links a:not(.btn):hover { color: var(--primary); }
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent); transform: scaleX(0);
  transition: transform 0.3s; transform-origin: center;
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta { padding: 10px 20px; font-size: 0.84rem; }
.nav-mobile { display: none; background: none; border: none; cursor: pointer; }
.nav-mobile svg { width: 28px; height: 28px; stroke: var(--text); fill: none; stroke-width: 2; }
.mobile-menu { display: none; position: fixed; inset: 0; background: var(--dark); z-index: 2000; padding: 80px 24px; flex-direction: column; gap: 20px; }
.mobile-menu.active { display: flex; }
.mobile-menu a { color: #fff; font-size: 1.2rem; font-weight: 500; }
.mobile-close { position: absolute; top: 20px; right: 24px; background: none; border: none; cursor: pointer; }
.mobile-close svg { width: 28px; height: 28px; stroke: #fff; }

/* === HERO === */
.hero {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  min-height: 100vh; min-height: 100dvh;
  padding-top: 66px;
  background-size: cover; background-position: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 90% 70% at 20% 50%, rgba(25,85,167,0.4) 0%, transparent 65%),
    radial-gradient(ellipse 80% 60% at 80% 30%, rgba(25,120,200,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 50% 80%, rgba(22,54,118,0.3) 0%, transparent 55%),
    linear-gradient(135deg, rgba(22,54,118,0.55) 0%, rgba(25,85,167,0.25) 50%, rgba(22,54,118,0.5) 100%);
  background-size: 300% 300%, 300% 300%, 250% 250%, 100% 100%;
  animation: heroWaveFlow 10s ease-in-out infinite;
}
@keyframes heroWaveFlow {
  0%   { background-position: 100% 100%, 100% 100%, 100% 100%, center; }
  25%  { background-position: 70% 70%,   80% 60%,   75% 65%,  center; }
  50%  { background-position: 30% 40%,   40% 30%,   35% 35%,  center; }
  75%  { background-position: 10% 20%,   20% 10%,   15% 15%,  center; }
  100% { background-position: 100% 100%, 100% 100%, 100% 100%, center; }
}
.hero-content-area { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px 0; width: 100%; }
.hero-text { padding: 32px 0; }
.hero h1 {
  color: #fff; margin-bottom: 20px;
  opacity: 0; transform: translateY(40px) scale(0.97);
  animation: heroH1In 1.2s cubic-bezier(0.22,1,0.36,1) 0.3s forwards;
}
@keyframes heroH1In {
  0%   { opacity: 0; transform: translateY(40px) scale(0.97); filter: blur(4px); }
  60%  { opacity: 1; filter: blur(0); }
  80%  { transform: translateY(-4px) scale(1.005); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.hero h1 span { color: var(--accent); }
.hero h1 .fixey-brand {
  display: inline-flex; flex-direction: column; align-items: center; position: relative;
  background: #000000c4; padding: 8px 28px 10px; border-radius: 14px;
  font-size: 1.15em; letter-spacing: 0.08em; margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}
.hero h1 .fixey-brand-sub {
  display: block; font-size: 0.28em; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55); -webkit-text-fill-color: rgba(255,255,255,0.55);
  font-weight: 500; text-transform: uppercase; margin-bottom: 2px;
}
.hero h1 .fixey-brand-main { display: flex; line-height: 1.1; }
.hero h1 .fixey-char { display: inline-block; position: relative; overflow: hidden; }
.hero h1 .fixey-char-inner {
  display: inline-block; -webkit-text-fill-color: transparent;
  background-clip: text; -webkit-background-clip: text;
  transform: translateY(110%);
  animation: fixeyCharReveal 0.45s cubic-bezier(0.22,1,0.36,1) forwards;
}
.fixey-char:nth-child(1) .fixey-char-inner { background: linear-gradient(135deg, #163677, #3a5fa0); -webkit-background-clip: text; background-clip: text; }
.fixey-char:nth-child(2) .fixey-char-inner { background: linear-gradient(135deg, #2c5590, #6a90c0); -webkit-background-clip: text; background-clip: text; }
.fixey-char:nth-child(3) .fixey-char-inner { background: linear-gradient(135deg, #4a75b0, #9ab5d8); -webkit-background-clip: text; background-clip: text; }
.fixey-char:nth-child(4) .fixey-char-inner { background: linear-gradient(135deg, #7098c8, #ccdaeb); -webkit-background-clip: text; background-clip: text; }
.fixey-char:nth-child(5) .fixey-char-inner { background: linear-gradient(135deg, #a0bfe0, #ffffff); -webkit-background-clip: text; background-clip: text; }
.fixey-char:nth-child(1) .fixey-char-inner { animation-delay: 0.7s; }
.fixey-char:nth-child(2) .fixey-char-inner { animation-delay: 0.82s; }
.fixey-char:nth-child(3) .fixey-char-inner { animation-delay: 0.94s; }
.fixey-char:nth-child(4) .fixey-char-inner { animation-delay: 1.06s; }
.fixey-char:nth-child(5) .fixey-char-inner { animation-delay: 1.18s; }
.hero h1 .fixey-char::after {
  content: ''; position: absolute; left: 0; right: 0; height: 100%;
  background: linear-gradient(180deg, #1a4a8a, #3b7ddb); border-radius: 3px;
  transform: translateY(110%);
  animation: fixeyBlockSlide 0.6s cubic-bezier(0.22,1,0.36,1) forwards;
}
.fixey-char:nth-child(1)::after { animation-delay: 0.6s; }
.fixey-char:nth-child(2)::after { animation-delay: 0.72s; }
.fixey-char:nth-child(3)::after { animation-delay: 0.84s; }
.fixey-char:nth-child(4)::after { animation-delay: 0.96s; }
.fixey-char:nth-child(5)::after { animation-delay: 1.08s; }
@keyframes fixeyCharReveal { 0% { transform: translateY(110%); } 100% { transform: translateY(0); } }
@keyframes fixeyBlockSlide { 0% { transform: translateY(110%); } 35% { transform: translateY(0%); } 100% { transform: translateY(-110%); } }
.hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.85); line-height: 1.7; margin-bottom: 36px; max-width: 580px;
  opacity: 0; transform: translateY(24px);
  animation: heroContentIn 0.9s cubic-bezier(0.22,1,0.36,1) 0.65s forwards;
}
.hero-btns {
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0; transform: translateY(24px);
  animation: heroContentIn 0.9s cubic-bezier(0.22,1,0.36,1) 0.85s forwards;
}
@keyframes heroContentIn { to { opacity: 1; transform: translateY(0); } }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-devices { position: relative; width: 100%; max-width: 600px; padding-bottom: 30px; }
.hero-device-pc {
  width: 100%; display: block;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35)); border-radius: 8px;
  position: relative; top: 0;
  opacity: 0; transform: translateY(30px) scale(0.95);
  animation: heroPcIn 0.9s cubic-bezier(0.22,1,0.36,1) 0.5s forwards;
}
@keyframes heroPcIn { to { opacity: 1; transform: translateY(0) scale(1); } }
.hero-device-phone {
  position: absolute; bottom: -10px; right: 2%;
  width: 24%; max-width: 140px;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.5)); border-radius: 20px;
  border: 3px solid rgba(255,255,255,0.2); z-index: 1;
  opacity: 0; transform: translateX(20px) translateY(20px) scale(0.9);
  animation: heroPhoneIn 0.8s cubic-bezier(0.22,1,0.36,1) 1.0s forwards;
}
@keyframes heroPhoneIn { to { opacity: 1; transform: translateX(0) translateY(0) scale(1); } }
.hero-particles { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-particles span { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.06); animation: floatUp linear infinite; }
@keyframes floatUp { 0% { transform: translateY(100vh) scale(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-10vh) scale(1); opacity: 0; } }
.stats-bar {
  background: #000000; position: relative; z-index: 2; width: 100%;
  opacity: 0; transform: translateY(20px);
  animation: heroContentIn 0.8s cubic-bezier(0.22,1,0.36,1) 1.1s forwards;
}
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-item { padding: 14px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-item:last-child { border-right: none; }
.stat-val { font-size: 0.82rem; font-weight: 600; color: #ffffff; letter-spacing: 0.08em; text-transform: uppercase; }

/* CHALLENGES */
.problems { background: #fff; }
.prob-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 56px; }
.prob-card {
  padding: 40px 30px; background: var(--bg-light); border-radius: var(--radius);
  border: 1px solid var(--border); transition: all 0.3s; position: relative; overflow: hidden;
}
.prob-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); opacity: 0; transition: opacity 0.3s; }
.prob-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }
.prob-card:hover::after { opacity: 1; }
.prob-top { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.prob-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.prob-card:hover .prob-icon { transform: scale(1.1) rotate(-4deg); }
.prob-icon svg { width: 26px; height: 26px; stroke: var(--primary); fill: none; stroke-width: 2; }
.prob-num { font-size: 2.4rem; font-weight: 800; color: var(--primary); line-height: 1; }
.prob-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.prob-card p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }

/* HOW IT WORKS */
.how { background: var(--primary); color: #fff; position: relative; overflow: hidden; }
.how .label { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); }
.how .subtitle { color: rgba(255,255,255,0.65); }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 56px; }
.step-card { padding: 36px 28px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); transition: all 0.3s; }
.step-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.step-num {
  width: 38px; height: 38px; border-radius: 10px; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; margin-bottom: 20px; color: #fff;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s;
}
.step-card:hover .step-num { transform: scale(1.15); box-shadow: 0 4px 16px rgba(255,93,0,0.4); }
.step-card h3 { margin-bottom: 10px; }
.step-card p { color: rgba(255,255,255,0.6); font-size: 0.95rem; line-height: 1.7; }

/* SHOWCASE */
.showcase {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary) 40%, #fff 40%, #fff 100%);
  padding: 48px 0 64px; position: relative;
}
.showcase-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; max-width: 960px; margin: 0 auto; padding: 0 24px; }
.showcase-card { border-radius: 16px; overflow: visible; box-shadow: none; background: transparent; transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.showcase-card:hover { transform: translateY(-8px) scale(1.02); }
.showcase-card img { width: 100%; display: block; filter: drop-shadow(0 16px 40px rgba(0,0,0,0.15)); }
.showcase-caption { display: none; }

/* FEATURES */
.features { background: #fff; padding-top: 80px; }
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 88px; }
.feat-row:last-child { margin-bottom: 0; }
.feat-row.rev .feat-text { order: 2; }
.feat-row.rev .feat-img { order: 1; }
.feat-text .label { margin-bottom: 10px; }
.feat-text h3 { font-size: clamp(1.3rem,2.2vw,1.8rem); font-weight: 700; margin-bottom: 14px; }
.feat-text p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.7; margin-bottom: 20px; }
.feat-list { display: flex; flex-direction: column; gap: 10px; }
.feat-li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--text); }
.feat-li svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.feat-img-wrap {
  border-radius: var(--radius); overflow: hidden; background: transparent;
  border: none; box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); max-height: 320px;
}
.feat-row:hover .feat-img-wrap { transform: scale(1.03); }
.feat-img-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* MID CTA */
.mid-cta { padding: 80px 0; position: relative; overflow: hidden; background-size: cover; background-position: center; }
.mid-cta::before { content: ''; position: absolute; inset: 0; background: rgba(22,54,118,0.92); }
.mid-cta-inner { text-align: center; position: relative; z-index: 1; }
.mid-cta h2 { color: #fff; margin-bottom: 14px; }
.mid-cta p { color: rgba(255,255,255,0.8); font-size: 1.08rem; margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }
.mid-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* WHY FIXEY */
.why { background: var(--bg-light); }
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 56px; }
.why-card { padding: 36px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); text-align: center; transition: all 0.35s cubic-bezier(0.22,1,0.36,1); }
.why-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(0,0,0,0.08); }
.why-icon { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
.why-card:hover .why-icon { transform: scale(1.15) rotate(-6deg); }
.why-icon svg { width: 28px; height: 28px; stroke-width: 2; fill: none; }
.why-icon.a { background: var(--primary-light); }
.why-icon.a svg { stroke: var(--primary); }
.why-icon.b { background: #e0f2fe; }
.why-icon.b svg { stroke: var(--primary-mid); }
.why-icon.c { background: #dcfce7; }
.why-icon.c svg { stroke: #16a34a; }
.why-icon.d { background: #fff3e0; }
.why-icon.d svg { stroke: var(--accent); }
.why-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; }

/* FOUNDER */
.founder { background: #fff; }
.founder-inner { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; max-width: 800px; margin: 0 auto; }
.founder-photo { width: 180px; height: 180px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 4px solid var(--primary-light); transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), box-shadow 0.5s; }
.founder-photo:hover { transform: scale(1.05); box-shadow: 0 12px 40px rgba(22,54,118,0.2); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-text .label { margin-bottom: 10px; }
.founder-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.founder-role { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 14px; }
.founder-text p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.7; }

/* FAQ */
.faq { background: var(--bg-light); }
.faq-grid { max-width: 760px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; width: 100%; background: none; border: none; cursor: pointer; text-align: left; font-family: inherit; font-size: 1.05rem; font-weight: 600; color: var(--text); transition: color 0.3s, padding-left 0.3s; }
.faq-q:hover { color: var(--primary); padding-left: 6px; }
.faq-q svg { width: 22px; height: 22px; stroke: var(--text-muted); fill: none; transition: transform 0.35s cubic-bezier(0.22,1,0.36,1); flex-shrink: 0; margin-left: 16px; }
.faq-item.active .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.22,1,0.36,1); }
.faq-item.active .faq-a { max-height: 300px; }
.faq-a p { padding: 0 0 22px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* FINAL CTA */
.final-cta { position: relative; padding: 96px 0; overflow: hidden; background-size: cover; background-position: center; }
.final-cta::before { content: ''; position: absolute; inset: 0; background: rgba(22,54,118,0.9); }
.final-cta-inner { text-align: center; position: relative; z-index: 1; }
.final-cta h2 { color: #fff; margin-bottom: 14px; }
.final-cta p { color: rgba(255,255,255,0.7); font-size: 1.08rem; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.final-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
.footer { background: #0c1e42; padding: 56px 0 0; color: rgba(255,255,255,0.55); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .footer-logo { margin-bottom: 14px; }
.footer-brand .footer-logo img { height: 36px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.65; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.88rem; padding: 5px 0; color: rgba(255,255,255,0.45); transition: color 0.3s, padding-left 0.3s; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-size: 0.78rem; }
.footer-bottom a { margin-left: 20px; transition: color 0.3s; }
.footer-bottom a:hover { color: #fff; }
.footer-badges { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.footer-badges img { height: 40px; width: auto; }

/* STICKY BAR */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(22,54,118,0.96); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 14px 24px; z-index: 998;
  transform: translateY(100%); transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.sticky-bar.show { transform: translateY(0); }
.sticky-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--max-w); margin: 0 auto; }
.sticky-text { color: rgba(255,255,255,0.9); font-size: 0.92rem; font-weight: 500; }
.sticky-text span { color: rgba(255,255,255,0.5); font-size: 0.82rem; display: block; }
.sticky-actions { display: flex; gap: 10px; align-items: center; }
.sticky-bar .btn { padding: 10px 22px; font-size: 0.85rem; }
.sticky-close { background: none; border: none; cursor: pointer; padding: 6px; margin-left: 8px; }
.sticky-close svg { width: 18px; height: 18px; stroke: rgba(255,255,255,0.5); }
.sticky-close:hover svg { stroke: #fff; }

/* POPUP */
.popup-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 24px; }
.popup-bg.active { display: flex; }
.popup { background: #fff; border-radius: 16px; max-width: 480px; width: 100%; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.2); animation: popIn 0.35s cubic-bezier(0.22,1,0.36,1); }
@keyframes popIn { from { opacity: 0; transform: scale(0.92) translateY(16px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.popup-head { background: var(--primary); padding: 28px 28px 24px; position: relative; }
.popup-x { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,0.12); border: none; cursor: pointer; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.popup-x:hover { background: rgba(255,255,255,0.25); }
.popup-x svg { width: 16px; height: 16px; stroke: #fff; }
.popup-head h3 { color: #fff; font-size: 1.3rem; margin-bottom: 6px; }
.popup-head p { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.popup-body { padding: 28px; }
.popup-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.popup-li { display: flex; align-items: flex-start; gap: 10px; }
.popup-li svg { width: 18px; height: 18px; stroke: #22c55e; fill: none; flex-shrink: 0; margin-top: 2px; }
.popup-li span { font-size: 0.9rem; color: var(--text); line-height: 1.5; }
.popup-btns { display: flex; flex-direction: column; gap: 10px; }
.popup-btns .btn { width: 100%; justify-content: center; }
.popup-note { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 10px; }
.chk { stroke: var(--primary-mid); fill: none; stroke-width: 2; }
.section-divider { width: 48px; height: 3px; background: var(--accent); border-radius: 2px; margin: 0 auto 20px; opacity: 0.7; }

/* === BLOG STYLES === */
.blog-wrap { max-width: var(--max-w); margin: 0 auto; padding: 120px 24px 80px; }
.blog-wrap--single { max-width: 1280px; }

/* Blog Grid */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.post-card-img { display: block; overflow: hidden; aspect-ratio: 16/10; background: var(--bg-light); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.post-card:hover .post-card-img img { transform: scale(1.06); }
.post-card-body { padding: 24px; }
.post-card-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.post-card-meta .cat-link { color: var(--accent); font-weight: 600; }
.post-card-meta .cat-link:hover { text-decoration: underline; }
.post-card-title { font-size: 1.15rem; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.post-card-title a { color: var(--text); transition: color 0.3s; }
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; margin-bottom: 16px; }
.post-card-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.88rem; font-weight: 600; color: var(--primary);
  transition: gap 0.3s, color 0.3s;
}
.post-card-link:hover { gap: 8px; color: var(--accent); }

/* Blog Pagination */
.blog-pagination { margin-top: 56px; text-align: center; }
.blog-pagination .nav-links { display: flex; gap: 8px; justify-content: center; align-items: center; }
.blog-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px; font-size: 0.9rem; font-weight: 500; color: var(--text); background: var(--bg-light); border: 1px solid var(--border); transition: all 0.25s; }
.blog-pagination .page-numbers:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary-light); }
.blog-pagination .page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* No Posts State */
.blog-empty { padding: 80px 0; }
.blog-empty svg { width: 64px; height: 64px; stroke: var(--border); margin-bottom: 20px; }

/* === SINGLE POST === */
.blog-wrap--single .container { max-width: 880px; transition: max-width 0.4s ease, margin 0.4s ease; }
.blog-wrap--single.has-toc .container { max-width: 880px; margin-right: 340px; margin-left: 24px; }
.blog-wrap--single.toc-closed .container { max-width: 880px; margin: 0 auto; }

.back-to-blog {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.88rem; font-weight: 500; color: var(--primary);
  margin-bottom: 28px; transition: gap 0.3s;
}
.back-to-blog:hover { gap: 10px; }
.single-post-header { margin-bottom: 32px; }
.single-post-header h1 { color: var(--text); margin-bottom: 14px; font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.25; }
.single-post-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.single-post-meta .sep { color: var(--border); }
.single-post-meta a { color: var(--primary); font-weight: 500; transition: color 0.3s; }
.single-post-meta a:hover { color: var(--accent); }
.single-post-thumbnail { margin-bottom: 36px; border-radius: var(--radius); overflow: hidden; }
.single-post-thumbnail img { width: 100%; height: auto; display: block; }

/* ===== Fixed TOC Panel ===== */
.toc-panel {
  position: fixed;
  top: 80px;
  right: -334px;
  width: 330px;
  max-height: calc(100vh - 100px);
  z-index: 900;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 0 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  border-left: 3px solid var(--primary);
  transition: right 0.4s cubic-bezier(0.22,1,0.36,1);
  overflow: hidden;
}
.toc-panel.visible { right: 4px; }

.toc-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: #fff;
}
.toc-panel-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.toc-panel-label {
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  flex: 1;
}
.toc-panel-close {
  width: 26px; height: 26px; border-radius: 6px;
  background: rgba(255,255,255,0.12);
  border: none; cursor: pointer; color: rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.toc-panel-close:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* Progress bar */
.toc-panel-progress {
  height: 3px; background: var(--border);
}
.toc-panel-progress-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transition: width 0.15s ease-out;
}

/* TOC Navigation */
.toc-panel-nav {
  flex: 1; overflow-y: auto; padding: 12px 6px 16px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.toc-panel-nav::-webkit-scrollbar { width: 4px; }
.toc-panel-nav::-webkit-scrollbar-track { background: transparent; }
.toc-panel-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-item { margin-bottom: 1px; }
.toc-item.toc-h2 {}
.toc-item.toc-h3 { padding-left: 16px; }
.toc-link {
  display: block; padding: 7px 14px;
  font-size: 0.8rem; line-height: 1.45; color: var(--text-muted);
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: all 0.25s ease; text-decoration: none;
}
.toc-h2 .toc-link { font-weight: 600; color: var(--text); font-size: 0.82rem; }
.toc-link:hover { color: var(--primary); background: rgba(25,85,167,0.05); }
.toc-link.active {
  color: var(--primary); font-weight: 600;
  border-left-color: var(--primary);
  background: rgba(25,85,167,0.08);
}

/* Reopen button */
.toc-reopen {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 899;
  width: 40px; height: 40px;
  border-radius: 8px 0 0 8px;
  background: var(--primary);
  color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: -2px 2px 10px rgba(0,0,0,0.15);
  transition: width 0.2s, background 0.2s;
}
.toc-reopen:hover { width: 48px; background: var(--primary-mid); }

/* Single Post Content */
.single-post-content { font-size: 1.05rem; line-height: 1.85; color: var(--text); min-width: 0; }
.single-post-content p { margin-bottom: 1.5em; }

/* H2: Blue left border accent (matches JP site) */
.single-post-content h2 {
  margin: 70px 0 10px;
  padding: 8px 0 8px 18px;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.4;
  color: #102859;
  border-left: 5px solid #1955a7;
}

/* H3: Gray background with subtle style (matches JP site) */
.single-post-content h3 {
  margin: 43px 0 10px;
  padding: 10px 14px;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
  color: #163677;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.single-post-content h4 { margin: 1.5em 0 0.5em; font-size: 1.1rem; color: var(--text); }
.single-post-content img { border-radius: var(--radius); margin: 1.5em 0; }
.single-post-content a { color: var(--primary); text-decoration: underline; transition: color 0.3s; }
.single-post-content a:hover { color: var(--accent); }
.single-post-content ul, .single-post-content ol { margin: 0 0 1.5em 1.5em; }
.single-post-content li { margin-bottom: 0.5em; }
.single-post-content blockquote {
  margin: 1.5em 0; padding: 20px 24px; border-left: 4px solid var(--accent);
  background: var(--bg-light); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text-muted);
}
.single-post-content pre {
  margin: 1.5em 0; padding: 20px; background: #1e293b; color: #e2e8f0;
  border-radius: var(--radius); overflow-x: auto; font-size: 0.9rem; line-height: 1.6;
}
.single-post-content code { font-family: 'Fira Code', monospace; font-size: 0.9em; }
.single-post-content :not(pre) > code {
  background: var(--primary-light); padding: 2px 6px; border-radius: 4px;
  color: var(--primary); font-size: 0.88em;
}

/* Post Navigation */
.single-post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border);
}
.post-nav-link {
  padding: 20px; border: 1px solid var(--border); border-radius: var(--radius);
  transition: all 0.3s; display: flex; flex-direction: column; gap: 6px;
}
.post-nav-link:hover { border-color: var(--primary); background: var(--bg-light); }
.post-nav-link.next { text-align: right; }
.post-nav-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.post-nav-title { font-size: 0.95rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.page-404 { text-align: center; padding: 160px 24px 120px; }
.page-404 h1 { font-size: 6rem; color: var(--primary); margin-bottom: 16px; }
.page-404 p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 32px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .prob-grid, .steps-grid { grid-template-columns: 1fr; }
  .feat-row { grid-template-columns: 1fr; gap: 32px; }
  .feat-row.rev .feat-text { order: 1; }
  .feat-row.rev .feat-img { order: 2; }
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .founder-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .showcase-inner { grid-template-columns: 1fr; max-width: 480px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .toc-panel { display: none !important; }
  .toc-reopen { display: none !important; }
  .blog-wrap--single .container { max-width: 800px; margin: 0 auto !important; }
  .blog-wrap--single.has-toc .container { margin: 0 auto !important; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav-links { display: none; }
  .nav-mobile { display: block; }
  .nav-logo img { height: 42px; }
  .hero { min-height: auto; padding-top: 48px; }
  h1 { font-size: 2.5rem; }
  .hero h1 .fixey-brand { padding: 6px 18px 8px; border-radius: 10px; font-size: 1.1em; letter-spacing: 0.06em; margin-bottom: 29px; }
  .hero h1 .fixey-brand-sub { font-size: 0.26em; letter-spacing: 0.1em; }
  h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
  .hero-sub { font-size: 0.95rem; margin-bottom: 28px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 10px 16px; }
  .stat-item:last-child { border-bottom: none; }
  .stat-val { font-size: 0.72rem; }
  .hero-content-area { padding: 10px 0; }
  .hero-text { padding: 4px 0; }
  .showcase { padding: 32px 0 48px; }
  .showcase-inner { gap: 32px; max-width: 340px; }
  .features { padding-top: 56px; }
  .feat-row { gap: 24px; margin-bottom: 56px; }
  .feat-img-wrap { max-height: 240px; }
  .feat-text h3 { font-size: clamp(1.1rem, 4vw, 1.5rem); }
  .feat-text p { font-size: 0.9rem; }
  .feat-li { font-size: 0.88rem; }
  .how-flow-img img { width: 90% !important; max-width: 100% !important; }
  .steps-grid { gap: 16px; margin-top: 36px; }
  .step-card { padding: 24px 20px; }
  .prob-grid { gap: 14px; margin-top: 28px; }
  .prob-card { padding: 20px 18px; }
  .prob-icon { width: 42px; height: 42px; border-radius: 12px; }
  .prob-top { gap: 10px; margin-bottom: 8px; }
  .prob-icon svg { width: 22px; height: 22px; }
  .prob-num { font-size: 1.6rem; margin-bottom: 4px; }
  .prob-card h3 { font-size: 1rem; margin-bottom: 6px; }
  .prob-card p { font-size: 0.85rem; line-height: 1.5; }
  .why-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-card { padding: 28px 20px; }
  .founder-photo { width: 140px; height: 140px; }
  .mid-cta { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .sticky-inner { flex-direction: column; gap: 10px; text-align: center; }
  .sticky-actions { width: 100%; }
  .sticky-actions .btn { flex: 1; justify-content: center; }
  .sticky-text { font-size: 0.82rem; }
  .sticky-text span { font-size: 0.72rem; }
  .popup { max-width: 360px; }
  .popup-head { padding: 20px 20px 18px; }
  .popup-head h3 { font-size: 1.1rem; }
  .popup-head p { font-size: 0.82rem; }
  .popup-x { top: 10px; right: 10px; width: 28px; height: 28px; }
  .popup-body { padding: 20px; }
  .popup-btns .btn { font-size: 0.85rem; padding: 11px 16px; white-space: nowrap; }
  .popup-li span { font-size: 0.82rem; }
  .popup-note { font-size: 0.72rem; }
  .anim-fade-left, .anim-fade-right { transform: translateY(28px); }
  .anim-fade-left.in-view, .anim-fade-right.in-view { transform: translateY(0); }
  #digitalCanvas { opacity: 0.3 !important; }
  .blog-wrap { padding: 80px 16px 60px; }
  .blog-wrap--single { padding-top: 70px; }
  .blog-wrap--single .container { padding: 0 4px; }
  .blog-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .single-post-nav { grid-template-columns: 1fr; }
  .post-nav-link.next { text-align: left; }

  /* Mobile article text optimization */
  .back-to-blog { margin-bottom: 16px; font-size: 0.82rem; }
  .single-post-header { margin-bottom: 20px; }
  .single-post-header h1 { font-size: 1.4rem; line-height: 1.3; margin-bottom: 10px; }
  .single-post-meta { font-size: 0.78rem; }
  .single-post-content { font-size: 0.92rem; line-height: 1.7; }
  .single-post-content p { margin-bottom: 1.2em; }
  .single-post-content h2 {
    margin: 40px 0 8px;
    padding: 6px 0 6px 12px;
    font-size: 1.15rem;
    line-height: 1.35;
  }
  .single-post-content h3 {
    margin: 28px 0 8px;
    padding: 8px 10px;
    font-size: 1.02rem;
    line-height: 1.35;
  }
  .single-post-content img { margin: 1em 0; border-radius: 8px; }
  .single-post-thumbnail { margin-bottom: 24px; }
}
@media (max-width: 480px) {
  h1 { font-size: 2.5rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; padding: 13px 24px; font-size: 0.9rem; }
  .subtitle { font-size: 0.95rem; }
  .label { font-size: 0.72rem; padding: 5px 12px; }
  .showcase-inner { max-width: 300px; }
  .feat-img-wrap { max-height: 200px; }
  .prob-grid { gap: 12px; margin-top: 24px; }
  .prob-card { padding: 18px 16px; }
  .prob-num { font-size: 1.5rem; }
  .prob-card h3 { font-size: 0.95rem; margin-bottom: 4px; }
  .prob-card p { font-size: 0.82rem; line-height: 1.45; }
  .container { padding: 0 16px; }
  .popup { max-width: 320px; }
  .popup-head { padding: 18px 16px 16px; }
  .popup-head h3 { font-size: 1rem; }
  .popup-body { padding: 16px; }
  .popup-btns .btn { font-size: 0.82rem; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .anim-fade, .anim-fade-left, .anim-fade-right, .anim-scale { opacity: 1; transform: none; }
}
