/* Cloudsect inner pages — extends style.css using the same tokens */

/* PAGE HERO */
.page-hero {
    position: relative; overflow: hidden;
    padding: 150px 40px 90px;
    background: var(--grad-hero-anim);
    background-size: 300% 300%;
    animation: heroGradientShift 18s ease-in-out infinite;
}
.page-hero-inner {
    max-width: 1400px; margin: 0 auto; position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center;
}
.page-hero-text { animation: fadeInUp 0.8s ease forwards; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-500); margin-bottom: 22px; }
.breadcrumb a { color: var(--blue-600); font-weight: 600; }
.breadcrumb a:hover { color: var(--red-500); }
.breadcrumb i { font-size: 9px; color: var(--ink-400); }
.page-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.16em; color: var(--blue-600);
    padding: 8px 16px; border-radius: var(--r-pill);
    background: rgba(255,255,255,0.85); border: 1px solid var(--blue-200);
    margin-bottom: 20px;
}
.page-eyebrow i { color: var(--red-500); }
.page-hero h1 {
    font-size: clamp(34px, 4.6vw, 58px); font-weight: 800;
    line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 20px;
}
.page-lead { font-size: 18px; line-height: 1.75; color: var(--ink-600); max-width: 620px; margin-bottom: 34px; }
.page-hero .hero-buttons { justify-content: flex-start; opacity: 1; animation: none; }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: 22px; font-size: 13.5px; color: var(--ink-500); }
.page-hero-meta i { color: var(--blue-500); margin-right: 6px; }
.page-hero-art { display: flex; justify-content: center; align-items: center; }
.page-hero-art img { width: 100%; max-width: 480px; max-height: 380px; object-fit: contain; animation: fadeInUp 0.9s 0.2s ease both; }

/* SPLIT OVERVIEW */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.split-text h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.02em; margin-bottom: 20px; }
.split-text p { font-size: 16px; color: var(--ink-600); line-height: 1.85; margin-bottom: 18px; }
.split .cap-panel { position: sticky; top: 110px; }

/* BENEFIT GRID (re-uses .b2b-card) */
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.benefit-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.soft-bg { background: var(--off-white); }

/* PROCESS */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process-step {
    background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--r-lg);
    padding: 28px 24px; position: relative; transition: all 0.35s ease;
}
.process-step:hover { border-color: var(--blue-300); transform: translateY(-4px); box-shadow: 0 20px 44px -18px rgba(47,111,228,0.3); }
.process-step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    background: var(--grad-primary); color: var(--white); font-family: var(--font-secondary);
    font-weight: 700; font-size: 15px; margin-bottom: 18px; box-shadow: var(--sh-blue);
}
.process-step:nth-child(even)::before { background: var(--grad-secondary); box-shadow: var(--sh-red); }
.process-step h4 { font-size: 17px; margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--ink-500); line-height: 1.65; }

/* FAQ */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--r-md); transition: border-color 0.3s ease; }
.faq-item[open] { border-color: var(--blue-300); box-shadow: 0 16px 36px -20px rgba(47,111,228,0.35); }
.faq-item summary {
    cursor: pointer; list-style: none; padding: 20px 24px; font-family: var(--font-secondary);
    font-weight: 600; font-size: 16px; color: var(--ink-900);
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--blue-500); transition: transform 0.3s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--red-500); }
.faq-item p { padding: 0 24px 22px; color: var(--ink-600); font-size: 15px; line-height: 1.8; }

/* RELATED (re-uses .service-card) */
a.service-card { display: block; }
.services-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ARTICLE */
.article-wrap { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 60px; align-items: start; }
.article-body { max-width: 780px; font-size: 17px; line-height: 1.9; color: var(--ink-700); }
.article-body h2 { font-size: 28px; margin: 44px 0 16px; letter-spacing: -0.015em; }
.article-body h3 { font-size: 20px; margin: 32px 0 12px; }
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 22px 22px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; }
.article-body code { font-family: Consolas, 'Courier New', monospace; font-size: 0.88em; background: var(--blue-50); color: var(--blue-700); padding: 2px 6px; border-radius: 6px; }
.article-body pre { background: var(--blue-950); color: var(--blue-100); padding: 22px 24px; border-radius: var(--r-md); overflow-x: auto; margin: 0 0 24px; font-size: 14px; line-height: 1.7; }
.article-body pre code { background: none; color: inherit; padding: 0; }
.article-body blockquote { border-left: 4px solid var(--red-500); background: var(--red-50); padding: 18px 22px; border-radius: 0 var(--r-md) var(--r-md) 0; margin: 0 0 24px; color: var(--ink-800); }
.article-body .article-cover { width: 100%; height: 380px; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 36px; box-shadow: 0 24px 60px -24px rgba(16,46,112,0.35); }
.article-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 18px; }
.aside-card { background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--r-lg); padding: 24px; }
.aside-card h5 { font-family: var(--font-secondary); font-size: 15px; margin-bottom: 12px; color: var(--ink-900); }
.aside-card p { font-size: 14px; color: var(--ink-500); line-height: 1.7; margin-bottom: 16px; }
.aside-card ul { display: flex; flex-direction: column; gap: 10px; }
.aside-card li a { font-size: 14px; color: var(--ink-700); display: flex; gap: 8px; align-items: baseline; }
.aside-card li a:hover { color: var(--blue-600); }
.aside-card li a i { font-size: 10px; color: var(--red-500); }
.aside-card.dark { background: var(--grad-dark); border: none; }
.aside-card.dark h5 { color: var(--white); }
.aside-card.dark p { color: var(--blue-200); }

