/* ============================================================
   CUBIC — INNER PAGE STYLES
   Append this block to the end of /assets/css/style.css
   ============================================================ */


/* ============================================
   PAGE HERO (Inner page banner)
   ============================================ */
.page-hero {
    position: relative;
    padding: calc(var(--navbar-h) + 4rem) 0 5rem;
    background: linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
    color: var(--c-white);
    overflow: hidden;
    isolation: isolate;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.page-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, #000 30%, transparent 80%);
}

.page-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}
.page-hero__glow--1 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, var(--c-green) 0%, transparent 70%);
    top: -120px; left: -80px;
}
.page-hero__glow--2 {
    width: 360px; height: 360px;
    background: radial-gradient(circle, var(--c-green-light) 0%, transparent 70%);
    bottom: -100px; right: -60px;
    opacity: 0.25;
}

.page-hero__shape {
    position: absolute;
    border-radius: 16px;
    border: 1px solid rgba(29,178,89,0.15);
    background: rgba(29,178,89,0.02);
    animation: pageHeroFloat 14s ease-in-out infinite;
}
.page-hero__shape--1 {
    width: 60px; height: 60px;
    top: 25%; right: 8%;
    transform: rotate(15deg);
}
.page-hero__shape--2 {
    width: 40px; height: 40px;
    top: 65%; left: 6%;
    transform: rotate(-20deg);
    animation-delay: -4s;
}
.page-hero__shape--3 {
    width: 80px; height: 80px;
    top: 45%; right: 18%;
    transform: rotate(35deg);
    border-radius: 50%;
    animation-delay: -8s;
}

@keyframes pageHeroFloat {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50%      { transform: translateY(-20px) rotate(var(--r, 0deg)); }
}

.page-hero__container {
    position: relative;
    text-align: center;
    max-width: 860px;
}

.page-hero__crumbs {
    margin-bottom: 2rem;
}
.page-hero__crumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0;
    margin: 0;
    font-size: var(--fs-sm);
}
.page-hero__crumbs li {
    display: inline-flex;
    align-items: center;
    color: var(--c-grey-400);
}
.page-hero__crumbs a {
    color: var(--c-grey-300);
    text-decoration: none;
    transition: color var(--t-fast) var(--ease-out);
}
.page-hero__crumbs a:hover { color: var(--c-green-light); }
.page-hero__crumbs span[aria-current] { color: var(--c-white); }
.page-hero__crumbs-sep {
    color: var(--c-grey-600);
    line-height: 0;
}

.page-hero__eyebrow {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-green-light);
    margin-bottom: 1.25rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(29,178,89,0.3);
    border-radius: var(--r-full);
    background: rgba(29,178,89,0.08);
}

.page-hero__title {
    font-size: clamp(2.25rem, 5vw, var(--fs-5xl));
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 1.5rem;
    color: var(--c-white);
}
.page-hero__title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--c-green) 0%, var(--c-green-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.page-hero__subtitle {
    font-size: var(--fs-md);
    line-height: 1.7;
    color: var(--c-grey-300);
    max-width: 640px;
    margin: 0 auto;
}


/* ============================================
   PAGE CONTENT — Generic inner-page sections
   ============================================ */
.page-section {
    padding: var(--section-py) 0;
    position: relative;
}
.page-section--alt {
    background: var(--c-bg-alt);
}
.page-section--dark {
    background: var(--c-grey-900);
    color: var(--c-white);
}

.page-intro {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.page-intro__title {
    font-size: clamp(1.75rem, 3.5vw, var(--fs-3xl));
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: var(--c-text);
}
.page-intro__title em {
    font-style: normal;
    color: var(--c-green);
}
.page-intro__text {
    font-size: var(--fs-md);
    line-height: 1.75;
    color: var(--c-text-light);
}

/* Points grid — generic 3-up feature grid for inner pages */
.points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
}
.point {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 2rem;
    transition: transform var(--t-base) var(--ease-out),
                box-shadow var(--t-base) var(--ease-out),
                border-color var(--t-base) var(--ease-out);
}
.point:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(29,178,89,0.2);
}
.point__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    background: var(--c-green-bg);
    color: var(--c-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.point__title {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--c-text);
}
.point__desc {
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--c-text-light);
}

