@import url('https://api.fontshare.com/v2/css?f[]=general-sans@500,600,700&f[]=satoshi@400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=League+Spartan:wght@600;700&display=swap');

/* ── Reset & Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Satoshi', system-ui, -apple-system, sans-serif; color: #12161D; background: #F5F2EB; -webkit-font-smoothing: antialiased; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
::selection { background: #17B7A6; color: #0E1117; }

/* ── CSS Variables ── */
:root {
  --dark: #0E1117;
  --warm: #F5F2EB;
  --white: #ffffff;
  --teal-bright: #17B7A6;
  --teal: #0D9488;
  --teal-dark: #0B7D74;
  --ink: #12161D;
  --body: #2B313B;
  --muted: #59616E;
  --muted-dark: #8A94A0;
  --muted-on-dark: #AEB6C0;
  --dim: #6B7683;
  --border: #E6E2D8;
  --border-warm: #D8D3C6;
  --teal-light: #CFF3EE;
  --primary: #0D9488;
}

/* ── Layout ── */
.container { max-width: 1240px; margin: 0 auto; padding-left: 2rem; padding-right: 2rem; }
.pad-x { padding-left: 2rem; padding-right: 2rem; }

/* ── Animations ── */
@keyframes flow { 0%{ transform:translateX(-6px); opacity:0; } 15%{ opacity:1; } 85%{ opacity:1; } 100%{ transform:translateX(120px); opacity:0; } }
@keyframes flowV { 0%{ transform:translateY(-4px); opacity:0; } 20%{ opacity:1; } 80%{ opacity:1; } 100%{ transform:translateY(60px); opacity:0; } }
@keyframes rise { from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:translateY(0); } }
@keyframes pulse { 0%,100%{ box-shadow:0 0 0 0 rgba(23,183,166,.5); } 50%{ box-shadow:0 0 0 10px rgba(23,183,166,0); } }
.reveal { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }

/* ── Nav ── */
nav { position: sticky; top: 0; z-index: 100; background: rgba(245,242,235,.82); backdrop-filter: blur(14px); border-bottom: 1px solid #E6E2D8; }
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .55rem; font-family: 'League Spartan', sans-serif; font-weight: 600; font-size: 1.25rem; letter-spacing: -.005em; color: #12161D; }
.logo svg { display: block; flex-shrink: 0; }
.logo-text { display: inline-block; }
nav ul { display: flex; align-items: center; gap: 2.1rem; list-style: none; }
nav ul a { color: #5A6472; font-size: .9rem; font-weight: 500; transition: color .2s; }
nav ul a:hover { color: #12161D; }
.lang-switch { color: #5A6472; border: 1px solid #D8D3C6; border-radius: 6px; padding: .3rem .55rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em; font-family: 'JetBrains Mono', monospace; transition: color .2s, border-color .2s; }
.lang-switch:hover { color: #12161D; border-color: #12161D; }
.nav-login { color: #5A6472; font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-login:hover { color: #12161D; }
.nav-cta { white-space: nowrap; background: #0E1117; color: #F5F2EB; padding: .6rem 1.15rem; border-radius: 8px; font-size: .86rem; font-weight: 700; transition: transform .15s, background .2s; }
.nav-cta:hover { background: #0D9488; transform: translateY(-1px); }
.mobile-menu-btn { display: none; background: none; border: 1px solid #D8D3C6; border-radius: 8px; width: 40px; height: 40px; cursor: pointer; font-size: 1.1rem; color: #12161D; align-items: center; justify-content: center; }
.nav-links-mobile { display: none; flex-direction: column; border-top: 1px solid #E6E2D8; background: #F5F2EB; }
.mobile-menu-open .nav-links-mobile { display: flex; position: absolute; top: 100%; left: 0; right: 0; z-index: 99; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.nav-links-mobile a { display: block; padding: 1rem 2rem; border-bottom: 1px solid #E6E2D8; color: #5A6472; font-size: .9rem; font-weight: 500; transition: color .15s; }
.nav-links-mobile a:last-child { border-bottom: none; }
.nav-links-mobile a:hover { color: #12161D; }

/* ── Buttons ── */
.btn-primary { background: #17B7A6; color: #04201D; padding: .95rem 1.9rem; border-radius: 9px; font-size: 1rem; font-weight: 700; display: inline-block; transition: transform .15s, box-shadow .2s; box-shadow: 0 8px 30px rgba(23,183,166,.3); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline { border: 1px solid rgba(255,255,255,.2); color: #F5F2EB; padding: .95rem 1.7rem; border-radius: 9px; font-size: 1rem; font-weight: 700; display: inline-block; transition: border-color .2s, background .2s; }
.btn-outline:hover { border-color: #17B7A6; background: rgba(23,183,166,.08); }
.btn-dark-outline { border: 1px solid #D8D3C6; color: #12161D; padding: .75rem 1.4rem; border-radius: 9px; font-size: .9rem; font-weight: 700; display: inline-block; transition: border-color .2s, color .2s; }
.btn-dark-outline:hover { border-color: #0D9488; color: #0D9488; }

/* ── Section label ── */
.section-label { font-family: 'JetBrains Mono', monospace; font-size: .75rem; letter-spacing: .14em; color: #0D9488; margin-bottom: 1rem; }
.section-label-light { font-family: 'JetBrains Mono', monospace; font-size: .75rem; letter-spacing: .14em; color: #17B7A6; margin-bottom: 1rem; }
.section-title { font-family: 'General Sans', sans-serif; font-weight: 600; font-size: 2.9rem; letter-spacing: -.03em; line-height: 1.08; color: #12161D; }
.section-title-light { font-family: 'General Sans', sans-serif; font-weight: 600; font-size: 2.9rem; letter-spacing: -.03em; line-height: 1.08; color: #F5F2EB; }
.section-subtitle { font-size: 1.08rem; color: #59616E; margin-top: 1.2rem; line-height: 1.7; }
.section-subtitle-light { font-size: 1.08rem; color: #AEB6C0; margin-top: 1.2rem; line-height: 1.7; }

/* ── Page header (articles index) ── */
.page-header { background: #0E1117; color: #F5F2EB; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0; background: radial-gradient(800px 400px at 80% 0%, rgba(23,183,166,.14), transparent 60%); }
.page-header-inner { position: relative; max-width: 1240px; margin: 0 auto; padding: 5rem 2rem; }
.page-header h1 { font-family: 'General Sans', sans-serif; font-weight: 600; font-size: 3.4rem; letter-spacing: -.035em; line-height: 1.05; }
.page-header p { font-size: 1.15rem; color: #AEB6C0; max-width: 560px; margin-top: 1.2rem; line-height: 1.7; }

/* ── Articles index list ── */
.article-list-section { max-width: 1240px; margin: 0 auto; padding: 4.5rem 2rem 6rem; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.artcard { display: flex; flex-direction: column; border: 1px solid #E6E2D8; border-radius: 18px; padding: 2rem; background: #fff; transition: transform .2s, border-color .2s; }
.artcard:hover { transform: translateY(-4px); border-color: #0D9488; }
.artcard:hover .readmore { gap: .6rem; }
.artcard-tag { font-family: 'JetBrains Mono', monospace; font-size: .68rem; letter-spacing: .08em; color: #0B7D74; background: #CFF3EE; padding: .25rem .7rem; border-radius: 100px; display: inline-block; margin-bottom: 1.2rem; }
.artcard h3 { font-family: 'General Sans', sans-serif; font-weight: 600; font-size: 1.2rem; color: #12161D; line-height: 1.35; margin-bottom: .7rem; }
.artcard p { font-size: .92rem; color: #59616E; line-height: 1.65; flex: 1; }
.readmore { margin-top: 1.3rem; font-weight: 700; font-size: .88rem; color: #0D9488; display: inline-flex; gap: .35rem; transition: gap .2s; }
.artcard-featured { display: grid; grid-template-columns: 1.1fr .9fr; border: 1px solid #E6E2D8; border-radius: 20px; overflow: hidden; background: #fff; transition: transform .2s, border-color .2s; margin-bottom: 2.5rem; }
.artcard-featured:hover { transform: translateY(-4px); border-color: #0D9488; }
.artcard-featured:hover .readmore { gap: .6rem; }
.artcard-featured-text { padding: 3rem; }
.artcard-featured-visual { background: #0E1117; position: relative; overflow: hidden; min-height: 280px; display: grid; place-items: center; }
.artcard-featured-visual::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(23,183,166,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(23,183,166,.14) 1px, transparent 1px); background-size: 34px 34px; }

/* ── Article detail page ── */
.article-header { background: #F5F2EB; border-bottom: 1px solid #E6E2D8; padding: 3.5rem 2rem 3rem; }
.article-header-inner { max-width: 760px; margin: 0 auto; }
.article-tag { font-family: 'JetBrains Mono', monospace; font-size: .68rem; letter-spacing: .08em; color: #0B7D74; background: #CFF3EE; padding: .25rem .7rem; border-radius: 100px; display: inline-block; }
.article-readtime { font-family: 'JetBrains Mono', monospace; font-size: .72rem; color: #8A94A0; }
.article-header h1 { font-family: 'General Sans', sans-serif; font-weight: 600; font-size: 2.7rem; letter-spacing: -.03em; line-height: 1.1; color: #12161D; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 600; color: #0D9488; margin-bottom: 1.8rem; transition: gap .2s; }
.back-link:hover { gap: .7rem; }
.article-body { max-width: 760px; margin: 0 auto; padding: 3.5rem 2rem 4rem; }
.article-body p { font-size: 1.12rem; color: #2B313B; line-height: 1.85; margin-bottom: 1.5rem; }
.article-body p:last-child { margin-bottom: 0; }
.article-body .lead::first-letter { font-family: 'General Sans', sans-serif; font-weight: 600; font-size: 3.4rem; float: left; line-height: .82; padding: .35rem .6rem 0 0; color: #0D9488; }
.article-cta-section { max-width: 760px; margin: 0 auto; padding: 0 2rem 4.5rem; }
.article-cta-box { background: #0E1117; color: #F5F2EB; border-radius: 20px; padding: 3rem; text-align: center; position: relative; overflow: hidden; }
.article-cta-box::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 250px at 50% 0%, rgba(23,183,166,.18), transparent 65%); }
.article-cta-box > * { position: relative; }
.article-cta-box h2 { font-family: 'General Sans', sans-serif; font-weight: 600; font-size: 1.6rem; letter-spacing: -.02em; margin-bottom: .7rem; }
.article-cta-box p { color: #AEB6C0; max-width: 440px; margin: 0 auto 1.6rem; line-height: 1.7; }
.article-cta-btn { display: inline-block; background: #17B7A6; color: #04201D; padding: .85rem 1.7rem; border-radius: 9px; font-weight: 700; transition: transform .15s; }
.article-cta-btn:hover { transform: translateY(-2px); }
.related-section { max-width: 1000px; margin: 0 auto; padding: 0 2rem 5rem; }
.related-label { font-family: 'JetBrains Mono', monospace; font-size: .72rem; letter-spacing: .12em; color: #0D9488; margin-bottom: 1.4rem; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.relcard { border: 1px solid #E6E2D8; border-radius: 14px; padding: 1.6rem; transition: border-color .2s, transform .2s; display: block; }
.relcard:hover { border-color: #0D9488; transform: translateY(-3px); }
.relcard-tag { font-family: 'JetBrains Mono', monospace; font-size: .66rem; color: #0B7D74; }
.relcard h3 { font-family: 'General Sans', sans-serif; font-weight: 600; font-size: 1.1rem; margin-top: .6rem; color: #12161D; }

/* ── Footer ── */
footer { background: #0E1117; color: #8A94A0; padding: 3rem 0; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-inner .logo { color: #F5F2EB; }
.footer-email { font-size: .85rem; color: #17B7A6; }
.footer-copy { font-size: .85rem; }

/* ── Feature rows (features section) ── */
.frow { display: flex; gap: 1.1rem; padding: 1.6rem; background: #FBFAF6; border: 1px solid #E6E2D8; border-radius: 14px; transition: border-color .2s, background .2s; }
.frow:hover { border-color: #0D9488; background: #ffffff; }
.frow:hover .ficon { background: #0D9488; color: #F5F2EB; }
.ficon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 11px; background: #CFF3EE; color: #0B7D74; display: grid; place-items: center; transition: background .2s, color .2s; }
.frow h3 { font-family: 'General Sans', sans-serif; font-weight: 600; font-size: 1.08rem; color: #12161D; margin-bottom: .3rem; }
.frow p { font-size: .9rem; color: #59616E; line-height: 1.6; }

/* ── Scenario cards ── */
.scenario-card { background: #fff; border: 1px solid #E6E2D8; border-radius: 16px; padding: 2.2rem; }
.scenario-tag { font-family: 'JetBrains Mono', monospace; font-size: .7rem; letter-spacing: .1em; color: #0D9488; margin-bottom: .9rem; }
.scenario-card h3 { font-family: 'General Sans', sans-serif; font-weight: 600; font-size: 1.15rem; color: #12161D; margin-bottom: .6rem; line-height: 1.35; }
.scenario-card p { font-size: .93rem; color: #59616E; line-height: 1.7; }

/* ── Responsive ── */
@media (max-width: 960px) {
  nav ul { display: none; }
  .nav-login { display: none; }
  .mobile-menu-btn { display: flex; }
  .artcard-featured { grid-template-columns: 1fr; }
  .artcard-featured-visual { min-height: 160px; }
  .article-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container, .pad-x { padding-left: 1.25rem; padding-right: 1.25rem; }
  .nav-inner { padding-left: 1.25rem; padding-right: 1.25rem; }
  .page-header h1 { font-size: 2.4rem; }
  .article-header h1 { font-size: 1.9rem; }
  .article-body { padding-left: 1.25rem; padding-right: 1.25rem; }
  .article-cta-section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .related-section { padding-left: 1.25rem; padding-right: 1.25rem; }
}
