/* 
 * WPS AI Inner Page Styles 
 * Inheriting Home Visual Contract: Dark theme, high contrast tech framework
 */

:root {
    --color-bg-base: #050505;
    --color-bg-surface: #121212;
    --color-bg-elevated: #1a1a1a;
    --color-accent: #22b7d8;
    --color-accent-dim: rgba(34, 183, 216, 0.15);
    --color-accent-hover: #1e9fc2;
    --color-ink-primary: #f5f5f7;
    --color-ink-secondary: #a1a1a6;
    --color-ink-tertiary: #6e6e73;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    
    --shadow-surface: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --shadow-elevated: 0 24px 64px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    --shadow-accent: 0 4px 12px rgba(34, 183, 216, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    
    --transition-base: 0.25s ease;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-stack);
    background-color: var(--color-bg-base);
    color: var(--color-ink-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Base Constraints */
.vault, .stage, .tray, .folder, .casing {
    word-break: break-word;
    overflow-wrap: break-word;
}
.head-xl, .head-lg, .head-md {
    white-space: normal;
    word-break: keep-all;
    margin: 0;
}
p {
    margin: 0;
}

/* Typography Hierarchy */
.head-xl {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-ink-primary);
}
.head-lg {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.head-md {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}
.ink-lead {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--color-ink-secondary);
    line-height: 1.5;
}
.ink-body {
    font-size: 1rem;
    color: var(--color-ink-secondary);
}
.ink-accent {
    color: var(--color-accent);
}

/* Header & Nav (Forced Structure) */
.apex {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
}
.ribbon {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    min-width: 0;
}
.mark {
    display: flex;
    align-items: center;
    min-width: 0;
}
.mark img {
    height: 24px;
    width: auto;
    display: block;
}
.roll {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    min-width: 0;
}
.path {
    color: var(--color-ink-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition-base);
}
.path:hover, .path:focus {
    color: var(--color-ink-primary);
}
.path.active {
    color: var(--color-ink-primary);
}

/* Main Container */
.vault {
    display: flex;
    flex-direction: column;
    padding-top: 4rem; /* Offset for fixed header */
    min-width: 0;
}

/* Common Layout Frame */
.frame {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Section 1: Intro / Stage (Hero Variant) */
.stage {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
    min-width: 0;
}
.stage::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, var(--color-accent-dim) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}
.stage-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
    min-width: 0;
}
.stage-ink-batch {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.stage-ui-batch {
    flex: 1;
    min-width: 320px;
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Creative Seed: card_float */
.folio-float {
    position: absolute;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-elevated);
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: transform 0.5s ease, border-color var(--transition-base);
}
.folio-float:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-10px) scale(1.02);
}
.float-1 {
    top: 10%;
    left: 0;
    animation: float-slow 6s ease-in-out infinite;
    z-index: 2;
}
.float-2 {
    bottom: 20%;
    right: 10%;
    animation: float-slow 8s ease-in-out infinite reverse;
    z-index: 3;
}
.float-3 {
    top: 40%;
    left: 20%;
    opacity: 0.6;
    transform: scale(0.8);
    filter: blur(2px);
    z-index: 1;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.glyph-pulse {
    width: 24px;
    height: 24px;
    fill: var(--color-accent);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Action Button */
.seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    width: fit-content;
}
.seal-primary {
    background: var(--color-accent);
    color: #000;
    box-shadow: var(--shadow-accent);
}
.seal-primary:hover, .seal-primary:focus {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 183, 216, 0.4), inset 0 1px 0 rgba(255,255,255,0.4);
}

/* Section 2: Workflow (Detail) */
.tray {
    padding: 8rem 0;
    background: var(--color-bg-base);
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
}
.tray-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
    min-width: 0;
}
.tray-lens-batch {
    flex: 1.2;
    min-width: 320px;
    display: flex;
    justify-content: center;
}
.lens-elevated {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-elevated);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-base);
}
.lens-elevated:hover {
    transform: scale(1.02);
}
.tray-ink-batch {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.node-batch {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}
.node-sheet {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    flex-wrap: wrap;
    min-width: 0;
}
.node-sheet:hover {
    background: var(--color-bg-elevated);
    border-color: var(--color-border-hover);
    transform: translateX(8px);
}
.glyph-casing {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.glyph-casing svg {
    width: 24px;
    height: 24px;
    fill: var(--color-accent);
}

/* Section 3: Features / Data (Capability) */
.folder {
    padding: 8rem 0;
    background: linear-gradient(to bottom, var(--color-bg-base), var(--color-bg-surface));
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
}
.folder-head-batch {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
}
.folio-data {
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: var(--shadow-surface);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}
.folio-data:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-elevated);
    transform: translateY(-4px);
}
/* Visual Carrier: data_ui */
.data-ui-casing {
    background: #000;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--color-ink-secondary);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.data-ui-casing::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, transparent, var(--color-accent-dim));
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-base);
}
.folio-data:hover .data-ui-casing::after {
    opacity: 1;
}
.code-tape {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.code-cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background: var(--color-accent);
    animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.ui-tape {
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    margin: 4px 0;
    overflow: hidden;
    position: relative;
}
.ui-tape-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: var(--color-accent);
    width: 0%;
    transition: width 1s ease;
}
.folio-data:hover .ui-tape-fill { width: 100%; }

