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

/* ===== Swimm-inspired design system for TIC mockup ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; width: 100%; }
:root {
    --bg: #ffffff;
    --soft: #F4F6FB;
    --ink: #0A0E1A;
    --body: #454B5C;
    --muted: #6B7280;
    --brand: #2F6BFF;
    --brand-deep: #1B49C8;
    --brand-soft: #EAF0FF;
    --dark: #0A0E1A;
    --border: #E6E9F0;
    --radius: 16px;
    --shadow: 0 24px 60px rgba(16, 24, 64, .12);
    --shadow-sm: 0 8px 24px rgba(16, 24, 64, .08);
}
body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--body);
    line-height: 1.6;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }

/* Prototype ribbon */
.proto-bar {
    background: var(--ink);
    color: #7ee2b8;
    text-align: center;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: .45rem 1rem;
}

/* Header */
header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
    padding: .75rem 0;
}
.header-content {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { display: flex; align-items: center; text-decoration: none; height: 56px; }
.logo img { height: 100%; width: auto; object-fit: contain; }
nav { display: flex; gap: 1.7rem; align-items: center; }
nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; transition: color .2s; }
nav a:hover { color: var(--brand); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 1.5rem; border-radius: 10px; font-weight: 700; text-decoration: none;
    font-size: .98rem; transition: all .2s; border: 1.5px solid transparent; cursor: pointer;
    font-family: inherit;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(10, 14, 26, .28); }
.btn-blue { background: var(--brand); color: #fff; }
.btn-blue:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(47, 107, 255, .35); }
.btn-secondary, .btn-ghost, .btn-outline {
    background: #fff; color: var(--ink); border-color: var(--border);
}
.btn-secondary:hover, .btn-ghost:hover, .btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.nav-cta { background: var(--ink); color: #fff !important; padding: .6rem 1.2rem; border-radius: 9px; font-weight: 700; }
.nav-cta:hover { background: var(--brand); }

/* ===== Home hero ===== */
.s-hero { position: relative; padding: 4.5rem 2rem 3rem; overflow: hidden; background: var(--bg); }
.s-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        linear-gradient(rgba(47,107,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47,107,255,.06) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(80% 60% at 50% 0%, #000 20%, transparent 85%);
}
.s-hero-grid {
    max-width: 1200px; margin: 0 auto; position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase; color: var(--brand-deep);
    background: var(--brand-soft); padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1.3rem;
}
.s-hero h1 {
    font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 800; line-height: 1.05;
    letter-spacing: -.03em; color: var(--ink); margin-bottom: 1.2rem;
}
.s-hero h1 .hl { color: var(--brand); }
.s-hero .sub { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--body); max-width: 560px; margin-bottom: 2rem; font-weight: 500; }
.s-hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: .45rem; font-size: .86rem; font-weight: 600; color: var(--muted); }
.hero-badges .ck { color: var(--brand); font-weight: 800; }

/* Product "browser" mock */
.mock-window { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); background: #fff; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .4s; }
.mock-window:hover { transform: perspective(1400px) rotateY(0deg) rotateX(0deg); }
.mock-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; background: var(--soft); border-bottom: 1px solid var(--border); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.mock-bar i:nth-child(1) { background: #ff5f57; } .mock-bar i:nth-child(2) { background: #febc2e; } .mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar .u { margin-left: .8rem; font-size: .72rem; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: .2rem .7rem; }
.mock-window img { display: block; width: 100%; height: auto; }

/* Logo / ecosystem strip */
.logostrip { max-width: 1100px; margin: 2.5rem auto 0; text-align: center; }
.logostrip p { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.logostrip .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem 2.6rem; }
.logostrip .row span { font-size: 1rem; font-weight: 800; letter-spacing: .02em; color: #9aa1b2; }

/* Section scaffolding */
.block { max-width: 1200px; margin: 0 auto; padding: 5rem 2rem; }
.block.tight { padding-top: 3.5rem; }
.center { text-align: center; }
.kicker { color: var(--brand); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; margin-bottom: .7rem; }
h2.big { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin-bottom: .8rem; line-height: 1.1; }
.lead { color: var(--body); font-size: 1.12rem; max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Use-case cards */
.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
.uc-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem; text-decoration: none; color: inherit; transition: all .25s;
}
.uc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.uc-icon { width: 50px; height: 50px; border-radius: 13px; background: var(--brand-soft); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.2rem; }
.uc-card h3 { font-size: 1.28rem; font-weight: 800; color: var(--ink); margin-bottom: .6rem; letter-spacing: -.01em; }
.uc-card p { color: var(--body); font-size: .97rem; flex: 1; }
.uc-link { margin-top: 1.3rem; color: var(--brand); font-weight: 800; font-size: .93rem; display: inline-flex; align-items: center; gap: .4rem; }
.uc-card:hover .uc-link { gap: .7rem; }
.closer { margin-top: 3rem; font-size: 1.15rem; text-align: center; color: var(--ink); font-weight: 600; max-width: 880px; margin-left: auto; margin-right: auto; }
.closer .b { color: var(--brand); } .closer .a { color: var(--brand-deep); }

/* Numbered how-it-works */
.howitworks { background: var(--soft); }
.hiw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
.hiw-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; position: relative; }
.hiw-num { font-size: 2.4rem; font-weight: 800; color: var(--brand); letter-spacing: -.03em; line-height: 1; margin-bottom: .9rem; opacity: .9; }
.hiw-item h4 { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin-bottom: .5rem; }
.hiw-item p { color: var(--body); font-size: .96rem; }

/* Product architecture */
.arch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
.arch-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: all .25s; }
.arch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.arch-name { font-size: 1.3rem; font-weight: 800; color: var(--ink); margin-bottom: .2rem; }
.arch-tag { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin-bottom: 1rem; display: block; }
.arch-card p { color: var(--body); font-size: .96rem; margin-bottom: 1.2rem; }
.arch-card a.more { color: var(--brand-deep); font-weight: 800; text-decoration: none; font-size: .9rem; }
.arch-card a.more:hover { text-decoration: underline; }

