:root {
  --primary: #5B3DB7;
  --primary-light: #7B5DD7;
  --primary-dark: #3F2A82;
  --secondary: #F0B840;
  --secondary-light: #FFD06A;
  --light: #F8F8FA;
  --dark: #14161F;
  --dark-soft: #2A2D3A;
  --text: #3A3D4A;
  --text-muted: #6B6E7A;
  --border: #E2E3E8;
  --white: #FFFFFF;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:var(--text);background:var(--white);line-height:1.7;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:var(--primary);text-decoration:none;transition:color .3s ease}
a:hover{color:var(--primary-light)}
h1,h2,h3,h4,h5,h6{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:var(--dark);line-height:1.25;font-weight:700}
h1{font-size:2.5rem}h2{font-size:2rem}h3{font-size:1.5rem}h4{font-size:1.25rem}h5{font-size:1.1rem}h6{font-size:1rem}
p{margin-bottom:1rem}

.container{width:100%;max-width:1200px;margin:0 auto;padding:0 1.25rem}
.section{padding:5rem 0}
.section--light{background:var(--light)}
.section--dark{background:var(--dark);color:var(--white)}
.section--dark h2,.section--dark h3,.section--dark h4{color:var(--white)}
.section--dark p,.section--dark span{color:rgba(255,255,255,.78)}

.section-header{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:3rem;gap:1.5rem;flex-wrap:wrap}
.section-header h2{font-size:2.25rem;font-weight:800;margin:0}
.section-header .section-lead{max-width:520px;color:var(--text-muted);font-size:1.05rem;margin:.5rem 0 0}
.accent-line{width:50px;height:3px;background:var(--secondary);border:none;margin-bottom:1.5rem}

.btn{display:inline-flex;align-items:center;gap:.5rem;font-weight:600;font-size:.95rem;padding:.85rem 2rem;border:2px solid transparent;border-radius:var(--radius-sm);cursor:pointer;transition:all .35s ease;text-decoration:none;line-height:1.4;white-space:nowrap}
.btn--primary{background:var(--primary);color:var(--white);border-color:var(--primary)}
.btn--primary:hover{background:var(--primary-dark);border-color:var(--primary-dark);color:var(--white)}
.btn--outline{background:transparent;color:var(--primary);border-color:var(--primary)}
.btn--outline:hover{background:var(--primary);color:var(--white)}
.btn--secondary{background:var(--secondary);color:var(--dark);border-color:var(--secondary)}
.btn--secondary:hover{background:var(--secondary-light);border-color:var(--secondary-light);color:var(--dark)}
.btn--ghost{background:transparent;color:var(--primary);border-color:transparent;padding-left:0;padding-right:0}
.btn--ghost:hover{color:var(--primary-dark)}
.btn--ghost::after{content:"\2192";transition:transform .3s ease}
.btn--ghost:hover::after{transform:translateX(4px)}

/* NAVBAR */
.navbar{position:fixed;top:0;left:0;width:100%;z-index:1000;background:var(--white);box-shadow:0 2px 20px rgba(0,0,0,.06);transition:transform .4s ease}
.navbar__inner{display:flex;align-items:center;justify-content:space-between;height:72px;max-width:1200px;margin:0 auto;padding:0 1.25rem}
.navbar__brand{font-size:1.35rem;font-weight:800;color:var(--dark);text-decoration:none;display:flex;align-items:center;gap:.6rem;flex-shrink:0}
.navbar__brand img{height:36px;width:auto}
.navbar__brand-accent{color:var(--primary)}
.navbar__nav{display:flex;align-items:center;gap:0;list-style:none;margin:0;padding:0}
.navbar__link{display:block;padding:.5rem 1.1rem;font-weight:600;font-size:.95rem;color:var(--dark);text-decoration:none;transition:color .3s ease;position:relative}
.navbar__link::after{content:"";position:absolute;bottom:0;left:1.1rem;right:1.1rem;height:2px;background:var(--primary);transform:scaleX(0);transition:transform .3s ease}
.navbar__link:hover,.navbar__link--active{color:var(--primary)}
.navbar__link:hover::after,.navbar__link--active::after{transform:scaleX(1)}
.navbar__toggle{display:none;flex-direction:column;justify-content:center;gap:5px;width:44px;height:44px;padding:10px;background:none;border:none;cursor:pointer}
.navbar__toggle span{display:block;width:24px;height:2px;background:var(--dark);transition:all .3s ease;border-radius:2px}
.navbar__toggle.is-active span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.navbar__toggle.is-active span:nth-child(2){opacity:0}
.navbar__toggle.is-active span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}

