/* ── Variables ─────────────────────────────────────────── */
:root {
  --bg:        #0a0f1e;
  --bg2:       #0d1424;
  --surface:   #111827;
  --surface2:  #1f2937;
  --border:    #1f2937;
  --accent:    #6366f1;
  --accent2:   #818cf8;
  --accent-g:  linear-gradient(135deg,#6366f1,#8b5cf6);
  --text:      #f1f5f9;
  --text2:     #cbd5e1;
  --muted:     #64748b;
  --success:   #10b981;
  --danger:    #ef4444;
  --warning:   #f59e0b;
  --radius:    14px;
  --shadow:    0 4px 24px rgba(0,0,0,.35);
  --trans:     .2s ease;
}
[data-theme="light"] {
  --bg:       #f8fafc;
  --bg2:      #f1f5f9;
  --surface:  #ffffff;
  --surface2: #f1f5f9;
  --border:   #e2e8f0;
  --text:     #0f172a;
  --text2:    #334155;
  --muted:    #94a3b8;
  --shadow:   0 4px 24px rgba(0,0,0,.08);
}

/* ── Reset ─────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg);color:var(--text);
  font-family:'Segoe UI',system-ui,-apple-system,sans-serif;
  min-height:100vh;display:flex;flex-direction:column;
  transition:background var(--trans),color var(--trans);
  -webkit-font-smoothing:antialiased;
}
a{color:var(--accent2);text-decoration:none;transition:color var(--trans)}
a:hover{color:var(--text)}
img{loading:lazy;max-width:100%}

/* ── Header ────────────────────────────────────────────── */
.site-header{
  background:var(--surface);border-bottom:1px solid var(--border);
  padding:.85rem 2rem;display:flex;align-items:center;justify-content:space-between;
  position:sticky;top:0;z-index:100;
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  transition:background var(--trans),border-color var(--trans);
}
.brand{display:flex;align-items:center;gap:.5rem;font-size:1.15rem;font-weight:700;color:var(--text)}
.brand-icon{
  width:34px;height:34px;background:var(--accent-g);border-radius:9px;
  display:flex;align-items:center;justify-content:center;font-size:1rem;
}
.brand span{color:var(--accent2)}
.header-nav{display:flex;align-items:center;gap:.25rem}
.header-nav a{
  padding:.45rem .85rem;border-radius:8px;font-size:.875rem;
  color:var(--muted);transition:all var(--trans);
}
.header-nav a:hover{color:var(--text);background:var(--surface2)}
.theme-btn{
  width:36px;height:36px;border:1px solid var(--border);border-radius:9px;
  background:var(--surface2);color:var(--muted);cursor:pointer;
  display:flex;align-items:center;justify-content:center;font-size:.9rem;
  transition:all var(--trans);margin-left:.5rem;
}
.theme-btn:hover{color:var(--text);border-color:var(--accent)}

/* ── Hero ──────────────────────────────────────────────── */
.hero{
  text-align:center;padding:4rem 1rem 2.5rem;
  background:radial-gradient(ellipse 80% 50% at 50% -10%,rgba(99,102,241,.15),transparent);
}
.hero h1{
  font-size:clamp(1.8rem,4vw,2.8rem);font-weight:800;
  line-height:1.2;margin-bottom:.75rem;letter-spacing:-.02em;
}
.hero h1 .grad{
  background:var(--accent-g);-webkit-background-clip:text;
  -webkit-text-fill-color:transparent;background-clip:text;
}
.hero p{color:var(--muted);font-size:1rem;max-width:480px;margin:0 auto 2rem}
.hero-badges{display:flex;gap:.6rem;justify-content:center;flex-wrap:wrap;margin-bottom:2.5rem}
.hero-badge{
  display:inline-flex;align-items:center;gap:.4rem;
  padding:.35rem .8rem;border-radius:20px;font-size:.78rem;
  background:var(--surface);border:1px solid var(--border);color:var(--muted);
}
.hero-badge i{color:var(--accent2)}

/* ── Inbox wrap ────────────────────────────────────────── */
.inbox-wrap{max-width:720px;margin:0 auto;padding:0 1rem 4rem;width:100%}

/* ── Email box ─────────────────────────────────────────── */
.email-box{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);padding:1.1rem 1.25rem;
  display:flex;align-items:center;gap:.75rem;margin-bottom:.6rem;
  box-shadow:var(--shadow);transition:border-color var(--trans);
}
.email-box:hover{border-color:var(--accent)}
.email-addr{
  flex:1;font-size:1.05rem;font-weight:600;color:var(--accent2);
  word-break:break-all;letter-spacing:.01em;
}
.btn{
  display:inline-flex;align-items:center;gap:.4rem;
  padding:.5rem 1rem;border:none;border-radius:9px;cursor:pointer;
  font-size:.85rem;font-weight:500;transition:all var(--trans);
  white-space:nowrap;outline:none;
}
.btn:active{transform:scale(.97)}
.btn-ghost{background:var(--surface2);color:var(--text2);border:1px solid var(--border)}
.btn-ghost:hover{border-color:var(--accent);color:var(--text)}
.btn-primary{background:var(--accent-g);color:#fff;box-shadow:0 2px 12px rgba(99,102,241,.35)}
.btn-primary:hover{opacity:.9;box-shadow:0 4px 20px rgba(99,102,241,.5)}
.btn-sm{padding:.35rem .75rem;font-size:.8rem}

/* ── Timer ─────────────────────────────────────────────── */
.timer-row{
  display:flex;align-items:center;justify-content:space-between;
  padding:.4rem .25rem .6rem;font-size:.82rem;color:var(--muted);
}
.countdown{color:var(--warning);font-weight:700;font-variant-numeric:tabular-nums}
.msg-badge{
  background:rgba(99,102,241,.15);color:var(--accent2);
  padding:.2rem .65rem;border-radius:20px;font-size:.78rem;font-weight:600;
}
.progress-track{height:2px;background:var(--surface2);border-radius:99px;margin-bottom:1.25rem;overflow:hidden}
.progress-fill{
  height:100%;background:var(--accent-g);border-radius:99px;
  transition:width 1s linear;will-change:width;
}

/* ── Inbox card ────────────────────────────────────────── */
.inbox-card{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);
}
.inbox-head{
  padding:.85rem 1.25rem;border-bottom:1px solid var(--border);
  display:flex;align-items:center;justify-content:space-between;
}
.inbox-head-left{display:flex;align-items:center;gap:.6rem;font-size:.875rem;font-weight:500}
.live-dot{
  width:8px;height:8px;border-radius:50%;background:var(--success);
  animation:livepulse 2s ease-in-out infinite;
}
@keyframes livepulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.85)}}
.inbox-hint{font-size:.75rem;color:var(--muted)}

