/* ══ DESIGN TOKENS ══ */
:root {
  --blue:      #2563EB;
  --blue-dark: #1E40AF;
  --blue-light:#60A5FA;
  --cyan:      #06B6D4;
  --white:     #FFFFFF;
  --bg-soft:   #F8FAFC;
  --bg-section:#EFF6FF;
  --text:      #0F172A;
  --text-sec:  #475569;
  --border:    #E2E8F0;
  --success:   #22C55E;
  --shadow-sm: 0 6px 20px rgba(37,99,235,.08);
  --shadow-md: 0 10px 30px rgba(37,99,235,.10);
  --shadow-lg: 0 20px 50px rgba(37,99,235,.12);
  --r-btn:     16px;
  --r-card:    24px;
  --grad:      linear-gradient(135deg,#2563EB 0%,#1E40AF 100%);
}

/* ══ RESET & BASE ══ */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter',sans-serif;color:var(--text);background:var(--white);-webkit-font-smoothing:antialiased;overflow-x:hidden}

/* ══ TYPOGRAPHY ══ */
h1{font-size:clamp(2.25rem,5vw,3.5rem);font-weight:800;line-height:1.15;letter-spacing:-.03em}
h2{font-size:clamp(1.75rem,3.5vw,2.625rem);font-weight:700;line-height:1.2;letter-spacing:-.02em}
h3{font-size:clamp(1.25rem,2vw,2rem);font-weight:600;line-height:1.3}
h4{font-size:clamp(1rem,1.5vw,1.5rem);font-weight:600}
p{font-size:clamp(.9375rem,1.5vw,1.125rem);line-height:1.8;color:var(--text-sec)}

/* ══ LAYOUT ══ */
.container{max-width:1280px;margin:0 auto;padding:0 1.5rem}
.section{padding:5rem 0}
@media(max-width:768px){.section{padding:3rem 0}}

/* ══ ANIMATIONS ══ */
.reveal{opacity:0;transform:translateY(28px);transition:opacity .65s ease,transform .65s ease}
.reveal.up{opacity:1;transform:translateY(0)}
.reveal-left{opacity:0;transform:translateX(-28px);transition:opacity .7s ease,transform .7s ease}
.reveal-left.up{opacity:1;transform:translateX(0)}
.reveal-right{opacity:0;transform:translateX(28px);transition:opacity .7s ease,transform .7s ease}
.reveal-right.up{opacity:1;transform:translateX(0)}

/* ══ NAVBAR ══ */
#navbar{
  position:fixed;top:0;width:100%;z-index:100;
  height:88px;display:flex;align-items:center;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
  transition:box-shadow .3s,height .3s;
}
#navbar.scrolled{box-shadow:var(--shadow-sm);height:72px}
.nav-inner{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1280px;margin:0 auto;padding:0 1.5rem}
.nav-logo{display:flex;align-items:center;gap:.75rem;text-decoration:none}
.nav-logo-icon{width:40px;height:40px;background:var(--grad);border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:1.1rem}
.nav-logo-text{display:flex;flex-direction:column}
.nav-logo-text .name{font-weight:700;font-size:1rem;color:var(--text);line-height:1.2}
.nav-logo-text .role{font-size:.7rem;color:var(--text-sec);font-weight:500}
.nav-menu{display:flex;align-items:center;gap:.25rem}
.nav-menu a{font-size:.875rem;font-weight:500;color:var(--text-sec);text-decoration:none;padding:.5rem .875rem;border-radius:10px;transition:all .2s}
.nav-menu a:hover{color:var(--blue);background:var(--bg-section)}
.nav-menu a.active{color:var(--blue);font-weight:600}
.nav-cta{background:var(--grad);color:#fff;font-size:.875rem;font-weight:700;padding:.625rem 1.375rem;border-radius:var(--r-btn);text-decoration:none;transition:all .2s;white-space:nowrap;box-shadow:0 4px 14px rgba(37,99,235,.3)}
.nav-cta:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(37,99,235,.4)}
.hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:.5rem;background:none;border:none}
.hamburger span{display:block;width:24px;height:2px;background:var(--text);border-radius:2px;transition:all .3s}

