/* ============================================================
   ABOUT PAGE — Kaizora.ai
   Typography aligned with home + services pages.
   All text left-aligned. No centering of body/heading content.
   ============================================================ */

/* ----------------------------------------------------------
   BASE FIXES (classes missing from global CSS)
   ---------------------------------------------------------- */
.section-bg-white { background-color: var(--color-white); }
.section-bg-light  { background-color: #F4F5F7; }

/* ----------------------------------------------------------
   HERO
   Left-aligned, matching services page pattern.
   ---------------------------------------------------------- */
.page-hero {
    padding-top: 180px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

/* Hero H1 — bolder, matching sitewide hero standard (weight 600) */
.page-hero h1 {
    font-size: clamp(2rem, 7vw, 6rem);
    font-weight: 600;
    line-height: 1.0;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
    text-align: left;
}

/* Hero vision paragraph — matches home page hero-sub p sizing */
.hero-vision {
    font-size: 1.1rem;
    color: var(--color-navy);
    max-width: 520px;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
    text-align: left;
}


/* ----------------------------------------------------------
   SECTION BACKGROUND NUMBERS (services page pattern)
   ---------------------------------------------------------- */
.section-num {
    position: absolute;
    top: 1.5rem;
    left: 1rem;
    font-size: clamp(5rem, 14vw, 11rem);
    font-weight: 700;
    color: rgba(6, 22, 53, 0.04);
    line-height: 1;
    letter-spacing: -0.05em;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.section-num.light {
    color: rgba(255, 255, 255, 0.06);
}

/* Ensure section content sits above the background number */
.about-section .container {
    position: relative;
    z-index: 1;
}

/* ----------------------------------------------------------
   H2 UNDERLINE WIPE — thin blue line grows left→right on scroll
   ---------------------------------------------------------- */
.about-section h2 {
    display: inline-block;
    position: relative;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-section h2.line-revealed::after {
    width: 3rem;
}

/* ----------------------------------------------------------
   01 — THE NAME  (split layout)
   ---------------------------------------------------------- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.split-content h2 {
    margin-bottom: 1.5rem;
    text-align: left;
}

.split-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-body);
}

.split-content strong {
    color: var(--color-navy);
    font-weight: 600;
}

.split-image {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* ----------------------------------------------------------
   NAME DEFINITION VISUAL
   Dictionary / brand definition style — premium typographic treatment.
   ---------------------------------------------------------- */
.name-definition {
    width: 100%;
    max-width: 420px;
    border-left: 3px solid var(--color-primary);
    padding-left: 2rem;
}

.name-def-word {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* "KAI" — navy shimmer glint */
.name-def-base {
    background: linear-gradient(90deg, var(--color-navy) 20%, #6080b0 50%, var(--color-navy) 80%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nameShimmer 4s ease-in-out infinite;
}

/* "ZORA" — blue shimmer glint */
.name-def-accent {
    background: linear-gradient(90deg, var(--color-primary) 20%, #60b4ff 50%, var(--color-primary) 80%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nameShimmer 4s ease-in-out infinite 0.6s;
}

@keyframes nameShimmer {
    0%   { background-position: 150% 0; }
    100% { background-position: -50% 0; }
}

.name-def-phonetic {
    font-size: 0.88rem;
    color: var(--color-text-body);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.name-def-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.name-def-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
    border: 1px solid rgba(2, 91, 188, 0.3);
    padding: 0.3rem 0.75rem;
}

.name-def-quote {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--color-text-body);
    line-height: 1.7;
    border-top: 1px solid var(--color-border);
    padding-top: 1.25rem;
    margin: 0;
    text-align: left;
}

/* ----------------------------------------------------------
   STATS STRIP (dark bg row with 4 bordered cells)
   ---------------------------------------------------------- */
.stats-strip {
    padding: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.about-stat {
    padding: 3.5rem 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    transition: background 0.35s ease;
    cursor: default;
}

.about-stat:hover {
    background: rgba(255, 255, 255, 0.04);
}

.stat-big-num {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: 0.6rem;
    letter-spacing: -0.04em;
}

.stat-big-num sup {
    font-size: 0.55em;
    vertical-align: super;
    line-height: 0;
}

.stat-strip-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

/* ----------------------------------------------------------
   02 — WHAT WE DO
   ---------------------------------------------------------- */
.max-w-800 {
    max-width: 800px;
}

.text-block h2 {
    margin-bottom: 2rem;
    text-align: left;
}

/* Body text matches global standard: 1rem, #555, 1.5 line-height */
.text-block p {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.4rem;
    color: var(--color-text-body);
    text-align: left;
}

.text-block strong {
    color: var(--color-navy);
    font-weight: 600;
}

/* ----------------------------------------------------------
   03 — OUR PHILOSOPHY
   ---------------------------------------------------------- */
.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    text-align: left;
    margin-bottom: 0;
}

.philosophy-content p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text-body);
    margin-bottom: 1.25rem;
    text-align: left;
}

.philosophy-content .lead-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    text-align: left;
}

/* Gradient accent text — used on key phrases (force multiplier, evolving systems) */
.text-gradient-accent {
    display: inline;
    position: relative;
    padding-bottom: 2px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #4db8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.45s ease;
}

.philosophy-content:hover .text-gradient-accent::after {
    width: 100%;
}

/* Word-by-word reveal (philosophy lead text) */
.word-reveal {
    display: inline;
    opacity: 0;
    filter: blur(6px);
    transition: opacity 0.5s ease, filter 0.5s ease;
}

.word-reveal.word-visible {
    opacity: 1;
    filter: blur(0);
}

/* ----------------------------------------------------------
   04 — THE PROMISE
   ---------------------------------------------------------- */
.mission-block {
    max-width: 840px;
}

.mission-block h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.mission-block p {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.82);
    text-align: left;
}

.mission-block strong {
    color: var(--color-white);
    font-weight: 600;
}

/* Blockquote — full bordered box, centered quote glyph above */
.highlight-quote {
    position: relative;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-white);
    margin-top: 3rem;
    padding: 2.75rem 3rem 2.5rem;
    background: rgba(2, 91, 188, 0.1);
    border: 1px solid rgba(2, 91, 188, 0.28);
    text-align: left;
    line-height: 1.6;
}

.highlight-quote::before {
    content: '\201C';
    position: absolute;
    top: -2rem;
    left: 2.5rem;
    font-size: 6rem;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.35;
    font-style: normal;
    font-weight: 700;
}

/* ----------------------------------------------------------
   05 — CORE VALUES (interactive row list)
   ---------------------------------------------------------- */
.values-list {
    margin-top: 3rem;
    border-top: 1px solid var(--color-border);
}

/* Each row — hidden by default, JS adds .value-visible */
.value-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.6rem 1rem;
    border-bottom: 1px solid var(--color-border);
    transition: padding-left 0.3s ease,
                border-bottom-color 0.3s ease,
                background 0.3s ease;
    cursor: default;
    opacity: 0;
    transform: translateY(14px);
}

