/* ============================================================
   IPO PAGE — UNIQUE DESIGN SYSTEM (ipo- prefix)
   Vertical rail tab-switcher + animated document grid.
   Accent color: green only. Backgrounds stay neutral/white.
   ============================================================ */

:root {
    --ipo-green: #0F9D58;
    --ipo-green-dark: #0B7A44;
    --ipo-green-deep: #063D24;
    --ipo-green-light: #EAF8F0;
    --ipo-green-glow: rgba(15, 157, 88, .18);
    --ipo-ink: var(--tf-black, #0A0A0A);
    --ipo-grey: var(--tf-grey, #888888);
    --ipo-line: rgba(10, 10, 10, .09);
    --ipo-radius: 20px;
    --ipo-radius-sm: 12px;
    --ipo-ease: cubic-bezier(.4, 0, .2, 1);
}

.ipo-page { overflow-x: hidden; }

/* ============================================================
   1. HERO — ipo-hero (dark neutral banner, green glow accents only)
   ============================================================ */
.ipo-hero {
    position: relative;
    padding: 150px 0 60px;
    background: linear-gradient(150deg, #0A0A0A 0%, #161616 70%);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.ipo-hero__panel {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(560px 320px at 90% -10%, var(--ipo-green-glow), transparent 70%),
        radial-gradient(420px 260px at 6% 120%, rgba(15, 157, 88, .12), transparent 70%);
    z-index: -2;
}

.ipo-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(circle at 80% 0%, #000 0%, transparent 65%);
            mask-image: radial-gradient(circle at 80% 0%, #000 0%, transparent 65%);
    z-index: -1;
}

.ipo-hero__crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 22px;
    opacity: 0;
    animation: ipoFadeUp .7s var(--ipo-ease) forwards;
}

.ipo-hero__crumb a { color: rgba(255, 255, 255, .8); text-decoration: none; transition: color .25s; }
.ipo-hero__crumb a:hover { color: var(--ipo-green); }
.ipo-hero__crumb span { color: var(--ipo-green); }
.ipo-hero__crumb-sep { color: rgba(255, 255, 255, .3); }

.ipo-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ipo-green);
    background: rgba(15, 157, 88, .1);
    border: 1px solid rgba(15, 157, 88, .3);
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
    opacity: 0;
    animation: ipoFadeUp .7s var(--ipo-ease) .1s forwards;
}
.ipo-hero__eyebrow i { font-size: 13px; }

.ipo-hero__title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 14px;
    opacity: 0;
    animation: ipoFadeUp .7s var(--ipo-ease) .18s forwards;
}
.ipo-hero__title span { color: var(--ipo-green); }

.ipo-hero__sub {
    max-width: 620px;
    color: rgba(255, 255, 255, .62);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    opacity: 0;
    animation: ipoFadeUp .7s var(--ipo-ease) .26s forwards;
}

@keyframes ipoFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   2. MAIN SECTION — ipo-section
   ============================================================ */
.ipo-section {
    padding: 60px 0 60px;
    background: #fff;
}

/* ---------- Sidebar rail (col-lg-4) ---------- */
.ipo-rail-col { margin-bottom: 40px; }

.ipo-rail {
    position: sticky;
    top: 110px;
    background: #fff;
    border: 1px solid var(--ipo-line);
    border-radius: var(--ipo-radius);
    padding: 14px;
    box-shadow: 0 10px 40px rgba(10, 10, 10, .05);
}

.ipo-rail__head {
    padding: 14px 14px 16px;
    border-bottom: 1px solid var(--ipo-line);
    margin-bottom: 10px;
}

.ipo-rail__head-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ipo-green);
}

.ipo-rail__head h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--ipo-ink);
    margin: 4px 0 0;
}

.ipo-tab-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ipo-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: var(--ipo-radius-sm);
    padding: 15px 16px;
    cursor: pointer;
    color: var(--ipo-ink);
    font-family: var(--tf-font, inherit);
    transition: background .3s var(--ipo-ease), transform .3s var(--ipo-ease);
    overflow: hidden;
}

.ipo-tab::before {
    content: "";
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 3px;
    border-radius: 3px;
    background: var(--ipo-green);
    transform: scaleY(0);
    transition: transform .3s var(--ipo-ease);
}

.ipo-tab:hover { background: var(--ipo-green-light); transform: translateX(3px); }

.ipo-tab__icon {
    flex: none;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #F4F4F4;
    color: var(--ipo-grey);
    font-size: 18px;
    transition: all .3s var(--ipo-ease);
}

.ipo-tab__body { flex: 1; min-width: 0; }

.ipo-tab__label {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ipo-ink);
}

.ipo-tab__hint {
    display: block;
    font-size: 12px;
    color: var(--ipo-grey);
    margin-top: 2px;
    transition: color .3s;
}

.ipo-tab__arrow {
    flex: none;
    font-size: 14px;
    color: var(--ipo-grey);
    opacity: 0;
    transform: translateX(-6px);
    transition: all .3s var(--ipo-ease);
}

.ipo-tab:hover .ipo-tab__arrow { opacity: .5; transform: translateX(0); }

.ipo-tab.is-active { background: var(--ipo-green-light); }
.ipo-tab.is-active::before { transform: scaleY(1); }
.ipo-tab.is-active .ipo-tab__icon {
    background: var(--ipo-green);
    color: #fff;
    box-shadow: 0 8px 18px var(--ipo-green-glow);
}
.ipo-tab.is-active .ipo-tab__label { color: var(--ipo-green-dark); }
.ipo-tab.is-active .ipo-tab__arrow { opacity: 1; transform: translateX(0); color: var(--ipo-green); }

