html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f5f7fb;
    color: #111827;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

.legacy-home-shell {
    display: none !important;
}

.kata-home {
    min-height: 100vh;
    background: #f5f7fb;
    color: #111827;
    line-height: 1.5;
    overflow-x: hidden;
}

.kata-home,
.kata-home * {
    box-sizing: border-box;
}

.kata-home a {
    color: inherit;
    text-decoration: none;
}

.kata-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.kata-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(14px);
}

.kata-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

.kata-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 150px;
}

.kata-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #063a78;
    color: #fff;
    font-weight: 900;
    font-size: 20px;
}

.kata-brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.kata-brand-name {
    color: #062a5f;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0;
}

.kata-brand-sub {
    color: #637083;
    font-size: 11px;
    text-transform: uppercase;
}

.kata-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    font-size: 14px;
    font-weight: 700;
    color: #243044;
}

.kata-menu a:hover {
    color: #006fd6;
}

.kata-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kata-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #cfd8e3;
    background: #fff;
    color: #102033;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.kata-btn:hover {
    transform: translateY(-1px);
    border-color: #006fd6;
    color: #006fd6;
}

.kata-btn-primary {
    border-color: #006fd6;
    background: #006fd6;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(0, 111, 214, 0.24);
}

.kata-btn-primary:hover {
    background: #0057aa;
    color: #fff;
}

.kata-btn-dark {
    border-color: #0b1831;
    background: #0b1831;
    color: #fff !important;
}

.kata-btn-dark:hover {
    background: #16284b;
    color: #fff;
}

.kata-hero {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.kata-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    align-items: center;
    gap: 44px;
    min-height: 640px;
    padding: 56px 0 48px;
}

.kata-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: #006fd6;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.kata-dot {
    width: 9px;
    height: 9px;
    background: #00a6ff;
}

.kata-hero h1 {
    max-width: 680px;
    margin: 0;
    color: #08162d;
    font-size: 58px;
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: 0;
}

.kata-hero-copy {
    max-width: 610px;
    margin: 22px 0 0;
    color: #4b5b70;
    font-size: 19px;
}

.kata-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.kata-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
}

.kata-quick-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 108px;
    padding: 18px;
    background: #f7faff;
    border: 1px solid #dce6f2;
}

.kata-quick-card strong {
    color: #0c2446;
    font-size: 15px;
}

.kata-quick-card span {
    margin-top: 8px;
    color: #66758a;
    font-size: 13px;
}

.kata-hero-media {
    position: relative;
}

.kata-hero-panel {
    overflow: hidden;
    background: #07152e;
    border: 1px solid #102d56;
    box-shadow: 0 28px 60px rgba(9, 28, 63, 0.28);
}

.kata-hero-panel img {
    display: block;
    width: 100%;
    height: auto;
}

.kata-floating-stat {
    position: absolute;
    right: 22px;
    bottom: -26px;
    width: 220px;
    padding: 18px;
    background: #fff;
    border: 1px solid #dbe3ee;
    box-shadow: 0 18px 45px rgba(9, 28, 63, 0.16);
}

.kata-floating-stat strong {
    display: block;
    color: #006fd6;
    font-size: 34px;
    line-height: 1;
}

.kata-floating-stat span {
    display: block;
    margin-top: 6px;
    color: #405168;
    font-size: 13px;
    font-weight: 700;
}

.kata-section {
    padding: 74px 0;
}

.kata-section-white {
    background: #fff;
}

.kata-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.kata-section-title {
    max-width: 720px;
}

.kata-section-title h2 {
    margin: 0;
    color: #0b1831;
    font-size: 38px;
    line-height: 1.12;
    font-weight: 900;
}

.kata-section-title p {
    margin: 12px 0 0;
    color: #5e6d81;
    font-size: 17px;
}

.kata-stats {
    background: #07152e;
    color: #fff;
}

.kata-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.14);
}

.kata-stat {
    min-height: 116px;
    padding: 24px 18px;
    background: #07152e;
}

.kata-stat strong {
    display: block;
    font-size: 28px;
    line-height: 1;
}

.kata-stat span {
    display: block;
    margin-top: 9px;
    color: #b9c7dc;
    font-size: 14px;
    font-weight: 700;
}

