/* =====================================================
   CREATIVE LAYOUTS
   Replaces flat card grids with editorial / spatial /
   timeline / orbital arrangements.
   ===================================================== */


/* =============================================================
   1. CORE VALUES - "MANIFESTO" NUMBERED HORIZONTAL STRIPES
   ============================================================= */
.values-manifesto {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    counter-reset: manifesto;
}

.manifesto-row {
    --m-accent-a: #facc15;
    --m-accent-b: #f59e0b;
    counter-increment: manifesto;
    position: relative;
    display: grid;
    grid-template-columns: 110px 64px 1fr;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 2rem 2rem 1.5rem;
    border-radius: 22px;
    background: linear-gradient(110deg,
        rgba(15, 23, 42, 0.78) 0%,
        rgba(15, 23, 42, 0.55) 60%,
        rgba(15, 23, 42, 0.35) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease,
                box-shadow 0.35s ease;
}

.manifesto-row[data-accent="gold"]   { --m-accent-a: #facc15; --m-accent-b: #f59e0b; }
.manifesto-row[data-accent="blue"]   { --m-accent-a: #60a5fa; --m-accent-b: #2563eb; }
.manifesto-row[data-accent="purple"] { --m-accent-a: #c084fc; --m-accent-b: #9333ea; }
.manifesto-row[data-accent="green"]  { --m-accent-a: #4ade80; --m-accent-b: #16a34a; }
.manifesto-row[data-accent="red"]    { --m-accent-a: #f87171; --m-accent-b: #dc2626; }

/* Massive watermark number */
.manifesto-row::before {
    content: counter(manifesto, decimal-leading-zero);
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(7rem, 14vw, 11rem);
    font-weight: 900;
    line-height: 0.85;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--m-accent-a) 40%, transparent),
        color-mix(in srgb, var(--m-accent-b) 25%, transparent));
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -0.06em;
    pointer-events: none;
    opacity: 0.35;
    z-index: 0;
}

/* Vertical accent rail */
.manifesto-row::after {
    content: '';
    position: absolute;
    right: 0;
    top: 12%;
    bottom: 12%;
    width: 3px;
    background: linear-gradient(180deg, var(--m-accent-a), var(--m-accent-b));
    border-radius: 3px;
    opacity: 0.3;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.manifesto-row:hover {
    transform: translateX(8px);
    border-color: color-mix(in srgb, var(--m-accent-a) 35%, transparent);
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.45),
        0 0 36px color-mix(in srgb, var(--m-accent-a) 15%, transparent);
}
.manifesto-row:hover::after {
    opacity: 1;
    transform: scaleY(1.08);
}

.manifesto-icon {
    grid-column: 2;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--m-accent-a) 35%, transparent),
        color-mix(in srgb, var(--m-accent-b) 28%, transparent));
    border: 1px solid color-mix(in srgb, var(--m-accent-a) 40%, transparent);
    color: #fff;
    font-size: 1.5rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 8px 22px rgba(0, 0, 0, 0.3);
    z-index: 1;
}
.manifesto-icon i {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    line-height: 1;
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--m-accent-a) 60%, transparent));
}

.manifesto-body {
    grid-column: 3;
    z-index: 1;
    min-width: 0;
}
.manifesto-body h4 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}
.manifesto-body p {
    margin: 0;
    color: rgba(229, 231, 235, 0.72);
    font-size: 0.98rem;
    line-height: 1.65;
    max-width: 720px;
}

@media (max-width: 720px) {
    .manifesto-row {
        grid-template-columns: 56px 1fr;
        padding: 1.5rem 1.25rem;
        gap: 1rem;
    }
    .manifesto-row::before {
        font-size: 5rem;
        opacity: 0.25;
        left: -0.6rem;
    }
    .manifesto-icon {
        grid-column: 1;
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }
    .manifesto-body { grid-column: 2; }
}


/* =============================================================
   2. APPS / PROCESS - CONNECTED VERTICAL TIMELINE
   ============================================================= */
.process-rail {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    padding: 2rem 0;
    max-width: 940px;
    margin: 0 auto;
}

/* Glowing central rail */
.process-rail::before {
    content: '';
    position: absolute;
    left: 49px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
        transparent,
        rgba(250, 204, 21, 0.5) 8%,
        rgba(96, 165, 250, 0.5) 50%,
        rgba(168, 85, 247, 0.5) 92%,
        transparent);
    box-shadow: 0 0 22px rgba(250, 204, 21, 0.25);
    border-radius: 2px;
}

.process-node {
    --pn-accent-a: #facc15;
    --pn-accent-b: #f59e0b;
    position: relative;
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: flex-start;
    gap: 1.75rem;
    padding-left: 0;
}

