/* =============================================================
   Aispel — Site design system (build-free, hand-authored)
   Brand: cyan→purple gradient on deep navy. Inter + Noto Sans JP.
   ============================================================= */

:root {
    --c-cyan: #00d4ff;
    --c-purple: #7c3aed;
    --grad: linear-gradient(120deg, #00d4ff 0%, #7c3aed 100%);
    --grad-soft: linear-gradient(120deg, rgba(0,212,255,.12), rgba(124,58,237,.12));

    --navy-900: #0a0e27;
    --navy-800: #111738;
    --navy-700: #1b2350;

    --ink: #1a1f36;
    --ink-soft: #4a5070;
    --muted: #6b7280;
    --line: #e6e8f0;
    --bg: #ffffff;
    --bg-alt: #f5f7fb;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 8px rgba(16,24,64,.06);
    --shadow: 0 12px 32px rgba(16,24,64,.10);
    --shadow-lg: 0 24px 60px rgba(16,24,64,.16);

    --container: 1160px;
    --nav-h: 86px;

    --font: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; font-weight: 700; letter-spacing: .01em; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.text-grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Buttons ------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
    white-space: nowrap;
}
.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 8px 24px rgba(124,58,237,.30);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(124,58,237,.42); color:#fff; }
.btn-outline {
    border-color: rgba(255,255,255,.5);
    color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.12); color:#fff; }
.btn-ghost {
    border-color: var(--line);
    color: var(--ink);
    background: #fff;
}
.btn-ghost:hover { border-color: var(--c-purple); color: var(--c-purple); }
.btn-lg { padding: 18px 40px; font-size: 16px; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Navigation -------------------------------------------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-top { background: transparent; }
.nav:not(.is-top) {
    background: rgba(10,14,39,.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand img { height: 42px; display:block; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.nav-links > li > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 13px;
    color: #fff;
    font-weight: 600;
    font-size: 15.5px;
    border-radius: 8px;
}
.nav-links > li > a span { font-size: 11px; opacity: .6; font-weight: 500; }
.nav-links > li > a:hover { color: var(--c-cyan); }
.nav-cta { margin-left: 14px; }
/* Polished header CTA: compact pill, soft glow ring, shine sweep on hover */
.nav-cta .btn {
    position: relative;
    overflow: hidden;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(124,58,237,.34), inset 0 1px 0 rgba(255,255,255,.28);
}
.nav-cta .btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(120deg, rgba(255,255,255,.7), rgba(255,255,255,0) 45%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .9;
    pointer-events: none;
}
.nav-cta .btn::after {
    content: "";
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
    pointer-events: none;
}
.nav-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(124,58,237,.5), inset 0 1px 0 rgba(255,255,255,.35);
}
.nav-cta .btn:hover::after { left: 130%; }
.nav-cta .btn .cta-label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; }
.nav-cta .btn i { font-size: 12px; }
.nav-toggle {
    display: none;
    background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; padding: 6px;
}

/* ---------- Hero (home) ------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(1200px 620px at 78% 28%, rgba(124,58,237,.42), transparent 60%),
        radial-gradient(900px 520px at 18% 82%, rgba(0,212,255,.26), transparent 55%),
        linear-gradient(135deg, #070a1f 0%, #0a0e27 48%, #0d1430 100%);
}
/* AI neural-network canvas */
.hero-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: 1;
    display: block;
    pointer-events: none;
}
/* soft glow orbs for depth */
.hero-orb {
    position: absolute; border-radius: 50%;
    filter: blur(70px); z-index: 0; opacity: .5; pointer-events: none;
    will-change: transform;
}
.hero-orb.o1 { width: 420px; height: 420px; top: -90px; right: 6%;
    background: radial-gradient(circle, rgba(0,212,255,.65), transparent 70%);
    animation: orbFloat 15s ease-in-out infinite; }
.hero-orb.o2 { width: 500px; height: 500px; bottom: -140px; left: -70px;
    background: radial-gradient(circle, rgba(124,58,237,.7), transparent 70%);
    animation: orbFloat 19s ease-in-out infinite reverse; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(34px, -42px) scale(1.14); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-orb { animation: none; }
}
/* readability overlay: dark on the left (text), clear on the right (network) */
.hero::after {
    content: "";
    position: absolute; inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(7,10,31,.94) 0%, rgba(7,10,31,.72) 40%, rgba(7,10,31,.22) 100%);
}
.hero-inner { position: relative; z-index: 3; padding-top: var(--nav-h); }
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: .02em;
}
.hero p { font-size: clamp(1rem, 2vw, 1.25rem); opacity: .92; margin: 0 0 36px; max-width: 640px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Sections ---------------------------------------------- */
section { position: relative; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
    background: var(--navy-900);
    color: #fff;
    background-image: radial-gradient(circle at 15% 20%, rgba(0,212,255,.16), transparent 40%),
                      radial-gradient(circle at 85% 80%, rgba(124,58,237,.20), transparent 45%);
}

.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head.left { text-align: left; }
.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 12px;
}
.sec-title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.sec-lead { margin: 18px auto 0; max-width: 760px; color: var(--ink-soft); }
.section-dark .sec-lead { color: rgba(255,255,255,.82); }

