@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700;800&display=swap");

:root {
    --color-bg: #f7f2ea;
    --color-surface: #fffaf4;
    --color-primary: #e8ddcf;
    --color-primary-strong: #d8c7b1;
    --color-brown: #5a463a;
    --color-brown-soft: #7a6355;
    --color-gold: #c8a44d;
    --color-blue: #1e4ed8;
    --color-border: rgba(90, 70, 58, 0.12);
    --color-shadow: rgba(90, 70, 58, 0.12);
    --shadow-soft: 0 14px 40px rgba(90, 70, 58, 0.12);
    --shadow-card: 0 10px 30px rgba(90, 70, 58, 0.1);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --container: 1200px;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;
    --header-height: 88px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", "Poppins", sans-serif;
    color: var(--color-brown);
    background:
        radial-gradient(circle at top left, rgba(200, 164, 77, 0.2), transparent 28%),
        linear-gradient(180deg, #fbf7f1 0%, var(--color-bg) 100%);
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-blue);
    text-decoration: none;
}

a:hover {
    color: #1439a8;
}

h1,
h2,
h3 {
    margin: 0 0 var(--space-2);
    font-family: "Playfair Display", Georgia, serif;
    color: var(--color-brown);
    line-height: 1.15;
}

p {
    margin: 0 0 var(--space-2);
}

main {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
    padding: calc(var(--space-5) + var(--space-2)) 0 var(--space-6);
}

main > * + * {
    margin-top: var(--space-5);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--space-2) 24px;
    background: rgba(255, 250, 244, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(90, 70, 58, 0.08);
}

.site-header > div,
.nav-shell {
    width: min(100%, var(--container));
    min-height: 56px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-link img,
.site-header img {
    width: 125px;
    max-width: 100%;
    height: auto;
}

.site-nav,
.site-header > div > div:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
}

.site-nav a,
.site-header a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    color: var(--color-brown);
    font-weight: 600;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-header a:hover,
.site-nav a.is-active,
.site-header a.is-active {
    color: var(--color-blue);
    background: rgba(30, 78, 216, 0.08);
}

.menu-toggle {
    display: none;
    min-width: 48px;
    height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(90, 70, 58, 0.12);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-card);
}

.menu-toggle__label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-brown);
}

.menu-toggle__chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-brown);
    border-bottom: 2px solid var(--color-brown);
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__chevron {
    transform: rotate(-135deg) translateY(-1px);
}

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
    width: 100vw;
    margin-top: calc(-1 * (var(--space-5) + var(--space-2)));
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 clamp(24px, 4vw, 40px) clamp(32px, 5vw, 48px);
    border-radius: 0;
    background:
        radial-gradient(circle at 22% 26%, rgba(200, 164, 77, 0.2), transparent 24%),
        linear-gradient(135deg, #211a16 0%, #3a2d25 36%, #5a463a 100%);
}

.hero-title {
    max-width: 9ch;
    margin: 0 0 12px;
    font-size: clamp(3rem, 7vw, 6.2rem);
    color: #fff8f0;
    text-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
}

.intro-slider {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;
    background: transparent;
}

.intro-slider img {
    position: absolute;
    inset: auto 0 0 0;
    width: min(88%, 1400px);
    height: calc(100% - 20px);
    object-fit: contain;
    object-position: center center;
    padding: 0;
    margin: 0 auto;

    opacity: 0;
    filter: saturate(1.02) drop-shadow(0 36px 64px rgba(0, 0, 0, 0.28));
    animation: heroFade 16s infinite;
}

.intro-slider img:first-child {
    opacity: 1;
}

.intro-slider img:nth-child(1) {
    animation-delay: 0s;
}

.intro-slider img:nth-child(2) {
    animation-delay: 4s;
}

.intro-slider img:nth-child(3) {
    animation-delay: 8s;
}

.intro-slider img:nth-child(4) {
    animation-delay: 12s;
}

