/* AIwake site — adapted from the BlurFold site's stylesheet.
   Warm orange-to-purple accents taken from the app icon; light and dark follow the system.
   Right-to-left (ar, ur): layout uses logical properties (margin-inline, inset-inline,
   text-align:start…) so it mirrors with <html dir="rtl">; code stays left-to-right. */
:root{
  color-scheme:light dark;
  --bg:#f5f4f8; --bg2:#ffffff; --ink:#16121d; --muted:#5b5667;
  --line:rgba(22,18,29,.10); --card:#ffffff;
  --accent:#b3305c; --accent-soft:rgba(213,69,118,.10); --violet:#5b2d8e;
  --grad:linear-gradient(135deg,#f07a2e 0%,#d54576 52%,#5b2d8e 100%);
  --code-bg:#1d1726; --code-ink:#f3eef9; --code-dim:#a99fb8;
  --header-bg:rgba(245,244,248,.80);
  --page-bg:
    radial-gradient(70rem 34rem at 18% -14rem, rgba(240,122,46,.13) 0%, rgba(240,122,46,0) 62%),
    radial-gradient(60rem 30rem at 92% -10rem, rgba(91,45,142,.12) 0%, rgba(91,45,142,0) 60%),
    linear-gradient(180deg,#efedf4 0%,#f5f4f8 40%,#f5f4f8 100%);
  --radius:20px; --maxw:1120px;
  --shadow:0 24px 60px -24px rgba(30,20,48,.30); --shadow-sm:0 8px 24px -12px rgba(30,20,48,.22);
  --chevron:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b5667' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>");
}
@media (prefers-color-scheme:dark){
  :root{
    --bg:#110e16; --bg2:#18141f; --ink:#f3f0f7; --muted:#aba3b8;
    --line:rgba(255,255,255,.10); --card:#19151f;
    --accent:#ff7ea8; --accent-soft:rgba(255,126,168,.12); --violet:#b99cff;
    --code-bg:#0b0910; --code-ink:#f3eef9; --code-dim:#9a90aa;
    --header-bg:rgba(17,14,22,.78);
    --page-bg:
      radial-gradient(70rem 34rem at 18% -14rem, rgba(240,122,46,.14) 0%, rgba(240,122,46,0) 62%),
      radial-gradient(60rem 30rem at 92% -10rem, rgba(124,76,200,.18) 0%, rgba(124,76,200,0) 60%),
      linear-gradient(180deg,#15111c 0%,#110e16 40%,#110e16 100%);
    --shadow:0 30px 70px -28px rgba(0,0,0,.7); --shadow-sm:0 10px 34px -16px rgba(0,0,0,.6);
    --chevron:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aba3b8' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>");
  }
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);background:var(--page-bg);background-color:var(--bg);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,"Noto Sans",Helvetica,Arial,sans-serif;
  line-height:1.55;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:hidden;
  overflow-wrap:break-word}
a{color:inherit;text-decoration:none}
a:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:6px}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 22px}
h1,h2,h3{line-height:1.14;letter-spacing:-.02em;margin:0}
h1{font-size:clamp(34px,6vw,58px);font-weight:800}
h2{font-size:clamp(26px,4vw,38px);font-weight:800}
p{margin:0}
code,kbd,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
code{font-size:.92em;background:var(--accent-soft);border-radius:6px;padding:1px 6px;overflow-wrap:anywhere;
  direction:ltr;unicode-bidi:isolate}
.grad-text{background:var(--grad);-webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent}

/* Header */
header{position:sticky;top:0;z-index:50;backdrop-filter:saturate(160%) blur(14px);
  -webkit-backdrop-filter:saturate(160%) blur(14px);
  background:var(--header-bg);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:64px;gap:14px}
.brand{display:flex;align-items:center;gap:11px;font-weight:800;font-size:19px;letter-spacing:-.01em;flex:none}
.brand img{width:34px;height:34px}
/* Links sit next to the language picker; if a translation is too long they wrap
   onto a second line inside the header instead of pushing it wider. */
.nav-links{display:flex;flex-wrap:wrap;justify-content:flex-end;min-width:0;margin-inline-start:auto;
  gap:0 22px;font-size:15px;font-weight:600;color:var(--muted)}