/* ══ MOBILE NAV ══ */
.mobile-nav{
  display:none;position:fixed;bottom:0;left:0;right:0;z-index:99;
  background:rgba(255,255,255,.97);backdrop-filter:blur(20px);
  border-top:1px solid var(--border);
  padding:.75rem .5rem calc(.75rem + env(safe-area-inset-bottom,0));
  justify-content:space-around;
}
.mn-item{display:flex;flex-direction:column;align-items:center;gap:3px;text-decoration:none;color:var(--text-sec);font-size:.6rem;font-weight:500;min-width:56px;padding:.25rem}
.mn-item svg{width:22px;height:22px}
.mn-item.active{color:var(--blue)}

/* ══ HERO ══ */
.hero{
  padding-top:120px;padding-bottom:5rem;
  background:var(--white);
  position:relative;overflow:hidden;
}
.hero::before{
  content:'';position:absolute;top:-200px;right:-200px;
  width:600px;height:600px;border-radius:50%;
  background:radial-gradient(circle,rgba(37,99,235,.06) 0%,transparent 65%);
  pointer-events:none;
}
.hero-grid{
  display:grid;grid-template-columns:1fr 1fr;
  gap:4rem;align-items:center;
  max-width:1280px;margin:0 auto;padding:0 1.5rem;
}
.hero-badge{
  display:inline-flex;align-items:center;gap:.5rem;
  background:var(--bg-section);border:1px solid rgba(37,99,235,.2);
  color:var(--blue);font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  padding:.375rem 1rem;border-radius:100px;margin-bottom:1.25rem;
}
.hero h1{margin-bottom:1.25rem}
.hero h1 span{color:var(--blue)}
.hero p{font-size:1.0625rem;margin-bottom:2rem;max-width:520px}
.hero-mini-stats{display:flex;gap:2rem;margin-bottom:2.5rem}
.mini-stat .val{font-size:1.375rem;font-weight:800;color:var(--blue)}
.mini-stat .lbl{font-size:.75rem;color:var(--text-sec);margin-top:.125rem}
.hero-btns{display:flex;gap:.875rem;flex-wrap:wrap}
.btn-primary{
  display:inline-flex;align-items:center;gap:.5rem;
  background:var(--grad);color:#fff;font-weight:700;font-size:.9375rem;
  padding:.875rem 1.75rem;border-radius:var(--r-btn);text-decoration:none;
  box-shadow:0 6px 20px rgba(37,99,235,.3);transition:all .2s;
  border:none;cursor:pointer;font-family:'Inter',sans-serif;
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(37,99,235,.4)}
.btn-secondary{
  display:inline-flex;align-items:center;gap:.5rem;
  background:var(--white);color:var(--blue);font-weight:700;font-size:.9375rem;
  padding:.875rem 1.75rem;border-radius:var(--r-btn);text-decoration:none;
  border:2px solid var(--border);transition:all .2s;
}
.btn-secondary:hover{border-color:var(--blue);background:var(--bg-section);transform:translateY(-2px)}

