:root {
    --indigo-core: #2E3192;     /* Twilight Indigo */
    --electric-blue: #0047AB;   /* Electric Cobalt */
    --pale-lemon: #F4F6B8;      /* Pale Lemon Dawn */
    --text-dark: #1E293B;
    --text-muted: #475569;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Slow-moving gradient background */
html {
    min-height: 100%;
    background-color: #191970;
    background-image:
        radial-gradient(ellipse at 72% 88%, rgba(255, 250, 205, 0.3) 0%, rgba(240, 230, 140, 0.2) 20%, transparent 72%),
        radial-gradient(ellipse at 68% 62%, #F4C2C2 0%, #CCCCFF 38%, transparent 74%),
        linear-gradient(180deg, #191970 0%, #191970 7%, #2E3192 20%, #0F52BA 38%, #6495ED 56%, #CCCCFF 70%, #F4C2C2 83%, #FFFACD 94%, #F0E68C 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 80% 48%, 120% 72%, 100% 100%;
    background-position: 100% 125%, 80% 110%, center;
    animation: gradientDrift 85s ease-in-out infinite alternate;
}

@keyframes gradientDrift {
    0% {
        background-position: 100% 125%, 80% 110%, center;
    }
    50% {
        background-position: 88% 115%, 95% 95%, center;
    }
    100% {
        background-position: 100% 130%, 72% 105%, center;
    }
}

body {
    font-family: 'Lato', sans-serif;
    background: transparent;
    color: var(--text-dark);
    line-height: 1.7;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;

    /* Slide-in Page Transition */
    animation: pageSlideIn 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes pageSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Floating Pill Header */
header {
    position: sticky;
    top: 1.2rem;
    z-index: 1000;
    width: 92%;
    margin: 1.2rem auto 0 auto;
    padding: 0.8rem 2rem 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(46, 49, 146, 0.08);
    transition: transform 0.3s ease;
}

header.is-hidden {
    transform: translateY(calc(-100% - 2rem));
    pointer-events: none;
}

.logo-container img {
    height: 60px;
    width: auto;
    display: block;
}

nav a {
    font-family: 'Lato', sans-serif;
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 1rem;
    font-weight: 300;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

nav a:hover, nav a.active {
    color: var(--indigo-core);
    font-weight: 400;
}

nav a:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--electric-blue);
    outline-offset: 3px;
}

/* Brand Gradient Text */
.brand-gradient {
    background: linear-gradient(135deg, var(--indigo-core) 0%, var(--electric-blue) 60%, #4B79A1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Welcome Banner */
.welcome-banner {
    text-align: center;
    padding: 5rem 4% 2rem 4%;
}

.welcome-banner h2 {
    font-family: 'Lato', sans-serif;
    font-size: 2.8rem;
    font-weight: 500;
    line-height: 1.2;
    background: none;
    color: #FFFACD;
    -webkit-text-fill-color: #FFFACD;
    text-shadow: 0 2px 16px rgba(25, 25, 112, 0.35);
}

/* Hero Section Container */
.hero {
    width: 88%;
    max-width: 900px;
    margin: 1.5rem auto 3.5rem auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 20px 40px rgba(46, 49, 146, 0.08);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 2.5rem;
    flex: 1;
}

.hero-content h1 {
    font-family: 'Lato', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    font-weight: 300;
}

.hero-image img, .product-image img, .back-image img {
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    display: block;
    margin: 0 auto;
}

.btn {
    font-family: 'Lato', sans-serif;
    background-color: var(--indigo-core);
    color: #FFFFFF;
    padding: 0.85rem 2.2rem;
    min-height: 44px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
}

.btn:hover {
    background-color: var(--electric-blue);
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Clean 3D Flip Container */
.card-flip-wrapper {
    width: 88%;
    max-width: 900px;
    margin: 2.5rem auto 3.5rem auto;
    perspective: 1200px;
    flex: 1;
}

.flipper {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
}

.card-flip-wrapper.flipped .flipper {
    transform: rotateY(180deg);
}

.card-face {
    width: 100%;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 20px 40px rgba(46, 49, 146, 0.08);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2.5rem;
}

.card-front {
    position: relative;
    z-index: 2;
}

.card-back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
    z-index: 1;
}

.product-details h1 {
    font-family: 'Lato', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--electric-blue);
    margin-bottom: 1rem;
}

.product-details p, .contents-details p.guide-note {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 300;
}

.contents-details h2 {
    font-family: 'Lato', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
    line-height: 1.2;
}

.contents-list {
    list-style: none;
    font-size: 0.92rem;
    font-style: italic;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.contents-list li::before {
    content: "•  ";
    color: var(--electric-blue);
    font-weight: bold;
}

.footnote {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.back-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Frosted Footer */
footer {
    padding: 1.8rem 2rem 1.25rem;
    width: 92%;
    margin: 0 auto 1.8rem auto;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 20px;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 300;
    text-align: center;
}

.footer-site-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-heading {
    margin-bottom: 0.65rem;
    color: var(--indigo-core);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    width: min(100%, 800px);
}

.footer-nav a {
    display: flex;
    flex: 1 1 120px;
    align-items: center;
    justify-content: center;
    max-width: 160px;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(46, 49, 146, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.42);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--electric-blue);
    border-color: rgba(0, 71, 171, 0.28);
    background: rgba(255, 255, 255, 0.8);
}

.footer-nav a:focus-visible {
    outline: 2px solid var(--electric-blue);
    outline-offset: 3px;
}

.footer-copyright {
    padding-top: 1rem;
    border-top: 1px solid rgba(46, 49, 146, 0.12);
}

.about-page {
    width: min(1100px, 90%);
    margin: clamp(2rem, 6vw, 4.5rem) auto 3.5rem;
    display: grid;
    gap: 1.5rem;
    flex: 1;
}

.about-hero,
.about-story {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 28px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.05), 0 20px 44px rgba(46, 49, 146, 0.08);
}

.about-hero {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding: clamp(2rem, 6vw, 4.5rem);
}

.about-intro {
    max-width: 490px;
}

.about-eyebrow {
    margin-bottom: 1rem;
    color: var(--electric-blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.4;
}

.about-intro h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 500;
    line-height: 1.08;
}

.about-lead {
    max-width: 38rem;
    color: var(--text-muted);
    font-size: clamp(1.05rem, 1.7vw, 1.2rem);
    font-weight: 300;
    line-height: 1.8;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.5rem;
    color: var(--indigo-core);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.about-link span {
    transition: transform 0.2s ease;
}

.about-link:hover span {
    transform: translateX(4px);
}

.about-link:focus-visible {
    outline: 3px solid var(--electric-blue);
    outline-offset: 4px;
}

.about-image {
    position: relative;
    margin: 0;
}

.about-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 16px 38px rgba(30, 41, 59, 0.15);
}

.about-image figcaption {
    margin: 0.75rem 0 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
    text-align: right;
}

.about-story {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(2rem, 6vw, 5rem);
    padding: clamp(2rem, 5vw, 3.5rem);
}

.about-story-heading h2 {
    color: var(--text-dark);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 500;
    line-height: 1.2;
}

.about-story-mark {
    display: block;
    width: min(100%, 330px);
    height: auto;
    margin: 1rem auto 0;
}

.about-story-copy {
    min-height: 8rem;
    padding-left: clamp(1rem, 3vw, 2rem);
    border-left: 2px solid rgba(0, 71, 171, 0.22);
}

.about-story-copy p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.9;
}

.about-story-copy p:last-child {
    margin-bottom: 0;
}

.about-story-copy .about-story-signoff {
    margin-top: 1.5rem;
    color: var(--indigo-core);
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 400;
}

.contact-page {
    width: min(900px, 90%);
    margin: clamp(2rem, 8vw, 6rem) auto 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.contact-card {
    width: 100%;
    padding: clamp(2rem, 7vw, 5rem);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 28px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.05), 0 20px 44px rgba(46, 49, 146, 0.08);
    text-align: center;
}

.contact-card h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
}

.contact-lead {
    max-width: 38rem;
    margin: 0 auto 1.5rem;
    color: var(--text-muted);
    font-size: clamp(1.05rem, 1.7vw, 1.2rem);
    font-weight: 300;
    line-height: 1.8;
}

.contact-email {
    padding: 0;
    color: var(--indigo-core);
    background: none;
    border: 0;
    font-family: inherit;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.contact-email:focus-visible {
    outline: 3px solid var(--electric-blue);
    outline-offset: 4px;
}

.contact-note {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
}

.purchase-page {
    width: min(1000px, 90%);
    margin: clamp(2rem, 8vw, 6rem) auto 3.5rem;
    display: flex;
    align-items: center;
    flex: 1;
}

.purchase-card {
    width: 100%;
    padding: clamp(2rem, 7vw, 5rem);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 28px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.05), 0 20px 44px rgba(46, 49, 146, 0.08);
}

.purchase-card > h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
}

.purchase-lead {
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 300;
}

.purchase-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.purchase-option {
    padding: clamp(1.25rem, 4vw, 2rem);
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(46, 49, 146, 0.1);
    border-radius: 18px;
}

.purchase-option h2 {
    margin-bottom: 0.75rem;
    color: var(--indigo-core);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.3;
}

.purchase-option p {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-weight: 300;
}

.purchase-option .purchase-note {
    font-size: 0.9rem;
    font-style: italic;
}

.purchase-option .btn {
    margin-top: 0.5rem;
    letter-spacing: 0;
    text-transform: none;
}

.email-copy-toast {
    position: fixed;
    z-index: 1000;
    right: 1.5rem;
    bottom: 1.5rem;
    margin: 0;
    padding: 0.85rem 1.25rem;
    color: #FFFFFF;
    background: var(--indigo-core);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    font-family: 'Lato', sans-serif;
}

@media (min-width: 769px) and (max-width: 900px) {
    header {
        width: 94%;
        padding: 0.8rem 1.5rem 0.8rem 0.75rem;
    }
    nav a {
        margin-left: 1.25rem;
    }
    .hero,
    .card-face {
        gap: 1.5rem;
        padding: 2rem;
    }
    .hero-content h1,
    .product-details h1 {
        font-size: 2.2rem;
    }
    .about-page {
        width: 92%;
    }
}

@media (max-width: 768px) {
    header {
        width: 94%;
        padding: 0.6rem 1rem 0.6rem 0.5rem;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0.35rem 0.75rem;
    }
    .logo-container img {
        height: 46px;
        max-width: 38vw;
    }
    nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 0.25rem 1rem;
    }
    nav a {
        margin-left: 0;
        font-size: 0.9rem;
    }
    .welcome-banner {
        padding: clamp(2rem, 8vw, 3.5rem) 5% 1.5rem;
    }
    .welcome-banner h2 {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }
    .hero {
        grid-template-columns: 1fr;
        width: 92%;
        padding: clamp(1.5rem, 5vw, 2.5rem);
        margin: 1.5rem auto 2.5rem auto;
        text-align: center;
        gap: clamp(1.25rem, 5vw, 2rem);
    }
    .card-face {
        grid-template-columns: 1fr;
        width: 100%;
        padding: clamp(1.5rem, 5vw, 2rem);
        margin: 0;
        text-align: center;
        gap: clamp(1.25rem, 5vw, 2rem);
    }
    .about-page {
        width: 92%;
        margin: 2rem auto 2.5rem;
        gap: 1.25rem;
    }
    .about-hero,
    .about-story {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        border-radius: 22px;
    }
    .purchase-options {
        grid-template-columns: 1fr;
    }
    .about-hero {
        padding: clamp(1.5rem, 6vw, 2.5rem);
    }
    .about-image {
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
    }
    .about-story {
        padding: clamp(1.5rem, 6vw, 2.5rem);
    }
    .about-story-mark {
        width: min(100%, 330px);
        margin: 0.75rem auto 0;
    }
    .about-story-copy {
        min-height: 6rem;
        padding-left: 1rem;
    }
    .hero-content h1,
    .product-details h1 {
        font-size: clamp(1.9rem, 6vw, 2.25rem);
    }
    .card-flip-wrapper {
        width: 92%;
        margin: 1.5rem auto 2.5rem auto;
    }
    .flipper {
        display: grid;
        transform-style: preserve-3d;
    }
    .card-front,
    .card-back {
        grid-area: 1 / 1;
        position: relative;
        top: auto;
        left: auto;
    }
    .contents-details h2 {
        font-size: clamp(1.65rem, 5.5vw, 1.9rem);
    }
    .btn {
        width: 100%;
        min-height: 48px;
    }
    .product-actions {
        flex-direction: column;
    }
    footer {
        width: 94%;
        padding: 1.2rem;
    }
}

@media (max-width: 420px) {
    .logo-container img {
        height: 40px;
        max-width: 34vw;
    }
    nav {
        gap: 0 0.6rem;
    }
    nav a {
        font-size: 0.82rem;
    }
    .hero,
    .card-flip-wrapper {
        width: 94%;
    }
}

@media (hover: none) and (pointer: coarse) {
    html {
        background-attachment: scroll;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        animation: none;
    }
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}