:root {
    --bg: #f8f6f3;
    --bg-header: #f8f6f3;
    --text: #262320;
    --text-dim: #6a655c;
    --accent: #d4892a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Merriweather', Georgia, serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 1.2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg-header) 60%, transparent);
}

.header-logo {
    height: 64px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.3s;
}
.header-logo:hover { opacity: 1; }

nav { display: flex; gap: 0.3rem; }
nav a {
    color: var(--text-dim);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 300;
    border-radius: 6px;
    transition: color 0.3s;
}
nav a:hover { color: var(--text); }

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
}

/* DIY Logo */
.diy-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
    font-family: 'Montserrat', sans-serif;
}
.logo-row {
    display: flex;
    align-items: center;
    line-height: 1;
    margin-left: var(--row-offset, 0);
}
.logo-letter {
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text);
    transform-origin: center center;
    cursor: default;
}

.hero-logo {
    font-size: clamp(3.2rem, 10vw, 6.5rem);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--text);
}

.hero h1 .sideways {
    display: inline-block;
    font-family: 'Merriweather', serif;
    font-weight: 400;
    color: var(--accent);
    transform-origin: 5% 70%;
    animation: sideDrop 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

@keyframes sideDrop {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(14deg); }
}

.hero .tagline {
    font-size: 0.95rem;
    color: var(--text-dim);
    max-width: 440px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.cta-group { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    font-family: 'Jaro', sans-serif;
    font-size: 1.05rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s;
    border: none; cursor: pointer;
    letter-spacing: 0.03em;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { filter: brightness(1.15); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--text-dim); border: 1px solid #c5c0b8; }
.btn-secondary:hover { border-color: var(--text-dim); color: var(--text); }

.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--accent);
    font-family: 'Jaro', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    opacity: 0.85;
    transition: opacity 0.3s, transform 0.3s;
    animation: scrollBounce 2.5s ease-in-out infinite;
}
.scroll-hint:hover { opacity: 1; transform: scale(1.05); }
.scroll-hint .arrow { font-size: 1.8rem; }
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

.divider { width: 60px; height: 1px; background: #d0ccc5; margin: 0 auto; }

/* Game Section */
.game-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.game-header {
    text-align: center;
    margin-bottom: 4rem;
}

.game-logo {
    width: min(420px, 80vw);
    height: auto;
    margin-bottom: 1.2rem;
}

.game-sub {
    font-family: 'Jaro', sans-serif;
    font-size: 1.15rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.game-desc {
    font-size: 0.95rem;
    color: var(--text-dim);
    max-width: 520px;
    margin: 0 auto;
    font-weight: 300;
}

/* Cauldron + Craft Composition */
.cauldron-craft {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin: 4rem auto;
    flex-wrap: wrap;
    padding-left: 3rem;
}

.craft-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

.craft-card {
    width: 130px;
    height: auto;
    transition: transform 0.4s;
    background: var(--bg);
    border-radius: 10px;
}
.craft-card:hover { transform: scale(1.06); }
.craft-card-1 { transform: rotate(-5deg); }
.craft-card-1:hover { transform: rotate(-5deg) scale(1.06); }
.craft-card-2 { transform: rotate(4deg); }
.craft-card-2:hover { transform: rotate(4deg) scale(1.06); }

.craft-arrow {
    width: 52px;
    opacity: 0.5;
    transform: rotate(90deg);
}

.cauldron-scene {
    position: relative;
    width: 340px;
    height: 460px;
    flex-shrink: 0;
    overflow: visible;
}

.c-layer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.c-logs  { bottom: 0; width: 260px; z-index: 1; }
.c-back  { bottom: 25px; width: 250px; z-index: 2; }

.c-swirl {
    bottom: 168px;
    width: 178px;
    height: 90px;
    z-index: 3;
    border-radius: 50%;
    overflow: hidden;
}

.c-front { bottom: 25px; width: 250px; z-index: 4; }
.c-fire  { bottom: -16px; width: 260px; z-index: 5; opacity: 0.85; }

.c-smoke {
    bottom: 160px;
    width: 560px;
    opacity: 0;
    z-index: 6;
    pointer-events: none;
}

.c-result {
    width: 140px;
    z-index: 7;
    bottom: 280px;
    background: var(--bg);
    border-radius: 10px;
    animation: resultFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(232, 168, 73, 0.3));
}

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

/* Screenshots */
.screenshots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 4rem 0 2rem;
}

.screenshot {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}
.screenshot:hover { transform: scale(1.02); }
.screenshot img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.screenshots-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* About */
.about-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
}

.about-section h2 {
    font-family: 'Jaro', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 2rem;
}

.about-intro {
    color: var(--text-dim);
    font-weight: 300;
    max-width: 560px;
    margin: 0 auto;
    font-size: 0.95rem;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: left;
    margin-top: 2.5rem;
}

.value-item h4 {
    font-family: 'Jaro', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    color: var(--accent);
}
.value-item p {
    color: var(--text-dim);
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.7;
}

/* Footer */
footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid #d0ccc5;
}

.footer-logo {
    height: 56px;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy { font-size: 0.8rem; color: #9a9488; }

/* Responsive */
@media (max-width: 768px) {
    header { padding: 1rem; }
    .header-logo { height: 48px; }
    nav a { padding: 0.4rem 0.6rem; font-size: 0.8rem; }
    .hero-logo { width: min(340px, 80vw); }
    .cauldron-craft { padding-left: 0; }
    .cauldron-scene { width: 260px; height: 360px; }
    .c-logs { width: 200px; }
    .c-fire { width: 200px; bottom: -6px; }
    .c-back, .c-front { width: 190px; bottom: 20px; }
    .c-swirl { width: 140px; height: 70px; bottom: 132px; }
    .c-smoke { width: 420px; bottom: 120px; }
    .c-result { width: 105px; bottom: 215px; }
    .craft-card { width: 100px; }
    .craft-arrow { width: 36px; }
    .game-section { padding: 4rem 1.5rem; }
    .screenshots { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .cauldron-craft { flex-direction: column; }
}