@media(max-width:768px){
  .navbar__toggle{display:flex}
  .navbar__nav{display:none;position:absolute;top:72px;left:0;width:100%;flex-direction:column;background:var(--white);box-shadow:0 10px 30px rgba(0,0,0,.1);padding:1rem 0}
  .navbar__nav.is-open{display:flex}
  .navbar__link{padding:.8rem 1.5rem;font-size:1rem}
  .navbar__link::after{display:none}
}

/* HERO */
.hero{padding-top:72px;background:var(--light);position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;top:0;right:0;width:40%;height:100%;background:var(--primary);opacity:.04;clip-path:polygon(30% 0%,100% 0%,100% 100%,0% 100%)}
.hero__inner{display:grid;grid-template-columns:1.1fr .9fr;gap:3rem;align-items:center;min-height:520px;padding:4rem 0}
.hero__label{display:inline-block;font-size:.85rem;font-weight:700;text-transform:uppercase;letter-spacing:3px;color:var(--primary);margin-bottom:1rem}
.hero__title{font-size:3rem;font-weight:800;line-height:1.15;margin-bottom:1.25rem}
.hero__subtitle{font-size:1.1rem;color:var(--text-muted);line-height:1.75;margin-bottom:2rem;max-width:480px}
.hero__subtitle p{margin-bottom:.5rem}
.hero__actions{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.hero__visual{display:flex;justify-content:flex-end;position:relative}
.hero__visual-decoration{width:100%;max-width:420px;aspect-ratio:1;border-radius:var(--radius-lg);background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem;padding:3rem;color:var(--white);text-align:center;position:relative;overflow:hidden}
.hero__visual-decoration::after{content:"";position:absolute;width:160%;height:160%;top:-30%;left:-30%;background:radial-gradient(circle,rgba(255,255,255,.06) 0%,transparent 60%);pointer-events:none}
.hero__visual-decoration .deco-icon{font-size:4rem;opacity:.9}
.hero__visual-decoration .deco-text{font-size:1.1rem;font-weight:600;opacity:.85;max-width:260px;line-height:1.5}

@media(max-width:900px){
  .hero__inner{grid-template-columns:1fr;min-height:auto;padding:3rem 0}
  .hero__visual{display:none}
  .hero__title{font-size:2.25rem}
}

/* TOPICS */
.topics-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}
.topic-card{display:flex;gap:1.25rem;background:var(--white);border-radius:var(--radius);padding:2rem;transition:all .4s ease;border:1px solid var(--border)}
.section--light .topic-card{border-color:transparent;box-shadow:0 2px 12px rgba(0,0,0,.04)}
.topic-card:hover{box-shadow:0 8px 30px rgba(91,61,183,.1);border-color:var(--primary);transform:translateY(-2px)}
.topic-card__icon{flex-shrink:0;width:56px;height:56px;border-radius:var(--radius);background:var(--light);display:flex;align-items:center;justify-content:center;font-size:1.4rem;color:var(--primary);font-weight:800;transition:all .35s ease}
.topic-card:hover .topic-card__icon{background:var(--primary);color:var(--white)}
.topic-card__body{}
.topic-card__name{font-size:1.15rem;font-weight:700;margin-bottom:.5rem}
.topic-card__desc{font-size:.92rem;color:var(--text-muted);line-height:1.65}
.topic-card__desc p{margin-bottom:0}
@media(max-width:768px){.topics-grid{grid-template-columns:1fr}}