.kata-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.kata-card {
    min-height: 260px;
    padding: 26px;
    background: #fff;
    border: 1px solid #dbe3ee;
    box-shadow: 0 12px 28px rgba(12, 36, 70, 0.06);
}

.kata-card-dark {
    background: #0b1831;
    color: #fff;
    border-color: #0b1831;
}

.kata-card-kicker {
    color: #006fd6;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.kata-card-dark .kata-card-kicker {
    color: #68c7ff;
}

.kata-card h3 {
    margin: 10px 0 12px;
    color: inherit;
    font-size: 25px;
    font-weight: 900;
}

.kata-card ul {
    margin: 0;
    padding-left: 18px;
    color: #5d6c80;
    font-size: 15px;
}

.kata-card-dark ul {
    color: #c7d6eb;
}

.kata-card li + li {
    margin-top: 8px;
}

.kata-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.kata-module {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    min-height: 104px;
    padding: 18px;
    background: #fff;
    border: 1px solid #dce4ef;
}

.kata-module-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    height: 40px;
    background: #eaf4ff;
    color: #006fd6;
    font-weight: 900;
}

.kata-module strong {
    display: block;
    color: #102033;
    font-size: 16px;
}

.kata-module span {
    display: block;
    margin-top: 5px;
    color: #69778b;
    font-size: 13px;
}

.kata-steel {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    gap: 30px;
    align-items: center;
    padding: 34px;
    background: #fff;
    border: 1px solid #dbe3ee;
}

.kata-steel-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.kata-flow-step {
    min-height: 132px;
    padding: 18px;
    background: #f6f9fd;
    border: 1px solid #dce4ef;
}

.kata-flow-step strong {
    display: block;
    color: #006fd6;
    font-size: 24px;
}

.kata-flow-step span {
    display: block;
    margin-top: 8px;
    color: #263449;
    font-weight: 800;
}

.kata-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.kata-video-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dbe3ee;
    box-shadow: 0 12px 28px rgba(12, 36, 70, 0.06);
}

.kata-video-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0b1831;
}

.kata-video-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.kata-video-card:hover .kata-video-thumb img {
    transform: scale(1.04);
}

.kata-play {
    position: absolute;
    left: 18px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #006fd6;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 12px 26px rgba(0, 111, 214, 0.32);
}

.kata-video-body {
    padding: 18px;
}

.kata-video-body strong {
    display: block;
    color: #102033;
    font-size: 17px;
}

.kata-video-body span {
    display: block;
    margin-top: 6px;
    color: #657489;
    font-size: 13px;
}

.kata-buy-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 42px;
    background: #07152e;
    color: #fff;
}

.kata-buy-panel h2 {
    margin: 0;
    font-size: 36px;
    line-height: 1.14;
    font-weight: 900;
}

.kata-buy-panel p {
    max-width: 720px;
    margin: 12px 0 0;
    color: #c4d1e4;
    font-size: 17px;
}

.kata-footer {
    padding: 34px 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    color: #5e6d81;
    font-size: 14px;
}

.kata-footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.kata-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #243044;
    font-weight: 700;
}

#popup {
    position: fixed !important;
    right: 12px !important;
    bottom: 14px !important;
    z-index: 80 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 10px !important;
    pointer-events: none;
}

#popup > div {
    position: static !important;
    display: block !important;
    pointer-events: auto;
}

#popup img {
    width: 60px !important;
    height: auto !important;
    max-height: 92px !important;
    background: #fff;
    border: 1px solid #dbe3ee !important;
    box-shadow: 0 12px 28px rgba(12, 36, 70, 0.18);
}

