/* AssistAI soft minimal design v3 — lighter, smaller, less bold */
:root{
  --page:#f7f9fc;
  --surface:#ffffff;
  --surface-soft:#f8fbff;
  --text:#172033;
  --muted:#5f6f86;
  --brand:#2563eb;
  --brand-2:#60a5fa;
  --line:#e3e9f2;
  --line-blue:#dbe8ff;
  --soft-blue:#eef6ff;
  --shadow:0 12px 34px rgba(15,23,42,.06);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--page);
  color:var(--text);
  line-height:1.65;
  font-weight:400;
}

a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}

.container{width:min(1060px,92%);margin:0 auto}
.narrow{width:min(820px,92%);margin:0 auto}
.small{font-size:14px;color:#7b8798}

/* Force the site to stay light even where HTML still has class="dark" */
.dark{background:transparent;color:var(--text)}

/* Header */
.topbar{
  position:sticky;
  top:0;
  z-index:30;
  padding:14px 0;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}

.nav-wrap{display:flex;justify-content:center;align-items:center}
.nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  flex-wrap:wrap;
}
.nav a{
  color:#27364c;
  font-weight:560;
  font-size:15px;
}
.nav a:hover{color:var(--brand);text-decoration:none}

/* Hero */
.hero{
  padding:26px 0 38px;
  text-align:center;
  background:linear-gradient(180deg,#ffffff 0%,#f2f7ff 100%);
  border-bottom:1px solid var(--line-blue);
}

.hero .container{
  background:linear-gradient(135deg,#ffffff 0%,#f3f8ff 100%);
  border:1px solid var(--line-blue);
  border-radius:28px;
  padding:28px 28px 34px;
  box-shadow:var(--shadow);
}

.langs{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin:0 0 24px;
}
.lang{
  border:1px solid #cbd5e1;
  background:#ffffff;
  color:#223047;
  border-radius:999px;
  padding:8px 15px;
  font-weight:520;
  font-size:15px;
  cursor:pointer;
  transition:.16s ease;
}
.lang.active,
.lang:hover{
  background:#2563eb;
  color:#fff;
  border-color:#2563eb;
  box-shadow:0 8px 18px rgba(37,99,235,.14);
}
.lang:focus{outline:3px solid rgba(147,197,253,.45)}

.hero h1{
  font-size:clamp(42px,6vw,62px);
  line-height:1.02;
  margin:4px 0 10px;
  letter-spacing:-2px;
  color:#111827;
  font-weight:700;
}
.hero h1 span{color:#72aef6}

.hero .tagline{
  font-size:clamp(17px,2.2vw,21px);
  color:#42546d;
  font-weight:430;
  margin:0 auto 26px;
  max-width:760px;
  letter-spacing:0;
}

.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:190px;
  background:#2563eb;
  color:#fff;
  border-radius:16px;
  padding:14px 26px;
  font-size:21px;
  font-weight:620;
  box-shadow:0 14px 32px rgba(37,99,235,.16);
  transition:.16s ease;
}
.cta:hover{
  text-decoration:none;
  transform:translateY(-1px);
  box-shadow:0 18px 40px rgba(37,99,235,.18);
}
.secondary-link{
  display:block;
  margin-top:20px;
  color:#4b6381;
  font-size:17px;
  font-weight:450;
  text-decoration:underline;
  text-underline-offset:5px;
}

/* Sections */
.section{padding:48px 0}
.section h2{
  font-size:clamp(26px,4vw,36px);
  line-height:1.15;
  margin:0 0 14px;
  letter-spacing:-.7px;
  font-weight:650;
}
.section h3{
  font-size:20px;
  line-height:1.28;
  margin:16px 0 8px;
  font-weight:620;
}
.lead{
  font-size:17px;
  color:var(--muted);
  max-width:780px;
}

.section.dark{
  background:#ffffff;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.section.dark h2,
.section.dark h3{color:var(--text)}
.section.dark .lead{color:var(--muted)}

.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:26px;
}
.two{grid-template-columns:repeat(2,minmax(0,1fr))}

.card,
.dark-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:20px;
  padding:22px;
  box-shadow:0 8px 24px rgba(15,23,42,.045);
}
.card h3,
.dark-card h3{margin-top:0}
.card p,
.dark-card p{color:var(--muted);margin:0;font-size:16px}

.pill{
  display:inline-block;
  background:#eff6ff;
  color:#1d4ed8;
  border-radius:999px;
  padding:5px 10px;
  font-weight:600;
  font-size:12px;
  margin-bottom:10px;
}

.checklist{list-style:none;padding:0;margin:20px 0}
.checklist li{
  padding-left:32px;
  position:relative;
  margin:10px 0;
  color:#334155;
  font-size:16px;
}
.checklist li:before{
  content:"✓";
  position:absolute;
  left:0;
  top:1px;
  background:#dcfce7;
  color:#15803d;
  border-radius:999px;
  width:21px;
  height:21px;
  text-align:center;
  line-height:21px;
  font-weight:700;
  font-size:12px;
}

.button-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:13px;
  padding:11px 18px;
  font-weight:600;
}
.btn-primary{background:#2563eb;color:white}
.btn-primary:hover{text-decoration:none}
.btn-secondary{border:1px solid var(--line);color:#172033;background:white}
.btn-secondary:hover{text-decoration:none;background:#f8fafc}

.notice{
  background:#fffbeb;
  border:1px solid #fde68a;
  border-radius:16px;
  padding:16px;
  color:#92400e;
}
.breadcrumb{font-weight:600;color:#64748b;margin-bottom:12px}

/* Articles */
.article{padding:38px 0 70px}
.article h1{
  font-size:clamp(34px,5.2vw,50px);
  letter-spacing:-1.6px;
  line-height:1.08;
  margin:18px 0 12px;
  font-weight:680;
}
.article h2{
  font-size:28px;
  margin-top:38px;
  line-height:1.2;
  font-weight:650;
}
.article p,
.article li{font-size:17px;color:#334155}
.article .intro{font-size:20px;color:#536276}

.toc{
  background:#ffffff;
  border:1px solid var(--line-blue);
  border-radius:18px;
  padding:18px;
  margin:24px 0;
}
.toc a{display:block;margin:7px 0;font-weight:600}

.quote{
  border-left:4px solid #2563eb;
  background:#f8fafc;
  padding:16px 20px;
  border-radius:14px;
  margin:24px 0;
  color:#334155;
}

.table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(15,23,42,.045);
  margin:20px 0;
}
.table th,.table td{
  border:1px solid var(--line);
  padding:13px;
  text-align:left;
  vertical-align:top;
  font-size:16px;
}
.table th{background:#f5f9ff;color:#1e3a8a;font-weight:620}

/* Footer */
.footer{
  background:#ffffff;
  color:#64748b;
  padding:38px 0;
  text-align:center;
  border-top:1px solid var(--line);
}
.footer strong{color:#172033;font-weight:620}
.footer a{color:#2563eb}

/* RTL support */
html[dir="rtl"] body{font-family:Inter,"Segoe UI",Tahoma,sans-serif}
html[dir="rtl"] .hero,
html[dir="rtl"] .section,
html[dir="rtl"] .article{text-align:right}
html[dir="rtl"] .langs,
html[dir="rtl"] .nav{justify-content:flex-start}
html[dir="rtl"] .checklist li{padding-left:0;padding-right:32px}
html[dir="rtl"] .checklist li:before{left:auto;right:0}
html[dir="rtl"] .quote{border-left:none;border-right:4px solid #2563eb}

@media(max-width:850px){
  .grid,.two{grid-template-columns:1fr}
  .nav{gap:14px}
  .nav a{font-size:14px}
  .hero{padding:18px 0 30px}
  .hero .container{padding:22px 18px 28px;border-radius:22px}
  .langs{gap:8px;margin-bottom:18px}
  .lang{font-size:14px;padding:8px 12px}
  .cta{font-size:19px;padding:13px 22px}
  .secondary-link{font-size:16px}
  .section{padding:40px 0}
  .section h2{font-size:28px}
  .article h2{font-size:25px}
}
