/* 
   PiDials - Infinite Design, Finite Execution
   Luxury Stylesheet with Mathematical Precision
   Design Without Repetition
*/

:root {
    /* Core Brand Colors - PiDials Luxury */
    --primary: #050505;
    --secondary: #0a0a0a;
    --accent: #d4af37;
    /* Metallic Gold */
    --accent-dark: #b8860b;
    --accent-light: #f6e3b4;
    --pi-blue: #1e3a8a;
    --pi-blue-light: #3b82f6;
    --text-dark: #121212;
    --text-muted: #888888;
    --text-light: #bbbbbb;
    --bg-white: #ffffff;
    --bg-silver: #f4f4f4;
    --bg-dark: #000000;

    /* Layout */
    --nav-height: 80px;
    --nav-height-mobile: 65px;
    --max-width: 1440px;

    /* Transitions & Timing */
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Shadows & Effects */
    --shadow-premium: 0 40px 100px rgba(0, 0, 0, 0.15);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 30px 80px rgba(0, 0, 0, 0.18);
    --glow-accent: 0 0 30px rgba(212, 175, 55, 0.25);

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --blur: blur(15px);

    /* Technical Elements */
    --font-mono: 'Courier New', monospace;
    --border-tech: 1px solid rgba(0, 0, 0, 0.1);
}

/* --- Base Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Global Navigation (Consistent with Customizer) --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--primary);
    color: white;
    transition: transform 0.3s ease, background 0.3s ease;
}

nav.nav-hidden {
    transform: translateY(-100%);
}

.navInner {
    max-width: 1400px;
    margin: 0 auto;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

/* PiDials Logo */
.piDialsLogo {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-family: 'Playfair Display', serif;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logoSymbol {
    font-size: 2.2rem;
    color: var(--accent);
    font-style: italic;
}

.logoText {
    letter-spacing: 2px;
    font-weight: 400;
    color: white;
}

.logoLink {
    transition: var(--transition-fast);
}



.logoLink:hover .logoText {
    color: var(--accent-light);
}

.navSide {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.navCenter {
    flex: 0 0 auto;
}

.navRight {
    justify-content: flex-end;
}

/* --- Cart Toggle --- */
.cartToggle {
    position: relative;
    font-size: 1.3rem;
    /* Minimal cart icon size */
    cursor: pointer;
    color: white;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    top: 2px;
    /* Visual adjustment for mobile/desktop alignment */
}

.cartToggle:hover {
    color: var(--accent-light);
    transform: translateY(-2px);
}

.cartCount {
    position: absolute;
    top: -2px;
    right: -6px;
    background: var(--accent-light);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Landing Page Sections --- */

/* Hero Section */
.heroSection {
    position: relative;
    min-height: 90vh;
    padding-top: calc(var(--nav-height) + 40px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 40px;
    background: radial-gradient(circle at 80% 50%, #f0f0f0 0%, #ffffff 100%);
    overflow: hidden;
}

.heroContentWrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-grow: 1;
}

.heroText {
    flex: 1;
    z-index: 2;
}

.heroBadge {
    display: inline-block;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.7rem;
    margin-bottom: 25px;
    font-family: var(--font-mono);
}

.heroTitle {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -0.01em;
}

.accentText {
    color: var(--accent);
    font-style: italic;
    font-weight: 300;
}

.heroLead {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 50px;
    line-height: 1.8;
}

.heroActions {
    display: flex;
    gap: 20px;
}

.heroVisual {
    flex: 1.2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.watchStage {
    position: relative;
    width: 100%;
}

.heroWatch {
    width: 100%;
    filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.15));
    animation: watchFloat 8s ease-in-out infinite;
}

@keyframes watchFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-30px) rotate(1deg);
    }
}

/* Mathematical Background Decoration */
.piBackground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.piDigit {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: rgba(197, 160, 89, 0.12);
    font-weight: 300;
    animation: float 15s ease-in-out infinite;
    letter-spacing: 2px;
}

