:root{
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --card: #ffffff;
    --card-hover: #f8f9fa;
    --stroke: #e5e7eb;
    --stroke-light: #f3f4f6;
    --text: #111827;
    --text-secondary: #374151;
    --muted: #6b7280;
    --muted2: #9ca3af;
    --brand: #434396;
    --brand-hover: #353578;
    --brand-light: #E5E4F2;
    --accent: #FFDBAB;
    --accent-light: #FFF5E8;
    --ok: #10b981;
    --warn: #f59e0b;
    --bad: #ef4444;
    --shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 8px;
    --radius-lg: 12px;
    --max: 1280px;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*{ box-sizing: border-box; }
html,body{
    margin:0; padding:0;
    scroll-behavior: smooth;
}

a{ color: inherit; text-decoration: none; }
.container{ max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.small{ font-size: 14px; color: var(--muted2); }

.btn{
    display:inline-flex; align-items:center; justify-content:center;
    padding: 13px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    cursor:pointer;
    user-select: none;
    white-space: nowrap;
}
.btn:hover{
    background: var(--bg-alt);
    border-color: var(--stroke);
}
.btn.primary{
    border-color: var(--brand);
    background: var(--brand);
    color: white;
}
.btn.primary:hover{
    background: var(--brand-hover);
    border-color: var(--brand-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}
.btn.ghost{
    background: transparent;
    border-color: transparent;
}

/* Pills */
.pill{
    display:inline-flex; align-items:center; gap:8px;
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
}
.dot{
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--brand);
}

/* Hero */
.hero{
    padding: 150px 0 60px!important;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%)!important;
}
.hero-grid{
    display:grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}
.yai-section h1{
    margin: 16px 0 20px;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--text);
}
.subhead{
    margin: 0 0 32px;
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
}
.hero-ctas{ display:flex; gap: 16px; flex-wrap: wrap; margin: 32px 0 24px; }
.micro{
    display:flex; flex-direction: column; gap: 12px;
    margin-top: 24px;
}
.micro span{
    display:flex; align-items:center; gap:12px;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 0;
    font-size: 15px;
    color: var(--text-secondary);
}
.check-micro{
    width: auto; height: auto; border-radius: 0;
    background: transparent;
    display:inline-block;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 15px;
    flex-shrink: 0;
}

/* Bento */
.bento{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.bento .card{
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    background: var(--card);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}
.bento .card:hover{
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.bento .card > *{ position: relative; }
.bento .wide{ grid-column: 1 / -1; }

.codebox{
    margin-top: 12px;
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: #1e293b;
    font-family: var(--mono);
    font-size: 13px;
    color: #e2e8f0;
    overflow:auto;
    max-height: 280px;
    white-space: pre;
    line-height: 1.5;
}
.copy-row{
    display:flex; align-items:center; justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}
.link{
    color: var(--brand);
    font-weight: 500;
}
.link:hover{
    text-decoration: underline;
    color: var(--brand-hover);
}

/* Sections */
.yai-section{
    padding: 80px 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.6;
}
.section-title{
    font-size: 36px;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    font-weight: 800;
    color: var(--text);
}
.section-subtitle{
    margin: 0 0 40px;
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 700px;
    line-height: 1.6;
}

/* Cards */
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card-plain{
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    background: var(--card);
    padding: 24px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}
.card-plain:hover{
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--brand);
}
.card-plain h3{
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}
.card-plain p{
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}
.icon{
    width: 48px; height: 48px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--brand-light), var(--accent-light));
    display:flex; align-items:center; justify-content:center;
    margin-bottom: 16px;
    font-size: 24px;
}

.split{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: start; }
.list{ margin: 0; padding-left: 20px; color: var(--text-secondary); font-size: 15px; }
.list li{ margin: 8px 0; line-height: 1.6; }

/* Steps */
.steps{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-yai{
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    background: var(--card);
    padding: 24px;
    box-shadow: var(--shadow);
}
.step-yai .num{
    display:inline-flex; width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--brand);
    color: white;
    align-items:center; justify-content:center;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
}
.step-yai h4{
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}
.step-yai p{
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Tabs */
.tabs{
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    background: var(--card);
    overflow:hidden;
    box-shadow: var(--shadow);
}
.tabs-header{
    display:flex;
    border-bottom: 1px solid var(--stroke);
    background: var(--bg-alt);
}
.tabs-header button{
    flex: 1;
    padding: 16px 24px;
    border:0;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 15px;
    cursor:pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}
.tabs-header button:hover{
    background: var(--bg);
    color: var(--text);
}
.tabs-header button.active{
    background: var(--bg);
    color: var(--brand);
    border-bottom-color: var(--brand);
}
.tabs-content{
    padding: 32px;
}
.tabs-pane{
    display:none;
}
.tabs-pane.active{ display:block; }
.tabs-pane h3{
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}
.tabs-pane p{
    margin: 0 0 20px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}
.tabs-pane ul{
    margin: 0;
    padding-left: 24px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    display: block;
    list-style: disc;
}
.tabs-pane li{ margin: 10px 0;  list-style-image: unset; display: list-item;}

/* FAQ */
.faq{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qa{
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    background: var(--card);
    overflow:hidden;
    box-shadow: var(--shadow);
}
.qa button{
    width:100%; text-align:left;
    padding: 20px;
    border:0;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    font-size: 16px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 16px;
    transition: background 0.2s ease;
}
.qa button:hover{ background: var(--bg-alt); }
.qa .ans{
    padding: 0 20px 20px 20px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    display:none;
}
.chev{
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg-alt);
    display:flex; align-items:center; justify-content:center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    color: var(--muted);
}
.qa.open .ans{ display:block; }
.qa.open .chev{ transform: rotate(180deg); }

/* Integrations */
.integrations{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.integration-card{
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    background: var(--card);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}
.integration-card:hover{
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--brand);
}
.integration-card .icon{
    margin: 0 auto 16px;
    font-size: 40px;
    width: 64px;
    height: 64px;
}
.integration-card div{
    font-weight: 600;
    color: var(--text);
    font-size: 16px;
}

/* CTA band */
.cta-band{
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    background: linear-gradient(135deg, var(--brand-light) 0%, var(--accent-light) 100%);
    padding: 40px;
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: var(--shadow-lg);
}
.cta-band h3{
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
}
.cta-band p{
    margin: 0;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px){
    .hero-grid{ grid-template-columns: 1fr; gap: 40px; }
    .split{ grid-template-columns: 1fr; }
    .grid-3{ grid-template-columns: repeat(2, 1fr); }
    .grid-4{ grid-template-columns: repeat(2, 1fr); }
    .steps{ grid-template-columns: 1fr; }
    .faq{ grid-template-columns: 1fr; }
    .integrations{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px){
    .hero{
        padding-top: 120px!important;
    }
    .grid-3{ grid-template-columns: 1fr; }
    .grid-4{ grid-template-columns: 1fr; }
    .integrations{ grid-template-columns: 1fr; }
    .menu-btn{ display:inline-flex; }
    .cta-band{
        flex-direction: column;
        align-items:flex-start;
        padding: 32px 24px;
    }
    .cta-band .btns{
        width: 100%;
        display:flex;
        gap: 12px;
        flex-wrap: wrap;
    }
    .cta-band .btns a{ flex: 1 1 auto; }
}