@keyframes heroFade {
    0% {
        opacity: 1;
        transform: scale(1.02);
    }
    22% {
        opacity: 1;
        transform: scale(1);
    }
    28% {
        opacity: 0;
        transform: scale(1.02);
    }
    100% {
        opacity: 0;
        transform: scale(1.02);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(20, 15, 12, 0.9) 0%, rgba(20, 15, 12, 0.78) 28%, rgba(20, 15, 12, 0.42) 54%, rgba(20, 15, 12, 0.08) 78%, rgba(20, 15, 12, 0.12) 100%),
        linear-gradient(180deg, rgba(20, 15, 12, 0.08) 0%, rgba(20, 15, 12, 0.22) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(100%, 680px);
    margin: 0;
    text-align: left;
    padding: 0 0 56px;
}

.hero-subtitle {
    margin-bottom: 12px;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    color: var(--color-primary);
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.hero-description {
    max-width: 56ch;
    margin: 0;
    color: rgba(255, 248, 240, 0.9);
    font-size: 1.06rem;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
}

.hero-cta {
    margin-top: var(--space-3);
}

main > div[style*="text-align: center"][style*="gap: 40px"] {
    align-items: stretch !important;
    gap: 24px !important;
}

main > div[style*="text-align: center"][style*="gap: 40px"] > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 24px 20px;
    background: rgba(255, 250, 244, 0.78);
    border: 1px solid rgba(90, 70, 58, 0.12);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
}

main > div[style*="text-align: center"][style*="gap: 40px"] > div h1 {
    margin-bottom: 0;
    font-size: clamp(1.7rem, 2vw, 2.2rem);
    text-align: center;
}

main > div[style*="text-align: center"][style*="gap: 40px"] > div img[style*="width: 60%"] {
    width: min(100%, 220px) !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

main > div[style*="text-align: center"][style*="gap: 40px"] > div p {
    max-width: 28ch;
    margin: 0;
    text-align: center;
    color: var(--color-brown-soft);
}

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
    color: #fff8f0;
}

.hero-scroll:hover {
    color: var(--color-blue);
}

.hero-scroll__mouse {
    width: 28px;
    height: 44px;
    border: 2px solid rgba(255, 248, 240, 0.55);
    border-radius: 999px;
    position: relative;
    background: rgba(255, 255, 255, 0.08);
}

.hero-scroll__mouse::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 9px;
    border-radius: 999px;
    background: #fff8f0;
    transform: translateX(-50%);
    animation: scrollPulse 1.8s infinite;
}

.hero-scroll__arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    animation: arrowBounce 1.8s infinite;
}

@keyframes scrollPulse {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

@keyframes arrowBounce {
    0%,
    100% {
        transform: rotate(45deg) translate(0, 0);
    }
    50% {
        transform: rotate(45deg) translate(4px, 4px);
    }
}

button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-gold), #d7b467);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(200, 164, 77, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
.button-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(200, 164, 77, 0.26);
    color: #fff;
}

button[type="reset"] {
    background: #fff;
    color: var(--color-brown);
    border-color: rgba(90, 70, 58, 0.16);
    box-shadow: none;
}

label {
    display: inline-block;
    margin-bottom: var(--space-1);
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(90, 70, 58, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-brown);
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(30, 78, 216, 0.18);
    border-color: var(--color-blue);
}

.preorder-form {
    display: grid;
    gap: 16px;
}

.preorder-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.preorder-status {
    min-height: 24px;
    margin: 0;
    font-weight: 600;
}

.preorder-status.is-loading {
    color: var(--color-brown-soft);
}

.preorder-status.is-success {
    color: #1f7a42;
}

.preorder-status.is-error {
    color: #b42318;
}

.page-main {
    padding-top: var(--space-5);
}

.page-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: linear-gradient(135deg, rgba(232, 221, 207, 0.82), rgba(255, 250, 244, 0.96));
    border: 1px solid rgba(90, 70, 58, 0.08);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.page-hero__eyebrow {
    display: inline-block;
    margin-bottom: var(--space-2);
    color: var(--color-gold);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-hero__title {
    font-size: clamp(2.3rem, 4vw, 4.1rem);
    margin-bottom: var(--space-2);
}

.page-hero__lead {
    max-width: 56ch;
    color: var(--color-brown-soft);
    font-size: 1.05rem;
}

.page-hero__actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-3);
}

