/* cloro.cloud — design system (original build, 2026)
   Direction: modern SaaS · light · soft gradient · rounded cards · micro-shadow
   Self-contained. No external dependencies. */

:root {
  /* palette */
  --bg:            #fbfcfe;
  --bg-soft:       #f4f6fb;
  --surface:       #ffffff;
  --surface-2:     #f8f9fd;
  --border:        #e7eaf3;
  --border-strong: #d7dcec;
  --text:          #171a2b;
  --text-2:        #4b5168;
  --text-3:        #8188a0;
  --brand:         #6d5efc;      /* indigo-violet */
  --brand-2:       #3b8bff;      /* blue */
  --brand-ink:     #4b3fe0;
  --accent:        #16b8a6;      /* teal for data/success */
  --warn:          #f5a524;
  --grad:          linear-gradient(135deg, #6d5efc 0%, #3b8bff 55%, #35c6f4 100%);
  --grad-soft:     linear-gradient(160deg, #eef0ff 0%, #eaf4ff 40%, #effcff 100%);

  /* typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
  --text-hero: clamp(2.6rem, 1.3rem + 4.6vw, 4.6rem);
  --text-h2:   clamp(1.9rem, 1.2rem + 2.2vw, 2.9rem);
  --text-h3:   clamp(1.2rem, 1rem + 0.6vw, 1.45rem);
  --text-lead: clamp(1.05rem, 0.98rem + 0.4vw, 1.28rem);

  /* space + shape */
  --space-section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --radius:   18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(23,26,43,.06), 0 2px 8px rgba(23,26,43,.05);
  --shadow-md: 0 6px 20px rgba(45,52,97,.09), 0 2px 6px rgba(45,52,97,.06);
  --shadow-lg: 0 22px 60px rgba(58,64,120,.16);
  --ease: cubic-bezier(.16,1,.3,1);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -.02em; margin: 0; font-weight: 700; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: var(--space-section); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-ink);
  background: #efeeff; border: 1px solid #e2e0ff;
  padding: 5px 12px; border-radius: 999px;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: var(--text-lead); color: var(--text-2); }
.center { text-align: center; }
.muted { color: var(--text-3); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 13px 22px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap;
}
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 8px 22px rgba(90,80,240,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(90,80,240,.4); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand-ink); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(12px);
  background: rgba(251,252,254,.78); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.24rem; letter-spacing: -.03em; }
