@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #0b2b4a;
    --muted: #617386;
    --line: #dbe7ed;
    --paper: #f6fafb;
    --white: #ffffff;
    --green: #00c995;
    --green-dark: #008b6c;
    --green-soft: #e1faf3;
    --orange: #ffb52b;
    --violet: #806ce8;
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-shell { min-height: 100vh; overflow: hidden; }

.topbar {
    width: min(1180px, calc(100% - 48px));
    height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; width: 154px; height: auto; }
.nav-links { display: flex; gap: 34px; color: #56635c; font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--green-dark); }
.nav-actions { display: flex; align-items: center; gap: 9px; }
.nav-action { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; color: white; background: var(--ink); border: 1px solid var(--ink); border-radius: 12px; font-size: 13px; font-weight: 700; box-shadow: 0 8px 20px rgba(11,43,74,.16); }
.nav-action.nav-login { color: var(--ink); background: white; border-color: #d7e1dc; box-shadow: none; }
.nav-action.nav-login:hover { color: var(--green-dark); border-color: var(--green); }
.nav-action i { font-size: 11px; }

.hero {
    width: min(1180px, calc(100% - 48px));
    min-height: 680px;
    margin: 0 auto;
    padding: 78px 0 90px;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 74px;
}

.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--green-dark); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
.hero h1 { margin: 26px 0 24px; font-size: clamp(48px, 5vw, 72px); line-height: 1.02; letter-spacing: -4px; font-weight: 800; }
.hero h1 span { position: relative; color: var(--green); white-space: nowrap; }
.hero h1 span::after { content: ''; position: absolute; left: 2px; right: 0; bottom: -5px; height: 8px; background: var(--green-soft); border-radius: 50%; z-index: -1; transform: rotate(-1deg); }
.hero-lead { max-width: 590px; margin: 0 0 32px; color: var(--muted); font-size: 18px; line-height: 1.75; }

.try-form { max-width: 520px; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.try-form .ui-inputfield { width: 100%; height: 52px; padding: 0 17px; border: 1px solid #ced9d2; border-radius: 13px; background: white; box-shadow: none; color: var(--ink); }
.try-form .ui-inputfield:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22, 162, 103, .12); }
.try-form .ui-button { height: 52px; padding: 0 21px; border: 0; border-radius: 13px; background: var(--green); font-weight: 800; box-shadow: 0 9px 22px rgba(22, 162, 103, .24); }
.try-form .ui-button:hover { background: var(--green-dark); }
.greeting-panel { grid-column: 1 / -1; min-height: 22px; display: flex; align-items: center; gap: 8px; color: var(--green-dark); font-size: 13px; font-weight: 600; }
.greeting-panel i { color: var(--green); }
.trust-row { display: flex; gap: 24px; margin-top: 20px; color: #738078; font-size: 12px; font-weight: 600; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row i { color: var(--green); }
.demo-link { display: inline-flex; align-items: center; gap: 7px; color: var(--green-dark); font-weight: 800; }
.demo-link:hover { color: var(--green); }

.hero-visual { position: relative; min-height: 535px; display: grid; place-items: center; }
.visual-glow { position: absolute; width: 480px; height: 480px; background: radial-gradient(circle, rgba(88, 211, 146, .22), rgba(221, 246, 232, .5) 46%, transparent 70%); border-radius: 50%; }
.chat-window { position: relative; width: min(100%, 440px); background: white; border: 1px solid rgba(202, 216, 208, .9); border-radius: 25px; box-shadow: 0 32px 80px rgba(33, 69, 51, .15); overflow: hidden; transform: rotate(1deg); }
.chat-header { display: flex; align-items: center; gap: 11px; padding: 17px 19px; border-bottom: 1px solid #edf1ee; }
.seller-avatar { width: 39px; height: 39px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 12px; }
.chat-header strong { display: block; font-size: 13px; }
.chat-header span { display: flex; align-items: center; gap: 5px; margin-top: 3px; color: #7d8982; font-size: 10px; }
.chat-header span b { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.chat-header button { margin-left: auto; width: 32px; height: 32px; color: #7b8880; background: #f5f8f6; border: 0; border-radius: 9px; }
.listing-mini { margin: 15px 18px 0; padding: 10px; display: flex; align-items: center; gap: 10px; background: #f6f8f7; border-radius: 13px; }
.listing-image { width: 44px; height: 44px; display: grid; place-items: center; color: #63716a; background: #e5eae7; border-radius: 9px; }
.listing-mini div:nth-child(2) { display: grid; gap: 3px; }
.listing-mini span { color: #69766f; font-size: 9px; }
.listing-mini strong { font-size: 12px; }
.listing-state { margin-left: auto; padding: 4px 7px; color: var(--green-dark) !important; background: var(--green-soft); border-radius: 20px; font-weight: 700; }
.messages { padding: 21px 18px 18px; display: flex; flex-direction: column; gap: 11px; background: linear-gradient(#fff, #fbfdfc); }
.message { max-width: 82%; padding: 11px 13px 8px; font-size: 11px; line-height: 1.55; border-radius: 14px; }
.message time { display: block; margin-top: 4px; color: #8b9891; font-size: 8px; text-align: right; }
.message.buyer { align-self: flex-end; background: #edf1ef; border-bottom-right-radius: 4px; }
.message.seller { align-self: flex-start; color: #155c3c; background: var(--green-soft); border-bottom-left-radius: 4px; }
.message.seller time { color: #5d9478; }
.message.short { max-width: 68%; }
.typing { display: flex; align-items: center; gap: 4px; color: #87938d; font-size: 8px; }
.typing span { width: 5px; height: 5px; background: #9fb0a7; border-radius: 50%; animation: pulse 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { margin-right: 4px; animation-delay: .3s; }
@keyframes pulse { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.chat-input { margin: 0 18px 18px; padding: 11px 13px; display: flex; justify-content: space-between; align-items: center; color: #929e97; background: #f4f7f5; border: 1px solid #e6ece8; border-radius: 11px; font-size: 9px; }
.chat-input i { color: var(--green); }
.deal-card { position: absolute; right: -16px; bottom: 46px; padding: 13px 17px; display: flex; align-items: center; gap: 10px; background: white; border: 1px solid #dfe8e3; border-radius: 14px; box-shadow: 0 15px 35px rgba(29, 67, 48, .15); transform: rotate(-3deg); }
.deal-icon { width: 28px; height: 28px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; }
.deal-icon i { font-size: 11px; }
.deal-card div { display: grid; gap: 2px; }
.deal-card strong { font-size: 10px; }
.deal-card div span { color: #7c8982; font-size: 8px; }

.metrics { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics div { padding: 6px 30px; border-right: 1px solid var(--line); }
.metrics div:first-child { padding-left: 0; }
.metrics div:last-child { border: 0; }
.metrics strong { display: block; font-size: 27px; letter-spacing: -1px; }
.metrics span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }

.capabilities { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 118px 0; }
.section-heading { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px 60px; align-items: end; }
.section-heading > span { grid-column: 1 / -1; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-heading h2, .workflow h2 { margin: 0; font-size: clamp(36px, 4vw, 52px); line-height: 1.07; letter-spacing: -2.5px; }
.section-heading p { margin: 0 0 5px; color: var(--muted); line-height: 1.75; }
.feature-grid { margin-top: 55px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { min-height: 320px; padding: 28px; position: relative; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 20px; }
.feature-primary { color: white; background: var(--ink); border-color: var(--ink); }
.feature-icon { width: 43px; height: 43px; display: grid; place-items: center; color: var(--green-dark); background: var(--green-soft); border-radius: 12px; }
.feature-primary .feature-icon { color: white; background: rgba(255,255,255,.12); }
.feature-icon.orange { color: #9a6200; background: #fff4d8; }
.feature-icon.violet { color: #5d49bb; background: #eeebff; }
.feature-card h3 { margin: 34px 0 10px; font-size: 20px; }
.feature-card p { max-width: 290px; margin: 0; color: #6e7a74; font-size: 13px; line-height: 1.7; }
.feature-primary p { color: #aeb9b3; }
.answer-lines { position: absolute; left: 28px; right: 28px; bottom: 28px; display: grid; gap: 8px; }
.answer-lines span { height: 9px; background: rgba(255,255,255,.09); border-radius: 10px; }
.answer-lines span:nth-child(2) { width: 82%; }
.answer-lines span:nth-child(3) { width: 56%; background: rgba(38, 198, 126, .28); }
.knowledge-tags { position: absolute; left: 28px; right: 28px; bottom: 28px; display: flex; flex-wrap: wrap; gap: 7px; }
.knowledge-tags span { padding: 7px 9px; color: #66736c; background: #f1f5f2; border-radius: 8px; font-size: 9px; font-weight: 700; }
.mini-chart { position: absolute; left: 28px; right: 28px; bottom: 28px; height: 60px; display: flex; align-items: flex-end; gap: 7px; }
.mini-chart i { flex: 1; height: 25%; background: #d9d4fb; border-radius: 5px 5px 2px 2px; }
.mini-chart i:nth-child(2) { height: 38%; }.mini-chart i:nth-child(3) { height: 52%; }.mini-chart i:nth-child(4) { height: 73%; }.mini-chart i:nth-child(5) { height: 100%; background: var(--violet); }

.workflow { padding: 90px max(24px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; color: white; background: var(--ink); }
.workflow .section-kicker { margin-bottom: 20px; color: #63d69e; }
.workflow ol { margin: 0; padding: 0; list-style: none; }
.workflow li { padding: 22px 0; display: grid; grid-template-columns: 55px 1fr; border-bottom: 1px solid rgba(255,255,255,.12); }
.workflow li:first-child { padding-top: 0; }
.workflow li > span { color: #65dba2; font-size: 11px; font-weight: 800; }
.workflow li strong { font-size: 15px; }
.workflow li p { margin: 7px 0 0; color: #9eaaa4; font-size: 12px; }

footer { min-height: 110px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; color: #91a7b8; background: #071f37; font-size: 11px; }
.footer-brand { padding: 7px 12px; background: white; border-radius: 12px; }
.footer-brand .brand-logo { width: 128px; }
footer > a:last-child { display: inline-flex; align-items: center; gap: 8px; color: #d1dad5; font-weight: 700; }

@media (max-width: 920px) {
    .nav-links { display: none; }
    .hero { grid-template-columns: 1fr; padding-top: 60px; gap: 36px; }
    .hero-copy { text-align: center; }
    .hero-lead, .try-form { margin-left: auto; margin-right: auto; }
    .eyebrow, .trust-row { justify-content: center; }
    .hero-visual { min-height: 540px; }
    .metrics { grid-template-columns: 1fr 1fr; }
    .metrics div { border-bottom: 1px solid var(--line); }
    .metrics div:nth-child(2) { border-right: 0; }
    .metrics div:nth-child(3), .metrics div:nth-child(4) { border-bottom: 0; }
    .section-heading { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .workflow { grid-template-columns: 1fr; gap: 55px; }
}

@media (max-width: 580px) {
    .topbar, .hero, .metrics, .capabilities { width: min(100% - 30px, 1180px); }
    .topbar { gap: 10px; }
    .brand-logo { width: 120px; }
    .nav-actions { gap: 6px; }
    .nav-action { padding: 9px 11px; font-size: 12px; box-shadow: none; }
    .nav-action i { display: none; }
    .hero { padding: 50px 0 70px; }
    .hero h1 { font-size: 45px; letter-spacing: -2.8px; }
    .hero-lead { font-size: 15px; }
    .try-form { grid-template-columns: 1fr; }
    .try-form .ui-button { width: 100%; }
    .greeting-panel { grid-column: 1; }
    .trust-row { flex-direction: column; gap: 8px; align-items: center; }
    .hero-visual { min-height: 500px; }
    .chat-window { transform: none; }
    .deal-card { right: -6px; bottom: 10px; }
    .metrics div { padding: 15px; }
    .metrics div:first-child { padding-left: 15px; }
    .metrics strong { font-size: 22px; }
    .capabilities { padding: 85px 0; }
    footer { padding: 28px 20px; gap: 20px; flex-direction: column; text-align: center; }
}
