/* ================================================================
   kr3wlab — layout CSS
   Design: dots.capital (dark palette, Bricolage Grotesque, pill
           buttons, 274px sidebar, 48px nav, 16px card radius)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
    --topbar-h:    52px;
    --bb-h:        48px;
    --bg:          #111016;
    --bg-side:     #0e0d12;
    --bg-card:     #1D1C25;
    --bg-hover:    #282734;
    --bg-active:   #282734;
    --line:        #2B2934;
    --line-2:      rgba(255,255,255,.12);
    --ink:         #F2F0EA;
    --ink-dim:     #7C7887;
    --ink-2:       #B4B0BD;
    --accent:      #df6d8e;
    --accent-dim:  #c94d72;
    --green:       #1E9E5A;
    --red:         #D9434B;
    --amber:       #f0c674;
    --font:        'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
    --mono:        'JetBrains Mono', ui-monospace, monospace;
    --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
}

*{box-sizing:border-box}

html,body{
    margin:0; padding:0;
    background:var(--bg);
    color:var(--ink);
    font:14px/1.6 var(--font);
    min-height:100vh;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

/* ---- Top bar ---- */

.topbar{
    position:fixed;
    top:0; left:0; right:0;
    height:var(--topbar-h);
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:rgba(17,16,22,.88);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line);
    z-index:100;
    padding:0 14px;
}

.topbar-left{display:flex;align-items:center}
.topbar-brand{
    margin:0;
    font-size:16px;
    font-weight:700;
    letter-spacing:-.04em;
    color:var(--ink);
}

.topbar-right{
    display:flex;
    align-items:center;
    gap:10px;
}

.topbar-social{
    display:flex;
    align-items:center;
    gap:2px;
}
.topbar-social .social-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:30px;
    height:30px;
    border-radius:999px;
    color:var(--ink-dim);
    text-decoration:none;
    transition:.12s;
}
.topbar-social .social-link:hover{
    background:var(--bg-hover);
    color:var(--accent);
    text-decoration:none;
}

/* ---- Topbar wallet ---- */

.topbar-wallet{
    flex:none;
    display:flex;
    align-items:center;
}

.wallet-ca{display:none}