/* ---------- Content column (col-lg-8) ---------- */
.ipo-panels { position: relative; }

.ipo-panel {
    display: none;
    animation: ipoPanelIn .5s var(--ipo-ease);
}
.ipo-panel.is-active { display: block; }

@keyframes ipoPanelIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ipo-panel__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ipo-green);
    margin-bottom: 14px;
}
.ipo-panel__tag i { font-size: 14px; }

.ipo-panel__title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--ipo-ink);
    margin: 0 0 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ipo-line);
}

.ipo-panel__desc {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    max-width: 700px;
    margin: 0 0 34px;
}

.ipo-panel__subtitle {
    font-size: 19px;
    font-weight: 700;
    color: var(--ipo-ink);
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ipo-panel__subtitle::before {
    content: "";
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: var(--ipo-green);
    display: inline-block;
}

/* ---------- Feature grid (row / col-lg-6) ---------- */
.ipo-feature-row { --bs-gutter-x: 18px; row-gap: 18px; }

.ipo-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    height: 100%;
    background: #fff;
    border: 1px solid var(--ipo-line);
    border-radius: var(--ipo-radius-sm);
    padding: 18px 18px;
    transition: transform .3s var(--ipo-ease), border-color .3s, box-shadow .3s;
}

.ipo-feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--ipo-green);
    box-shadow: 0 14px 30px var(--ipo-green-glow);
}

.ipo-feature-card__icon {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ipo-green-light);
    color: var(--ipo-green-dark);
    font-size: 16px;
    transition: all .3s var(--ipo-ease);
}

.ipo-feature-card:hover .ipo-feature-card__icon {
    background: var(--ipo-green);
    color: #fff;
    transform: rotate(-8deg) scale(1.06);
}

.ipo-feature-card__text {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ipo-ink);
    margin-top: 2px;
}

/* ---------- Document grid (Material Contracts) ---------- */
.ipo-doc-row { --bs-gutter-x: 16px; row-gap: 16px; }

.ipo-doc-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    background: #fff;
    border: 1px solid var(--ipo-line);
    border-radius: var(--ipo-radius-sm);
    padding: 15px 16px;
    transition: transform .3s var(--ipo-ease), border-color .3s, box-shadow .3s, background .3s;
    overflow: hidden;
}

.ipo-doc-card::after {
    content: "";
    position: absolute;
    right: -30px; top: -30px;
    width: 70px; height: 70px;
    background: var(--ipo-green);
    border-radius: 50%;
    opacity: 0;
    transition: opacity .35s var(--ipo-ease), transform .35s var(--ipo-ease);
    transform: scale(.4);
    filter: blur(2px);
}

.ipo-doc-card:hover {
    transform: translateY(-3px);
    border-color: var(--ipo-green);
    background: var(--ipo-green-light);
    box-shadow: 0 12px 26px var(--ipo-green-glow);
}
.ipo-doc-card:hover::after { opacity: .12; transform: scale(1); }

.ipo-doc-card__num {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--ipo-green-dark);
    background: var(--ipo-green-light);
    border: 1px solid rgba(15, 157, 88, .25);
    transition: all .3s var(--ipo-ease);
    z-index: 1;
}
.ipo-doc-card:hover .ipo-doc-card__num {
    background: var(--ipo-green);
    color: #fff;
    border-color: var(--ipo-green);
}

.ipo-doc-card__icon {
    flex: none;
    font-size: 17px;
    color: var(--ipo-grey);
    transition: color .3s;
    z-index: 1;
}
.ipo-doc-card:hover .ipo-doc-card__icon { color: var(--ipo-green-dark); }

.ipo-doc-card__text {
    font-size: 14px;
    font-weight: 600;
    color: var(--ipo-ink);
    line-height: 1.4;
    z-index: 1;
}

.ipo-doc-card__go {
    margin-left: auto;
    flex: none;
    font-size: 13px;
    color: var(--ipo-grey);
    opacity: 0;
    transform: translateX(-6px);
    transition: all .3s var(--ipo-ease);
    z-index: 1;
}
.ipo-doc-card:hover .ipo-doc-card__go {
    opacity: 1;
    transform: translateX(0);
    color: var(--ipo-green);
}

/* ---------- Panel footer note ---------- */
.ipo-panel__note {
    margin-top: 34px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--ipo-green-light);
    border: 1px dashed rgba(15, 157, 88, .4);
    border-radius: var(--ipo-radius-sm);
    padding: 16px 18px;
    font-size: 13.5px;
    color: var(--ipo-green-deep);
}
.ipo-panel__note i { font-size: 18px; color: var(--ipo-green); flex: none; }

/* ============================================================
   3. Scroll reveal
   ============================================================ */
.ipo-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ipo-ease), transform .7s var(--ipo-ease);
}
.ipo-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   4. Responsive
   ============================================================ */
@media (max-width: 991.98px) {
    .ipo-hero { padding: 130px 0 50px; }
    .ipo-rail {
        position: relative;
        top: 0;
    }
    .ipo-tab-list { flex-direction: row; flex-wrap: wrap; }
    .ipo-tab { width: auto; flex: 1 1 auto; padding: 12px 14px; }
    .ipo-tab__hint { display: none; }
    .ipo-rail__head { text-align: center; }
}

@media (max-width: 767.98px) {
    .ipo-section { padding: 60px 0 70px; }
    .ipo-tab { flex: 1 1 100%; }
    .ipo-panel__title { padding-bottom: 14px; }
    .ipo-doc-card, .ipo-feature-card { padding: 14px; }
}