/* LEGAL */
.legal-wrap { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 60px; align-items: start; }
.legal-toc { position: sticky; top: 110px; background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--r-lg); padding: 22px; }
.legal-toc h5 { font-family: var(--font-secondary); font-size: 14px; margin-bottom: 12px; color: var(--ink-900); }
.legal-toc ol { list-style: decimal; margin-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ink-500); }
.legal-toc a:hover { color: var(--blue-600); }
.legal-body { font-size: 16px; line-height: 1.85; color: var(--ink-700); }
.legal-body .legal-updated { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--blue-700); background: var(--blue-50); border: 1px solid var(--blue-200); padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 26px; }
.legal-body section { margin-bottom: 38px; scroll-margin-top: 100px; }
.legal-body h2 { font-size: 23px; margin-bottom: 12px; }
.legal-body p { margin-bottom: 14px; }
.legal-body ul { list-style: disc; margin: 0 0 16px 22px; }
.legal-body li { margin-bottom: 6px; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 14px; }
.legal-body th, .legal-body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--ink-200); vertical-align: top; }
.legal-body th { background: var(--blue-50); color: var(--ink-900); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* CAREERS */
.role-list { display: flex; flex-direction: column; gap: 14px; max-width: 1100px; margin: 0 auto; }
.role-card {
    display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
    background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--r-lg); padding: 24px 28px;
    transition: all 0.35s ease;
}
.role-card:hover { border-color: var(--blue-300); box-shadow: 0 20px 44px -20px rgba(47,111,228,0.3); transform: translateY(-3px); }
.role-card h4 { font-size: 18px; margin-bottom: 6px; }
.role-card p { font-size: 14px; color: var(--ink-500); margin-bottom: 10px; }
.role-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.role-tag { font-size: 12px; font-weight: 600; color: var(--blue-700); background: var(--blue-50); border: 1px solid var(--blue-200); padding: 4px 12px; border-radius: var(--r-pill); }
.role-tag.red { color: var(--red-600); background: var(--red-50); border-color: var(--red-200); }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 140px 24px 80px; background: var(--grad-hero-anim); background-size: 300% 300%; animation: heroGradientShift 18s ease-in-out infinite; }
.notfound img { max-width: 420px; width: 100%; margin: 0 auto 32px; }
.notfound h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; }
.notfound p { color: var(--ink-600); margin-bottom: 30px; }
.notfound .hero-buttons { opacity: 1; animation: none; }

/* RESPONSIVE */
@media (max-width: 1279px) {
    .benefit-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
    .article-wrap { grid-template-columns: 1fr; }
    .article-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) {
    .page-hero-inner, .split, .legal-wrap { grid-template-columns: 1fr; gap: 40px; }
    .page-hero-art img { max-width: 380px; }
    .split .cap-panel, .legal-toc { position: static; }
    .services-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 809px) {
    .page-hero { padding: 120px 24px 64px; }
    .benefit-grid, .benefit-grid.cols-3, .process-grid, .services-grid.cols-3, .article-aside { grid-template-columns: 1fr; }
    .role-card { grid-template-columns: 1fr; }
    .article-body .article-cover { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
    .page-hero, .notfound { animation: none; }
}

/* BRAND LOGO (same as home page) */
.nav-logo-img { height: 52px; width: auto; display: block; transition: height 0.3s ease; }
.navbar.scrolled .nav-logo-img { height: 46px; }
.footer-logo-img { height: 72px; width: auto; display: block; }
@media (max-width: 480px) {
    .nav-logo-img, .navbar.scrolled .nav-logo-img { height: 38px; }
    .footer-logo-img { height: 60px; }
}