/* ── Message item ──────────────────────────────────────── */
.msg-item{
  display:flex;align-items:flex-start;gap:.9rem;
  padding:1rem 1.25rem;border-bottom:1px solid var(--border);
  cursor:pointer;transition:background var(--trans);
  animation:fadeSlide .25s ease both;
}
.msg-item:last-child{border-bottom:none}
.msg-item:hover{background:var(--surface2)}
.msg-item.no-anim{animation:none}
@keyframes fadeSlide{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.msg-avatar{
  width:40px;height:40px;border-radius:50%;flex-shrink:0;
  background:var(--accent-g);display:flex;align-items:center;
  justify-content:center;font-size:.9rem;font-weight:700;color:#fff;
}
.msg-body{flex:1;min-width:0}
.msg-from{font-weight:600;font-size:.875rem;margin-bottom:.2rem;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.msg-subject{color:var(--muted);font-size:.82rem;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.msg-time{font-size:.75rem;color:var(--muted);white-space:nowrap;flex-shrink:0}

/* ── Empty state ───────────────────────────────────────── */
.empty-state{
  padding:3.5rem 1rem;text-align:center;color:var(--muted);
  animation:fadeSlide .3s ease;
}
.empty-state .empty-icon{
  width:64px;height:64px;border-radius:50%;
  background:var(--surface2);display:flex;align-items:center;
  justify-content:center;font-size:1.6rem;margin:0 auto 1rem;
}
.empty-state p{font-size:.9rem;line-height:1.6}

/* ── Modal ─────────────────────────────────────────────── */
.modal-overlay{
  display:none;position:fixed;inset:0;
  background:rgba(0,0,0,.65);z-index:500;
  align-items:center;justify-content:center;
  padding:1rem;
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
}
.modal-overlay.open{display:flex;animation:fadeIn .2s ease}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}

.modal{
  background:var(--surface);border:1px solid var(--border);
  border-radius:20px;width:100%;max-width:680px;
  max-height:90vh;display:flex;flex-direction:column;
  overflow:hidden;box-shadow:0 32px 80px rgba(0,0,0,.55);
  animation:slideUp .28s cubic-bezier(.34,1.4,.64,1);
}
@keyframes slideUp{from{opacity:0;transform:translateY(24px) scale(.97)}to{opacity:1;transform:none}}

/* Subject + close button */
.modal-head{
  display:flex;align-items:center;justify-content:space-between;
  gap:1rem;padding:1.1rem 1.25rem;
  border-bottom:1px solid var(--border);flex-shrink:0;
}
.modal-subject{
  font-size:1rem;font-weight:700;color:var(--text);
  line-height:1.4;flex:1;min-width:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.modal-close{
  width:32px;height:32px;border-radius:8px;
  border:1px solid var(--border);background:var(--surface2);
  color:var(--muted);cursor:pointer;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  font-size:.85rem;transition:all var(--trans);
}
.modal-close:hover{background:var(--danger);border-color:var(--danger);color:#fff}

/* Sender info */
.modal-sender{
  display:flex;align-items:center;gap:.9rem;
  padding:.9rem 1.25rem;border-bottom:1px solid var(--border);
  flex-shrink:0;background:var(--bg2);
}
.modal-sender-avatar{
  width:42px;height:42px;border-radius:50%;flex-shrink:0;
  background:var(--accent-g);display:flex;align-items:center;
  justify-content:center;font-size:1rem;font-weight:700;color:#fff;
}
.modal-sender-info{flex:1;min-width:0}
.modal-sender-name{
  font-size:.9rem;font-weight:600;color:var(--text);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  margin-bottom:.2rem;
}
.modal-sender-sub{
  display:flex;align-items:center;gap:.4rem;
  font-size:.78rem;color:var(--muted);flex-wrap:wrap;
}
.modal-sender-dot{color:var(--border)}

/* Email body */
.modal-body{flex:1;overflow-y:auto;padding:1.25rem;background:var(--bg)}
.modal-body-inner{
  background:var(--surface);border:1px solid var(--border);
  border-radius:12px;overflow:hidden;
}
.modal-body iframe{width:100%;min-height:400px;border:none;background:#fff;display:block}
.modal-body pre{
  white-space:pre-wrap;font-size:.875rem;line-height:1.75;
  color:var(--text2);padding:1.25rem;margin:0;
  font-family:'Segoe UI',system-ui,sans-serif;
}

/* Mobile: slide up from bottom */
@media(max-width:600px){
  .modal-overlay{padding:0;align-items:flex-end}
  .modal{
    border-radius:20px 20px 0 0;max-height:92vh;
    animation:slideUpMobile .3s cubic-bezier(.32,1.2,.64,1);
  }
  @keyframes slideUpMobile{from{opacity:0;transform:translateY(100%)}to{opacity:1;transform:none}}
  .modal-body iframe{min-height:300px}
  .modal-subject{font-size:.95rem}
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer{
  background:var(--surface);border-top:1px solid var(--border);
  padding:3rem 2rem 2rem;margin-top:auto;
  transition:background var(--trans),border-color var(--trans);
}
.footer-grid{
  max-width:1100px;margin:0 auto;
  display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:2rem;
  margin-bottom:2.5rem;
}
.footer-brand .brand{margin-bottom:.75rem}
.footer-brand p{font-size:.85rem;color:var(--muted);line-height:1.6;max-width:260px}
.footer-col h4{font-size:.8rem;font-weight:600;text-transform:uppercase;
  letter-spacing:.08em;color:var(--muted);margin-bottom:.9rem}
.footer-col a{display:block;font-size:.875rem;color:var(--muted);
  margin-bottom:.5rem;transition:color var(--trans)}
.footer-col a:hover{color:var(--text)}
.footer-bottom{
  max-width:1100px;margin:0 auto;
  padding-top:1.5rem;border-top:1px solid var(--border);
  display:flex;align-items:center;justify-content:space-between;
  font-size:.8rem;color:var(--muted);flex-wrap:wrap;gap:.5rem;
}
.footer-bottom a{color:var(--muted)}
.footer-bottom a:hover{color:var(--text)}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:var(--surface2);border-radius:99px}
::-webkit-scrollbar-thumb:hover{background:var(--muted)}

/* ── Responsive ────────────────────────────────────────── */
@media(max-width:768px){
  .footer-grid{grid-template-columns:1fr 1fr}
  .footer-brand{grid-column:1/-1}
  .site-header{padding:.85rem 1rem}
  .hero{padding:2.5rem 1rem 1.5rem}
}
@media(max-width:480px){
  .footer-grid{grid-template-columns:1fr}
  .email-box{flex-wrap:wrap}
  .header-nav a:not(.theme-btn){display:none}
}

/* ── Static pages ──────────────────────────────────────── */
.page-hero{
  background:radial-gradient(ellipse 80% 50% at 50% -10%,rgba(99,102,241,.15),transparent);
  padding:3.5rem 1rem 2.5rem;text-align:center;
}
.page-hero h1{font-size:clamp(1.6rem,3.5vw,2.4rem);font-weight:800;margin-bottom:.6rem}
.page-hero p{color:var(--muted);font-size:.95rem;max-width:520px;margin:0 auto}

.page-content{max-width:780px;margin:0 auto;padding:2.5rem 1rem 4rem}

.prose h2{font-size:1.2rem;font-weight:700;margin:2rem 0 .75rem;color:var(--text)}
.prose h3{font-size:1rem;font-weight:600;margin:1.5rem 0 .5rem;color:var(--text2)}
.prose p{color:var(--text2);line-height:1.8;margin-bottom:1rem;font-size:.925rem}
.prose ul{color:var(--text2);line-height:1.8;margin-bottom:1rem;padding-left:1.5rem;font-size:.925rem}
.prose ul li{margin-bottom:.35rem}
.prose a{color:var(--accent2)}
.prose strong{color:var(--text);font-weight:600}

.last-updated{
  display:inline-flex;align-items:center;gap:.4rem;
  font-size:.8rem;color:var(--muted);background:var(--surface);
  border:1px solid var(--border);padding:.3rem .8rem;border-radius:20px;margin-bottom:2rem;
}

/* FAQ */
.faq-list{display:flex;flex-direction:column;gap:.75rem}
.faq-item{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);overflow:hidden;
}
.faq-q{
  width:100%;padding:1rem 1.25rem;background:none;border:none;
  color:var(--text);font-size:.925rem;font-weight:600;
  display:flex;align-items:center;justify-content:space-between;
  cursor:pointer;text-align:left;transition:background var(--trans);
}
.faq-q:hover{background:var(--surface2)}
.faq-q i{color:var(--muted);transition:transform var(--trans);flex-shrink:0}
.faq-item.open .faq-q i{transform:rotate(180deg)}
.faq-a{
  max-height:0;overflow:hidden;
  transition:max-height .3s ease,padding .3s ease;
}
.faq-item.open .faq-a{max-height:300px}
.faq-a p{padding:.25rem 1.25rem 1rem;color:var(--text2);font-size:.9rem;line-height:1.7;margin:0}

/* Contact form */
.contact-grid{display:grid;grid-template-columns:1fr 1.6fr;gap:2rem;align-items:start}
.contact-info{display:flex;flex-direction:column;gap:1rem}
.contact-card{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);padding:1.25rem;
  display:flex;align-items:flex-start;gap:.9rem;
}
.contact-card-icon{
  width:40px;height:40px;border-radius:10px;
  background:rgba(99,102,241,.15);color:var(--accent2);
  display:flex;align-items:center;justify-content:center;font-size:1rem;flex-shrink:0;
}
.contact-card h4{font-size:.875rem;font-weight:600;margin-bottom:.2rem}
.contact-card p{font-size:.82rem;color:var(--muted);margin:0}
.contact-form{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);padding:1.75rem;
}
.contact-form h3{font-size:1.05rem;font-weight:700;margin-bottom:1.25rem}
.form-group{margin-bottom:1.1rem}
.form-group label{display:block;font-size:.82rem;color:var(--muted);margin-bottom:.4rem;font-weight:500}
.form-control{
  width:100%;padding:.65rem .9rem;
  background:var(--bg);border:1px solid var(--border);
  border-radius:9px;color:var(--text);font-size:.9rem;
  transition:border var(--trans);font-family:inherit;
}
.form-control:focus{outline:none;border-color:var(--accent)}
textarea.form-control{resize:vertical;min-height:120px}
.form-success{
  background:rgba(16,185,129,.1);border:1px solid rgba(16,185,129,.2);
  color:var(--success);padding:1rem;border-radius:10px;
  text-align:center;font-size:.9rem;display:none;
}
@media(max-width:640px){.contact-grid{grid-template-columns:1fr}}

/* ── Mobile menu ───────────────────────────────────────── */
.hamburger{
  display:none;flex-direction:column;justify-content:center;
  gap:5px;width:38px;height:38px;background:var(--surface2);
  border:1px solid var(--border);border-radius:9px;cursor:pointer;
  padding:8px;transition:all var(--trans);
}
.hamburger span{
  display:block;height:2px;background:var(--text2);
  border-radius:2px;transition:all var(--trans);
}
.hamburger:hover{border-color:var(--accent)}

.nav-overlay{
  display:none;position:fixed;inset:0;
  background:rgba(0,0,0,.55);z-index:200;
  backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);
}
.nav-overlay.open{display:block;animation:fadeIn .2s ease}

.mobile-drawer{
  position:fixed;top:0;right:-320px;width:300px;height:100vh;
  background:var(--surface);border-left:1px solid var(--border);
  z-index:300;display:flex;flex-direction:column;
  transition:right .3s cubic-bezier(.4,0,.2,1);
  box-shadow:-8px 0 32px rgba(0,0,0,.3);
}
.mobile-drawer.open{right:0}

.drawer-head{
  padding:1.1rem 1.25rem;border-bottom:1px solid var(--border);
  display:flex;align-items:center;justify-content:space-between;
}
.drawer-close{
  width:34px;height:34px;border-radius:8px;border:1px solid var(--border);
  background:var(--surface2);color:var(--muted);cursor:pointer;
  display:flex;align-items:center;justify-content:center;font-size:1rem;
  transition:all var(--trans);
}
.drawer-close:hover{background:var(--danger);border-color:var(--danger);color:#fff}

.drawer-nav{flex:1;padding:1rem 0;overflow-y:auto}
.drawer-nav a{
  display:flex;align-items:center;gap:.85rem;
  padding:.85rem 1.5rem;color:var(--text2);font-size:.95rem;
  transition:all var(--trans);border-left:3px solid transparent;
}
.drawer-nav a:hover{
  color:var(--text);background:var(--surface2);
  border-left-color:var(--accent);
}
.drawer-nav a i{width:18px;text-align:center;color:var(--muted)}

.drawer-footer{
  padding:1.25rem;border-top:1px solid var(--border);
  display:flex;flex-direction:column;gap:.9rem;
}
.theme-toggle-row{
  width:100%;display:flex;align-items:center;gap:.75rem;
  background:var(--surface2);border:1px solid var(--border);
  border-radius:10px;padding:.75rem 1rem;cursor:pointer;
  color:var(--text2);font-size:.875rem;transition:all var(--trans);
}
.theme-toggle-row:hover{border-color:var(--accent)}
.theme-toggle-row i{color:var(--accent2);width:16px}
.theme-toggle-row span{flex:1;text-align:left}
.toggle-switch{
  width:36px;height:20px;background:var(--accent);border-radius:99px;
  position:relative;transition:background var(--trans);
}
.toggle-switch::after{
  content:'';position:absolute;top:3px;left:3px;
  width:14px;height:14px;border-radius:50%;background:#fff;
  transition:transform var(--trans);
}
[data-theme="light"] .toggle-switch{background:var(--muted)}
[data-theme="light"] .toggle-switch::after{transform:translateX(0)}
[data-theme="dark"]  .toggle-switch::after{transform:translateX(16px)}

.drawer-links{display:flex;gap:1rem}
.drawer-links a{font-size:.8rem;color:var(--muted)}
.drawer-links a:hover{color:var(--text)}

@media(max-width:768px){
  .desktop-nav{display:none}
  .hamburger{display:flex}
}

/* ── How it works steps ────────────────────────────────── */
.how-steps{display:flex;flex-direction:column;gap:1rem;margin-bottom:2.5rem}
.how-step{
  display:flex;align-items:flex-start;gap:1.1rem;
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);padding:1.25rem 1.5rem;
}
.how-step-icon{
  width:44px;height:44px;border-radius:12px;flex-shrink:0;
  background:var(--accent-g);display:flex;align-items:center;
  justify-content:center;font-size:1rem;color:#fff;
}
.how-step-body h3{font-size:.95rem;font-weight:700;margin-bottom:.3rem}
.how-step-body p{font-size:.875rem;color:var(--muted);line-height:1.6;margin:0}

/* ── Why grid ──────────────────────────────────────────── */
.why-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:1rem;margin-bottom:2.5rem;
}
.why-card{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);padding:1.25rem;text-align:center;
}
.why-card i{font-size:1.5rem;color:var(--accent2);margin-bottom:.75rem;display:block}
.why-card h4{font-size:.9rem;font-weight:700;margin-bottom:.4rem}
.why-card p{font-size:.82rem;color:var(--muted);line-height:1.6;margin:0}

