/* ═══════════════════════════════════════════════════════════
   Aiburi Landing Page — Warm Studio (Light / Dark)
   ═══════════════════════════════════════════════════════════ */

/* ── Light mode (default) ──────────────────────────────── */
:root {
  --teal:       #0d9488;
  --teal-dark:  #0f766e;
  --teal-deep:  #115e59;
  --amber:      #d97706;
  --amber-soft: #fef3c7;
  --rose:       #e11d48;

  --bg:          #faf8f5;
  --bg-2:        #f5f2ed;
  --bg-card:     #ffffff;
  --bg-card-alt: #f0ece6;
  --border:      rgba(28, 25, 23, 0.08);
  --border-hover:rgba(28, 25, 23, 0.14);
  --text:        #1c1917;
  --text-soft:   #78716c;
  --text-dim:    #a8a29e;
  --text-white:  #1c1917;
  --accent:      #0d9488;
  --accent-2:    #d97706;
  --accent-glow: rgba(13, 148, 136, 0.12);
  --green:       #16a34a;
  --yellow:      #ca8a04;
  --red:         #dc2626;
  --grad-text:   linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #d97706 100%);
  --grad-btn:    linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  --grad-hero:   radial-gradient(ellipse 80% 60% at 50% 0%, rgba(13,148,136,0.07) 0%, transparent 65%);
  --shadow-card: 0 1px 3px rgba(28,25,23,0.06), 0 8px 24px rgba(28,25,23,0.04);
  --shadow-glow: 0 0 0 1px rgba(13,148,136,0.18), 0 8px 32px rgba(13,148,136,0.10);
  --hover-bg:     rgba(28, 25, 23, 0.04);
  --hover-bg-btn: rgba(28, 25, 23, 0.07);
  --mock-line-bg: rgba(28, 25, 23, 0.07);
  --mock-nav-active: rgba(13, 148, 136, 0.10);
  --nav-bg-scrolled: rgba(250, 248, 245, 0.88);
  --mobile-nav-bg:   rgba(250, 248, 245, 0.97);
  --accent-text: #0d9488;
  --radius:      14px;
  --radius-sm:   8px;
  --radius-xs:   6px;
  --nav-h:       136px;
  font-size: 16px;
}

/* ── Dark mode ─────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:          #14131a;
  --bg-2:        #1a1720;
  --bg-card:     #1e1b26;
  --bg-card-alt: #231f2c;
  --border:      rgba(231, 229, 228, 0.07);
  --border-hover:rgba(231, 229, 228, 0.14);
  --text:        #e7e5e4;
  --text-soft:   #87838b;
  --text-dim:    #5c5762;
  --text-white:  #ffffff;
  --accent:      #14b8a6;
  --accent-2:    #f59e0b;
  --accent-glow: rgba(13, 148, 136, 0.28);
  --green:       #22c55e;
  --yellow:      #eab308;
  --red:         #ef4444;
  --grad-text:   linear-gradient(135deg, #5eead4 0%, #14b8a6 50%, #fbbf24 100%);
  --grad-btn:    linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  --grad-hero:   radial-gradient(ellipse 80% 60% at 50% 0%, rgba(20,184,166,0.12) 0%, transparent 65%);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.24);
  --shadow-glow: 0 0 0 1px rgba(13,148,136,0.25), 0 8px 32px rgba(13,148,136,0.20);
  --hover-bg:     rgba(231, 229, 228, 0.05);
  --hover-bg-btn: rgba(231, 229, 228, 0.08);
  --mock-line-bg: rgba(231, 229, 228, 0.07);
  --mock-nav-active: rgba(13, 148, 136, 0.15);
  --nav-bg-scrolled: rgba(20, 19, 26, 0.90);
  --mobile-nav-bg:   rgba(20, 19, 26, 0.97);
  --accent-text: #5eead4;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s ease, color 0.35s ease;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; }
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 6px; background: var(--bg); }
::-webkit-scrollbar-thumb { background: #29282f; border-radius: 3px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #29282f; }
::-webkit-scrollbar-thumb { background: #c4c0ba; }

/* ══ THEME TOGGLE ═════════════════════════════════════════ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--hover-bg);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-soft);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--hover-bg-btn);
  color: var(--text);
  border-color: var(--border-hover);
}
.theme-toggle svg { width: 18px; height: 18px; transition: transform 0.35s ease; }
[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }
.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

/* ══ SCROLL ANIMATIONS ════════════════════════════════════ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ══ BUTTONS ══════════════════════════════════════════════ */
.btn-primary,
.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--grad-btn);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  text-decoration: none;
}
.btn-primary    { padding: 14px 28px; font-size: 0.95rem; box-shadow: var(--shadow-glow); }
.btn-primary-sm { padding: 9px  20px; font-size: 0.84rem; }