/* Coming-soon notice — used on truly empty placeholder pages */
.coming-soon-note {
    margin-top: 3rem;
    padding: 1.25rem 1.5rem;
    background: var(--c-green-bg-subtle);
    border: 1px dashed rgba(29,178,89,0.35);
    border-radius: var(--r-md);
    color: var(--c-grey-700);
    font-size: var(--fs-sm);
    line-height: 1.6;
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.coming-soon-note strong {
    color: var(--c-green-dark);
    font-weight: 600;
}

/* Inline CTA strip — dark immersive, matches homepage .cta */
.cta-strip {
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(29, 178, 89, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 85% 80%, rgba(10, 228, 71, 0.12) 0%, transparent 55%),
        linear-gradient(135deg, #0a0d0b 0%, #141916 50%, #0a0d0b 100%);
    color: var(--c-white);
    border-radius: 20px;
    padding: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 5vw, 4rem);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.18),
        0 8px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Subtle accent line at top - brand signature */
.cta-strip::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(29, 178, 89, 0.5) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* Floating cube shapes — brand signature inspired by hero */
.cta-strip__shape {
    position: absolute;
    border: 1px solid rgba(29, 178, 89, 0.2);
    border-radius: 4px;
    animation: cubeDrift 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.cta-strip__shape--1 {
    width: 80px;
    height: 80px;
    top: 12%;
    left: 6%;
    transform: rotate(18deg);
    background: rgba(29, 178, 89, 0.05);
    animation-delay: 0s;
}

.cta-strip__shape--2 {
    width: 50px;
    height: 50px;
    top: 22%;
    right: 8%;
    transform: rotate(-15deg);
    background: rgba(10, 228, 71, 0.04);
    border-color: rgba(10, 228, 71, 0.18);
    animation-delay: -5s;
}

.cta-strip__shape--3 {
    width: 110px;
    height: 110px;
    bottom: 15%;
    left: 10%;
    transform: rotate(35deg);
    border-radius: 8px;
    background: rgba(29, 178, 89, 0.04);
    border-color: rgba(29, 178, 89, 0.15);
    animation-delay: -10s;
}

.cta-strip__shape--4 {
    width: 65px;
    height: 65px;
    bottom: 22%;
    right: 5%;
    transform: rotate(-22deg);
    background: rgba(29, 178, 89, 0.05);
    animation-delay: -15s;
}

.cta-strip__shape--5 {
    width: 35px;
    height: 35px;
    top: 50%;
    left: 38%;
    transform: rotate(28deg);
    background: rgba(10, 228, 71, 0.03);
    border-color: rgba(10, 228, 71, 0.12);
    animation-delay: -8s;
}

.cta-strip__shape--6 {
    width: 45px;
    height: 45px;
    top: 60%;
    right: 32%;
    transform: rotate(-12deg);
    background: rgba(29, 178, 89, 0.04);
    border-color: rgba(29, 178, 89, 0.14);
    animation-delay: -3s;
}

@keyframes cubeDrift {
    0%, 100% {
        transform: translateY(0) rotate(var(--rot, 18deg));
    }
    25% {
        transform: translateY(-12px) rotate(calc(var(--rot, 18deg) + 4deg));
    }
    50% {
        transform: translateY(8px) rotate(calc(var(--rot, 18deg) - 2deg));
    }
    75% {
        transform: translateY(-8px) rotate(calc(var(--rot, 18deg) + 2deg));
    }
}

/* Set custom property per shape so the rotation stays consistent during animation */
.cta-strip__shape--1 { --rot: 18deg; }
.cta-strip__shape--2 { --rot: -15deg; }
.cta-strip__shape--3 { --rot: 35deg; }
.cta-strip__shape--4 { --rot: -22deg; }
.cta-strip__shape--5 { --rot: 28deg; }
.cta-strip__shape--6 { --rot: -12deg; }

.cta-strip__title {
    font-family: 'Rubik', sans-serif;
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: var(--sp-4);
    position: relative;
    z-index: 2;
    color: var(--c-white);
    max-width: 24ch;
    text-align: center;
}

.cta-strip__title em {
    color: var(--c-green-light);
    font-style: normal;
    font-weight: 700;
}

.cta-strip__desc {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: var(--sp-9);
    max-width: 600px;
    position: relative;
    z-index: 2;
    letter-spacing: -0.005em;
    text-align: center;
}

.cta-strip__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Primary button - sits proud on the dark surface */
.cta-strip__actions .btn--primary {
    padding: 16px 32px;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: var(--c-green);
    color: var(--c-white);
    border: none;
    border-radius: 8px;
    box-shadow:
        0 8px 24px rgba(29, 178, 89, 0.35),
        0 2px 6px rgba(29, 178, 89, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-strip__actions .btn--primary:hover {
    background: var(--c-green-light);
    transform: translateY(-2px);
    box-shadow:
        0 16px 36px rgba(29, 178, 89, 0.45),
        0 4px 10px rgba(29, 178, 89, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Secondary - outlined on dark surface, refined */
.cta-strip__actions .btn--ghost {
    padding: 16px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: transparent;
    color: var(--c-white);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-strip__actions .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .cta-strip__actions {
        flex-direction: column;
        width: 100%;
    }
    .cta-strip__actions .btn--primary,
    .cta-strip__actions .btn--ghost {
        width: 100%;
        justify-content: center;
    }
    /* Hide smaller cubes on mobile to reduce visual noise */
    .cta-strip__shape--5,
    .cta-strip__shape--6 {
        display: none;
    }
    .cta-strip__shape--1,
    .cta-strip__shape--3 {
        width: 60px;
        height: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cta-strip__shape {
        animation: none;
    }
}

/* Legal pages — long-form prose */
.legal-prose {
    max-width: 760px;
    margin: 0 auto;
    font-size: var(--fs-base);
    line-height: 1.8;
    color: var(--c-text);
}
.legal-prose h2 {
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--c-text);
    margin-top: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose h3 {
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--c-text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.legal-prose p {
    margin-bottom: 1.25rem;
    color: var(--c-text-light);
}
.legal-prose ul, .legal-prose ol {
    margin: 0 0 1.5rem 1.5rem;
    color: var(--c-text-light);
}
.legal-prose ul li, .legal-prose ol li {
    margin-bottom: 0.5rem;
}
.legal-prose a {
    color: var(--c-green-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.legal-prose a:hover { color: var(--c-green); }
.legal-prose__updated {
    display: inline-block;
    font-size: var(--fs-sm);
    color: var(--c-text-lighter);
    padding: 0.4rem 0.9rem;
    background: var(--c-bg-alt);
    border-radius: var(--r-full);
    margin-bottom: 2.5rem;
}

/* Login / utility form pages */
.auth-card {
    max-width: 440px;
    margin: 0 auto;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: clamp(2rem, 5vw, 3rem);
    box-shadow: var(--shadow-md);
}
.auth-field {
    margin-bottom: 1.25rem;
}
.auth-field label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--c-text);
    margin-bottom: 0.5rem;
}
.auth-field input {
    width: 100%;
    padding: 0.85rem 1rem;
    font: inherit;
    font-size: var(--fs-base);
    color: var(--c-text);
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    transition: border-color var(--t-fast) var(--ease-out),
                box-shadow var(--t-fast) var(--ease-out);
}
.auth-field input:focus {
    outline: none;
    border-color: var(--c-green);
    box-shadow: 0 0 0 3px rgba(29,178,89,0.12);
}
.auth-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-sm);
    margin-bottom: 1.5rem;
}
.auth-card__row a {
    color: var(--c-green-dark);
    text-decoration: none;
}
.auth-card__row a:hover { text-decoration: underline; }
.auth-card__footer {
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--c-text-light);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--c-border);
}

/* Contact page split layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 880px) {
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.contact-info__item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--c-border);
}
.contact-info__item:last-child { border-bottom: none; }
.contact-info__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: var(--c-green-bg);
    color: var(--c-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.contact-info__label {
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-text-lighter);
    margin-bottom: 0.25rem;
}
.contact-info__value {
    font-size: var(--fs-base);
    color: var(--c-text);
    font-weight: 500;
}
.contact-info__value a {
    color: inherit;
    text-decoration: none;
}
.contact-info__value a:hover { color: var(--c-green-dark); }

.contact-form {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-sm);
}
.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) {
    .contact-form__row { grid-template-columns: 1fr; }
}
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font: inherit;
    color: var(--c-text);
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    min-height: 140px;
    resize: vertical;
    transition: border-color var(--t-fast) var(--ease-out),
                box-shadow var(--t-fast) var(--ease-out);
}
.contact-form textarea:focus {
    outline: none;
    border-color: var(--c-green);
    box-shadow: 0 0 0 3px rgba(29,178,89,0.12);
}
