/* ppuzzl.org - Victorian Ornate Modular Design */
/* Colors: #050a20 #0a1a3a #1a3a6a #0077cc #d4af37 #f5ede0 #a0aab8 #f8f9fa */
/* Fonts: Inter (primary), Lato (body), Cinzel (display/Victorian) */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #050a20;
    color: #f5ede0;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Grid Overlay */
#grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(160, 170, 184, 0.08) 59px, rgba(160, 170, 184, 0.08) 60px),
        repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(160, 170, 184, 0.08) 59px, rgba(160, 170, 184, 0.08) 60px);
}

/* Typography */
.section-display {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #d4af37;
}

.site-title {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 900;
    color: #d4af37;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: #a0aab8;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 8px;
}

/* Header */
#site-header {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px 20px 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.ornament-top,
.ornament-bottom {
    font-size: 1.2rem;
    color: #d4af37;
    opacity: 0.6;
    letter-spacing: 0.5em;
    margin: 8px 0;
}

.header-content {
    margin: 16px 0;
}

#main-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 24px 0 16px;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #a0aab8;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: #d4af37;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #d4af37;
}

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

/* Hero Section */
#hero {
    position: relative;
    z-index: 1;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: radial-gradient(ellipse at 30% 50%, rgba(26, 58, 106, 0.3) 0%, transparent 70%);
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text .section-display {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.15rem;
    color: #a0aab8;
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-isometric {
    flex: 0 0 300px;
}

.iso-cube-hero {
    width: 300px;
    height: 300px;
}

/* Isometric cube faces */
.face-top {
    fill: #0077cc;
    opacity: 0.9;
}

.face-left {
    fill: #1a3a6a;
    opacity: 0.85;
}

.face-right {
    fill: #0a1a3a;
    opacity: 0.9;
}

.face-top-sm {
    fill: #d4af37;
    opacity: 0.7;
}

.face-left-sm {
    fill: #a0aab8;
    opacity: 0.4;
}

.face-right-sm {
    fill: #050a20;
    opacity: 0.8;
}

.cube {
    transition: transform 0.6s ease;
}

.cube:hover {
    transform: translateY(-5px);
}

/* CTA Button */
.cta-button {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #050a20;
    background: linear-gradient(135deg, #d4af37, #f5ede0);
    border: none;
    padding: 16px 40px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-small {
    padding: 12px 28px;
    font-size: 0.8rem;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
    padding: 0 20px;
}

.section-header .section-display {
    font-size: 2.2rem;
    white-space: nowrap;
}

.ornament-line {
    flex: 1;
    max-width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

/* Modules Section */
.modules-section {
    position: relative;
    z-index: 1;
    padding: 80px 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.module-large {
    grid-column: span 1;
    grid-row: span 2;
}

/* Module Block */
.module-block {
    position: relative;
}

.module-border {
    position: relative;
    background: linear-gradient(180deg, rgba(10, 26, 58, 0.8), rgba(5, 10, 32, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 32px;
    height: 100%;
    transition: all 0.4s ease;
}

.module-border:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 40px rgba(0, 119, 204, 0.1), inset 0 0 40px rgba(0, 119, 204, 0.05);
}

/* Victorian corner ornaments */
.module-corner {
    position: absolute;
    color: #d4af37;
    font-size: 1rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.module-corner.tl { top: 8px; left: 10px; }
.module-corner.tr { top: 8px; right: 10px; }
.module-corner.bl { bottom: 8px; left: 10px; }
.module-corner.br { bottom: 8px; right: 10px; }

.module-border:hover .module-corner {
    opacity: 1;
}

.module-inner {
    position: relative;
    z-index: 1;
}

.module-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.iso-icon {
    width: 64px;
    height: 64px;
}

.module-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #f5ede0;
    margin-bottom: 12px;
}

.module-summary {
    font-size: 0.95rem;
    color: #a0aab8;
    line-height: 1.6;
    margin-bottom: 16px;
}

.module-detail {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
    margin-bottom: 0;
}

.module-detail.visible {
    max-height: 300px;
    opacity: 1;
    margin-bottom: 16px;
}

.module-detail p {
    font-size: 0.9rem;
    color: #a0aab8;
    line-height: 1.7;
    margin-bottom: 12px;
}

.module-stats {
    display: flex;
    gap: 24px;
}

.stat {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #a0aab8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0077cc;
    display: block;
    margin-bottom: 2px;
}

.hidden {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.reveal-btn,
.discover-toggle {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #d4af37;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reveal-btn:hover,
.discover-toggle:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
}

.reveal-btn.active {
    color: #0077cc;
    border-color: rgba(0, 119, 204, 0.3);
}

/* Pattern icon styles */
.pattern-dot {
    fill: #0077cc;
    opacity: 0.8;
}

.pattern-dot.d2 { fill: #d4af37; }
.pattern-dot.d3 { fill: #1a3a6a; }

.pattern-line {
    stroke: #a0aab8;
    stroke-width: 1.5;
    opacity: 0.4;
}

.word-icon-text {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    fill: #d4af37;
    font-weight: 700;
}

/* Discover Section */
.discover-section {
    position: relative;
    z-index: 1;
    padding: 80px 40px;
    background: linear-gradient(180deg, rgba(10, 26, 58, 0.4) 0%, transparent 100%);
}

.discover-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.discover-card {
    background: rgba(10, 26, 58, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.15);
    padding: 40px 32px;
    position: relative;
    transition: all 0.4s ease;
    transform: translateY(30px);
    opacity: 0;
}

.discover-card.revealed {
    transform: translateY(0);
    opacity: 1;
}

.discover-card:hover {
    border-color: rgba(0, 119, 204, 0.4);
    box-shadow: 0 12px 48px rgba(0, 119, 204, 0.1);
}

.discover-number {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 119, 204, 0.15);
    position: absolute;
    top: 16px;
    right: 24px;
    line-height: 1;
}

.discover-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #f5ede0;
    margin-bottom: 16px;
}

.discover-text {
    font-size: 0.95rem;
    color: #a0aab8;
    line-height: 1.7;
    margin-bottom: 16px;
}

.discover-expand {
    transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
    margin-bottom: 0;
}

.discover-expand.visible {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 16px;
}

.discover-expand p {
    font-size: 0.9rem;
    color: #a0aab8;
    line-height: 1.7;
    padding-top: 8px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

/* Create Section */
.create-section {
    position: relative;
    z-index: 1;
    padding: 80px 40px;
}

.create-showcase {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.create-visual {
    flex: 1;
    max-width: 500px;
}

.create-svg {
    width: 100%;
    height: auto;
}

.create-block {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.create-block.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.particle {
    fill: #d4af37;
    opacity: 0.6;
}

.particle.p1 { animation: particleFloat 4s ease-in-out infinite; }
.particle.p2 { animation: particleFloat 5s ease-in-out infinite 1s; }
.particle.p3 { animation: particleFloat 3.5s ease-in-out infinite 0.5s; }
.particle.p4 { animation: particleFloat 4.5s ease-in-out infinite 2s; }
.particle.p5 { animation: particleFloat 3s ease-in-out infinite 1.5s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-15px) scale(1.3); opacity: 1; }
}

.create-content {
    flex: 1;
}

.create-heading {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 20px;
}

.create-description {
    font-size: 1rem;
    color: #a0aab8;
    line-height: 1.8;
    margin-bottom: 28px;
}

.create-features {
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.feature-ornament {
    color: #d4af37;
    font-size: 0.8rem;
}

.feature-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #f5ede0;
}

/* Connect Section */
.connect-section {
    position: relative;
    z-index: 1;
    padding: 80px 40px;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 26, 58, 0.4) 100%);
}

.connect-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto 48px;
}

.connect-block {
    text-align: center;
    padding: 40px 24px;
    border: 1px solid rgba(212, 175, 55, 0.12);
    background: rgba(10, 26, 58, 0.4);
    transition: all 0.4s ease;
}

.connect-block:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-4px);
}

.connect-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.iso-icon-sm {
    width: 60px;
    height: 60px;
}

.connect-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f5ede0;
    margin-bottom: 12px;
}

.connect-text {
    font-size: 0.9rem;
    color: #a0aab8;
    line-height: 1.7;
}

.connect-cta-area {
    text-align: center;
}

.newsletter-form {
    display: inline-flex;
    gap: 0;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.email-input {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 14px 20px;
    background: rgba(10, 26, 58, 0.8);
    border: none;
    color: #f5ede0;
    min-width: 280px;
    outline: none;
}

.email-input::placeholder {
    color: #a0aab8;
    opacity: 0.6;
}

/* Footer */
#site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 48px 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    margin-top: 40px;
}

.footer-ornament,
.footer-ornament-bottom {
    font-size: 1rem;
    color: #d4af37;
    opacity: 0.4;
    letter-spacing: 0.5em;
    margin: 8px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 20px auto;
}

.footer-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 0.08em;
}

.footer-year {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #a0aab8;
    margin-left: 12px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #a0aab8;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #d4af37;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.module-block {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.module-block.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .module-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .module-large {
        grid-column: span 2;
        grid-row: span 1;
    }
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .hero-text .section-display {
        font-size: 2.8rem;
    }
    .hero-description {
        margin: 0 auto 36px;
    }
    .create-showcase {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 2.5rem;
    }
    .module-grid {
        grid-template-columns: 1fr;
    }
    .module-large {
        grid-column: span 1;
    }
    .discover-grid,
    .connect-grid {
        grid-template-columns: 1fr;
    }
    #main-nav {
        gap: 20px;
    }
    .hero-text .section-display {
        font-size: 2rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 16px;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .email-input {
        min-width: auto;
    }
}