.page-image-card,
.content-card,
.info-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
}

.page-image-card {
    padding: var(--space-3);
}

.page-image-card img {
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.content-card {
    padding: var(--space-4);
}

.content-card h2,
.info-card h2 {
    margin-bottom: var(--space-2);
}

.content-card ul {
    margin: 0;
    padding-left: 20px;
}

.info-card {
    overflow: hidden;
}

.info-card__image {
    min-height: 220px;
}

.info-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-card__body {
    padding: var(--space-3);
}

.full-width-card {
    padding: var(--space-4);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: var(--space-3);
}

.footer-note {
    margin-top: var(--space-5);
    text-align: center;
    color: var(--color-brown-soft);
    font-size: 0.95rem;
}

#hero-next {
    scroll-margin-top: calc(var(--header-height) + 32px);
}

#preorder {
    scroll-margin-top: calc(var(--header-height) + 24px);
}

@media (max-width: 1024px) {
    :root {
        --header-height: 82px;
    }

    main {
        width: min(calc(100% - 32px), var(--container));
        padding-bottom: var(--space-5);
    }

    .page-hero,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: calc(100vh - var(--header-height));
    }

    .intro-slider img {
        width: min(96%, 1100px);
    }

    .hero-content {
        width: min(100%, 560px);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 76px;
    }

    body {
        font-size: 0.98rem;
    }

    .site-header {
        padding: 12px 16px;
    }

    .site-header > div {
        align-items: center !important;
        justify-content: center;
        flex-wrap: wrap;
        position: relative;
    }

    .brand-link img,
    .site-header img {
        width: 72px;
        max-width: 72px;
    }

    .brand-link {
        width: auto;
        flex: 0 0 auto;
        justify-content: center;
    }

    .site-header > div,
    .nav-shell {
        gap: var(--space-2);
    }

    .menu-toggle {
        display: inline-flex;
        margin: 0 auto;
    }

    .site-nav,
    .site-header > div > div:last-child {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        display: none !important;
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-2);
        background: rgba(255, 250, 244, 0.98);
        border: 1px solid rgba(90, 70, 58, 0.12);
        border-radius: 20px;
        box-shadow: var(--shadow-soft);
    }

    .site-header.is-open .site-nav,
    .site-header.is-open > div > div:last-child {
        display: flex !important;
    }

    .site-nav a,
    .site-header > div > div:last-child a {
        width: 100%;
        justify-content: flex-start;
    }

    main {
        width: min(calc(100% - 24px), var(--container));
        padding-top: var(--space-4);
    }

    main > * + * {
        margin-top: var(--space-4);
    }

    .hero-title,
    .page-hero__title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .intro-slider {
        inset: 0;
    }

    .page-hero,
    .content-card,
    .full-width-card {
        padding: var(--space-3);
    }

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

    .page-hero__actions {
        flex-direction: column;
    }

    .hero {
        min-height: calc(100vh - var(--header-height));
        align-items: flex-end;
        padding: 0 20px 28px;
    }

    .hero-content {
        width: min(100%, 520px);
        text-align: center;
        margin: 0 auto;
        padding: 0 0 56px;
    }

    .hero-title {
        margin-left: auto;
        margin-right: auto;
        color: #fff8f0;
        text-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    }

    .hero-subtitle {
        color: var(--color-primary);
    }

    .hero-description {
        margin: 0 auto;
        color: rgba(255, 248, 240, 0.9);
    }

    .intro-slider img {
        width: min(130%, 860px);
        height: 100%;
        left: -15%;
        object-position: center;
        opacity: 0.5;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(20, 15, 12, 0.36) 0%, rgba(20, 15, 12, 0.6) 100%);
    }

    .hero-description {
        font-size: 1rem;
    }

    main > div[style*="display: flex"] {
        flex-wrap: wrap !important;
        gap: var(--space-3) !important;
    }

    main > div[style*="display: flex"] > div {
        min-width: 100%;
    }

    main img[style*="width: 60%"] {
        width: min(100%, 320px) !important;
        margin: 0 auto;
    }

    main input,
    main select {
        max-width: 100%;
    }
}