/* Philosophy Section */
.philosophySection {
    padding: 150px 0;
    background: linear-gradient(to bottom, #ffffff 0%, var(--bg-silver) 100%);
}

.philosophyGrid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;
    align-items: center;
    margin-top: 50px;
}

.philosophyText p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.philosophyText strong {
    color: var(--text-dark);
    font-weight: 600;
}

.philosophyHighlight {
    font-size: 1.4rem !important;
    font-style: italic;
    color: var(--accent) !important;
    font-family: 'Playfair Display', serif;
    margin-top: 40px !important;
}

.philosophyVisual {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
}

.piSymbol {
    font-size: 8rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 20px;
    animation: pulse 3s ease-in-out infinite;
}

.piValue {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 30px;
    word-break: break-all;
}

.philosophyCaption {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-light);
    font-weight: 600;
}

/* Features Section */
.featuresSection {
    padding: 150px 0;
    background: white;
}

.featuresGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.featureCard {
    text-align: center;
    padding: 50px 30px;
    background: var(--bg-silver);
    border-radius: 16px;
    transition: var(--transition);
}

.featureCard:hover {
    background: white;
    box-shadow: var(--shadow-hover);
    transform: translateY(-10px);
}

.featureIcon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 25px;
}

.featureCard h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.featureCard p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* How It Works Section */
.howItWorksSection {
    padding: 150px 0;
    background: var(--bg-silver);
}

.stepsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
}

.stepCard {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.stepCard:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}

.stepNumber {
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0.7;
}

.stepCard h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.stepCard p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Use Cases Section */
.useCasesSection {
    padding: 120px 0;
    background: var(--bg-silver);
}

.useCasesGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.useCaseCard {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.useCaseCard:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.useCaseIcon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 30px;
}

.useCaseCard h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.useCaseCard p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Final CTA Section */
.finalCta {
    padding: 150px 0;
    background: linear-gradient(135deg, #000 0%, #111 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.finalCta::before {
    content: 'π';
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    font-size: 35rem;
    font-family: 'Playfair Display', serif;
    color: rgba(255, 255, 255, 0.02);
    z-index: 0;
    pointer-events: none;
}

.finalCta .container {
    position: relative;
    z-index: 1;
}

/* Story Section */
.storySection {
    padding: 150px 0;
    background: #fff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.storyGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    align-items: center;
}

.sectionLabel {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: block;
}

.sectionTitle {
    font-size: 4rem;
    margin-bottom: 35px;
}

.storyContent p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Featured Gallery */
.gallerySection {
    padding: 120px 0;
    background: var(--bg-silver);
}

.galleryGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.galleryItem {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: white;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.galleryItem:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-premium);
}

.galleryImgBox {
    aspect-ratio: 1/1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfdfd;
}

.galleryImg {
    width: 80%;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.galleryItem:hover .galleryImg {
    transform: scale(1.1);
}

.galleryInfo {
    padding: 40px;
    text-align: center;
}

.galleryInfo h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.galleryInfo p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 25px;
}

/* Button Stylings */
.btn {
    display: inline-block;
    padding: 18px 45px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    border-radius: 0;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-mono);
    /* Technical feel for buttons */
}

.btnPrimary {
    background: var(--primary);
    color: white;
}

.btnPrimary:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.btnOutline {
    background: transparent;
    color: var(--primary);
    border: 1px solid #ddd;
}

.btnOutline:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* --- New Sections Styles --- */

.whyPiSection {
    padding: 120px 0;
    background: #050505;
    color: white;
    text-align: center;
}

.confrontationalLead {
    font-size: 2.2rem;
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.3;
    font-weight: 300;
}

.confrontationalLead strong {
    color: var(--accent);
    font-weight: 700;
}

/* Comparison Table */
.comparisonGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: #eee;
    margin-top: 60px;
    border: 1px solid #eee;
}

@media (max-width: 900px) {
    .comparisonGrid {
        grid-template-columns: 1fr;
    }

    .comparisonHeader {
        display: none;
        /* Hide headers on mobile for cleaner stack */
    }

    .comparisonCell::before {
        content: attr(data-label);
        /* Add labels via CSS if needed, or simply let them stack */
        display: block;
        font-weight: 700;
        margin-bottom: 5px;
        font-size: 0.8rem;
        color: var(--text-muted);
        text-transform: uppercase;
    }
}