.btn-ghost,
.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.btn-ghost      { padding: 14px 28px; font-size: 0.95rem; color: var(--text); border: 1px solid var(--border-hover); }
.btn-outline-sm { padding: 9px  20px; font-size: 0.84rem; color: var(--text-soft); border: 1px solid var(--border); }

.btn-primary:hover, .btn-primary-sm:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(13,148,136,0.42); opacity: 0.92; }
.btn-ghost:hover      { background: var(--hover-bg); }
.btn-outline-sm:hover { background: var(--hover-bg); border-color: var(--border-hover); }

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 10px;
  background: transparent;
  transition: background 0.18s ease;
  text-decoration: none;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); }

/* ══ NAVBAR ═══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: auto;
  background: #fff;
  color: #1c1917;
  border-bottom: 1px solid rgba(28, 25, 23, 0.12);
  box-shadow: 0 2px 12px rgba(28, 25, 23, 0.08);
  transition: box-shadow 0.25s ease;
}
.navbar.scrolled {
  background: #fff;
  backdrop-filter: none;
  border-bottom-color: rgba(28, 25, 23, 0.12);
  box-shadow: 0 4px 18px rgba(28, 25, 23, 0.12);
}
.navbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-utility {
  background: #f3f4f1;
  border-bottom: 1px solid rgba(28, 25, 23, 0.08);
  font-size: 0.78rem;
  color: #6b7280;
}

.nav-utility-inner {
  min-height: 30px;
  justify-content: space-between;
  gap: 16px;
}

.nav-utility-links {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.nav-utility a {
  color: #4b5563;
  font-weight: 600;
}

.nav-main-row {
  background: #fff;
}

.nav-main-inner {
  min-height: 68px;
}


.hidden { display: none !important; }
.nav-user { display: flex; align-items: center; gap: 8px; }
.nav-user-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 190px;
  padding: 5px 8px 5px 5px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--hover-bg);
  color: var(--text);
  text-decoration: none;
}
.nav-user-link:hover { border-color: var(--border-hover); background: var(--hover-bg-btn); }
.nav-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  overflow: hidden;
}
.nav-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nav-user-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .82rem;
  font-weight: 700;
}
.nav-logout {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 700;
  padding: 7px 10px;
}
.nav-logout:hover { color: var(--text); border-color: var(--border-hover); background: var(--hover-bg); }
.lang-switch { display: flex; gap: 2px; background: var(--hover-bg); border-radius: 8px; padding: 3px; }
.lang-btn { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: .75rem; font-weight: 600; font-family: inherit; padding: 4px 10px; border-radius: 6px; transition: background .2s, color .2s; }
.lang-btn.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.lang-btn:hover:not(.active) { color: var(--text); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══ HERO ═════════════════════════════════════════════════ */
.hero-section {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 36px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 56px) 24px 72px;
  position: relative;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(13,148,136,0.25);
  border-radius: 8px;
  background: rgba(13,148,136,0.08);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-text);
  margin-bottom: 24px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text-white);
  margin-bottom: 18px;
  line-height: 1.1;
}
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 54ch;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: fit-content;
}
.stat { text-align: center; padding: 0 20px; }
.stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--text-white); }
.stat span   { font-size: 0.79rem; color: var(--text-dim); }
.stat-divider { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

/* ── App Mockup ────────────────────────────────────────── */
.hero-visual { position: relative; z-index: 1; }

.app-mockup {
  border: 1px solid var(--border-hover);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08), 0 24px 60px rgba(0,0,0,0.06);
}
[data-theme="dark"] .app-mockup {
  box-shadow: 0 4px 8px rgba(0,0,0,0.5), 0 24px 60px rgba(0,0,0,0.4),
              0 0 0 1px rgba(13,148,136,0.1);
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: var(--hover-bg);
  border-bottom: 1px solid var(--border);
}
.dot        { width: 11px; height: 11px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.mockup-title {
  margin-left: 10px;
  font-size: 0.78rem;
  color: var(--text-dim);
  flex: 1;
  text-align: center;
}
.mockup-body { display: flex; height: 320px; }
.mockup-sidebar {
  width: 130px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-nav {
  padding: 7px 10px;
  font-size: 0.75rem;
  color: var(--text-dim);
  border-radius: 6px;
}
.mock-nav.active { background: var(--mock-nav-active); color: var(--accent-text); }

.mockup-content {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mock-prompt-area {
  background: var(--hover-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-line {
  height: 9px;
  border-radius: 4px;
  background: var(--mock-line-bg);
  animation: shimmer 2.2s ease-in-out infinite;
}
.mock-line.w80 { width: 80%; }
.mock-line.w65 { width: 65%; animation-delay: 0.3s; }
.mock-line.w90 { width: 90%; animation-delay: 0.6s; }
.mock-line.w55 { width: 55%; animation-delay: 0.9s; }
.mock-line.w60 { width: 60%; animation-delay: 0.2s; }
.mock-line.w75 { width: 75%; animation-delay: 0.5s; }
.mock-line.w50 { width: 50%; animation-delay: 0.8s; }
.mock-line.w70 { width: 70%; animation-delay: 1.1s; }
@keyframes shimmer {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

.mock-table { display: flex; flex-direction: column; gap: 6px; }
.mock-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  background: var(--hover-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.mock-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mock-status.processing { background: var(--accent); animation: pulse-dot 1.5s infinite; }
.mock-status.done       { background: var(--green); }
.mock-status.pending    { background: var(--text-dim); }

/* ══ SECTION COMMONS ══════════════════════════════════════ */
.section-block {
  padding: 96px 24px;
}
.section-block.section-dark {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  padding: 5px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-text);
  background: rgba(13,148,136,0.08);
  border: 1px solid rgba(13,148,136,0.2);
  border-radius: 8px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 1.02rem;
  color: var(--text-soft);
  max-width: 50ch;
  margin: 0 auto;
  line-height: 1.65;
}

/* ══ FEATURES ════════════════════════════════════════════ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  border-color: rgba(13,148,136,0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(13,148,136,0.1);
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-white); margin-bottom: 8px; }
.feature-card p  { font-size: 0.91rem; color: var(--text-soft); line-height: 1.6; }

/* ══ TUTORIAL / STEPS ════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
}
.step-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.step-card:hover { border-color: rgba(13,148,136,0.25); transform: translateY(-2px); }
.step-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  display: block;
}
.step-card h3 { font-size: 0.97rem; font-weight: 700; color: var(--text-white); margin-bottom: 8px; }
.step-card p  { font-size: 0.88rem; color: var(--text-soft); line-height: 1.6; }
.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--text-dim);
  padding: 0 12px;
  padding-top: 28px;
}

/* ══ PRICING ═════════════════════════════════════════════ */
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: flex-start;
}
.pricing-loading, .pricing-err {
  text-align: center;
  color: var(--text-soft);
  padding: 40px;
  width: 100%;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  width: 220px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.price-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.price-card.featured {
  border-color: rgba(13,148,136,0.4);
  background: linear-gradient(160deg, rgba(13,148,136,0.08) 0%, var(--bg-card) 60%);
  box-shadow: var(--shadow-glow);
}
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--teal-dark));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.price-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-white); }
.price-amount { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.price-num    { font-size: 1.35rem; font-weight: 800; color: var(--text-white); }
.price-period { font-size: 0.8rem; color: var(--text-dim); }
.price-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.price-features li {
  font-size: 0.86rem;
  color: var(--text-soft);
  padding-left: 18px;
  position: relative;
}
.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
}
.price-features li strong { color: var(--text); }
.btn-price {
  display: block;
  text-align: center;
  padding: 11px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  background: var(--hover-bg);
  color: var(--text);
  border: 1px solid var(--border);
  transition: background 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
}
.btn-price:hover { background: var(--hover-bg-btn); border-color: var(--border-hover); }
.btn-price.featured { background: linear-gradient(135deg, var(--accent), var(--teal-dark)); border-color: transparent; color: #fff; }
.btn-price.featured:hover { opacity: 0.88; }

/* ══ BLOG SECTION ════════════════════════════════════════ */
.blog-section {
  padding: 96px 24px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
  border-color: rgba(13,148,136,0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.blog-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: var(--bg-card-alt);
}
.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-card-date {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.blog-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
}
.blog-card-link:hover { text-decoration: underline; }

/* ══ DOWNLOAD ════════════════════════════════════════════ */
.download-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.download-card:hover { border-color: rgba(13,148,136,0.3); transform: translateY(-2px); }
.dl-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(13,148,136,0.1);
  color: var(--accent-text);
  flex-shrink: 0;
}
.dl-info { flex: 1; }
.dl-info h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-white); margin-bottom: 3px; }
.dl-version { font-size: 0.84rem; color: var(--accent-text); margin-bottom: 2px; }
.dl-compat  { font-size: 0.8rem;  color: var(--text-dim); }
.dl-btn { white-space: nowrap; flex-shrink: 0; font-size: 0.9rem; padding: 10px 20px; }

.install-guide {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.install-guide h3 { font-size: 1rem; font-weight: 700; color: var(--text-white); margin-bottom: 20px; }
.install-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.install-block h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.install-block ol {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.install-block li { font-size: 0.88rem; color: var(--text-soft); line-height: 1.55; }
.install-block code {
  background: var(--hover-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.82rem;
  font-family: ui-monospace, monospace;
  color: var(--text);
}

/* ══ CTA ════════════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, rgba(13,148,136,0.12) 0%, rgba(217,119,6,0.10) 100%);
  border-top: 1px solid rgba(13,148,136,0.15);
  border-bottom: 1px solid rgba(13,148,136,0.15);
  padding: 88px 24px;
}
.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}
.cta-inner p { color: var(--text-soft); margin-bottom: 28px; font-size: 1rem; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ══ FOOTER ══════════════════════════════════════════════ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 48px;
}
.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.65;
  max-width: 42ch;
  margin-top: 12px;
}
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-col   { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.footer-col a { font-size: 0.88rem; color: var(--text-soft); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ══ RESPONSIVE ══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--nav-h) + 40px);
  }
  .hero-visual { order: -1; max-width: 540px; margin: 0 auto; width: 100%; }
  .hero-sub    { max-width: 100%; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid    { grid-template-columns: repeat(2, 1fr); }
  .steps-grid   { grid-template-columns: 1fr; gap: 14px; }
  .step-arrow   { display: none; }

  .footer-inner  { grid-template-columns: 1fr; gap: 32px; }
  .footer-links  { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 126px; }

  .nav-main-inner {
    min-height: 86px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 16px;
  }

  .logo {
    order: 1;
  }

  .hamburger {
    order: 2;
    margin-left: auto;
  }

  .nav-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    min-width: 0;
  }

  .section-block  { padding: 64px 16px; }
  .feature-grid   { grid-template-columns: 1fr; }
  .blog-grid      { grid-template-columns: 1fr; }
  .pricing-grid   { flex-direction: column; align-items: center; }
  .price-card     { width: 100%; max-width: 340px; }
  .download-cards { grid-template-columns: 1fr; }
  .install-cols   { grid-template-columns: 1fr; gap: 24px; }
  .cta-section    { padding: 64px 16px; }
  .footer-inner   { padding: 40px 16px 28px; }
  .footer-links   { grid-template-columns: 1fr 1fr; }
  .footer-bottom  { padding: 14px 16px; }
}

@media (max-width: 420px) {
  .hero-title   { font-size: 2.1rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stats   { flex-direction: column; gap: 8px; padding: 14px; width: 100%; }
  .stat-divider { width: 100%; height: 1px; }

  .download-card { flex-direction: column; align-items: flex-start; gap: 14px; }
  .dl-btn        { width: 100%; text-align: center; justify-content: center; }

  .cta-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .btn-primary, .btn-ghost-light { justify-content: center; }
}