.nav-links a{white-space:nowrap}
.nav-links a:hover,.nav-links a[aria-current="page"]{color:var(--ink)}
.lang{position:relative;display:flex;align-items:center;gap:8px;flex:none;color:var(--muted)}
.lang[hidden]{display:none}
.lang svg{width:18px;height:18px}
select#lang{appearance:none;-webkit-appearance:none;border:1px solid var(--line);margin:0;
  background:var(--bg2) var(--chevron) no-repeat right 10px center;color:var(--ink);
  font:inherit;font-size:14px;font-weight:600;padding:8px 30px 8px 12px;border-radius:11px;cursor:pointer;max-width:13em}
[dir="rtl"] select#lang{padding:8px 12px 8px 30px;background-position:left 10px center}
select#lang:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Hero */
.hero{position:relative;overflow:hidden;padding:clamp(42px,7vw,88px) 0 clamp(34px,5vw,64px)}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:46px;align-items:center}
.hero-grid > *{min-width:0}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:14.5px;
  letter-spacing:.01em;color:var(--accent)}
.eyebrow .dot{width:9px;height:9px;border-radius:50%;background:var(--grad)}
.hero h1{margin:14px 0 16px}
.hero .sub{font-size:clamp(16px,2vw,19px);color:var(--muted);max-width:34em}
.chips{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 26px}
.chip{border:1px solid var(--line);background:var(--card);border-radius:999px;
  padding:8px 15px;font-size:13.5px;font-weight:600;color:var(--muted)}
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.store{display:inline-flex;align-items:center;gap:10px;background:var(--ink);color:var(--bg);
  font-weight:800;font-size:15.5px;padding:13px 22px;border-radius:14px;box-shadow:0 10px 30px rgba(22,18,29,.22);
  transition:transform .15s ease,box-shadow .15s ease}
.store:hover{transform:translateY(-2px);box-shadow:0 14px 36px rgba(22,18,29,.30)}
.store svg{width:18px;height:18px;flex:none}
.dl{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px 10px;max-width:100%;border:1px solid var(--line);background:var(--card);color:var(--ink);
  font-weight:800;font-size:15.5px;padding:12px 20px;border-radius:14px;transition:transform .15s ease,border-color .15s ease}
.dl:hover{transform:translateY(-2px);border-color:var(--accent)}
.dl svg{width:18px;height:18px;flex:none}
.dl-meta{font-size:12.5px;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}
.ed .dl{margin-top:16px;font-size:14.5px;padding:9px 16px;border-radius:12px;background:var(--accent-soft);border-color:transparent;color:var(--accent)}
.ed .dl:hover{border-color:var(--accent)}
.tag{display:inline-block;padding:2px 10px;border-radius:999px;vertical-align:middle;
  background:var(--accent-soft);color:var(--accent);font-size:12px;font-weight:700;letter-spacing:.02em}
.fine{margin-top:14px;font-size:14.5px;color:var(--muted)}
.fine a,.more a,a.inline{color:var(--accent);font-weight:700}
.fine a:hover,.more a:hover,a.inline:hover{text-decoration:underline}

/* Hero illustration: drawn in HTML and CSS, not a screenshot of the app */
.art{position:relative;max-width:470px;margin:0 auto;width:100%}
.art .glow{position:absolute;inset:8% 4% -6%;background:var(--grad);filter:blur(60px);opacity:.22;border-radius:40px;z-index:0}
.menubar{position:relative;z-index:1;display:flex;align-items:center;justify-content:flex-end;gap:14px;
  height:34px;padding:0 14px;border-radius:12px;background:var(--card);border:1px solid var(--line);
  box-shadow:var(--shadow-sm);font-size:13px;font-weight:600;color:var(--muted)}
.menubar .bar{height:8px;border-radius:4px;background:var(--line)}
.menubar .cup{display:inline-flex;align-items:center;justify-content:center;width:28px;height:24px;
  border-radius:7px;background:var(--accent-soft);color:var(--accent)}
.menubar .cup svg{width:18px;height:18px}
.pop{position:relative;z-index:1;margin-block:10px 0;margin-inline:auto 0;width:min(340px,100%);background:var(--card);
  border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:16px;font-size:14px}