/* ── Blog grid ─────────────────────────────────────────── */
.blog-grid{display:flex;flex-direction:column;gap:1rem}
.blog-card{
  display:flex;align-items:flex-start;gap:1.25rem;
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);padding:1.5rem;
  transition:border-color var(--trans);
}
.blog-card:hover{border-color:var(--accent)}
.blog-card-icon{
  width:52px;height:52px;border-radius:14px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;font-size:1.3rem;
}
.blog-card-body{flex:1;min-width:0}
.blog-card-meta{display:flex;align-items:center;gap:.75rem;margin-bottom:.5rem}
.blog-tag{
  font-size:.72rem;font-weight:600;padding:.2rem .6rem;
  border-radius:20px;background:rgba(99,102,241,.15);color:var(--accent2);
}
.blog-date{font-size:.78rem;color:var(--muted)}
.blog-date i{margin-right:.3rem}
.blog-card-body h2{font-size:1rem;font-weight:700;margin-bottom:.4rem;line-height:1.4}
.blog-card-body p{font-size:.875rem;color:var(--muted);line-height:1.6;margin:0}

@media(max-width:600px){
  .how-step{flex-direction:column}
  .blog-card{flex-direction:column}
  .blog-card-icon{width:44px;height:44px;font-size:1.1rem}
}