/* ---------- Grid -------------------------------------------------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ------------------------------------------------- */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(124,58,237,.3); }
.card-icon {
    width: 60px; height: 60px;
    border-radius: 14px;
    background: var(--grad-soft);
    display: grid; place-items: center;
    margin-bottom: 20px;
}
.card-icon svg { width: 34px; height: 34px; }
.card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 15px; margin: 0 0 18px; }
.card .card-more { margin-top: auto; font-weight: 700; color: var(--c-purple); font-size: 14px; }
.card .card-more .arrow { display:inline-block; transition: transform .2s; }
.card:hover .card-more .arrow { transform: translateX(4px); }

.feature-list { list-style: none; display: grid; gap: 10px; }
.feature-list li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink-soft); }
.feature-list li::before {
    content: ""; position: absolute; left: 0; top: .55em;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--grad);
}

/* ---------- Case cards (image overlay) ---------------------------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--navy-800);
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-card img.case-thumb { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; transition: transform .5s; }
.case-card:hover img.case-thumb { transform: scale(1.06); }
.case-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,14,39,0) 0%, rgba(10,14,39,0) 38%, rgba(10,14,39,.42) 70%, rgba(10,14,39,.85) 100%);
    color: #fff;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px;
    transition: background .3s;
}
.case-card:hover .case-overlay {
    background: linear-gradient(180deg, rgba(10,14,39,0) 0%, rgba(10,14,39,.08) 40%, rgba(10,14,39,.5) 72%, rgba(10,14,39,.88) 100%);
}
.case-tag {
    align-self: flex-start;
    font-size: 11px; font-weight: 700; letter-spacing: .08em;
    padding: 5px 12px; border-radius: 999px;
    background: var(--grad);
    color: #fff;
    box-shadow: 0 2px 10px rgba(124,58,237,.35);
    margin-bottom: auto;
}
.case-card h3 { font-size: 1.05rem; margin: 12px 0 8px; text-shadow: 0 1px 6px rgba(10,14,39,.55); }
.case-card .case-link { font-size: 13px; font-weight: 700; color: var(--c-cyan); }

/* ---------- Page hero (subpages) ---------------------------------- */
.page-hero {
    background: var(--navy-900);
    background-image: radial-gradient(circle at 12% 30%, rgba(0,212,255,.22), transparent 42%),
                      radial-gradient(circle at 88% 70%, rgba(124,58,237,.28), transparent 46%);
    color: #fff;
    padding: calc(var(--nav-h) + 64px) 0 64px;
}
.page-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 18px; }
.page-hero .lead { max-width: 760px; opacity: .9; font-size: 1.05rem; }

/* ---------- Breadcrumbs ------------------------------------------- */
.breadcrumbs { font-size: 13px; margin-bottom: 22px; opacity: .85; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs li::after { content: "›"; margin-left: 6px; opacity: .5; }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a:hover { color: var(--c-cyan); }

/* ---------- Problem / checklist ----------------------------------- */
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 16px 18px 16px 50px; position: relative; box-shadow: var(--shadow-sm);
    font-weight: 500;
}
.checklist li::before {
    content: "✓"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff;
    display: grid; place-items: center; font-size: 12px; font-weight: 700;
}