.wallet-btn{
    display:flex;
    align-items:center;
    gap:8px;
    height:34px;
    padding:0 12px 0 6px;
    background:var(--bg-card);
    border:1px solid var(--line);
    border-radius:999px;
    color:var(--ink);
    font-family:var(--font);
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    transition:.12s;
    position:relative;
}
.wallet-btn:hover{background:var(--bg-hover);border-color:var(--ink-2)}
.wallet-av{
    flex:none;
    width:26px;
    height:26px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(17,16,22,.88);
    border:1px solid var(--line);
    color:var(--ink-dim);
    font-size:12px;
}
.wallet-btn.on .wallet-av{
    background:linear-gradient(140deg,var(--accent),#6ddfbe);
    border-color:transparent;
    color:#111016;
}
.wallet-id,
.wallet-caret{display:flex;align-items:center;gap:2px}
.wallet-name{font-size:13px;font-weight:600;white-space:nowrap}
.wallet-sub{display:none}
.wallet-caret{font-size:10px;color:var(--ink-dim);margin-left:2px}
.wallet-btn[aria-expanded="true"]{background:var(--bg-hover)}

/* ---- Wallet popover (opens from topbar) ---- */

.wallet-menu{
    position:fixed;
    right:12px;
    top:calc(var(--topbar-h) + 6px);
    left:auto;
    bottom:auto;
    width:360px;
    max-width:calc(100vw - 24px);
    display:flex;
    flex-direction:column;
    gap:12px;
    padding:16px;
    overflow-y:auto;
    max-height:80vh;
    background:rgba(29,28,37,.96);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    border:1px solid var(--line);
    border-radius:16px;
    box-shadow:0 30px 80px -20px rgba(0,0,0,.8);
    z-index:300;
}
.wallet-menu[hidden],
.wm-balance[hidden],
.wm-actions[hidden],
.wm-note[hidden],
.wm-empty[hidden],
.wm-btn[hidden]{display:none !important}

.wm-head{display:flex;align-items:center;gap:10px}
.wm-av{
    flex:none;
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:var(--bg-side);
    border:1px solid var(--line);
    color:var(--ink-dim);
    font-size:16px;
}
.wallet-menu.on .wm-av{
    background:linear-gradient(140deg,var(--accent),#6ddfbe);
    border-color:transparent;
    color:#111016;
}
.wm-id{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.wm-id b{font-size:14px;font-weight:700;letter-spacing:-.02em}
.wm-id small{
    font:11px/1.4 var(--mono);
    color:var(--ink-dim);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.wm-x{
    flex:none;
    background:none;
    border:0;
    color:var(--ink-dim);
    font-size:14px;
    padding:4px 6px;
    border-radius:999px;
    cursor:pointer;
    line-height:1;
}
.wm-x:hover{background:var(--bg-hover);color:var(--ink)}

.wm-balance{
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:8px;
    padding:10px 12px;
    background:var(--bg-side);
    border:1px solid var(--line);
    border-radius:12px;
}
.wm-bal-lbl{font-size:11px;color:var(--ink-dim)}
.wm-bal-val{font:14px/1 var(--mono);font-weight:600}

.wm-actions{display:flex;flex-direction:column;gap:8px}
.wm-btn{
    display:block;
    width:100%;
    padding:9px 12px;
    background:var(--bg-side);
    border:1px solid var(--line);
    border-radius:999px;
    color:var(--ink);
    font:13px/1.2 var(--font);
    text-align:center;
    text-decoration:none;
    cursor:pointer;
    transition:.12s;
}
.wm-btn:hover{background:var(--bg-hover);border-color:var(--line-2)}
.wm-btn-primary{
    background:var(--accent);
    border-color:transparent;
    color:#fff;
    font-weight:600;
    box-shadow:0 1px 2px rgba(0,0,0,.3);
}
.wm-btn-primary:hover{opacity:.9}
.wm-btn-danger{color:var(--red)}
.wm-btn-danger:hover{background:rgba(255,92,92,.1);border-color:rgba(255,92,92,.35)}

.wm-note{margin:0;font-size:11.5px;line-height:1.45;color:var(--amber)}
.wm-note.bad{color:var(--red)}

.wm-history{border-top:1px solid var(--line);padding-top:10px}
.wm-hist-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:6px;
}
.wm-hist-head span{
    font:10.5px/1 var(--font);
    font-weight:600;
    letter-spacing:.07em;
    text-transform:uppercase;
    color:var(--ink-dim);
}
.wm-clear{
    background:none;
    border:0;
    color:var(--ink-dim);
    font:11px/1 var(--font);
    padding:3px 6px;
    border-radius:999px;
    cursor:pointer;
}
.wm-clear:hover{color:var(--ink);background:var(--bg-hover)}

.wm-list{
    list-style:none;
    margin:0;
    padding:0;
    max-height:260px;
    overflow-y:auto;
}
.wm-item{display:flex;gap:10px;padding:8px 2px;border-top:1px solid var(--line)}
.wm-item:first-child{border-top:0}
.wm-ic{
    flex:none;
    width:22px;
    height:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    background:var(--bg-side);
    border:1px solid var(--line);
    font-size:11px;
}
.wm-body{flex:1;min-width:0}
.wm-title{
    display:block;
    font-size:12px;
    font-weight:600;
    color:var(--ink);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.wm-title a{color:inherit;text-decoration:none;border-bottom:1px dotted var(--line-2)}
.wm-title a:hover{color:var(--accent);text-decoration:none}
.wm-detail{
    display:block;
    font:10.5px/1.4 var(--mono);
    color:var(--ink-dim);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.wm-when{flex:none;font:10px/1.5 var(--mono);color:var(--ink-dim)}
.wm-item.ok .wm-ic{color:var(--green);border-color:rgba(61,220,132,.3)}
.wm-item.bad .wm-ic{color:var(--red);border-color:rgba(255,92,92,.3)}
.wm-item.warn .wm-ic{color:var(--amber);border-color:rgba(240,198,116,.3)}

.wm-empty{margin:8px 0 0;font-size:12px;line-height:1.5;color:var(--ink-dim)}

/* ---- Bottom bar ---- */

.bottombar{
    position:fixed;
    bottom:0; left:0; right:0;
    height:var(--bb-h);
    display:flex;
    align-items:center;
    background:rgba(17,16,22,.86);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    border-top:1px solid var(--line);
    z-index:200;
    overflow:hidden;
}
.bb-scroll{
    flex:1;
    display:flex;
    align-items:center;
    gap:2px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:0 6px;
    scrollbar-width:thin;
    scrollbar-color:var(--accent) transparent;
    -ms-overflow-style:-ms-autohiding-scrollbar;
}
.bb-scroll::-webkit-scrollbar{height:3px}
.bb-scroll::-webkit-scrollbar-track{background:transparent}
.bb-scroll::-webkit-scrollbar-thumb{background:var(--accent);border-radius:2px}

.bb-scroll a{
    flex:none;
    display:flex;
    align-items:center;
    gap:6px;
    height:34px;
    padding:0 12px;
    color:var(--ink-dim);
    font-size:13px;
    font-weight:600;
    text-decoration:none;
    transition:.12s;
    border-radius:999px;
    white-space:nowrap;
}
.bb-scroll a:hover{
    background:var(--bg-hover);
    color:var(--ink-2);
    text-decoration:none;
}
.bb-scroll a.active{
    background:var(--ink);
    color:#111016;
}
.bb-icon{
    font-size:15px;
    flex-shrink:0;
    line-height:1;
}
.bb-label{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.bottombar.hidden .bb-toggle{display:none}

/* ---- Content area ---- */

.content{
    padding:calc(var(--topbar-h) + 20px) 32px 68px;
    min-height:100vh;
    max-width:1296px;
}

.content h1{
    margin:0 0 6px;
    font-size:26px;
    font-weight:700;
    letter-spacing:-.04em;
}
.content .sub{
    color:var(--ink-dim);
    font-size:14px;
    margin-bottom:22px;
}

/* ---- Tool inline container ---- */
.tool-inline{
    margin-top:8px;
}
.tool-inline > .card{
    background:var(--bg-card);
    border:1px solid var(--line);
    border-radius:16px;
    padding:20px 22px;
    margin-bottom:16px;
}
.tool-inline .label{
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.1em;
    color:var(--ink-dim);
    margin-bottom:8px;
    font-family:var(--mono);
}
.tool-inline input,
.tool-inline textarea,
.tool-inline select{
    width:100%;
    background:var(--bg-side);
    border:1px solid var(--line);
    color:var(--ink);
    border-radius:14px;
    padding:10px 14px;
    font:13px var(--mono);
    outline:none;
    transition:border-color .12s;
}
.tool-inline input:focus,
.tool-inline textarea:focus{
    border-color:var(--accent);
    box-shadow:0 0 0 3px rgba(223,109,142,.15);
}
.tool-inline button{
    font-family:var(--font);
    font-size:14px;
    font-weight:500;
    border-radius:999px;
    border:1px solid var(--line);
    background:var(--bg-card);
    color:var(--ink);
    padding:9px 18px;
    cursor:pointer;
    transition:.12s;
    min-height:40px;
}
.tool-inline button:hover:not(:disabled){
    background:var(--bg-hover);
    border-color:var(--line-2);
}
.tool-inline button:active:not(:disabled){
    transform:scale(.97);
}
.tool-inline button:disabled{
    opacity:.45;
    cursor:not-allowed;
}
.tool-inline button.primary{
    background:var(--accent);
    border-color:transparent;
    color:#fff;
    font-weight:600;
    box-shadow:0 1px 2px rgba(0,0,0,.3);
}
.tool-inline button.primary:hover:not(:disabled){
    opacity:.92;
}
.tool-inline .row{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:center;
    margin-top:10px;
}

/* ---- Thinking Agent stat grid ---- */
.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.stat-cell{
    background:var(--bg-side);border-radius:12px;padding:10px 12px;
    display:flex;flex-direction:column;gap:3px}
.stat-label{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--ink-dim)}
.stat-val{font-size:15px;font-weight:600;font-family:var(--mono);color:var(--ink)}

/* ---- Spinner ---- */
.spinner{display:inline-block;width:18px;height:18px;border:2px solid var(--line);
  border-top-color:var(--accent);border-radius:50%;animation:spn .6s linear infinite;vertical-align:middle}
@keyframes spn{to{transform:rotate(360deg)}}

/* ---- Agent post (bot conversation) ---- */
.agent-post:last-child{border-bottom:none !important}
.agent-post-body p{margin:4px 0}
.agent-post-body strong{font-weight:600}
.agent-post-body em{font-style:italic}

/* ---- Dashboard card grid ---- */

.card-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
    gap:14px;
    margin-top:16px;
}
.card-grid .card{
    background:var(--bg-card);
    border:1px solid var(--line);
    border-radius:16px;
    padding:18px 20px;
    transition:.12s;
    cursor:pointer;
    display:block;
    color:var(--ink);
    text-decoration:none;
}
.card-grid .card:hover{
    background:var(--bg-hover);
    border-color:var(--accent);
    text-decoration:none;
    transform:translateY(-2px);
}
.card-grid .card-icon{
    font-size:28px;
    margin-bottom:8px;
}
.card-grid .card-title{
    font-size:15px;
    font-weight:600;
    margin-bottom:4px;
}
.card-grid .card-desc{
    font-size:12.5px;
    color:var(--ink-2);
    line-height:1.5;
}

/* ---- Embedded tool pages (native, not framed) ----
   An embedded tool keeps its own document — that is what keeps its relative
   assets/… and api/… URLs working and its stylesheet out of the hub — so it
   is adapted from the inside instead: assets/app.js tags the tool's <html>
   with `hub-embed hub-embed--<id>` and drops assets/embed-theme.css into its
   <head>.  That theme deletes the tool's own website (wordmark, hero,
   marquee, explainer, footer), leaving only its functional panel, and
   remaps its colour and type tokens onto the hub palette.  Here on the hub
   side the page just needs the normal content padding, a full-width frame
   and no inner scrollbar (assets/app.js sizes it to its content). */

.content--embed{
    padding:calc(var(--topbar-h) + 20px) 32px 68px;
    max-width:none;
}
.tool-embed{
    margin:0;
}

.embed-head{
    margin:0 0 20px;
    padding-bottom:16px;
    border-bottom:1px solid var(--line);
}
.embed-head h1{
    font-size:26px;
    font-weight:700;
    letter-spacing:-.04em;
    margin:0 0 4px;
}
.embed-head .sub{
    color:var(--ink-dim);
    font-size:14px;
    margin:0;
}
.hub-iframe{
    width:100%;
    border:none;
    display:block;
    min-height:320px;
    background:transparent;
    visibility:hidden;
}
.hub-iframe.is-ready{
    visibility:visible;
}

/* ---- misc ---- */

.warn-box{
    border:1px solid rgba(240,198,116,.25);
    background:rgba(240,198,116,.06);
    color:var(--amber);
    border-radius:12px;
    padding:12px 14px;
    font-size:13px;
    margin-bottom:14px;
}
.err-box{
    border:1px solid rgba(255,92,92,.25);
    background:rgba(255,92,92,.06);
    color:var(--red);
    border-radius:12px;
    padding:10px 14px;
    font-size:13px;
    margin-top:12px;
}
code{
    font-family:var(--mono);
    font-size:12px;
    background:var(--bg-hover);
    padding:2px 6px;
    border-radius:6px;
}
.mono{
    font-family:var(--mono);
    font-size:12.5px;
    word-break:break-all;
}
.dim{color:var(--ink-dim)}
.dot{
    width:8px;height:8px;border-radius:50%;display:inline-block;
    vertical-align:middle;margin-right:5px;
}
.dot.ok{background:var(--green);box-shadow:0 0 6px var(--green)}
.dot.bad{background:var(--red);box-shadow:0 0 6px var(--red)}
.dot.warn{background:var(--amber)}

/* ================================================================
   Landing page — inspired by spurt.family, with kr3wlab palette
   ================================================================ */

.lp-body{
    background:#0b0a0f;
    color:var(--ink);
    font:14px/1.6 var(--font);
    min-height:100vh;
    margin:0;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    overflow-x:hidden;
}

/* ---- Top nav ---- */

.lp-nav{
    position:fixed;
    top:0; left:0; right:0;
    z-index:200;
    background:rgba(11,10,15,.85);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    border-bottom:1px solid rgba(255,255,255,.06);
}
.lp-nav-inner{
    max-width:1200px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:60px;
    padding:0 24px;
}
.lp-logo{
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-size:20px;
    font-weight:800;
    letter-spacing:-.05em;
    color:var(--ink);
    text-decoration:none;
}
.lp-logo-img{
    width:28px;
    height:28px;
    border-radius:8px;
    object-fit:cover;
}
.lp-logo:hover{color:var(--accent);text-decoration:none}
.lp-nav-right{
    display:flex;
    align-items:center;
    gap:12px;
}
.lp-social{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    border-radius:999px;
    color:var(--ink-dim);
    transition:.12s;
    text-decoration:none;
}
.lp-social:hover{
    background:rgba(255,255,255,.08);
    color:var(--accent);
    text-decoration:none;
}
.lp-cta-sm{
    display:inline-flex;
    align-items:center;
    height:34px;
    padding:0 16px;
    background:var(--accent);
    color:#fff;
    font-size:13px;
    font-weight:700;
    border-radius:999px;
    text-decoration:none;
    transition:.12s;
}
.lp-cta-sm:hover{
    opacity:.9;
    transform:scale(1.04);
    text-decoration:none;
}

/* ---- Hero ---- */

.lp-hero{
    position:relative;
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    padding:80px 24px 60px;
}
.lp-canvas{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    display:block;
    pointer-events:none;
    z-index:0;
    opacity:.55;
}
.lp-hero-bg{
    position:absolute;
    inset:0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(223,109,142,.25), transparent 70%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(109,223,190,.08), transparent 60%),
        radial-gradient(ellipse 40% 40% at 80% 70%, rgba(223,109,142,.06), transparent 50%);
    pointer-events:none;
}
.lp-hero-inner{
    position:relative;
    text-align:center;
    max-width:780px;
}
.lp-hero-title{
    margin:0 0 16px;
    font-size:clamp(56px,10vw,96px);
    font-weight:800;
    letter-spacing:-.06em;
    line-height:1;
    background:linear-gradient(135deg,var(--ink) 30%,var(--accent),#6ddfbe);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
}
.lp-hero-title-img{
    display:block;
    max-width:100%;
    height:auto;
    margin:0 auto 24px;
    border-radius:0;
    box-shadow:none;
}
.lp-hero-sub{
    margin:0 0 40px;
    font-size:clamp(17px,2.2vw,22px);
    color:var(--ink-2);
    line-height:1.5;
    max-width:600px;
    margin-left:auto;
    margin-right:auto;
}
.lp-hero-actions{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    flex-wrap:wrap;
    margin-bottom:48px;
}
.lp-hero .lp-ca{
    position:relative;
    z-index:2;
    display:flex;
    justify-content:center;
    padding:0;
}

/* ---- Buttons ---- */

.lp-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:48px;
    padding:0 28px;
    font-size:15px;
    font-weight:700;
    border-radius:999px;
    text-decoration:none;
    transition:all .15s ease;
    cursor:pointer;
    border:0;
    font-family:var(--font);
}
.lp-btn-primary{
    background:var(--accent);
    color:#fff;
    box-shadow:0 2px 20px rgba(223,109,142,.3);
}
.lp-btn-primary:hover{
    opacity:.92;
    transform:scale(1.04);
    box-shadow:0 4px 30px rgba(223,109,142,.4);
    text-decoration:none;
}
.lp-btn-ghost{
    background:transparent;
    color:var(--ink-2);
    border:1px solid rgba(255,255,255,.12);
}
.lp-btn-ghost:hover{
    background:rgba(255,255,255,.06);
    border-color:rgba(255,255,255,.2);
    color:var(--ink);
    text-decoration:none;
}

/* ---- CA strip (inside hero now) ---- */

.lp-ca{
    display:flex;
    justify-content:center;
}
.lp-ca-inner{
    display:flex;
    align-items:center;
    gap:14px;
    padding:12px 20px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
    border-radius:999px;
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
}
.lp-ca-label{
    font-size:11px;
    font-weight:600;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--ink-dim);
}
.lp-ca-btn{
    display:flex;
    align-items:center;
    gap:8px;
    background:none;
    border:0;
    color:var(--ink);
    cursor:pointer;
    padding:0;
    font-family:inherit;
    transition:.12s;
}
.lp-ca-btn:hover{color:var(--accent)}
.lp-ca-addr{
    font:12px/1 var(--mono);
    font-weight:600;
    background:rgba(255,255,255,.06);
    padding:4px 10px;
    border-radius:999px;
    color:inherit;
}
.lp-ca-copy{
    font-size:13px;
    opacity:.6;
}
.lp-ca-btn:hover .lp-ca-copy{opacity:1}
.lp-ca-divider{
    width:1px;
    height:20px;
    background:rgba(255,255,255,.1);
}
.lp-ca-chain{
    font-size:12px;
    font-weight:600;
    color:var(--ink-2);
}

/* ---- Section ---- */

.lp-section{
    padding:80px 24px;
}
.lp-section--alt{
    background:rgba(255,255,255,.02);
    border-top:1px solid rgba(255,255,255,.05);
    border-bottom:1px solid rgba(255,255,255,.05);
}
.lp-section-inner{
    max-width:1060px;
    margin:0 auto;
}
.lp-section-title{
    margin:0 0 10px;
    font-size:clamp(32px,5vw,52px);
    font-weight:800;
    letter-spacing:-.04em;
    line-height:1.1;
    text-align:center;
}
.lp-section-sub{
    margin:0 auto 48px;
    font-size:16px;
    color:var(--ink-2);
    text-align:center;
    max-width:540px;
    line-height:1.5;
}

/* ---- Tool cards grid ---- */

.lp-cards{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
    gap:12px;
}
.lp-card{
    display:flex;
    align-items:flex-start;
    gap:14px;
    padding:18px 20px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.07);
    border-radius:16px;
    text-decoration:none;
    color:var(--ink);
    transition:all .2s ease;
}
.lp-card:hover{
    background:rgba(223,109,142,.06);
    border-color:rgba(223,109,142,.25);
    transform:translateY(-2px);
    text-decoration:none;
}
.lp-card-icon{
    flex:none;
    width:40px;
    height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    background:rgba(255,255,255,.05);
    border-radius:12px;
}
.lp-card-body{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:4px;
}
.lp-card-title{
    font-size:15px;
    font-weight:700;
    letter-spacing:-.02em;
}
.lp-card-desc{
    font-size:12.5px;
    line-height:1.5;
    color:var(--ink-2);
}
.lp-cards-cta{
    text-align:center;
    margin-top:32px;
}

/* ---- Stats ---- */

.lp-stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    max-width:700px;
    margin:0 auto;
}
.lp-stat{
    text-align:center;
    display:flex;
    flex-direction:column;
    gap:4px;
}
.lp-stat-val{
    font-size:clamp(32px,4vw,48px);
    font-weight:800;
    letter-spacing:-.05em;
    line-height:1;
    background:linear-gradient(135deg,var(--ink),var(--accent),#6ddfbe);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
}
.lp-stat-lbl{
    font-size:12px;
    font-weight:600;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--ink-dim);
}

