@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&family=Roboto+Condensed:ital,wght@1,700;1,900&display=swap');

:root {
    --p3r-blue-dark: #000814;
    --p3r-blue-mid: #001d3d;
    --p3r-blue-light: #003566;
    --p3r-cyan: #00f5ff;
    --p3r-white: #ffffff;
    --p3r-red: #ff0054;
    --p3r-glass: rgba(0, 180, 216, 0.05);
    --p3r-border: rgba(0, 245, 255, 0.3);
    --transition-fast: 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-slow: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor */
}

body {
    background-color: var(--p3r-blue-dark);
    color: var(--p3r-white);
    overflow-x: hidden;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

/* --- Custom Cursor --- */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: var(--p3r-cyan);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%) rotate(45deg);
    mix-blend-mode: difference;
    transition: transform 0.1s ease-out;
}

.custom-cursor::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--p3r-cyan);
}

/* --- HUD & Decor --- */
.hud-frame {
    position: fixed;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
    pointer-events: none;
}

.hud-top { top: 20px; }
.hud-bottom { bottom: 20px; }

.hud-item {
    font-family: 'Roboto Condensed', sans-serif;
    font-style: italic;
    color: var(--p3r-cyan);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.hud-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--p3r-cyan), transparent);
    margin: 0 20px;
    opacity: 0.3;
}

.hud-tr, .hud-br {
    background: var(--p3r-cyan);
    color: var(--p3r-blue-dark);
    padding: 2px 10px;
    transform: skewX(-20deg);
}

/* Shards */
.shard {
    position: fixed;
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.1);
    z-index: -1;
    pointer-events: none;
}

.shard-1 { width: 400px; height: 100px; top: 10%; right: -100px; transform: rotate(35deg); animation: float 15s infinite alternate; }
.shard-2 { width: 300px; height: 80px; bottom: 15%; left: -80px; transform: rotate(-20deg); animation: float 12s infinite alternate-reverse; }
.shard-3 { width: 150px; height: 150px; top: 50%; left: 10%; transform: rotate(45deg); opacity: 0.1; }

@keyframes float {
    from { transform: rotate(35deg) translate(0, 0); }
    to { transform: rotate(38deg) translate(20px, 20px); }
}

/* --- Background Layers --- */
.bg-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('assets/bg.png') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
    z-index: -2;
    filter: brightness(0.3) contrast(1.5) blur(2px);
}

.water-caustics {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 245, 255, 0.08) 0%, transparent 80%);
    z-index: -1;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.4; transform: scale(1); }
    to { opacity: 0.7; transform: scale(1.1); }
}

.scanline {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%);
    background-size: 100% 4px;
    z-index: 100;
    pointer-events: none;
    opacity: 0.15;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0;
}

.hero-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Roboto Condensed', sans-serif;
    font-style: italic;
    color: var(--p3r-cyan);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--p3r-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--p3r-cyan);
    animation: dotPulse 1.5s infinite;
}

@keyframes dotPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.glitch-wrapper {
    position: relative;
    display: inline-block;
}

.glitch-wrapper::before, .glitch-wrapper::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.8;
}

.glitch-wrapper:hover::before {
    animation: glitch-anim 0.3s infinite;
    color: var(--p3r-red);
    z-index: -1;
}

.glitch-wrapper:hover::after {
    animation: glitch-anim 0.2s infinite reverse;
    color: var(--p3r-cyan);
    z-index: -2;
}

@keyframes glitch-anim {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

.hero-main-title {
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 900;
    line-height: 0.8;
    margin-bottom: 3rem;
    font-family: 'Roboto Condensed', sans-serif;
    font-style: italic;
    text-transform: uppercase;
}

.cyan-text span {
    color: var(--p3r-cyan);
    text-shadow: 8px 8px 0 var(--p3r-blue-light);
}

.hero-desc {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    max-width: 700px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 4rem;
    padding-left: 25px;
    border-left: 6px solid var(--p3r-cyan);
}

/* --- Buttons --- */
.cta-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.version-badge {
    background: var(--p3r-red);
    color: white;
    padding: 12px 30px;
    font-weight: 900;
    font-family: 'Roboto Condensed', sans-serif;
    font-style: italic;
    font-size: 1.3rem;
    clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
    box-shadow: 5px 5px 0 rgba(255, 0, 84, 0.3);
}

.btn-p3r {
    position: relative;
    padding: 1.8rem 5rem;
    background: var(--p3r-white);
    color: var(--p3r-blue-dark);
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    font-family: 'Roboto Condensed', sans-serif;
    font-style: italic;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    transition: var(--transition-slow);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.btn-p3r:hover {
    background: var(--p3r-cyan);
    transform: translateX(20px) scale(1.05) rotate(-1deg);
    box-shadow: -20px 0 var(--p3r-red), 20px 0 var(--p3r-blue-light);
}

/* --- Card Grid --- */
.section-header {
    margin-bottom: 6rem;
    display: flex;
    align-items: center;
}

.section-title {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
    font-style: italic;
    font-family: 'Roboto Condensed', sans-serif;
    color: var(--p3r-white);
    text-transform: uppercase;
    white-space: nowrap;
}

.title-line {
    flex-grow: 1;
    height: 10px;
    background: var(--p3r-cyan);
    margin-left: 40px;
    transform: skewX(-30deg);
}

.update-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
}

.card {
    background: var(--p3r-glass);
    border: 1px solid var(--p3r-border);
    padding: 4rem 3rem;
    backdrop-filter: blur(20px);
    transition: var(--transition-slow);
    position: relative;
    clip-path: polygon(0 0, 92% 0, 100% 8%, 100% 100%, 8% 100%, 0 92%);
}

.card-num {
    position: absolute;
    top: 20px; right: 20px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 3rem;
    color: rgba(0, 245, 255, 0.1);
    z-index: -1;
}

.card-corner {
    position: absolute;
    bottom: 0; right: 0;
    width: 40px; height: 40px;
    background: var(--p3r-cyan);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    opacity: 0.3;
}

.card:hover {
    background: rgba(0, 180, 216, 0.1);
    transform: translateY(-15px) rotate(1deg) scale(1.02);
    border-color: var(--p3r-cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card h3 {
    color: var(--p3r-cyan);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-family: 'Roboto Condensed', sans-serif;
    font-style: italic;
    text-transform: uppercase;
}

.card p {
    line-height: 2;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
}

/* --- Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(60px) rotateX(10deg);
    transition: 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* --- Footer --- */
footer {
    padding: 8rem 0;
    background: linear-gradient(to top, var(--p3r-blue-dark), transparent);
    border-top: 1px solid var(--p3r-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 2rem;
    letter-spacing: 5px;
    color: var(--p3r-cyan);
}

/* --- Mobile --- */
@media (max-width: 768px) {
    * { cursor: auto; }
    .custom-cursor { display: none; }
    .hud-frame { padding: 0 15px; }
    .hud-line { display: none; }
    .hero { text-align: center; align-items: center; }
    .hero-desc { border-left: none; border-top: 4px solid var(--p3r-cyan); padding: 20px 0 0 0; }
    .cta-box { justify-content: center; width: 100%; }
    .btn-p3r { width: 100%; padding: 1.5rem 2rem; font-size: 1.3rem; }
    .section-header { flex-direction: column; text-align: center; }
    .title-line { width: 100%; margin: 20px 0 0 0; }
    .card { padding: 3rem 2rem; }
}