.value-row.value-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease,
                padding-left 0.3s ease, border-bottom-color 0.3s ease, background 0.3s ease;
}

.value-row:hover {
    padding-left: 2rem;
    border-bottom-color: var(--color-primary);
    background: rgba(2, 91, 188, 0.025);
}

/* Number — appears on hover */
.value-num {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--color-primary);
    min-width: 2.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.value-row:hover .value-num {
    opacity: 1;
}

/* Icon */
.value-icon {
    font-size: 1.35rem;
    color: var(--color-primary);
    min-width: 1.75rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.value-row:hover .value-icon {
    transform: scale(1.15) rotate(-5deg);
}

/* Value name */
.value-name {
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--color-navy);
    flex: 1;
    transition: color 0.3s ease;
    text-align: left;
}

.value-row:hover .value-name {
    color: var(--color-primary);
}

/* ----------------------------------------------------------
   CTA SECTION — left-aligned, matching services bottom-cta
   ---------------------------------------------------------- */
.cta-section {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
}

/* Left-aligned heading — matches services page CTA pattern */
.cta-content h2 {
    color: var(--color-white);
    margin-bottom: 2.25rem;
    text-align: left;
}

/* White button — visible on dark/navy CTA background */
.btn-white {
    background-color: var(--color-white);
    color: var(--color-navy);
    border: 1px solid var(--color-white);
    gap: 0.65rem;
}

.btn-white:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Glow — scales on section hover */
.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(2, 91, 188, 0.28) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.cta-section:hover .cta-glow {
    transform: translate(-50%, -50%) scale(1.3);
}

/* ----------------------------------------------------------
   KEYFRAMES (fallbacks in case kaizora.css loads after)
   ---------------------------------------------------------- */
@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0); }
    50%       { transform: translate(10px, -18px); }
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* On mobile the equation goes above the text */
    .split-image {
        order: -1;
    }

    .name-equation {
        max-width: 100%;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .highlight-quote {
        padding: 2.25rem 2rem 2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .page-hero {
        padding-top: 120px;
        padding-bottom: 50px;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    .hero-vision {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .about-stat {
        padding: 2rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .about-stat:last-child {
        border-bottom: none;
    }

    .value-row {
        gap: 1rem;
        padding: 1.25rem 0.5rem;
    }

    .value-num {
        display: none;
    }

    .highlight-quote::before {
        font-size: 4rem;
        top: -1.25rem;
        left: 1.5rem;
    }

    .section-num {
        font-size: clamp(4rem, 20vw, 8rem);
    }

    .name-definition {
        max-width: 100%;
    }

    .name-def-word {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding-top: 110px;
        padding-bottom: 40px;
    }

    .about-section {
        padding: 3.5rem 0;
    }

    .highlight-quote {
        padding: 1.5rem 1.25rem 1.25rem;
        font-size: 1rem;
    }

    .name-def-word {
        font-size: 2rem;
    }
}