/* ── Blog listing ──────────────────────────────────────── */
.blog-meta{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-top:.75rem;font-size:.8rem;color:var(--muted)}
.blog-meta i{margin-right:.3rem}
.blog-readmore{color:var(--accent2);display:flex;align-items:center;gap:.35rem;font-size:.82rem}

/* Featured post */
.blog-featured{
  display:grid;grid-template-columns:1fr 1fr;gap:0;
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);overflow:hidden;margin-bottom:1.5rem;
  text-decoration:none;color:inherit;transition:border-color var(--trans);
}
.blog-featured:hover{border-color:var(--accent)}
.blog-featured-img{position:relative;min-height:280px;overflow:hidden;background:var(--surface2)}
.blog-featured-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
.blog-featured:hover .blog-featured-img img{transform:scale(1.03)}
.blog-featured-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:3rem;color:rgba(255,255,255,.15)}
.blog-featured-body{padding:2rem;display:flex;flex-direction:column;justify-content:center;gap:.75rem}
.blog-featured-body h2{font-size:1.3rem;font-weight:800;line-height:1.35;color:var(--text)}
.blog-featured-body p{font-size:.9rem;color:var(--muted);line-height:1.7;margin:0}

/* Cards grid */
.blog-grid-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.25rem}
.blog-card-v2{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);overflow:hidden;
  text-decoration:none;color:inherit;transition:border-color var(--trans);
  display:flex;flex-direction:column;
}
.blog-card-v2:hover{border-color:var(--accent)}
.blog-card-v2-img{height:180px;overflow:hidden;background:var(--surface2);flex-shrink:0}
.blog-card-v2-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
.blog-card-v2:hover .blog-card-v2-img img{transform:scale(1.04)}
.blog-card-v2-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:2rem;color:rgba(255,255,255,.15)}
.blog-card-v2-body{padding:1.1rem;flex:1;display:flex;flex-direction:column;gap:.4rem}
.blog-card-v2-body h3{font-size:.95rem;font-weight:700;line-height:1.4;color:var(--text)}
.blog-card-v2-body p{font-size:.82rem;color:var(--muted);line-height:1.6;margin:0;flex:1}