/* Dark trust block */
.darkblock { position: relative; background: var(--dark); color: #d7dcea; overflow: hidden; }
.darkblock::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 46px 46px; mask-image: radial-gradient(70% 70% at 50% 0%, #000 20%, transparent 90%);
}
.darkblock .block { position: relative; z-index: 1; }
.darkblock .kicker { color: #7aa0ff; }
.darkblock h2.big { color: #fff; }
.darkblock .lead { color: #b9c1d6; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.trust-col { border-left: 2px solid var(--brand); padding-left: 1.4rem; }
.trust-col h4 { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: .7rem; }
.trust-col p { color: #b9c1d6; font-size: .96rem; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; text-align: center; padding: 4.5rem 2rem; }
.cta-band h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; }
.cta-band p { color: #b9c1d6; max-width: 620px; margin: 0 auto 2rem; font-size: 1.1rem; }
.cta-band .row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Footer */
footer { background: var(--ink); color: #fff; padding: 3rem 2rem 2rem; border-top: 1px solid rgba(255,255,255,.08); }
.foot-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.foot-in h4 { color: #7aa0ff; margin-bottom: .5rem; font-size: .95rem; }
.foot-in p, .foot-in a { color: #cbd2e2; text-decoration: none; margin: 0; font-size: .93rem; }
.foot-bottom { max-width: 1200px; margin: 2rem auto 0; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; text-align: center; color: #8891a6; font-size: .86rem; }
.foot-bottom a { color: #cbd2e2; text-decoration: none; }

/* ===== Use-case landing pages ===== */
.uc-hero { position: relative; padding: 3.5rem 2rem 2.5rem; background: var(--soft); border-bottom: 1px solid var(--border); overflow: hidden; }
.uc-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(47,107,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(47,107,255,.06) 1px, transparent 1px);
    background-size: 46px 46px; mask-image: radial-gradient(80% 70% at 50% 0%, #000 20%, transparent 85%);
}
.uc-hero-in { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.crumb { font-size: .84rem; color: var(--muted); margin-bottom: 1rem; }
.crumb a { text-decoration: none; color: var(--brand-deep); font-weight: 600; }
.crumb a:hover { text-decoration: underline; }
.uc-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; color: var(--ink); margin-bottom: 1rem; }
.uc-hero .sub { font-size: clamp(1.02rem, 1.8vw, 1.22rem); color: var(--body); margin-bottom: 1.8rem; font-weight: 500; max-width: 680px; }
.uc-hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
main { max-width: 820px; margin: 0 auto; padding: 3.5rem 2rem; }
.sec { margin-bottom: 3.2rem; }
.sec h2 { font-size: 1.6rem; font-weight: 800; color: var(--ink); margin-bottom: 1rem; letter-spacing: -.015em; }
.sec h2 .tag { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .22rem .6rem; border-radius: 6px; vertical-align: middle; margin-right: .6rem; }
.tag-atlas { background: var(--brand-soft); color: var(--brand-deep); }
.tag-nav { background: #E7F8EF; color: #178A4E; }
.sec p { color: var(--body); font-size: 1.05rem; margin-bottom: 1rem; }
.helps { list-style: none; display: grid; gap: .7rem; margin: 1rem 0; }
.helps li { background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--brand); padding: .9rem 1.1rem; border-radius: 10px; font-size: 1rem; color: var(--ink); }
.steps { counter-reset: s; list-style: none; display: grid; gap: .8rem; }
.steps li { position: relative; padding: .95rem 1rem .95rem 3.3rem; background: #fff; border: 1px solid var(--border); border-radius: 12px; font-size: 1rem; color: var(--ink); }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.75rem; height: 1.75rem; background: var(--brand); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .88rem; }
.scenario { background: var(--ink); color: #d7dcea; border-radius: var(--radius); padding: 2rem; font-size: 1.05rem; }
.scenario h3 { color: #7aa0ff; margin-bottom: .8rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
details { border: 1px solid var(--border); border-radius: 12px; margin-bottom: .7rem; overflow: hidden; background: #fff; }
details summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; color: var(--brand); font-size: 1.3rem; font-weight: 700; }
details[open] summary::after { content: '\2013'; }
details .anss { padding: 0 1.2rem 1.1rem; color: var(--body); }
.cta-card { background: var(--soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.4rem; text-align: center; }
.cta-card h2 { font-size: 1.5rem; font-weight: 800; color: var(--ink); margin-bottom: .7rem; }
.cta-card p { color: var(--body); margin-bottom: 1.5rem; }
.cta-card .row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 900px) {
    nav { display: none; }
    .hamburger { display: flex; }
    .s-hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
    .mock-window { transform: none; }
    .usecase-grid, .hiw-grid, .arch-grid, .trust-grid, .foot-in { grid-template-columns: 1fr; }
}
