/* pencloser.com - Fairycore Privacy Sanctuary */

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

:root {
    --warm-brown: #8a7a6a;
    --brass: #b8956a;
    --cream: #f7f0e3;
    --dark-earth: #3d3024;
    --olive-brown: #7a6b5a;
    --lavender: #b8a8c8;
    --gold: #d4a94e;
    --off-white: #faf6ee;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    color: var(--dark-earth);
    background-color: var(--off-white);
    overflow-x: hidden;
    line-height: 1.7;
}

.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
}

.section-inner {
    max-width: 720px;
    width: 100%;
    text-align: center;
}

/* Typography */
.site-title {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--dark-earth);
    letter-spacing: 0.01em;
}

.section-heading {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: var(--dark-earth);
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
}

.written {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 1.4rem;
}

.story-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--olive-brown);
    max-width: 540px;
    margin: 0 auto 2rem;
}

.site-subtitle {
    color: var(--brass);
    margin-top: 0.5rem;
    font-size: 1.6rem;
}

/* Section 1: Title */
.section-title {
    flex-direction: column;
    background: radial-gradient(ellipse at center, var(--cream) 0%, var(--off-white) 70%);
}

.title-content {
    position: relative;
    left: -8%;
    opacity: 0;
    animation: fadeInTitle 1.5s ease forwards 0.3s;
}

@keyframes fadeInTitle {
    to { opacity: 1; }
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bobDown 2s ease-in-out infinite;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--brass);
    opacity: 0.6;
}

@keyframes bobDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Fireflies */
.fireflies {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.firefly {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 6px 2px var(--gold);
    animation: fireflyFloat 6s ease-in-out infinite;
    opacity: 0;
}

@keyframes fireflyFloat {
    0% { opacity: 0; transform: translate(0, 0); }
    20% { opacity: 0.8; }
    50% { opacity: 0.4; transform: translate(30px, -20px); }
    80% { opacity: 0.7; }
    100% { opacity: 0; transform: translate(-20px, -40px); }
}

/* Section 2: Story */
.section-story {
    background-color: var(--cream);
}

.watercolor-envelope {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.envelope-svg {
    width: 180px;
    height: auto;
    filter: url(#watercolor-distort);
    opacity: 0.85;
}

/* Section 3: Breathing Strip */
.section-breathing {
    min-height: 60vh;
    background: linear-gradient(180deg, var(--cream) 0%, var(--off-white) 100%);
}

.key-constellation {
    width: 100%;
    max-width: 600px;
}

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

.key-node {
    animation: keyPulse 3s ease-in-out infinite;
}

.key-node:nth-child(even) {
    animation-delay: 1.5s;
}

@keyframes keyPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Section 4: Features */
.section-features {
    background-color: var(--off-white);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--cream);
    border: 1px solid var(--brass);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(61, 48, 36, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--dark-earth);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--olive-brown);
    line-height: 1.6;
}

/* Section 5: Relay */
.section-relay {
    background-color: var(--cream);
}

.mushroom-towers {
    margin-top: 2rem;
}

.mushroom-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: url(#watercolor-distort);
}

.signal-path {
    animation: signalDash 4s linear infinite;
}

@keyframes signalDash {
    to { stroke-dashoffset: -40; }
}

/* Section 6: Closing */
.section-closing {
    background: radial-gradient(ellipse at center bottom, var(--cream) 0%, var(--off-white) 70%);
    flex-direction: column;
}

.cta-button {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--cream);
    background: var(--brass);
    border: none;
    padding: 0.9rem 2.4rem;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 1rem;
}

.cta-button:hover {
    background: var(--gold);
    transform: scale(1.04);
}

/* Scroll reveal */
.section-inner {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-inner.visible {
    opacity: 1;
    transform: translateY(0);
}