/* ── Single post ───────────────────────────────────────── */
.post-page{max-width:100%}

.post-header{
  background:radial-gradient(ellipse 80% 60% at 50% -10%,rgba(99,102,241,.13),transparent);
  padding:3rem 1rem 2.5rem;text-align:center;
}
.post-header-inner{max-width:720px;margin:0 auto}
.post-breadcrumb{
  display:flex;align-items:center;justify-content:center;gap:1.25rem;
  margin-bottom:1.25rem;flex-wrap:wrap;
}
.post-breadcrumb a{
  font-size:.82rem;color:var(--muted);display:flex;align-items:center;
  gap:.4rem;transition:color var(--trans);
}
.post-breadcrumb a:hover{color:var(--accent2)}
.post-title{
  font-size:clamp(1.6rem,4vw,2.4rem);font-weight:800;
  line-height:1.25;margin-bottom:.9rem;
  background:var(--accent-g);-webkit-background-clip:text;
  -webkit-text-fill-color:transparent;background-clip:text;
}
.post-lead{
  font-size:1.05rem;color:var(--muted);line-height:1.7;
  max-width:600px;margin:0 auto;
}

.post-wrap{max-width:720px;margin:0 auto;padding:2rem 1rem 4rem}

.post-article{}

/* Cover image — contained, not banner */
.post-img-wrap{
  margin-bottom:2rem;border-radius:14px;overflow:hidden;
  border:1px solid var(--border);
  box-shadow:0 8px 32px rgba(0,0,0,.25);
}
.post-cover-img{
  width:100%;max-height:420px;
  object-fit:cover;display:block;
}