.pop-head{display:flex;align-items:center;gap:12px}
.pop-head svg{width:30px;height:30px;color:var(--accent);flex:none}
.pop-head strong{display:block;font-size:15.5px}
.pop-head span{color:var(--muted);font-size:13.5px}
.pop hr{border:0;border-top:1px solid var(--line);margin:13px 0}
.pop-cap{font-size:12px;font-weight:700;color:var(--muted);margin-bottom:7px}
.pop-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:4px 0}
.pop-row strong{display:block;font-weight:600}
.pop-row span{color:var(--muted);font-size:13px}
.pop-btns{display:flex;flex-wrap:wrap;gap:6px}
.pop-btns span{border:1px solid var(--line);border-radius:7px;padding:2px 10px;font-size:13px;background:var(--bg)}
.pop-foot{display:flex;align-items:center;gap:6px}
.pop-foot span{border:1px solid var(--line);border-radius:7px;padding:2px 10px;font-size:13px;background:var(--bg)}
.pop-foot .pop-tip{display:inline-flex;align-items:center;padding:2px 7px}
.pop-foot .pop-tip svg{width:14px;height:14px}
.pop-foot .pop-quit{margin-inline-start:auto}

/* Sections */
section{padding:clamp(34px,5vw,64px) 0}
.section-head{max-width:700px;margin:0 auto 34px;text-align:center}
.section-head .sub{color:var(--muted);margin-top:10px;font-size:16.5px}
.more{text-align:center;margin-top:22px;font-size:15.5px}

/* Cards */
.feat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.feat-grid.four{grid-template-columns:repeat(4,1fr)}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:24px;
  box-shadow:var(--shadow-sm);min-width:0}
.card .ic{width:46px;height:46px;border-radius:13px;background:var(--accent-soft);color:var(--accent);
  display:flex;align-items:center;justify-content:center;margin-bottom:16px}
.card .ic svg{width:24px;height:24px}
.card h3{font-size:18.5px;margin-bottom:8px}
.card p{color:var(--muted);font-size:15px}
.card p + p{margin-top:10px}
.step .num{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;
  background:var(--grad);color:#fff;font-weight:800;font-size:15px;margin-bottom:14px}

/* Code */
.codeblock{margin:18px 0 0;background:var(--code-bg);color:var(--code-ink);border-radius:14px;
  padding:16px 18px;font-size:13.5px;line-height:1.6;overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--line);
  direction:ltr;text-align:left}
.codeblock .dim{color:var(--code-dim)}
.code-note{max-width:820px;margin:26px auto 0}
.doc .codeblock{margin:12px 0}

/* MCP: tool list and setup lines */
.tools{margin:14px 0 0}
.tools dt{margin:0}
.tools dd + dt{margin-top:16px}
.tools dt code{font-size:14px;font-weight:600;color:var(--ink)}
.tools dd{margin:6px 0 0;color:var(--muted);font-size:15px}
.setup-label{font-weight:700}
.card .setup-label{margin-top:18px;color:var(--ink);font-size:13.5px}
.setup .codeblock{margin-top:8px}
.code-note p{color:var(--muted);font-size:15px;text-align:center}