@media (max-width: 1020px) {
    .kata-menu {
        display: none;
    }

    .kata-hero-grid,
    .kata-steel,
    .kata-buy-panel {
        grid-template-columns: 1fr;
    }

    .kata-hero-grid {
        min-height: 0;
    }

    .kata-hero h1 {
        font-size: 44px;
    }

    .kata-quick-actions,
    .kata-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kata-card-grid,
    .kata-module-grid,
    .kata-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .kata-shell {
        width: min(100% - 28px, 1180px);
    }

    .kata-nav {
        min-height: auto;
        padding: 14px 0;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
    }

    .kata-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: stretch;
    }

    .kata-actions .kata-btn {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        min-height: 38px;
        padding: 0 12px;
        font-size: 13px;
    }

    .kata-hero-cta {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .kata-hero-cta .kata-btn {
        width: 100%;
        white-space: normal;
    }

    .kata-hero-grid {
        padding: 38px 0;
        gap: 28px;
    }

    .kata-hero h1 {
        font-size: 34px;
    }

    .kata-hero-copy,
    .kata-section-title p,
    .kata-buy-panel p {
        font-size: 16px;
    }

    .kata-quick-actions,
    .kata-stats-grid,
    .kata-card-grid,
    .kata-module-grid,
    .kata-video-grid,
    .kata-steel-flow {
        grid-template-columns: 1fr;
    }

    .kata-section {
        padding: 42px 0;
    }

    .kata-section-head,
    .kata-footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }

    .kata-section-title h2,
    .kata-buy-panel h2 {
        font-size: 29px;
    }

    #popup {
        display: none !important;
    }

    .kata-floating-stat {
        position: static;
        width: auto;
        margin-top: 12px;
    }
}

/* Dark theme for the 2026 homepage redesign. Kept as overrides so the layout stays close to the approved white version. */
body {
    background: #05070b;
}

.kata-home {
    background: #05070b;
    color: #f8fafc;
}

.kata-topbar {
    background: rgba(5, 7, 11, 0.94);
    border-bottom-color: #1f2937;
}

.kata-brand-mark {
    background: #0078d4;
    color: #fff;
}

.kata-brand-name,
.kata-menu,
.kata-footer-links {
    color: #f8fafc;
}

.kata-brand-sub,
.kata-footer {
    color: #94a3b8;
}

.kata-menu a:hover,
.kata-footer-links a:hover {
    color: #38bdf8;
}

.kata-btn {
    border-color: #334155;
    background: #0b1220;
    color: #f8fafc;
}

.kata-btn:hover {
    border-color: #38bdf8;
    color: #38bdf8;
}

.kata-btn-primary {
    border-color: #0078d4;
    background: #0078d4;
    color: #fff !important;
    box-shadow: 0 14px 34px rgba(0, 120, 212, 0.34);
}

.kata-btn-primary:hover {
    background: #0a8df0;
    color: #fff;
}

.kata-btn-dark {
    border-color: #334155;
    background: #111827;
    color: #fff !important;
}

.kata-btn-dark:hover {
    background: #1f2937;
    color: #fff;
}

.kata-hero,
.kata-section-white,
.kata-footer {
    background: #05070b;
    border-color: #1f2937;
}

.kata-hero {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(5, 7, 11, 1)),
        #05070b;
}

.kata-eyebrow {
    color: #38bdf8;
}

.kata-dot {
    background: #38bdf8;
}

.kata-hero h1,
.kata-section-title h2,
.kata-card h3,
.kata-module strong,
.kata-video-body strong,
.kata-flow-step span {
    color: #f8fafc;
}

.kata-hero-copy,
.kata-section-title p,
.kata-card ul,
.kata-module span,
.kata-video-body span,
.kata-buy-panel p {
    color: #cbd5e1;
}

.kata-quick-card,
.kata-card,
.kata-module,
.kata-steel,
.kata-flow-step,
.kata-video-card {
    background: #0b1220;
    border-color: #243044;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.kata-quick-card:hover,
.kata-card:hover,
.kata-module:hover,
.kata-video-card:hover {
    border-color: #3b82f6;
}

.kata-quick-card strong {
    color: #f8fafc;
}

.kata-quick-card span {
    color: #aebdd0;
}

.kata-hero-panel {
    background: #020617;
    border-color: #243044;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.52);
}

.kata-floating-stat {
    background: #0b1220;
    border-color: #243044;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.44);
}

.kata-floating-stat strong {
    color: #38bdf8;
}

.kata-floating-stat span {
    color: #cbd5e1;
}

.kata-stats {
    background: #020617;
}

.kata-stats-grid {
    background: #243044;
}

.kata-stat {
    background: #07111f;
}

.kata-stat span {
    color: #b6c6dc;
}

.kata-card-dark,
.kata-buy-panel {
    background: #07111f;
    border-color: #243044;
}

.kata-card-kicker,
.kata-card-dark .kata-card-kicker {
    color: #38bdf8;
}

.kata-module-index {
    background: rgba(0, 120, 212, 0.16);
    color: #38bdf8;
}

.kata-video-thumb {
    background: #020617;
}

.kata-play {
    background: #0078d4;
    color: #fff;
}

#popup img {
    background: #0b1220;
    border-color: #243044 !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
}