/* Post body content */
.post-body{color:var(--text2);line-height:1.85;font-size:.975rem}
.post-body h1{font-size:1.6rem;font-weight:800;color:var(--text);margin:2rem 0 .75rem;
  background:var(--accent-g);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.post-body h2{font-size:1.3rem;font-weight:700;color:var(--accent2);margin:1.75rem 0 .65rem;
  padding-bottom:.4rem;border-bottom:1px solid var(--border)}
.post-body h3{font-size:1.1rem;font-weight:700;color:var(--text);margin:1.5rem 0 .5rem}
.post-body h4{font-size:1rem;font-weight:600;color:var(--text2);margin:1.25rem 0 .4rem}
.post-body p{margin-bottom:1.1rem}
.post-body ul,.post-body ol{padding-left:1.5rem;margin-bottom:1.1rem}
.post-body li{margin-bottom:.35rem}
.post-body a{color:var(--accent2);text-decoration:underline;text-underline-offset:3px}
.post-body a:hover{color:var(--text)}
.post-body blockquote{
  border-left:3px solid var(--accent);padding:.75rem 1.25rem;
  margin:1.5rem 0;color:var(--muted);font-style:italic;
  background:rgba(99,102,241,.06);border-radius:0 10px 10px 0;
}
.post-body pre{
  background:var(--surface2);border:1px solid var(--border);
  border-radius:10px;padding:1.1rem;overflow-x:auto;
  font-size:.85rem;margin-bottom:1.25rem;
}
.post-body code{
  background:var(--surface2);padding:.15rem .45rem;
  border-radius:5px;font-size:.85rem;color:var(--accent2);
}
.post-body pre code{background:none;padding:0;color:var(--text2)}
.post-body img{
  max-width:100%;border-radius:10px;
  border:1px solid var(--border);margin:1rem 0;display:block;
}
.post-body strong{color:var(--text);font-weight:600}

/* Related posts inline */
.post-related-inline{
  margin:2.5rem 0;padding:1.5rem;
  background:var(--surface);border:1px solid var(--border);
  border-radius:14px;
}
.post-related-label{
  font-size:.78rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.08em;color:var(--accent2);margin-bottom:1rem;
  display:flex;align-items:center;gap:.4rem;
}
.post-related-card{
  display:flex;gap:.85rem;text-decoration:none;color:inherit;
  background:var(--bg2);border:1px solid var(--border);
  border-radius:10px;overflow:hidden;transition:border-color var(--trans);
}
.post-related-card:hover{border-color:var(--accent)}
.post-related-img{
  width:120px;flex-shrink:0;overflow:hidden;background:var(--surface2);
}
.post-related-img img{width:100%;height:100%;object-fit:cover;display:block}
.post-related-placeholder{
  display:flex;align-items:center;justify-content:center;
  font-size:1.4rem;color:rgba(255,255,255,.15);
}
.post-related-body{padding:.85rem;flex:1;min-width:0}
.post-related-body h4{
  font-size:.9rem;font-weight:700;line-height:1.4;
  color:var(--text);margin:.3rem 0 .4rem;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.post-related-body p{font-size:.78rem;color:var(--muted);line-height:1.5;margin:0}

.post-footer{margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid var(--border)}

@media(max-width:600px){
  .post-related-grid{grid-template-columns:1fr}
  .post-cover-img{max-height:260px}
  .post-title{-webkit-text-fill-color:var(--text);background:none}
}

/* ── Home Blog Section ── */
.home-blog{
  max-width:860px;margin:3rem auto 2rem;padding:0 1rem;
}
.home-blog-head{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:1.5rem;
}
.home-blog-head h2{
  font-size:1.15rem;font-weight:700;color:var(--text);
  display:flex;align-items:center;gap:.5rem;
}
.home-blog-head h2 i{color:var(--accent2)}
.home-blog-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem;
}
.home-blog-card{
  display:flex;flex-direction:column;text-decoration:none;color:inherit;
  background:var(--surface);border:1px solid var(--border);
  border-radius:14px;overflow:hidden;
  transition:border-color var(--trans),transform var(--trans);
}
.home-blog-card:hover{border-color:var(--accent);transform:translateY(-3px)}
.home-blog-img{
  width:100%;aspect-ratio:16/9;overflow:hidden;background:var(--surface2);
  flex-shrink:0;
}
.home-blog-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}
.home-blog-card:hover .home-blog-img img{transform:scale(1.04)}
.home-blog-noimg{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  font-size:2rem;color:rgba(255,255,255,.1);
}
.home-blog-body{padding:1rem;display:flex;flex-direction:column;gap:.4rem;flex:1}
.home-blog-date{font-size:.72rem;color:var(--muted);display:flex;align-items:center;gap:.3rem}
.home-blog-body h3{
  font-size:.88rem;font-weight:700;line-height:1.4;color:var(--text);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.home-blog-body p{
  font-size:.78rem;color:var(--muted);line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  flex:1;
}
.home-blog-read{
  font-size:.75rem;color:var(--accent2);font-weight:600;
  display:flex;align-items:center;gap:.3rem;margin-top:.3rem;
}
@media(max-width:700px){
  .home-blog-grid{grid-template-columns:1fr}
}