.comparisonHeader {
    background: #fdfdfd;
    padding: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--text-dark);
}

.comparisonHeader.piHeader {
    background: #050505;
    color: var(--accent);
}

.comparisonRow {
    display: contents;
}

.comparisonCell {
    background: white;
    padding: 40px;
    text-align: left;
}

.comparisonCell h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.comparisonCell p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.comparisonCell.piCell {
    background: #fafafa;
    border-left: 4px solid var(--accent);
    position: relative;
}

.comparisonCell.piCell::after {
    content: 'PIDIALS_SPEC';
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: var(--accent);
    opacity: 0.5;
    letter-spacing: 1px;
}

/* Value Props */
.valuePropsGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.valuePropCard {
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.valuePropCard:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.valuePropBadge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

/* --- Checkout Page Styles --- */
.checkoutPage {
    padding-top: 150px;
    padding-bottom: 150px;
    background: var(--bg-soft);
}

.checkoutContainer {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.checkoutHeader {
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.cart-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    gap: 40px;
}

.cart-item img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    background: #f9f9f9;
    border-radius: 12px;
}

.item-details h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.item-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.total-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--primary);
    text-align: right;
}

.total-price {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 30px;
}

/* --- Cart Drawer (Luxury Light Theme) --- */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 400px;
    height: 100%;
    background: #ffffff;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2001;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 30px 40px;
    background: #fdfdfd;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.drawer-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    color: var(--text-dark);
}

.close-drawer-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s ease;
    line-height: 1;
}

.close-drawer-btn:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: white;
}

.drawer-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    transition: 0.3s ease;
}

.drawer-item:hover {
    background: #fafafa;
}

.drawer-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.drawer-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.drawer-item-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.drawer-item-price {
    color: var(--accent);
    font-size: 0.95rem;
    font-family: var(--font-mono);
    margin-bottom: 10px;
    display: block;
}

.drawer-actions {
    display: flex;
    gap: 15px;
}

.drawer-remove-btn,
.drawer-edit-btn {
    font-size: 0.75rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: 0.2s ease;
}

.drawer-remove-btn {
    color: #ff5757;
    opacity: 0.7;
}

.drawer-remove-btn:hover {
    opacity: 1;
    text-decoration: underline;
}

.drawer-edit-btn {
    color: var(--text-muted);
}

.drawer-edit-btn:hover {
    color: var(--text-dark);
    text-decoration: underline;
}

.drawer-footer {
    padding: 40px;
    border-top: 1px solid #eee;
    background: #fdfdfd;
}

.drawer-total {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.drawer-total span {
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 700;
}

.checkoutBtn {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-mono);
    transition: 0.3s ease;
}

.checkoutBtn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.drawer-overlay.open {
    display: block;
    opacity: 1;
}

/* --- Scroll Indicator --- */
.scrollIndicator {
    position: absolute;
    bottom: 40px;
    left: 100px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    transform: rotate(-90deg);
    transform-origin: left bottom;
}

.scrollLine {
    width: 60px;
    height: 1px;
    background: #ddd;
}

/* --- Responsive Optimization --- */
@media (max-width: 1100px) {
    .heroTitle {
        font-size: 4rem;
    }

    .storyGrid {
        gap: 60px;
    }
}

@media (max-width: 900px) {
    :root {
        --nav-height: 60px;
        /* Even more compact on mobile */
    }

    .navInner {
        padding: 0 20px;
    }

    .heroSection {
        padding-top: 100px;
        text-align: center;
    }

    .heroContentWrapper {
        flex-direction: column;
        padding: 0 30px;
    }

    .heroLead {
        margin: 0 auto 40px;
    }

    .heroActions {
        justify-content: center;
    }

    .heroWatch {
        max-width: 450px;
        margin-top: 40px;
    }

    .storyGrid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sectionTitle {
        font-size: 3rem;
    }

    .galleryGrid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .cart-item img {
        width: 100%;
        max-width: 250px;
    }

    .scrollIndicator {
        display: none;
    }
}