/* Hero portrait */
.hero-portrait{position:relative}
.portrait-wrap{
  position:relative;display:flex;justify-content:center;
}
.portrait-bg{
  width:100%;max-width:480px;aspect-ratio:3/4;
  border-radius:32px;overflow:hidden;
  background:linear-gradient(145deg,var(--bg-section) 0%,rgba(37,99,235,.08) 100%);
  position:relative;
}
.portrait-bg img{width:100%;height:100%;object-fit:cover;object-position:center center}
.portrait-bg .img-placeholder{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(145deg,#EFF6FF,#DBEAFE);
  color:var(--blue-light);font-size:.875rem;text-align:center;padding:2rem;
}

/* Floating certification badges */
.cert-badges{
  position:absolute;right:-20px;top:50%;transform:translateY(-50%);
  display:flex;flex-direction:column;gap:.75rem;
}
.cert-badge{
  background:var(--white);border-radius:16px;padding:.75rem 1rem;
  box-shadow:var(--shadow-md);display:flex;align-items:center;gap:.625rem;
  white-space:nowrap;
  animation:floatBadge 3s ease-in-out infinite;
}
.cert-badge:nth-child(2){animation-delay:.5s}
.cert-badge:nth-child(3){animation-delay:1s}
.cert-badge .badge-icon{width:28px;height:28px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:.875rem}
.cert-badge .badge-text .t1{font-size:.75rem;font-weight:700;color:var(--text)}
.cert-badge .badge-text .t2{font-size:.625rem;color:var(--text-sec)}
@keyframes floatBadge{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}

/* ══ TRUST BAR ══ */
.trust-bar{background:var(--grad);padding:3rem 0}
.trust-grid{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:1rem;text-align:center;
}
.trust-item .t-val{font-size:2.25rem;font-weight:800;color:#fff;letter-spacing:-.02em}
.trust-item .t-lbl{font-size:.8125rem;color:rgba(255,255,255,.75);margin-top:.25rem;font-weight:500}

/* ══ SERVICES ══ */
.services-grid{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:1.5rem;margin-top:3rem;
}
.service-card{
  background:var(--white);border-radius:var(--r-card);
  padding:2rem;border:1.5px solid var(--border);
  transition:all .3s;position:relative;overflow:hidden;
}
.service-card::before{
  content:'';position:absolute;top:0;left:0;right:0;height:3px;
  background:var(--grad);transform:scaleX(0);transform-origin:left;
  transition:transform .3s;
}
.service-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);border-color:rgba(37,99,235,.2)}
.service-card:hover::before{transform:scaleX(1)}
.svc-icon{
  width:52px;height:52px;border-radius:14px;
  background:var(--bg-section);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:1.25rem;font-size:1.5rem;
}
.service-card h4{font-size:1rem;font-weight:700;color:var(--text);margin-bottom:.625rem}
.service-card p{font-size:.875rem;line-height:1.7;margin-bottom:1.25rem}
.svc-link{font-size:.875rem;font-weight:700;color:var(--blue);text-decoration:none;display:inline-flex;align-items:center;gap:.25rem;transition:gap .2s}
.svc-link:hover{gap:.5rem}

/* Section header */
.section-header{text-align:center;margin-bottom:1rem}
.section-label{font-size:.75rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--blue);margin-bottom:.75rem}
.section-header h2{margin-bottom:.875rem}
.section-header p{max-width:560px;margin:0 auto}

/* ══ APPS ECOSYSTEM ══ */
.apps-section{background:var(--bg-section)}
.apps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:3rem}
.app-card{
  background:var(--white);border-radius:var(--r-card);
  padding:2rem;box-shadow:var(--shadow-sm);
  transition:all .3s;border:1.5px solid transparent;
}
.app-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg);border-color:rgba(37,99,235,.15)}
.app-card.featured{border-color:var(--blue);position:relative}
.app-card.featured::after{
  content:'Coming Soon';position:absolute;top:1.25rem;right:1.25rem;
  background:var(--grad);color:#fff;font-size:.625rem;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;padding:.25rem .625rem;border-radius:100px;
}
.app-card.live::after{
  content:'Live ✓';position:absolute;top:1.25rem;right:1.25rem;
  background:linear-gradient(135deg,#22C55E,#16A34A);color:#fff;font-size:.625rem;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;padding:.25rem .625rem;border-radius:100px;
}
.app-icon{
  width:52px;height:52px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  font-size:1.5rem;margin-bottom:1.25rem;
}
.app-card h4{font-size:1.0625rem;font-weight:700;color:var(--text);margin-bottom:.25rem}
.app-card .app-sub{font-size:.8125rem;font-weight:600;color:var(--blue);margin-bottom:.75rem}
.app-card p{font-size:.875rem;line-height:1.7;margin-bottom:1.25rem}
.app-feats{list-style:none;margin-bottom:1.5rem}
.app-feats li{font-size:.8125rem;color:var(--text-sec);padding:.2rem 0;display:flex;align-items:center;gap:.5rem}
.app-feats li::before{content:"✓";color:var(--success);font-weight:700;font-size:.75rem}
.app-link{font-size:.875rem;font-weight:700;color:var(--blue);text-decoration:none;display:inline-flex;align-items:center;gap:.375rem;transition:gap .2s}
.app-link:hover{gap:.625rem}

/* ══ CASE STUDIES ══ */
.cases-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:3rem}
.case-card{
  background:var(--white);border-radius:var(--r-card);
  overflow:hidden;border:1.5px solid var(--border);
  transition:all .3s;
}
.case-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);border-color:rgba(37,99,235,.2)}
.case-header{background:var(--bg-section);padding:2rem;text-align:center}
.case-client{font-size:.8125rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--blue);margin-bottom:.5rem}
.case-industry{font-size:.75rem;color:var(--text-sec);background:var(--white);padding:.25rem .75rem;border-radius:100px;display:inline-block;border:1px solid var(--border)}
.case-body{padding:1.5rem}
.case-result{
  background:var(--bg-section);border-radius:12px;padding:1rem 1.25rem;
  margin:1rem 0;display:flex;align-items:center;gap:.75rem;
}
.case-result .metric{font-size:1.5rem;font-weight:800;color:var(--blue)}
.case-result .metric-lbl{font-size:.8125rem;color:var(--text-sec)}
.case-body p{font-size:.875rem;line-height:1.7;margin-bottom:1rem}
.case-link{font-size:.875rem;font-weight:700;color:var(--blue);text-decoration:none;display:inline-flex;align-items:center;gap:.25rem;transition:gap .2s}
.case-link:hover{gap:.5rem}