/* ---- Footer ---- */

.lp-footer{
    padding:40px 24px 60px;
    border-top:1px solid rgba(255,255,255,.05);
}
.lp-footer-inner{
    max-width:1060px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:16px;
}
.lp-footer-brand{
    display:flex;
    flex-direction:column;
    gap:2px;
}
.lp-footer-brand strong{
    font-size:16px;
    font-weight:700;
    letter-spacing:-.04em;
}
.lp-footer-brand span{
    font-size:12px;
    color:var(--ink-dim);
}
.lp-footer-links{
    display:flex;
    gap:20px;
}
.lp-footer-links a{
    font-size:13px;
    color:var(--ink-2);
    text-decoration:none;
    transition:.12s;
}
.lp-footer-links a:hover{color:var(--accent)}
.lp-footer-disc{
    max-width:1060px;
    margin:24px auto 0;
    font-size:11px;
    color:var(--ink-dim);
    text-align:center;
    opacity:.6;
}

/* ---- Landing page responsive ---- */

@media(max-width:768px){
    .lp-hero{padding:100px 20px 50px;min-height:auto}
    .lp-hero-title{font-size:clamp(40px,14vw,56px)}
    .lp-hero-sub{font-size:16px}
    .lp-section{padding:50px 20px}
    .lp-cards{grid-template-columns:1fr}
    .lp-stats{grid-template-columns:repeat(2,1fr);gap:24px}
    .lp-ca-inner{padding:10px 14px;gap:10px;flex-wrap:wrap;justify-content:center}
    .lp-nav-inner{padding:0 16px;height:54px}
    .lp-footer-inner{flex-direction:column;text-align:center}
}
@media(max-width:480px){
    .lp-stats{grid-template-columns:repeat(2,1fr)}
    .lp-hero-actions{flex-direction:column}
    .lp-btn{width:100%}
}