/* Section 4: Policy (Proof) */
.casing {
    padding: 8rem 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    min-width: 0;
}
.trust-folio {
    max-width: 800px;
    width: 100%;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
}
.trust-folio::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent 70%, var(--color-accent-dim) 80%, transparent 90%);
    animation: rotate 10s linear infinite;
    z-index: 0;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }
.trust-folio-inner {
    position: relative;
    z-index: 1;
    background: var(--color-bg-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}
.shield-glyph {
    width: 64px;
    height: 64px;
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Footer (Base) */
.root {
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-base);
    padding: 4rem 0;
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
}
.root-batch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
}
.mark-ink {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-ink-primary);
}
.roll-base {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.path-sub {
    color: var(--color-ink-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-base);
}
.path-sub:hover, .path-sub:focus {
    color: var(--color-ink-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .head-xl { font-size: 3rem; }
    .stage-layout, .tray-layout { gap: 3rem; }
    .trust-folio { padding: 3rem; }
}
@media (max-width: 768px) {
    .ribbon { padding: 0 1rem; flex-direction: column; height: auto; padding-top: 1rem; padding-bottom: 1rem; gap: 1rem; }
    .roll { justify-content: center; gap: 1rem; }
    .stage, .tray, .folder, .casing { padding-top: 5rem; padding-bottom: 5rem; }
    .stage-layout, .tray-layout { flex-direction: column; text-align: center; }
    .stage-ui-batch { display: none; /* Simplify on mobile to keep focus on text */ }
    .seal { width: 100%; }
    .node-sheet { flex-direction: column; align-items: center; text-align: center; }
    .folder-grid { grid-template-columns: 1fr; }
    .root-batch { flex-direction: column; justify-content: center; }
}

.ribbon-apex{
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: rgba(5, 5, 5, 0.8);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            z-index: 1000;
        }

.ribbon-apex .ribbon-ribbon{
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            max-width: 1440px;
            margin: 0 auto;
            padding: 1rem 5vw;
            min-height: 72px;
        }

.ribbon-apex .ribbon-mark{
            display: flex;
            align-items: center;
            height: 32px;
        }

.ribbon-apex .ribbon-mark img{
            height: 100%;
            width: auto;
        }

.ribbon-apex .ribbon-roll{
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            align-items: center;
        }

.ribbon-apex .ribbon-path{
            padding: 0.5rem 1rem;
            font-size: 0.9375rem;
            font-weight: 500;
            color: #a1a1a6;
            border-radius: 8px;
            transition: all 0.25s ease;
        }

.ribbon-apex .ribbon-path:hover{
            color: #f5f5f7;
            background: rgba(255,255,255,0.05);
        }

.ribbon-apex .ribbon-path.active{
            color: #f5f5f7;
            background: rgba(255,255,255,0.08);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
        }

@media (max-width: 768px){.ribbon-apex .ribbon-roll{
                width: 100%;
                justify-content: center;
                margin-top: 1rem;
                padding-top: 1rem;
                border-top: 1px solid rgba(255, 255, 255, 0.08);
            }}

.ribbon-apex {
    background: rgb(5, 5, 5);
    background-image: none;
}

.base-root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    word-break: break-word;
    color: var(--color-ink-primary);
}
.base-root,
.base-root *,
.base-root *::before,
.base-root *::after {
    box-sizing: border-box;
}

.base-root nav,
.base-root div,
.base-root section,
.base-root article,
.base-root aside,
.base-root p,
.base-root h1,
.base-root h2,
.base-root h3,
.base-root h4,
.base-root h5,
.base-root h6,
.base-root a {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

.base-root p,
.base-root h1,
.base-root h2,
.base-root h3,
.base-root h4,
.base-root h5,
.base-root h6 {
    text-decoration: none;
}

.base-root img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
}

.base-root {
    box-shadow: none;
    filter: none;
    text-shadow: none;
    background-image: none;
    border-top: none;
    border-left: none;
    border-right: none;
    outline: none;
}

.base-root a,
.base-root a:hover,
.base-root a:focus,
.base-root a:active {
    background: transparent;
    box-shadow: none;
    outline: none;
    text-decoration: none;
}

.base-root .base-ink-dim{
            font-size: 0.875rem;
            color: #6e6e73;
        }

.base-root .base-path{
            padding: 0.5rem 1rem;
            font-size: 0.9375rem;
            font-weight: 500;
            color: #a1a1a6;
            border-radius: 8px;
            transition: all 0.25s ease;
        }

.base-root .base-path:hover{
            color: #f5f5f7;
            background: rgba(255,255,255,0.05);
        }

.base-root .base-path.active{
            color: #f5f5f7;
            background: rgba(255,255,255,0.08);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
        }

.base-root{
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding: 4rem 5vw;
            background: #050505;
            text-align: center;
        }

.base-root .base-root-mark{
            font-size: 1.5rem;
            font-weight: 800;
            letter-spacing: 2px;
            color: #f5f5f7;
            margin-bottom: 1rem;
        }