/* POSTS */
.posts-layout{display:grid;grid-template-columns:1fr 1fr;gap:2rem}
.post-card{position:relative;border-radius:var(--radius);overflow:hidden;background:var(--white);border:1px solid var(--border);transition:all .4s ease}
.post-card:hover{box-shadow:0 12px 40px rgba(0,0,0,.08);transform:translateY(-3px)}
.post-card--featured{grid-column:1/-1;display:grid;grid-template-columns:1.2fr 1fr}
.post-card__image{overflow:hidden;position:relative;background:var(--light);min-height:200px}
.post-card__image img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.post-card:hover .post-card__image img{transform:scale(1.04)}
.post-card__overlay{position:absolute;inset:0;background:rgba(91,61,183,.85);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .4s ease}
.post-card:hover .post-card__overlay{opacity:1}
.post-card__overlay-text{color:var(--white);font-weight:700;font-size:1rem;letter-spacing:1px}
.post-card__body{padding:1.75rem;display:flex;flex-direction:column}
.post-card__date{font-size:.8rem;font-weight:600;color:var(--primary);text-transform:uppercase;letter-spacing:1px;margin-bottom:.65rem}
.post-card__title{font-size:1.2rem;font-weight:700;margin-bottom:.75rem;line-height:1.35}
.post-card__title a{color:var(--dark);text-decoration:none}
.post-card__title a:hover{color:var(--primary)}
.post-card__excerpt{font-size:.92rem;color:var(--text-muted);line-height:1.65;flex-grow:1}
.post-card__excerpt p{margin-bottom:0}
.post-card--featured .post-card__title{font-size:1.5rem}
@media(max-width:768px){
  .posts-layout{grid-template-columns:1fr}
  .post-card--featured{grid-template-columns:1fr}
  .post-card--featured .post-card__image{min-height:200px}
}

/* FAQ */
.faq-layout{display:grid;grid-template-columns:1fr 1.2fr;gap:4rem;align-items:start}
.faq-intro h2{font-size:2.25rem;font-weight:800;margin-bottom:1rem}
.faq-intro p{color:var(--text-muted);font-size:1.05rem}
.faq-list{display:flex;flex-direction:column}
.faq-item{border-bottom:1px solid var(--border)}
.faq-item:first-child{border-top:1px solid var(--border)}
.faq-question{width:100%;text-align:left;background:none;border:none;font-family:inherit;font-size:1.05rem;font-weight:600;color:var(--dark);padding:1.25rem 2.5rem 1.25rem 0;cursor:pointer;position:relative;transition:color .3s ease;line-height:1.45}
.faq-question::after{content:"+";position:absolute;right:0;top:50%;transform:translateY(-50%);font-size:1.4rem;font-weight:400;color:var(--primary);transition:transform .3s ease}
.faq-item.is-open .faq-question::after{content:"\2212"}
.faq-question:hover{color:var(--primary)}
.faq-answer{max-height:0;overflow:hidden;transition:max-height .4s ease,padding .4s ease}
.faq-item.is-open .faq-answer{max-height:500px;padding-bottom:1.25rem}
.faq-answer-inner{font-size:.95rem;color:var(--text-muted);line-height:1.7}
.faq-answer-inner p{margin-bottom:.5rem}
@media(max-width:768px){.faq-layout{grid-template-columns:1fr;gap:2rem}}

/* BLOG INDEX */
.blog-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:2rem}
@media(min-width:1024px){.blog-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.blog-grid{grid-template-columns:1fr}}
.blog-header{margin-bottom:3rem}
.blog-header h1{font-size:2.5rem;font-weight:800}

.pagination{display:flex;align-items:center;justify-content:center;gap:.4rem;margin-top:3rem;padding-top:2rem;border-top:1px solid var(--border)}
.pagination a,.pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:.5rem 1rem;font-weight:600;font-size:.95rem;border-radius:var(--radius-sm);color:var(--dark);text-decoration:none;transition:all .3s ease;border:2px solid transparent}
.pagination a:hover{background:var(--light);color:var(--primary)}
.pagination a.active{background:var(--primary);color:var(--white);border-color:var(--primary)}