.brand .dot { width: 26px; height: 26px; border-radius: 8px; background: var(--grad); box-shadow: 0 4px 12px rgba(90,80,240,.4); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: .95rem; color: var(--text-2); font-weight: 550; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
@media (max-width: 860px){ .nav-links { display: none; } }

/* hero */
.hero { position: relative; overflow: hidden; padding-top: clamp(3rem,2rem+3vw,5.5rem); padding-bottom: clamp(3rem,2rem+3vw,5rem); }
.hero::before { content:""; position:absolute; inset:-40% -10% auto; height:720px;
  background: radial-gradient(60% 60% at 30% 20%, rgba(109,94,252,.16), transparent 70%),
              radial-gradient(50% 50% at 80% 10%, rgba(53,198,244,.16), transparent 70%);
  filter: blur(10px); z-index:-1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
@media (max-width: 960px){ .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 { font-size: var(--text-hero); margin: 18px 0 20px; }
.hero .lead { max-width: 40ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: .88rem; color: var(--text-3); display:flex; gap:16px; flex-wrap:wrap; }
.hero-note span { display:inline-flex; align-items:center; gap:6px; }

/* code card */
.code-card { background: #0e1222; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid #1d2340; }
.code-top { display:flex; align-items:center; gap:8px; padding: 13px 16px; border-bottom: 1px solid #1d2340; }
.code-top .c { width:11px; height:11px; border-radius:50%; }
.code-top .c1{background:#ff5f57}.code-top .c2{background:#febc2e}.code-top .c3{background:#28c840}
.code-top .tab { margin-left: 10px; font-family: var(--font-mono); font-size: .78rem; color:#8b93b8; }
.code-body { margin:0; padding: 18px 20px; overflow-x:auto; font-family: var(--font-mono); font-size: .82rem; line-height:1.7; color:#c9d2f2; }
.code-body .k{color:#7aa2ff}.code-body .s{color:#7fe0c4}.code-body .n{color:#f0b46b}.code-body .c{color:#5c6690}.code-body .p{color:#c792ea}

/* logo strip */
.strip { border-block: 1px solid var(--border); background: var(--surface-2); }
.strip-inner { display:flex; align-items:center; justify-content:center; gap: 14px 34px; flex-wrap:wrap; padding: 26px 0; }
.strip .chip { display:inline-flex; align-items:center; gap:9px; font-weight:600; font-size:.92rem; color:var(--text-2);
  background:var(--surface); border:1px solid var(--border); padding:9px 15px; border-radius:11px; box-shadow:var(--shadow-sm); }
.strip .chip i { width:9px; height:9px; border-radius:50%; background:var(--grad); display:inline-block; }

/* section head */
.sec-head { max-width: 40rem; margin: 0 auto clamp(2.4rem,1.5rem+2vw,3.6rem); text-align:center; }
.sec-head h2 { font-size: var(--text-h2); margin: 16px 0 14px; }

/* bento / cards */
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px){ .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .g3, .g2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card .ico { width: 46px; height: 46px; border-radius: 13px; display:grid; place-items:center; margin-bottom: 16px;
  background: var(--grad-soft); border: 1px solid #e3e8ff; font-size: 1.35rem; }
.card h3 { font-size: var(--text-h3); margin-bottom: 9px; }
.card p { color: var(--text-2); font-size: .96rem; }
.card.feature-span { grid-column: span 2; display:grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items:center; background: var(--grad-soft); border-color:#e3e8ff; }
@media (max-width: 620px){ .card.feature-span { grid-column: span 1; grid-template-columns:1fr; } }

/* steps */
.steps { counter-reset: s; display:grid; gap: 20px; grid-template-columns: repeat(3,1fr); }
@media (max-width: 820px){ .steps { grid-template-columns:1fr; } }
.step { position:relative; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding: 28px 24px; box-shadow:var(--shadow-sm); }
.step::before { counter-increment:s; content: counter(s,decimal-leading-zero); font-family:var(--font-mono); font-weight:700;
  font-size: 1rem; color:#fff; background:var(--grad); width:38px; height:38px; border-radius:11px; display:grid; place-items:center; margin-bottom:16px; box-shadow:0 6px 16px rgba(90,80,240,.32); }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size:.95rem; }

/* split feature */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,1rem+3vw,4rem); align-items:center; }
.split.rev .split-media { order:-1; }
@media (max-width: 860px){ .split, .split.rev { grid-template-columns:1fr; } .split.rev .split-media{ order:0; } }
.split h2 { font-size: var(--text-h2); margin: 14px 0 16px; }
.split ul { list-style:none; padding:0; margin: 20px 0 0; display:grid; gap: 12px; }
.split li { display:flex; gap:11px; color:var(--text-2); font-size:1rem; }
.split li::before { content:"✓"; color:#fff; background:var(--grad); width:22px;height:22px; border-radius:7px; display:grid; place-items:center; font-size:.75rem; flex:none; margin-top:2px; }

/* stat tiles */
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap: 18px; }
@media (max-width: 760px){ .stats{ grid-template-columns:1fr 1fr; } }
.stat { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding: 24px; text-align:center; box-shadow:var(--shadow-sm); }
.stat b { display:block; font-size: clamp(1.8rem,1.3rem+1.6vw,2.6rem); letter-spacing:-.03em; }
.stat span { color: var(--text-3); font-size:.9rem; font-weight:550; }

/* faq */
.faq { max-width: 780px; margin-inline:auto; display:grid; gap: 12px; }
.faq details { background:var(--surface); border:1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 20px; box-shadow: var(--shadow-sm); }
.faq summary { cursor:pointer; list-style:none; font-weight:650; padding: 16px 0; display:flex; justify-content:space-between; gap:16px; align-items:center; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after { content:"+"; color:var(--brand); font-size:1.4rem; font-weight:400; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text-2); padding: 0 0 18px; font-size:.97rem; }

/* CTA band */
.cta-band { position:relative; overflow:hidden; background: var(--grad); border-radius: var(--radius-lg); padding: clamp(3rem,2rem+3vw,5rem) clamp(1.5rem,1rem+3vw,4rem); text-align:center; color:#fff; box-shadow: var(--shadow-lg); }
.cta-band::after{ content:""; position:absolute; inset:auto -10% -60% ; height:340px; background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,.25), transparent 70%); }
.cta-band h2 { font-size: var(--text-h2); color:#fff; margin-bottom:14px; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 46ch; margin: 0 auto 28px; font-size: var(--text-lead); }
.cta-band .btn-primary { background:#fff; color: var(--brand-ink); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.cta-band .btn-ghost { background: rgba(255,255,255,.12); color:#fff; border-color: rgba(255,255,255,.4); }

/* footer */
.foot { border-top: 1px solid var(--border); background: var(--surface-2); padding-block: 54px 34px; }
.foot-grid { display:grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 32px; }
@media (max-width: 820px){ .foot-grid{ grid-template-columns:1fr 1fr; gap:28px; } }
.foot h4 { font-size:.82rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text-3); margin-bottom:14px; }
.foot ul{ list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.foot a{ color:var(--text-2); font-size:.93rem; }
.foot a:hover{ color:var(--brand-ink); }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top:1px solid var(--border); display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; color:var(--text-3); font-size:.86rem; }

/* misc */
.reveal { opacity:0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ *{ animation:none!important; transition:none!important; } .reveal{opacity:1;transform:none;} html{scroll-behavior:auto;} }

/* article / blog prose */
.article-head { background: var(--grad-soft); border-bottom: 1px solid var(--border); padding-block: clamp(2.5rem,2rem+2vw,4rem); }
.article-head .wrap { max-width: 760px; }
.article-head .eyebrow { margin-bottom: 16px; }
.article-head h1 { font-size: clamp(2rem,1.4rem+2.4vw,3.1rem); margin-bottom: 16px; }
.article-meta { color: var(--text-3); font-size: .92rem; display:flex; gap:16px; flex-wrap:wrap; margin-top:6px; }
.article { max-width: 760px; margin-inline: auto; }
.article > * + * { margin-top: 1.25rem; }
.article p, .article li { color: var(--text-2); font-size: 1.06rem; line-height: 1.75; }
.article h2 { font-size: clamp(1.5rem,1.2rem+1vw,2rem); margin-top: 2.6rem; }
.article h3 { font-size: 1.25rem; margin-top: 1.8rem; }
.article ul, .article ol { padding-left: 1.3rem; display:grid; gap:.6rem; }
.article a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.article a:hover { color: var(--brand); }
.article blockquote { border-left: 3px solid var(--brand); background: var(--surface-2); padding: 14px 20px; border-radius: 0 12px 12px 0; margin-inline: 0; color: var(--text); font-style: italic; }
.article code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; }
.article pre { background: #0e1222; color: #c9d2f2; border-radius: var(--radius-sm); padding: 18px 20px; overflow-x: auto; font-family: var(--font-mono); font-size: .85rem; line-height: 1.65; }
.article pre code { background: none; border: 0; padding: 0; color: inherit; }
.article img { border-radius: var(--radius-sm); border: 1px solid var(--border); margin-block: 1.4rem; }
.article table { width:100%; border-collapse: collapse; font-size: .95rem; margin-block: 1.4rem; display:block; overflow-x:auto; }
.article th, .article td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.article th { background: var(--surface-2); font-weight: 650; color: var(--text); }
.article-cta { max-width:760px; margin: 3rem auto 0; }