/* Vertical brochure hero variant. */
.kata-hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
    gap: 64px;
    min-height: 720px;
}

.kata-hero-media {
    display: flex;
    justify-content: center;
}

.kata-hero-panel {
    width: min(100%, 470px);
    padding: 10px;
}

.kata-floating-stat {
    right: -10px;
    bottom: 44px;
}

@media (max-width: 1020px) {
    .kata-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        min-height: 0;
    }

    .kata-hero-panel {
        width: min(100%, 560px);
    }
}

@media (max-width: 680px) {
    .kata-hero-media {
        display: block;
    }

    .kata-hero-panel {
        width: 100%;
        padding: 6px;
    }
}

#popup {
    right: 12px !important;
    bottom: 14px !important;
    z-index: 80 !important;
}

#popup img {
    width: 60px !important;
    max-height: 92px !important;
}

@media (max-width: 680px) {
    .kata-section {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    #popup {
        display: none !important;
    }
}

.kata-btn-primary {
    border-color: #f97316;
    background: #f97316;
    color: #fff !important;
    box-shadow: 0 14px 34px rgba(249, 115, 22, 0.34);
}

.kata-btn-primary:hover {
    border-color: #ea580c;
    background: #ea580c;
    color: #fff !important;
}

/* Lightweight motion system for the redesigned home page. */
.kata-quick-card,
.kata-card,
.kata-module,
.kata-video-card,
.kata-flow-step,
.kata-btn {
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.kata-quick-card:hover,
.kata-card:hover,
.kata-module:hover,
.kata-video-card:hover,
.kata-flow-step:hover {
    transform: translateY(-5px);
    border-color: #2f81d7;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
}

.kata-video-thumb img {
    transition: transform 500ms ease;
}

.kata-video-card:hover .kata-video-thumb img {
    transform: scale(1.035);
}

html.kata-motion-ready .kata-hero-grid > div:first-child > * {
    opacity: 0;
    animation: kata-hero-enter 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

html.kata-motion-ready .kata-hero-grid > div:first-child > *:nth-child(2) { animation-delay: 90ms; }
html.kata-motion-ready .kata-hero-grid > div:first-child > *:nth-child(3) { animation-delay: 170ms; }
html.kata-motion-ready .kata-hero-grid > div:first-child > *:nth-child(4) { animation-delay: 250ms; }
html.kata-motion-ready .kata-hero-grid > div:first-child > *:nth-child(5) { animation-delay: 330ms; }

html.kata-motion-ready .kata-hero-media {
    opacity: 0;
    animation: kata-media-enter 900ms 180ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

html.kata-motion-ready .kata-hero-panel img {
    animation: kata-hero-drift 12s 1.1s ease-in-out infinite alternate;
}

html.kata-motion-ready .kata-floating-stat {
    animation: kata-stat-float 4.5s 1.1s ease-in-out infinite;
}

html.kata-motion-ready .kata-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--kata-motion-delay, 0ms);
}

html.kata-motion-ready .kata-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes kata-hero-enter {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes kata-media-enter {
    from { opacity: 0; transform: translateX(30px) scale(0.98); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes kata-hero-drift {
    from { transform: scale(1); }
    to { transform: scale(1.025); }
}

@keyframes kata-stat-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

@media (prefers-reduced-motion: reduce) {
    html.kata-motion-ready .kata-hero-grid > div:first-child > *,
    html.kata-motion-ready .kata-hero-media,
    html.kata-motion-ready .kata-hero-panel img,
    html.kata-motion-ready .kata-floating-stat {
        opacity: 1;
        transform: none;
        animation: none;
    }

    html.kata-motion-ready .kata-reveal,
    .kata-quick-card,
    .kata-card,
    .kata-module,
    .kata-video-card,
    .kata-flow-step,
    .kata-video-thumb img,
    .kata-btn {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