/* ---------- Scope grid -------------------------------------------- */
.scope-item { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.scope-item h3 { font-size: 1.1rem; margin-bottom: 10px; display:flex; align-items:center; gap:10px; }
.scope-item h3::before { content:""; width: 8px; height: 24px; border-radius: 4px; background: var(--grad); }
.scope-item p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ---------- Process flow ------------------------------------------ */
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.process-step { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 24px 16px; text-align:center; box-shadow: var(--shadow-sm); position: relative; }
.process-step .step-no { font-size: 12px; font-weight: 800; letter-spacing:.1em; color: var(--c-purple); }
.process-step h3 { font-size: 1rem; margin: 10px 0 8px; }
.process-step p { font-size: 12.5px; color: var(--ink-soft); margin: 0; line-height: 1.7; }

/* ---------- FAQ (details) ----------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
    background:#fff; border:1px solid var(--line); border-radius: var(--radius-sm); overflow:hidden;
    box-shadow: var(--shadow-sm);
}
.faq summary {
    list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
    font-weight: 700; font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--c-purple); font-weight: 800; margin-right: 10px; }
.faq summary::after {
    content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
    font-size: 22px; color: var(--c-purple); transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq .faq-a { padding: 0 22px 22px; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- CTA band ---------------------------------------------- */
.cta-band {
    background: var(--grad);
    border-radius: 24px;
    padding: 56px 40px;
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 14px; }
.cta-band p { opacity: .92; margin: 0 auto 28px; max-width: 600px; }
.cta-band .btn-primary { background:#fff; color: var(--c-purple); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.cta-band .btn-primary:hover { color: var(--c-purple); }

/* ---------- Tables (company) -------------------------------------- */
.info-table { width: 100%; border-collapse: collapse; background:#fff; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); border:1px solid var(--line); }
.info-table th, .info-table td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 30%; background: var(--bg-alt); font-weight: 700; color: var(--ink); white-space: nowrap; }
.info-table ul { padding-left: 1.1rem; }

/* ---------- News list --------------------------------------------- */
.news-list { display: grid; gap: 0; }
.news-row { display: grid; grid-template-columns: 132px 1fr; gap: 22px; align-items: start; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.news-meta { display: flex; flex-direction: column; gap: 7px; }
.news-date { color: var(--muted); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.news-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display:inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--grad-soft); color: var(--c-purple); white-space: nowrap; }
.badge-new { background: #ff4d6d; color:#fff; }
.news-text { font-size: 14.5px; line-height: 1.7; }
.news-text a { color: var(--c-purple); font-weight: 600; }
.news-text a:hover { text-decoration: underline; }

/* ---------- Trust badges ------------------------------------------ */
.trust-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.trust-item { display:flex; gap:14px; align-items:flex-start; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); padding: 18px 20px; }
.trust-item .t-ico { color: var(--c-cyan); font-size: 20px; line-height:1.4; }
.trust-item h4 { font-size: 15px; margin: 0 0 4px; color:#fff; }
.trust-item p { font-size: 13px; margin:0; color: rgba(255,255,255,.7); }

/* logos strip */
.logo-strip { display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.logo-strip img {
    width: 100%; height: 104px;
    object-fit: contain;
    background: #fff;
    border-radius: 14px;
    padding: 20px 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
}
.logo-strip img:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* ---------- Contact form ------------------------------------------ */
.form-wrap { max-width: 720px; margin: 0 auto; }
.form-group { margin-bottom: 22px; }
.form-group label { display:block; font-weight: 700; font-size: 14.5px; margin-bottom: 8px; }
.req { background: var(--grad); color:#fff; font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-left: 8px; font-weight:700; }
.form-control {
    width: 100%; padding: 14px 16px; border:1.5px solid var(--line); border-radius: var(--radius-sm);
    font-size: 15px; font-family: inherit; background:#fff; transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline:none; border-color: var(--c-purple); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
textarea.form-control { min-height: 160px; resize: vertical; }
.field-error { color: #e11d48; font-size: 13px; margin-top: 6px; display:none; }
.form-note { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 16px 20px; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 28px; text-wrap: pretty; }
.alert-success { background: #e7f9ef; border:1px solid #34d399; color:#047857; border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 24px; font-weight:600; }

/* ---------- Article (column) -------------------------------------- */
.article { max-width: 760px; margin: 0 auto; }
.article-meta { display:flex; gap: 14px; align-items:center; color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.article-body { font-size: 16.5px; line-height: 2; }
.article-body h2 { font-size: 1.45rem; margin: 40px 0 16px; padding-left: 16px; border-left: 5px solid; border-image: var(--grad) 1; }
.article-body p { margin: 0 0 20px; color: #2a2f4a; }
.author-box { display:flex; gap:18px; align-items:center; background: var(--bg-alt); border-radius: var(--radius); padding: 24px; margin-top: 48px; }
.author-box .author-avatar { width: 64px; height:64px; border-radius:50%; background:var(--grad); display:grid; place-items:center; color:#fff; font-weight:800; font-size:20px; flex-shrink:0; }
.author-box h4 { margin:0 0 4px; }
.author-box .role { color: var(--c-purple); font-size: 13px; font-weight:600; }
.author-box p { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Filters (cases) --------------------------------------- */
.filters { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom: 40px; }
.filter-chip {
    padding: 8px 18px; border-radius: 999px; border:1.5px solid var(--line); background:#fff;
    font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
}
.filter-chip:hover { border-color: var(--c-purple); color: var(--c-purple); }
.filter-chip.active { background: var(--grad); color:#fff; border-color: transparent; }
.filter-label { font-size:12px; font-weight:700; color: var(--muted); align-self:center; letter-spacing:.05em; margin-right: 4px; }

/* ---------- Tech tags --------------------------------------------- */
.tech-tags { display:flex; flex-wrap:wrap; gap:8px; }
.tech-tag { font-size: 12.5px; font-weight:600; padding: 5px 12px; border-radius: 8px; background: var(--bg-alt); border:1px solid var(--line); color: var(--ink-soft); }

/* ---------- Footer ------------------------------------------------ */
.footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 64px 0 32px; }
.footer-top { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand p { font-size: 13.5px; line-height:1.9; margin:0; }
.footer-col h5 { color:#fff; font-size: 14px; margin: 0 0 16px; letter-spacing:.05em; }
.footer-col ul { list-style:none; display:grid; gap: 10px; }
.footer-col a { font-size: 13.5px; }
.footer-col a:hover { color: var(--c-cyan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; }
.footer-bottom .copyright { font-size: 12.5px; margin:0; }
.footer-badges { display:flex; align-items:center; gap:16px; }
.footer-badges img { height: 40px; width:auto; opacity:.85; }

/* ---------- Scroll animations ------------------------------------- */
.anim { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.anim.is-visible { opacity: 1; transform: none; }

/* ---------- To-top ------------------------------------------------ */
.to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 900;
    width: 46px; height: 46px; border-radius: 50%; background: var(--grad);
    color:#fff; display:grid; place-items:center; box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; transform: translateY(10px);
    font-size: 18px;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Utilities --------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack-lg > * + * { margin-top: 24px; }
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items:center; }

/* ---------- Responsive -------------------------------------------- */
@media (max-width: 980px) {
    .grid-3, .grid-4, .case-grid { grid-template-columns: repeat(2, 1fr); }
    .process { grid-template-columns: repeat(3, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
    .section { padding: 64px 0; }
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed; inset: var(--nav-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: rgba(10,14,39,.98); backdrop-filter: blur(12px);
        padding: 12px 24px 24px; transform: translateY(-120%);
        transition: transform .3s; max-height: calc(100vh - var(--nav-h)); overflow:auto;
    }
    .nav-links.open { transform: none; }
    .nav-links > li > a { flex-direction: row; justify-content: space-between; padding: 14px 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
    .nav-links > li > a span { font-size: 11px; }
    .nav-cta { margin: 14px 0 0; }
    .nav-cta a { width: 100%; justify-content: center; }
    .grid-2, .grid-3, .grid-4, .case-grid, .trust-grid { grid-template-columns: 1fr; }
    .logo-strip { grid-template-columns: repeat(2, 1fr); }
    .logo-strip img { height: 84px; padding: 16px 18px; }
    /* news: stack meta above text on mobile, meta inline */
    .news-row { grid-template-columns: 1fr; gap: 8px; }
    .news-meta { flex-direction: row; align-items: center; }
    .process { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr; }
    .info-table th { width: 40%; }
    .hero { min-height: 88vh; }
    /* shrink hero headline so each line fits without auto-wrapping (clean 2 lines) */
    .hero h1 { font-size: clamp(1.3rem, 6vw, 2.1rem); }
    /* stack hero buttons full-width so they don't overflow narrow screens */
    .hero-actions { width: 100%; }
    .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
    .cta-band { padding: 40px 24px; }
}