.process-node[data-accent="gold"]   { --pn-accent-a: #facc15; --pn-accent-b: #f59e0b; }
.process-node[data-accent="blue"]   { --pn-accent-a: #60a5fa; --pn-accent-b: #2563eb; }
.process-node[data-accent="purple"] { --pn-accent-a: #c084fc; --pn-accent-b: #9333ea; }
.process-node[data-accent="green"]  { --pn-accent-a: #4ade80; --pn-accent-b: #16a34a; }
.process-node[data-accent="red"]    { --pn-accent-a: #f87171; --pn-accent-b: #dc2626; }
.process-node[data-accent="cyan"]   { --pn-accent-a: #22d3ee; --pn-accent-b: #0891b2; }

.process-node-marker {
    position: relative;
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.process-node-dot {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pn-accent-a), var(--pn-accent-b));
    color: #0b1020;
    font-size: 1.4rem;
    box-shadow:
        0 0 0 6px rgba(15, 23, 42, 1),
        0 0 0 7px color-mix(in srgb, var(--pn-accent-a) 35%, transparent),
        0 12px 32px color-mix(in srgb, var(--pn-accent-a) 28%, transparent);
    position: relative;
    z-index: 2;
}
.process-node-dot i {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: #0b1020;
    text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

.process-node-num {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: color-mix(in srgb, var(--pn-accent-a) 80%, white);
    text-transform: uppercase;
}

.process-node-content {
    background: linear-gradient(155deg, rgba(15, 23, 42, 0.78), rgba(8, 14, 38, 0.55));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 1.6rem 1.75rem;
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Connector arrow from rail to content card */
.process-node-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 22px;
    width: 18px;
    height: 18px;
    background: inherit;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transform: rotate(45deg);
    z-index: -1;
}

.process-node:hover .process-node-content {
    transform: translateX(6px);
    border-color: color-mix(in srgb, var(--pn-accent-a) 35%, transparent);
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.5),
        0 0 36px color-mix(in srgb, var(--pn-accent-a) 18%, transparent);
}

.process-node-content h3 {
    margin: 0 0 0.55rem;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.process-node-content p {
    margin: 0;
    color: rgba(229, 231, 235, 0.72);
    line-height: 1.65;
}

@media (max-width: 720px) {
    .process-rail::before { left: 31px; }
    .process-node { grid-template-columns: 64px 1fr; gap: 1rem; }
    .process-node-marker { width: 64px; }
    .process-node-dot { width: 50px; height: 50px; font-size: 1.15rem; }
    .process-node-num { font-size: 0.65rem; }
}


/* =============================================================
   3. APPS / PLATFORMS - DEVICE-FRAME TRIPTYCH
   ============================================================= */
.platform-triptych {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: stretch;
}

.device-pillar {
    --d-accent-a: #facc15;
    --d-accent-b: #f59e0b;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.75rem 2rem;
    border-radius: 28px;
    background:
        radial-gradient(ellipse at top, color-mix(in srgb, var(--d-accent-a) 12%, transparent), transparent 55%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.85), rgba(8, 14, 38, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease,
                box-shadow 0.35s ease;
}

.device-pillar[data-accent="apple"]   { --d-accent-a: #e5e7eb; --d-accent-b: #94a3b8; }
.device-pillar[data-accent="android"] { --d-accent-a: #34d399; --d-accent-b: #059669; }
.device-pillar[data-accent="cross"]   { --d-accent-a: #c084fc; --d-accent-b: #9333ea; }

.device-pillar:hover {
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--d-accent-a) 35%, transparent);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 50px color-mix(in srgb, var(--d-accent-a) 20%, transparent);
}

/* Stylised phone frame */
.device-frame {
    position: relative;
    margin: 0 auto;
    width: 140px;
    height: 220px;
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
    border: 2px solid color-mix(in srgb, var(--d-accent-a) 45%, transparent);
    padding: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 18px 38px rgba(0, 0, 0, 0.45),
        0 0 30px color-mix(in srgb, var(--d-accent-a) 20%, transparent);
}

.device-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 6px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 3px;
    z-index: 2;
}

.device-screen {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--d-accent-a) 35%, transparent), transparent 55%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(8, 14, 38, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.device-screen i {
    font-size: 3.5rem;
    color: #fff;
    filter: drop-shadow(0 0 18px color-mix(in srgb, var(--d-accent-a) 75%, transparent));
}

/* Animated scan line on the screen */
.device-screen::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -30%;
    height: 30%;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--d-accent-a) 40%, transparent), transparent);
    animation: dp-scan 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes dp-scan {
    0%, 15% { top: -30%; opacity: 0; }
    25%     { opacity: 1; }
    75%     { opacity: 1; }
    85%     { top: 100%; opacity: 0; }
    100%    { top: 100%; opacity: 0; }
}

.device-pillar h3 {
    margin: 0;
    text-align: center;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.device-pillar > p {
    margin: 0;
    text-align: center;
    color: rgba(229, 231, 235, 0.72);
    line-height: 1.6;
}

.device-features {
    list-style: none;
    margin: 0;
    padding: 1.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.device-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(229, 231, 235, 0.85);
    font-size: 0.92rem;
    font-weight: 500;
}
.device-features li i {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    background: linear-gradient(135deg, var(--d-accent-a), var(--d-accent-b));
    color: #0b1020;
}
.device-features li i::before {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .platform-triptych { grid-template-columns: 1fr; }
}


/* =============================================================
   4. APPS / MONETIZATION - ORBITAL HUB
   ============================================================= */
.monetize-orbit {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

/* Center hub */
.monetize-hub {
    grid-column: 2;
    grid-row: 2;
    width: clamp(180px, 22vw, 240px);
    height: clamp(180px, 22vw, 240px);
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(250, 204, 21, 0.45), transparent 60%),
        linear-gradient(135deg, rgba(250, 204, 21, 0.25), rgba(245, 158, 11, 0.18));
    border: 1px solid rgba(250, 204, 21, 0.4);
    box-shadow:
        0 0 0 8px rgba(250, 204, 21, 0.06),
        0 0 60px rgba(250, 204, 21, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #fff;
    position: relative;
    isolation: isolate;
}
.monetize-hub::before {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 1px dashed rgba(250, 204, 21, 0.25);
    animation: orbit-spin 22s linear infinite;
    pointer-events: none;
}
.monetize-hub::after {
    content: '';
    position: absolute;
    inset: -32px;
    border-radius: 50%;
    border: 1px solid rgba(250, 204, 21, 0.12);
    animation: orbit-spin 38s linear infinite reverse;
    pointer-events: none;
}
@keyframes orbit-spin {
    to { transform: rotate(360deg); }
}

.monetize-hub i {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 18px rgba(250, 204, 21, 0.7));
}
.monetize-hub strong {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.monetize-hub span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.25rem;
}

/* Orbit cards: 6 nodes positioned around the hub via grid */
.monetize-node {
    --o-accent-a: #facc15;
    --o-accent-b: #f59e0b;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(15, 23, 42, 0.82), rgba(8, 14, 38, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.monetize-node[data-accent="green"]  { --o-accent-a: #4ade80; --o-accent-b: #16a34a; }
.monetize-node[data-accent="purple"] { --o-accent-a: #c084fc; --o-accent-b: #9333ea; }
.monetize-node[data-accent="blue"]   { --o-accent-a: #60a5fa; --o-accent-b: #2563eb; }
.monetize-node[data-accent="cyan"]   { --o-accent-a: #22d3ee; --o-accent-b: #0891b2; }
.monetize-node[data-accent="red"]    { --o-accent-a: #f87171; --o-accent-b: #dc2626; }
.monetize-node[data-accent="gold"]   { --o-accent-a: #facc15; --o-accent-b: #f59e0b; }

.monetize-node:hover {
    transform: scale(1.04);
    border-color: color-mix(in srgb, var(--o-accent-a) 40%, transparent);
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.5),
        0 0 30px color-mix(in srgb, var(--o-accent-a) 22%, transparent);
}

.monetize-node-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--o-accent-a) 60%, transparent),
        color-mix(in srgb, var(--o-accent-b) 50%, transparent));
    border: 1px solid color-mix(in srgb, var(--o-accent-a) 45%, transparent);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.monetize-node-icon i {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.monetize-node-body { min-width: 0; }
.monetize-node-body strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}
.monetize-node-body span {
    display: block;
    color: rgba(229, 231, 235, 0.7);
    font-size: 0.85rem;
    line-height: 1.45;
}

/* 6 nodes: 3 left column, 3 right column, each with own row */
.monetize-orbit { grid-template-rows: auto auto auto; }
.monetize-node--1 { grid-column: 1; grid-row: 1; }
.monetize-node--2 { grid-column: 3; grid-row: 1; }
.monetize-node--3 { grid-column: 1; grid-row: 2; }
.monetize-node--4 { grid-column: 3; grid-row: 2; }
.monetize-node--5 { grid-column: 1; grid-row: 3; }
.monetize-node--6 { grid-column: 3; grid-row: 3; }

/* SVG orbit lines connecting nodes to hub (purely decorative) */
.monetize-orbit-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 900px) {
    .monetize-orbit {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1rem;
    }
    .monetize-hub {
        grid-column: 1;
        grid-row: auto;
        order: -1;
        margin-bottom: 1rem;
    }
    .monetize-node--1, .monetize-node--2, .monetize-node--3,
    .monetize-node--4, .monetize-node--5, .monetize-node--6 {
        grid-column: 1;
        grid-row: auto;
    }
    .monetize-orbit-lines { display: none; }
}
