/* ============================================
   quietjoon.com - Editorial Design System
   Colors: #e8a060, #1a0a04, #7a3a0a, #f5d4a0, #6a5a4a, #faf0e0, #f0c840, #c4720a
   Fonts: Bebas Neue, Inter, Fira Code
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #1a0a04;
    background-color: #faf0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Typography --- */
.display-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(5rem, 15vw, 12rem);
    line-height: 0.85;
    letter-spacing: 0.02em;
    color: #faf0e0;
    text-transform: uppercase;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.85;
    letter-spacing: 0.02em;
    color: #7a3a0a;
    margin-bottom: 2rem;
}

.body-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #1a0a04;
    max-width: 60ch;
}

code, .tutorial-card__code {
    font-family: 'Fira Code', monospace;
}

/* --- Section Base --- */
.section {
    position: relative;
    min-height: 80vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 6rem 2rem;
}

/* --- Geometric Shapes --- */
.geo-shape {
    position: absolute;
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

.geo-shape--circle {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: #f0c840;
    top: -10%;
    right: -8%;
}

.geo-shape--triangle {
    width: 0;
    height: 0;
    border-left: 200px solid transparent;
    border-right: 200px solid transparent;
    border-bottom: 350px solid #e8a060;
    bottom: 5%;
    left: -5%;
    opacity: 0.12;
}

.geo-shape--rect-about {
    width: 300px;
    height: 600px;
    background: #c4720a;
    right: -3%;
    top: 10%;
    clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
}

.geo-shape--diamond {
    width: 250px;
    height: 250px;
    background: #f0c840;
    top: 15%;
    left: -2%;
    transform: rotate(45deg);
}

.geo-shape--circle-sm {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #e8a060;
    bottom: 10%;
    right: 5%;
}

.geo-shape--triangle-nl {
    width: 0;
    height: 0;
    border-left: 250px solid transparent;
    border-right: 250px solid transparent;
    border-bottom: 400px solid #f0c840;
    top: -5%;
    right: 10%;
    opacity: 0.1;
}

/* --- Leaf Ornaments --- */
.leaf-ornament {
    position: absolute;
    z-index: 3;
    color: #7a3a0a;
    pointer-events: none;
}

.leaf-ornament--hero {
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
}

.leaf-ornament--about {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
}

.leaf-ornament--tutorials {
    top: 2rem;
    right: 2rem;
    width: 80px;
}

.leaf-ornament--newsletter {
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
}

/* === HERO SECTION === */
.section--hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #7a3a0a 0%, #c4720a 40%, #e8a060 70%, #f0c840 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero__sunset-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 80%, rgba(240,200,64,0.3) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(232,160,96,0.2) 0%, transparent 50%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero__tagline {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    color: #f5d4a0;
    margin-top: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero__scroll-indicator {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: fadeInUp 1s ease 1.5s both;
}

.scroll-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #f5d4a0;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #f5d4a0, transparent);
    position: relative;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    border-right: 2px solid #f5d4a0;
    border-bottom: 2px solid #f5d4a0;
}

/* === ABOUT SECTION === */
.section--about {
    background-color: #faf0e0;
    border-top: 1px solid rgba(122, 58, 10, 0.1);
}

.about__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about__text .body-text + .body-text {
    margin-top: 1.5rem;
}

.about__stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 1rem;
}

.stat {
    display: flex;
    flex-direction: column;
    border-left: 3px solid #c4720a;
    padding-left: 1.5rem;
}

.stat__number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    line-height: 1;
    color: #c4720a;
}