/* Two-column block */
.split{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
.checks{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.checks li{position:relative;padding-inline-start:30px;color:var(--muted);font-size:15.5px}
.checks li::before{content:"";position:absolute;inset-inline-start:0;top:.3em;width:18px;height:18px;border-radius:50%;
  background:var(--accent-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d54576' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12.5l4 4 8-9'/></svg>") center/12px no-repeat}
.checks li strong{color:var(--ink)}

/* Tables */
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:16px;background:var(--card)}
table{width:100%;border-collapse:collapse;font-size:15px}
th,td{text-align:start;vertical-align:top;padding:12px 16px;border-bottom:1px solid var(--line)}
tr:last-child th,tr:last-child td{border-bottom:0}
thead th{font-size:13.5px;color:var(--muted);font-weight:700;background:var(--accent-soft)}
tbody th{font-weight:700}
td{color:var(--muted)}

/* Editions */
.ed-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.ed h3{display:flex;align-items:center;flex-wrap:wrap;gap:10px}

/* CTA */
.cta{text-align:center}
.cta .req{color:var(--muted);max-width:36em;margin:14px auto 26px}
.cta .actions{justify-content:center}

/* Footer */
footer{border-top:1px solid var(--line);padding:30px 0 40px;margin-top:20px}
.foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px}
.foot .brand img{width:30px;height:30px}
.foot nav{display:flex;gap:20px;flex-wrap:wrap;font-size:14.5px;color:var(--muted)}
.foot nav a:hover{color:var(--ink)}
.copy{color:var(--muted);font-size:13.5px;margin-top:18px}
.copy a{color:inherit}

/* Doc pages (privacy / support / editions) */
.doc{max-width:760px;margin:0 auto;padding:clamp(40px,6vw,70px) 0 30px}
.doc h1{font-size:clamp(30px,5vw,44px);margin:12px 0 6px}
.doc .updated{color:var(--muted);font-size:14px;margin-bottom:22px}
.doc .intro{font-size:17px;color:var(--muted);margin-bottom:8px}
.doc h2{font-size:21px;margin:30px 0 10px}
.doc p{color:var(--muted);font-size:15.5px}
.doc p + p{margin-top:10px}
.doc p strong{color:var(--ink)}
.doc ul{color:var(--muted);font-size:15.5px;margin:0;padding-inline-start:22px;display:grid;gap:8px}
.doc .qa h2{font-size:18.5px}
.doc .ed-grid{margin:24px 0 6px}
.doc .ed h3{font-size:18.5px;margin-bottom:8px}
.doc .table-wrap{margin:4px 0 16px}
.doc .contact-box{margin-top:34px;background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);padding:22px}
.doc .contact-box h2{margin:0 0 8px}
.doc .contact-box a{color:var(--accent);font-weight:700}
.doc .back{display:inline-block;margin-top:36px;color:var(--accent);font-weight:700}

/* Scripts whose letters join (Arabic, Urdu) or hang from a headline (Devanagari, Bengali):
   no negative tracking, and taller lines for their ascenders and descenders. */
:is(:lang(ar),:lang(ur),:lang(hi),:lang(bn)) :is(h1,h2,h3,.eyebrow,.tag){letter-spacing:0}
html:lang(ar) :is(h1,h2,h3),html:is(:lang(hi),:lang(bn)) :is(h1,h2,h3){line-height:1.35}
html:lang(ur) body{line-height:1.9}
html:lang(ur) :is(h1,h2,h3){line-height:1.6}

.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Responsive */
@media (max-width:980px){
  .feat-grid.four{grid-template-columns:1fr 1fr}
}
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr;gap:36px}
  .feat-grid{grid-template-columns:1fr 1fr}
  .split,.ed-grid{grid-template-columns:1fr}
  .nav-links .wide{display:none}
}
@media (max-width:720px){
  /* Language picker shrinks to a globe button; the native list opens on tap. */
  .lang{width:36px;height:36px;justify-content:center;border:1px solid var(--line);border-radius:11px;background:var(--bg2)}
  .lang:focus-within{outline:2px solid var(--accent);outline-offset:2px}
  select#lang,[dir="rtl"] select#lang{position:absolute;inset:0;width:100%;height:100%;max-width:none;opacity:0;padding:0;font-size:16px}
}
@media (max-width:560px){
  .feat-grid,.feat-grid.four{grid-template-columns:1fr}
  .nav-links{column-gap:14px;font-size:14px}
  .brand{font-size:17px}
  .menubar .bar.opt{display:none}
  th,td{padding:10px 11px;font-size:14px}
}
/* With the language picker shown, small screens need a little more room in the header. */
@media (max-width:480px){
  .nav:has(.lang:not([hidden])) .brand span{display:none}
}
@media (max-width:400px){
  .nav:has(.lang:not([hidden])){gap:10px}
  .nav:has(.lang:not([hidden])) .nav-links{column-gap:12px}
}
@media (max-width:400px){
  .brand span{display:none}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .store,.dl{transition:none}
  .store:hover,.dl:hover{transform:none}
}