/* ══ TESTIMONIALS ══ */
.testimonials-section{background:var(--bg-section)}
.testi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:3rem}
.testi-card{
  background:var(--white);border-radius:var(--r-card);
  padding:2rem;box-shadow:var(--shadow-sm);
  transition:all .3s;
}
.testi-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}
.testi-stars{color:#F59E0B;font-size:1rem;margin-bottom:1rem;letter-spacing:.05em}
.testi-text{font-size:.9375rem;line-height:1.75;color:var(--text);margin-bottom:1.5rem;font-style:italic}
.testi-author{display:flex;align-items:center;gap:.875rem}
.testi-avatar{
  width:44px;height:44px;border-radius:50%;
  background:var(--grad);display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:700;font-size:.875rem;flex-shrink:0;
}
.testi-name{font-size:.9rem;font-weight:700;color:var(--text)}
.testi-role{font-size:.75rem;color:var(--text-sec)}

/* ══ ARTICLES ══ */
.articles-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;margin-top:3rem}
.article-card{
  background:var(--white);border-radius:var(--r-card);
  overflow:hidden;border:1.5px solid var(--border);
  transition:all .3s;
}
.article-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:rgba(37,99,235,.2)}
.article-img{height:180px;background:var(--bg-section);position:relative;overflow:hidden}
.article-img img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.article-card:hover .article-img img{transform:scale(1.05)}
.article-img .img-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--bg-section),#DBEAFE)}
.article-cat{
  position:absolute;top:.75rem;left:.75rem;
  background:var(--grad);color:#fff;
  font-size:.625rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  padding:.25rem .625rem;border-radius:6px;
}
.article-body{padding:1.25rem}
.article-body h4{font-size:.9375rem;font-weight:700;color:var(--text);margin-bottom:.5rem;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.article-body p{font-size:.8125rem;line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:.875rem}
.article-meta{display:flex;align-items:center;justify-content:space-between}
.article-date{font-size:.6875rem;color:var(--text-sec)}
.article-read{font-size:.6875rem;color:var(--blue);font-weight:600}

/* ══ FAQ ══ */
.faq-section{background:var(--bg-section)}
.faq-container{max-width:800px;margin:3rem auto 0}
.faq-item{
  background:var(--white);border-radius:16px;margin-bottom:.75rem;
  border:1.5px solid var(--border);overflow:hidden;
  transition:border-color .2s;
}
.faq-item.open{border-color:rgba(37,99,235,.3)}
.faq-q{
  width:100%;padding:1.25rem 1.5rem;
  display:flex;justify-content:space-between;align-items:center;gap:1rem;
  background:none;border:none;cursor:pointer;text-align:left;
  font-family:'Inter',sans-serif;font-size:.9375rem;font-weight:600;color:var(--text);
}
.faq-q svg{width:20px;height:20px;color:var(--blue);flex-shrink:0;transition:transform .3s}
.faq-item.open .faq-q svg{transform:rotate(180deg)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .35s ease,padding .35s ease}
.faq-a p{padding:0 1.5rem 1.25rem;font-size:.9rem;line-height:1.8}
.faq-item.open .faq-a{max-height:400px}

/* ══ CTA SECTION ══ */
.cta-section{
  background:var(--grad);padding:5rem 0;text-align:center;
  position:relative;overflow:hidden;
}
.cta-section::before{
  content:'';position:absolute;inset:0;
  background:radial-gradient(ellipse at 30% 50%,rgba(255,255,255,.08),transparent 60%);
}
.cta-section h2{color:#fff;margin-bottom:1rem;position:relative}
.cta-section p{color:rgba(255,255,255,.8);max-width:520px;margin:0 auto 2.5rem;position:relative}
.cta-btns{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;position:relative}
.btn-white{
  background:#fff;color:var(--blue);font-weight:700;font-size:.9375rem;
  padding:.875rem 1.75rem;border-radius:var(--r-btn);text-decoration:none;
  box-shadow:0 6px 20px rgba(0,0,0,.15);transition:all .2s;
}
.btn-white:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(0,0,0,.2)}
.btn-outline-white{
  background:rgba(255,255,255,.12);color:#fff;font-weight:700;font-size:.9375rem;
  padding:.875rem 1.75rem;border-radius:var(--r-btn);text-decoration:none;
  border:2px solid rgba(255,255,255,.4);transition:all .2s;
}
.btn-outline-white:hover{background:rgba(255,255,255,.2);transform:translateY(-2px)}

/* ══ FOOTER ══ */
footer{background:var(--text);padding:4rem 0 2rem;color:rgba(255,255,255,.7)}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr 1fr;gap:2rem;margin-bottom:3rem}
.footer-brand .name{font-size:1.0625rem;font-weight:700;color:#fff;margin-bottom:.375rem}
.footer-brand .tagline{font-size:.8125rem;line-height:1.6;margin-bottom:1.25rem;color:rgba(255,255,255,.55)}
.social-links{display:flex;gap:.625rem}
.social-link{
  width:36px;height:36px;border-radius:8px;
  background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;
  color:rgba(255,255,255,.6);text-decoration:none;font-size:.8rem;font-weight:600;
  transition:all .2s;
}
.social-link:hover{background:var(--blue);color:#fff}
.footer-col h5{font-size:.8125rem;font-weight:700;color:#fff;margin-bottom:1rem;letter-spacing:.06em;text-transform:uppercase}
.footer-col a{display:block;font-size:.8125rem;color:rgba(255,255,255,.55);text-decoration:none;padding:.25rem 0;transition:color .2s}
.footer-col a:hover{color:#fff}
.footer-contact p{font-size:.8125rem;color:rgba(255,255,255,.55);margin-bottom:.375rem;display:flex;align-items:center;gap:.5rem}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:1.5rem;display:flex;justify-content:space-between;align-items:center;flex-wrap:gap;gap:1rem}
.footer-bottom p{font-size:.75rem;color:rgba(255,255,255,.4)}
.footer-links{display:flex;gap:1.5rem}
.footer-links a{font-size:.75rem;color:rgba(255,255,255,.4);text-decoration:none;transition:color .2s}
.footer-links a:hover{color:#fff}

/* ══ RESPONSIVE ══ */
@media(max-width:1024px){
  .services-grid{grid-template-columns:repeat(2,1fr)}
  .articles-grid{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr;gap:2rem}
}
@media(max-width:768px){
  #navbar{height:72px}
  .nav-menu,.nav-cta{display:none}
  .hamburger{display:flex}
  .mobile-nav{display:flex}
  body{padding-bottom:80px}

  .hero{padding-top:100px}
  .hero-grid{grid-template-columns:1fr;gap:2.5rem}
  .hero-portrait{order:-1}
  .portrait-bg{max-width:320px;margin:0 auto}
  .hero-mini-stats{gap:1.25rem}
  .hero-btns{flex-direction:column}
  .hero-btns a{text-align:center;justify-content:center}

  .trust-grid{grid-template-columns:repeat(2,1fr);gap:1.5rem}

  .apps-grid{grid-template-columns:1fr}
  .cases-grid{grid-template-columns:1fr}
  .testi-grid{grid-template-columns:1fr}
  .articles-grid{grid-template-columns:1fr}

  .cta-btns{flex-direction:column;align-items:center}
  .cta-btns a{width:100%;max-width:320px;text-align:center;justify-content:center}

  .footer-grid{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column;text-align:center}
  .footer-links{flex-wrap:wrap;justify-content:center}
}
@media(min-width:769px) and (max-width:1024px){
  .hero-grid{gap:2.5rem}
  .apps-grid{grid-template-columns:1fr 1fr}
  .cases-grid{grid-template-columns:1fr 1fr}
  .testi-grid{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1.5fr 1fr 1fr}
}

/* ══ MOBILE MENU OVERLAY ══ */
.mobile-menu-overlay{
  display:none;position:fixed;inset:0;background:var(--white);z-index:200;
  flex-direction:column;padding:1.5rem;
  opacity:0;transform:translateX(100%);
  transition:opacity .3s,transform .3s;
}
.mobile-menu-overlay.open{opacity:1;transform:translateX(0)}
.mob-menu-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}
.mob-menu-close{background:none;border:none;cursor:pointer;font-size:1.5rem;color:var(--text)}
.mob-menu-links{display:flex;flex-direction:column;gap:.5rem}
.mob-menu-links a{font-size:1.125rem;font-weight:600;color:var(--text);text-decoration:none;padding:1rem 0;border-bottom:1px solid var(--border)}
.mob-menu-cta{margin-top:2rem}

/* ── POST CONTENT STYLES ── */
.post-content { font-size: 1.0625rem; line-height: 1.9; color: var(--text); }
.post-content h2 { font-size: 1.625rem; font-weight: 700; color: var(--text); margin: 2.5rem 0 1rem; }
.post-content h3 { font-size: 1.25rem; font-weight: 600; color: var(--text); margin: 2rem 0 .875rem; }
.post-content p { margin-bottom: 1.5rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.post-content li { margin-bottom: .5rem; }
.post-content a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(37,99,235,.3); }
.post-content a:hover { text-decoration-color: var(--blue); }
.post-content blockquote { border-left: 4px solid var(--blue); padding: 1rem 1.5rem; background: var(--bg-section); border-radius: 0 12px 12px 0; margin: 2rem 0; }
.post-content blockquote p { margin: 0; font-style: italic; color: var(--text); }
.post-content img { max-width: 100%; height: auto; border-radius: 16px; }
.post-content code { background: var(--bg-section); padding: .2rem .5rem; border-radius: 6px; font-size: .875em; color: var(--blue); }

/* ── HERO GRID FIX FOR CONTAINER ── */
.hero-grid { padding: 0 1.5rem; }
@media(min-width:769px){.hero-grid{padding:0 1.5rem}}

/* ── ARTICLE CARD TITLE FIX ── */
.article-body h3 {
  font-size: .9375rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin-bottom: .5rem !important;
  color: var(--text) !important;
}
.article-body h3 a {
  text-decoration: none !important;
  color: var(--text) !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}
.article-body h3 a:hover { color: var(--blue) !important; }

/* ── NAV SUBMENU FIX ── */
.nav-menu .sub-menu { display: none !important; }
.nav-menu li { list-style: none !important; position: relative; }
.nav-menu .menu { display: flex; align-items: center; gap: .25rem; }
.nav-menu .menu-item { position: relative; }
.nav-menu .menu-item a {
  font-size: .875rem; font-weight: 500;
  color: var(--text-sec); text-decoration: none;
  padding: .5rem .875rem; border-radius: 10px;
  transition: all .2s; display: block;
}
.nav-menu .menu-item a:hover { color: var(--blue); background: var(--bg-section); }
.nav-menu .menu-item.current-menu-item > a,
.nav-menu .menu-item.current_page_item > a { color: var(--blue); font-weight: 600; }

/* ── PORTRAIT & BADGES MOBILE (definitive) ── */
@media(max-width:768px){
  .portrait-bg{
    max-width:340px;
    margin:0 auto;
    aspect-ratio:4/5;
  }
  .portrait-bg img{
    object-position:top center;
  }
  .cert-badges{
    position:absolute;
    right:-8px;
    top:auto;
    bottom:8%;
    transform:none;
    gap:.5rem;
  }
  .cert-badge{
    padding:.45rem .7rem;
  }
  .cert-badge .badge-icon{
    width:24px;height:24px;font-size:.875rem;
  }
  .cert-badge .badge-text .t1{font-size:.7rem}
  .cert-badge .badge-text .t2{font-size:.6rem}
}