.stat__label {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6a5a4a;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

/* === TUTORIALS SECTION === */
.section--tutorials {
    background-color: #1a0a04;
}

.section--tutorials .section-title {
    color: #f0c840;
}

.tutorials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.tutorial-card {
    background: rgba(245, 212, 160, 0.05);
    border: 1px solid rgba(245, 212, 160, 0.1);
    border-radius: 2px;
    padding: 2.5rem 2rem;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.tutorial-card:hover {
    transform: translateY(-4px);
    border-color: #c4720a;
    background: rgba(245, 212, 160, 0.08);
}

.tutorial-card__number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    line-height: 1;
    color: rgba(240, 200, 64, 0.15);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.tutorial-card__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    line-height: 1;
    color: #f5d4a0;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.tutorial-card__desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #6a5a4a;
    margin-bottom: 1.25rem;
}

.tutorial-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1a0a04;
    background: #f0c840;
    padding: 0.25rem 0.75rem;
    border-radius: 1px;
}

.duration {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #6a5a4a;
}

.tutorial-card__code {
    font-family: 'Fira Code', monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #e8a060;
    background: rgba(26, 10, 4, 0.5);
    padding: 1rem 1.25rem;
    border-left: 3px solid #c4720a;
    border-radius: 0 2px 2px 0;
}

/* === NEWSLETTER SECTION === */
.section--newsletter {
    background: linear-gradient(180deg, #faf0e0 0%, #f5d4a0 100%);
    border-top: 1px solid rgba(122, 58, 10, 0.1);
}

.newsletter__desc {
    max-width: 45ch;
    margin-bottom: 2.5rem;
}

.newsletter__form {
    max-width: 500px;
}

.form-group {
    display: flex;
    gap: 0;
    border: 2px solid #7a3a0a;
    border-radius: 2px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.form-group:focus-within {
    border-color: #c4720a;
}

.newsletter__input {
    flex: 1;
    font-family: 'Fira Code', monospace;
    font-size: 0.9375rem;
    padding: 1rem 1.25rem;
    border: none;
    background: rgba(250, 240, 224, 0.8);
    color: #1a0a04;
    outline: none;
}

.newsletter__input::placeholder {
    color: #6a5a4a;
    opacity: 0.6;
}

.newsletter__btn {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.125rem;
    letter-spacing: 0.1em;
    padding: 1rem 2rem;
    background: #7a3a0a;
    color: #faf0e0;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
}

.newsletter__btn:hover {
    background: #c4720a;
}

.form-message {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    min-height: 1.5em;
    color: #7a3a0a;
}

.form-message--success {
    color: #7a3a0a;
}

.form-message--error {
    color: #c4720a;
}

/* === SHAKE ANIMATION === */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.4s ease;
}

/* === FOOTER === */
.section--footer {
    min-height: auto;
    background: #1a0a04;
    padding: 3rem 2rem;
}

.footer__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer__logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: #f0c840;
    letter-spacing: 0.05em;
}

.footer__copy {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #6a5a4a;
    margin-top: 0.5rem;
}

.footer__nav {
    display: flex;
    gap: 2rem;
}

.footer__link {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6a5a4a;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: #f0c840;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Section reveal animations */
.section__inner,
.hero__content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section__inner.visible,
.hero__content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tutorial card stagger */
.tutorial-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease, background 0.3s ease;
}

.tutorial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stat counter animation */
.stat {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Leaf ornament animation */
.leaf-ornament {
    opacity: 0;
    transition: opacity 1s ease 0.3s;
}

.leaf-ornament.visible {
    opacity: 1;
}

/* Geometric shape parallax ready */
.geo-shape {
    transition: transform 0.1s linear;
}

/* Section divider lines */
.section--about::before,
.section--tutorials::before,
.section--newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #c4720a;
    z-index: 5;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about__stats {
        flex-direction: row;
        gap: 2rem;
    }

    .tutorials__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer__content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer__nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .section__inner {
        padding: 4rem 1.25rem;
    }

    .about__stats {
        flex-direction: column;
    }

    .form-group {
        flex-direction: column;
    }

    .newsletter__btn {
        width: 100%;
    }

    .geo-shape--circle {
        width: 250px;
        height: 250px;
    }

    .geo-shape--rect-about {
        width: 150px;
        height: 300px;
    }
}