@media (max-width: 600px) {
    .navInner {
        height: var(--nav-height-mobile);
    }

    .heroTitle {
        font-size: 2.8rem;
    }

    .btn {
        width: 100%;
    }

    .heroActions {
        flex-direction: column;
        width: 100%;
    }

    .cart-drawer {
        width: 350px;
        max-width: 100%;
    }
}

/* --- PiDials Enhanced Animations & Effects --- */

/* Scroll Reveal Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Particle / Mathematical Visualization */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(5deg);
    }

    66% {
        transform: translateY(10px) rotate(-5deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Utility Classes for Scroll Animations */
.reveal {
    opacity: 0;
}

.reveal.active {
    animation: fadeInUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.reveal-left {
    opacity: 0;
}

.reveal-left.active {
    animation: fadeInLeft 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.reveal-right {
    opacity: 0;
}

.reveal-right.active {
    animation: fadeInRight 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.scale-in {
    opacity: 0;
}

.scale-in.active {
    animation: scaleIn 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--pi-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Parallax Container */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Hover Lift Effect */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Enhanced Navigation Links (for new pages) */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-light);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    margin-right: 20px;
    transition: transform 0.3s ease;
}

.mobile-menu-btn.active {
    transform: rotate(90deg);
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: white;
    transition: var(--transition-fast);
}

.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--primary);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    padding: 20px;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Overall Mobile Adjustments */
    .container {
        padding: 0 30px;
    }

    .btn {
        max-width: 90%;
        margin: 20px auto 0 auto;
        /* Force centering and spacing */
        display: block;
    }

    .sectionTitle {
        font-size: 2.8rem !important;
    }

    /* Hero Mobile */
    .heroSection {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .heroContentWrapper {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 0 30px;
        gap: 40px;
    }

    .heroTitle {
        font-size: 3rem;
    }

    .heroLead {
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
    }

    .heroActions {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        padding: 15px 30px;
    }

    /* Philosophy Mobile */
    .philosophySection {
        padding: 100px 0;
    }

    .philosophyGrid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .philosophyVisual {
        padding: 40px 20px;
    }

    .piSymbol {
        font-size: 5rem;
    }

    /* Use Cases Mobile */
    .useCasesGrid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .useCaseCard {
        padding: 40px 30px;
        align-items: center;
        text-align: center;
    }

    /* Features Mobile */
    .featuresSection {
        padding: 100px 0;
    }

    .featureCard {
        padding: 40px 20px;
    }

    /* Story Mobile */
    .storySection {
        padding: 100px 0;
    }

    .storyGrid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    /* Gallery Mobile */
    .galleryGrid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Final CTA Mobile */
    .finalCta .sectionTitle {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 480px) {
    .heroTitle {
        font-size: 2.4rem;
    }

    .sectionTitle {
        font-size: 2.2rem !important;
    }
}

/* --- Extended Use Cases Section (Consumer) --- */
.useCaseGridEnhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.useCaseItemEnhanced {
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: var(--transition);
}

.useCaseItemEnhanced:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.useCaseItemEnhanced h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.useCaseItemEnhanced p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Enterprise Section (B2B) --- */
.enterpriseSection {
    padding: 120px 0;
    background: #080808;
    color: white;
    position: relative;
    border-top: 1px solid #222;
}

.enterpriseGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-top: 60px;
}

.enterpriseItem {
    border-left: 1px solid #333;
    padding-left: 30px;
}

.enterpriseItem h4 {
    color: var(--accent);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-family: var(--font-mono);
}

.enterpriseItem h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.enterpriseItem p {
    color: #888;
    line-height: 1.7;
    margin-bottom: 10px;
}

.enterpriseCtaBox {
    margin-top: 80px;
    text-align: center;
    padding: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.btnEnterprise {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: var(--transition);
    margin-top: 20px;
}

.btnEnterprise:hover {
    background: var(--accent);
    color: black;
    box-shadow: var(--glow-accent);
}

@media (max-width: 900px) {
    .enterpriseGrid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}