/* SINGLE POST */
.post-single{max-width:780px;margin:0 auto;padding-top:2rem}
.post-single__header{margin-bottom:2.5rem}
.post-single__date{font-size:.85rem;font-weight:600;color:var(--primary);text-transform:uppercase;letter-spacing:1.5px;margin-bottom:1rem}
.post-single__title{font-size:2.5rem;font-weight:800;line-height:1.2;margin-bottom:1.25rem}
.post-single__excerpt{font-size:1.15rem;color:var(--text-muted);line-height:1.7;border-left:3px solid var(--secondary);padding-left:1.25rem}
.post-single__cover{margin-bottom:2.5rem;border-radius:var(--radius);overflow:hidden}
.post-single__cover img{width:100%}
.content-body{font-size:1.05rem;line-height:1.8}
.content-body h2{font-size:1.65rem;margin-top:2.5rem;margin-bottom:1rem}
.content-body h3{font-size:1.35rem;margin-top:2rem;margin-bottom:.75rem}
.content-body p{margin-bottom:1.25rem}
.content-body ul,.content-body ol{margin-bottom:1.25rem;padding-left:1.5rem}
.content-body li{margin-bottom:.5rem}
.content-body blockquote{border-left:3px solid var(--primary);margin:2rem 0;padding:1rem 1.5rem;background:var(--light);border-radius:0 var(--radius) var(--radius) 0;font-style:italic;color:var(--text-muted)}
.content-body img{border-radius:var(--radius);margin:1.5rem 0}
.content-body a{color:var(--primary);text-decoration:underline;text-decoration-color:var(--secondary);text-underline-offset:3px}
.content-body a:hover{color:var(--primary-dark)}

/* PAGE */
.page-header{background:var(--light);padding:5rem 0 3rem;margin-top:72px}
.page-header h1{font-size:2.75rem;font-weight:800}
.page-content{padding:3rem 0 5rem}
.page-content__inner{max-width:780px;margin:0 auto}

/* FOOTER */
.footer{background:var(--dark);color:rgba(255,255,255,.65);padding:4rem 0 0}
.footer__grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:3rem;padding-bottom:3rem}
.footer__brand{font-size:1.35rem;font-weight:800;color:var(--white);margin-bottom:1rem;display:block;text-decoration:none}
.footer__brand-accent{color:var(--secondary)}
.footer__about{font-size:.92rem;line-height:1.7;max-width:340px}
.footer__heading{color:var(--white);font-size:.9rem;font-weight:700;text-transform:uppercase;letter-spacing:2px;margin-bottom:1.25rem}
.footer__nav{list-style:none;padding:0;margin:0}
.footer__nav li{margin-bottom:.65rem}
.footer__nav a{color:rgba(255,255,255,.6);font-size:.92rem;text-decoration:none;transition:color .3s ease,padding-left .3s ease}
.footer__nav a:hover{color:var(--secondary);padding-left:4px}
.footer__contact-link{color:var(--secondary);text-decoration:none;font-size:.95rem}
.footer__contact-link:hover{color:var(--secondary-light)}
.footer__bottom{border-top:1px solid rgba(255,255,255,.1);padding:1.5rem 0;display:flex;align-items:center;justify-content:space-between;font-size:.85rem}
@media(max-width:768px){
  .footer__grid{grid-template-columns:1fr;gap:2rem}
  .footer__bottom{flex-direction:column;gap:.5rem;text-align:center}
}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-nav{position:absolute;top:-100%;left:1rem;z-index:9999;background:var(--primary);color:var(--white);padding:.75rem 1.5rem;border-radius:0 0 var(--radius) var(--radius);font-weight:600;transition:top .3s}
.skip-nav:focus{top:0;color:var(--white)}
*:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.back-to-top{position:fixed;bottom:2rem;right:2rem;width:48px;height:48px;background:var(--primary);color:var(--white);border:none;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:1.25rem;opacity:0;visibility:hidden;transition:all .4s ease;z-index:999}
.back-to-top.is-visible{opacity:1;visibility:visible}
.back-to-top:hover{background:var(--primary-dark);transform:translateY(-3px)}
.cta-band{background:var(--primary);padding:3rem 0}
.cta-band__inner{display:flex;align-items:center;justify-content:space-between;gap:2rem;flex-wrap:wrap}
.cta-band__text{color:var(--white)}
.cta-band__text h3{color:var(--white);font-size:1.5rem;font-weight:700;margin-bottom:.25rem}
.cta-band__text p{color:rgba(255,255,255,.75);margin-bottom:0;font-size:.95rem}
@media(max-width:600px){
  h1{font-size:2rem}
  .hero__title{font-size:2rem}
  .post-single__title{font-size:1.75rem}
  .section{padding:3.5rem 0}
}
