:root {
    --washi: #F7F2E8;
    --washi-dark: #DED3C0;
    --sumi: #171512;
    --sumi-light: #5C554B;
    --kin: #B58A3A;
    --kin-bright: #D9BC72;
    --enji: #923438;
    --matcha: #596E55;
    --ai: #294D62;
    --shell: rgba(255, 252, 245, 0.72);
    --hairline: rgba(23, 21, 18, 0.1);
    --font-serif: "Noto Serif JP", serif;
    
    /* Seasonal Theme - Spring (default) */
    --seasonal-accent: var(--matcha);
    --seasonal-gradient: linear-gradient(135deg, var(--sumi) 0%, var(--matcha) 100%);
}

.brand-word {
    font-family: "Noto Serif JP", serif !important;
    font-weight: 900;
}

/* Editorial redesign layer */
.editorial-site {
    --ink: #0e0d0b;
    --paper: #f4efe5;
    --paper-2: #e7ddcb;
    --muted-ink: #7b7164;
    --vermillion: #b73b36;
    --deep-blue: #173f52;
    --olive: #526349;
    --rule: rgba(244, 239, 229, 0.18);
    background:
        linear-gradient(180deg, #0e0d0b 0 44rem, var(--paper) 44rem 100%),
        url('washi-bg.png');
    color: var(--ink);
    font-family: "Noto Sans JP", "Noto Serif JP", sans-serif;
}

.editorial-site h1,
.editorial-site h2,
.editorial-site h3,
.editorial-site .hero-title {
    font-family: "Noto Serif JP", serif;
}

.editorial-site::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(14, 13, 11, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(14, 13, 11, 0.04) 1px, transparent 1px);
    background-size: 96px 96px;
    pointer-events: none;
}

.editorial-site .premium-header {
    height: 76px;
    background: rgba(14, 13, 11, 0.72);
    border-bottom: 1px solid rgba(244, 239, 229, 0.12);
    color: var(--paper);
    backdrop-filter: blur(24px) saturate(1.2);
}

.editorial-site .premium-header.scrolled {
    height: 66px;
    background: rgba(14, 13, 11, 0.9);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.editorial-site .premium-header .container {
    max-width: 1240px;
}

.editorial-site .premium-header img {
    border-radius: 10px !important;
    border: 1px solid rgba(244, 239, 229, 0.18) !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28) !important;
}

.editorial-site .premium-header .container > a:first-child span,
.editorial-site footer a span {
    font-family: "Noto Serif JP", serif;
    font-weight: 900;
}

.editorial-site .premium-header nav a {
    color: rgba(244, 239, 229, 0.72);
    font-size: 0.76rem;
    font-family: "Noto Sans JP", sans-serif;
    letter-spacing: 0.22em;
}

.editorial-site .premium-header nav a:hover {
    color: var(--kin-bright);
}

.editorial-site .btn-premium {
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid rgba(244, 239, 229, 0.64);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
    font-family: "Noto Sans JP", sans-serif;
}

.editorial-site .btn-premium:hover {
    background: transparent;
    color: var(--paper);
    border-color: rgba(244, 239, 229, 0.68);
}

.editorial-site .header-cta {
    background: transparent;
    color: var(--paper);
    border-color: rgba(244, 239, 229, 0.3);
    box-shadow: none;
}

.editorial-site .header-cta:hover {
    background: var(--paper);
    color: var(--ink);
}

.editorial-site .hero {
    min-height: 100svh;
    padding: 108px 5vw 36px;
    background:
        radial-gradient(circle at 16% 22%, rgba(183, 59, 54, 0.24), transparent 18rem),
        radial-gradient(circle at 78% 12%, rgba(23, 63, 82, 0.42), transparent 28rem),
        linear-gradient(135deg, #11100e 0%, #17130f 48%, #0a0b0b 100%);
    color: var(--paper);
}

.editorial-site .hero::before {
    display: none;
}

.editorial-site .hero::after {
    content: "TSUBUYAKU";
    right: auto;
    left: 4.4vw;
    bottom: 2.2rem;
    color: rgba(244, 239, 229, 0.06);
    font-family: "Noto Sans JP", sans-serif;
    font-size: clamp(4.6rem, 13vw, 13rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    writing-mode: horizontal-tb;
}

.editorial-site .hero-visual {
    inset: 0 0 0 auto;
    width: min(62vw, 980px);
    height: 100%;
    opacity: 0.62;
    filter: saturate(0.82) contrast(1.05);
    mask-image: linear-gradient(to left, black 38%, rgba(0,0,0,0.7) 64%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 38%, rgba(0,0,0,0.7) 64%, transparent 100%);
}

.editorial-site .hero .container {
    max-width: 1240px;
    align-items: stretch;
    min-height: calc(100svh - 150px);
}

.editorial-site .hero-content {
    max-width: 690px;
    align-self: center;
    padding-block: 2rem;
}

.editorial-site .hero-kicker {
    color: var(--kin-bright);
}

.editorial-site .hero-kicker span:first-child {
    width: 4.5rem;
    background: var(--vermillion);
}

.editorial-site .hero-title {
    font-size: clamp(3.7rem, 7vw, 7.1rem);
    line-height: 0.98;
    letter-spacing: -0.01em;
    text-shadow: 0 22px 70px rgba(0, 0, 0, 0.4);
}

.editorial-site .hero-title .writing-line:nth-child(2) {
    color: var(--kin-bright);
}

.editorial-site .hero-subtitle {
    max-width: 36rem;
    color: rgba(244, 239, 229, 0.74);
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.02rem;
    line-height: 2;
}

.editorial-site .hero-proof {
    color: rgba(244, 239, 229, 0.7);
    font-family: "Noto Sans JP", sans-serif;
}

.editorial-site .hero-proof span {
    border-left-color: var(--vermillion);
}

.editorial-site .hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 2rem;
    width: min(100%, 560px);
    border: 1px solid rgba(244, 239, 229, 0.16);
    background: rgba(244, 239, 229, 0.12);
}

.editorial-site .hero-metrics div {
    padding: 1rem;
    background: rgba(14, 13, 11, 0.54);
}

.editorial-site .hero-metrics strong,
.editorial-site .hero-metrics span {
    display: block;
}

.editorial-site .hero-metrics strong {
    color: var(--paper);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
}

.editorial-site .hero-metrics span {
    margin-top: 0.28rem;
    color: rgba(244, 239, 229, 0.56);
    font-size: 0.72rem;
}

.editorial-site .mockup-container {
    align-self: center;
    display: grid;
    place-items: center;
    width: min(40vw, 520px);
    min-height: min(64svh, 620px);
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.editorial-site .iphone-mockup {
    width: min(23vw, 300px);
    height: auto;
    aspect-ratio: 280 / 580;
    border: 8px solid #060606;
    border-radius: 42px;
    box-shadow:
        0 46px 120px rgba(0, 0, 0, 0.66),
        0 0 0 1px rgba(244, 239, 229, 0.24),
        0 0 84px rgba(244, 239, 229, 0.14);
}

.editorial-site #about {
    max-width: none;
    padding-inline: 0;
    background:
        linear-gradient(180deg, rgba(244, 239, 229, 0.9), rgba(244, 239, 229, 0.86)),
        url('washi-bg.png');
    background-size: auto, 520px;
}

.editorial-site .asym-container {
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.editorial-site .asym-row {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
    gap: clamp(3rem, 8vw, 7rem);
    align-items: center;
}

.editorial-site .brush-reveal img {
    border: 1px solid rgba(14, 13, 11, 0.12) !important;
    border-radius: 2px !important;
    box-shadow: 24px 24px 0 rgba(14, 13, 11, 0.08), 0 34px 90px rgba(14, 13, 11, 0.16) !important;
}

.editorial-site .section-label {
    background: var(--ink) !important;
    color: var(--paper) !important;
    border-radius: 999px;
    font-family: "Noto Sans JP", sans-serif;
}

.editorial-site #about h2,
.editorial-site #features h2,
.editorial-site #gallery h2,
.editorial-site #faq h2 {
    font-size: clamp(2.8rem, 5vw, 5.7rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.01em !important;
}

.editorial-site #about h2 br {
    display: block;
}

.editorial-site #features {
    background:
        linear-gradient(135deg, #0e0d0b 0%, #1c1814 58%, #102f3d 100%) !important;
    color: var(--paper);
    border: 0 !important;
}

.editorial-site #features .text-sumi-light,
.editorial-site #features p {
    color: rgba(244, 239, 229, 0.68) !important;
}

.editorial-site #features .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.editorial-site .feature-card {
    min-height: 22rem;
    background:
        linear-gradient(145deg, rgba(244, 239, 229, 0.12), rgba(244, 239, 229, 0.035)),
        url('washi-bg.png');
    border: 1px solid rgba(244, 239, 229, 0.13);
    color: var(--ink);
    border-radius: 14px;
    box-shadow: none;
}

.editorial-site .feature-card h3 {
    color: var(--ink);
    font-size: clamp(1.35rem, 1.8vw, 2rem);
    line-height: 1.28;
}

.editorial-site #features .feature-card p,
.editorial-site #features .feature-card .text-sumi-light {
    color: rgba(14, 13, 11, 0.66) !important;
}

.editorial-site .feature-card > div:first-of-type {
    background: rgba(14, 13, 11, 0.045) !important;
    border-color: rgba(14, 13, 11, 0.1) !important;
    color: var(--kin) !important;
}

.editorial-site .feature-number {
    color: rgba(14, 13, 11, 0.16);
}

.editorial-site #gallery {
    max-width: none;
    background:
        linear-gradient(180deg, var(--paper) 0%, #eee5d5 100%);
}

.editorial-site #gallery > .text-center {
    max-width: 900px;
    margin-inline: auto;
}

.editorial-site #gallery .grid {
    max-width: 1120px;
    margin-inline: auto;
    align-items: end;
}

.editorial-site .emaki-item {
    padding: 2rem 1rem 0;
    border-top: 1px solid rgba(14, 13, 11, 0.12);
}

.editorial-site .emaki-item p {
    font-family: "Noto Sans JP", sans-serif;
    letter-spacing: 0.24em;
    color: rgba(14, 13, 11, 0.64) !important;
}

.editorial-site .gallery-note {
    max-width: 44rem;
    margin-inline: auto;
    background: #0e0d0b !important;
    color: var(--paper);
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 34px 90px rgba(14, 13, 11, 0.16);
}

.editorial-site .gallery-note p,
.editorial-site .gallery-note .text-sumi-light {
    color: rgba(244, 239, 229, 0.68) !important;
}

.editorial-site #faq {
    max-width: none;
    background:
        linear-gradient(180deg, rgba(244, 239, 229, 0.91), rgba(244, 239, 229, 0.88)),
        url('washi-bg.png');
    background-size: auto, 520px;
}

.editorial-site #faq > div,
.editorial-site #faq > .space-y-6 {
    max-width: 850px;
    margin-inline: auto;
}

.editorial-site .faq-item {
    background: rgba(255, 252, 245, 0.72) !important;
    border: 1px solid rgba(14, 13, 11, 0.1) !important;
    border-radius: 14px !important;
    box-shadow: none;
}

.editorial-site #download {
    background:
        linear-gradient(135deg, rgba(14, 13, 11, 0.88), rgba(14, 13, 11, 0.72)),
        url('hero-visual.png') center / cover !important;
}

.editorial-site #download h2 {
    color: #fffaf0 !important;
    font-size: clamp(2.8rem, 6vw, 6.2rem) !important;
    line-height: 1.08;
    text-shadow: 0 18px 54px rgba(0, 0, 0, 0.48);
}

.editorial-site #download .download-copy,
.editorial-site #download .text-washi\/40 {
    color: #fffaf0 !important;
    text-shadow: 0 10px 34px rgba(0, 0, 0, 0.42);
}

.editorial-site #page-terms {
    background:
        linear-gradient(180deg, rgba(247, 242, 232, 0.92), rgba(238, 229, 213, 0.88)),
        url('washi-bg.png');
    background-size: auto, 520px;
    color: var(--ink);
}

.editorial-site #page-terms .container {
    background: rgba(255, 252, 245, 0.42);
    border: 1px solid rgba(14, 13, 11, 0.08);
    box-shadow: 0 34px 90px rgba(14, 13, 11, 0.08);
    padding-block: clamp(3rem, 6vw, 5rem);
}

.editorial-site #page-terms .terms-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: -1.5rem auto 5rem;
}

.editorial-site #page-terms .terms-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(14, 13, 11, 0.12);
    background: rgba(255, 252, 245, 0.62);
    color: var(--ink);
    font-family: "Noto Sans JP", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.editorial-site #page-terms .terms-nav a:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.editorial-site #page-terms article {
    color: var(--ink);
    scroll-margin-top: 112px;
}

.editorial-site #page-terms article h1,
.editorial-site #page-terms article h3 {
    color: var(--ink);
    font-family: "Noto Serif JP", serif;
}

.editorial-site #page-terms article h1 {
    border-bottom-color: rgba(14, 13, 11, 0.12);
}

.editorial-site #page-terms article + article {
    border-top-color: rgba(14, 13, 11, 0.12);
}

.editorial-site #page-terms article ol,
.editorial-site #page-terms article ul {
    margin-block: 0.75rem 1.25rem;
    padding-left: 1.6rem;
}

.editorial-site #page-terms article ol {
    list-style: decimal;
}

.editorial-site #page-terms article ul {
    list-style: disc;
}

.editorial-site #page-terms article ol[type="i"] {
    list-style: lower-roman;
}

.editorial-site #page-terms article li {
    margin-block: 0.35rem;
    padding-left: 0.25rem;
}

.editorial-site #page-terms article li::marker {
    color: var(--kin);
    font-weight: 700;
}

.editorial-site footer {
    background: #0e0d0b;
    color: var(--paper);
    border-top-color: rgba(244, 239, 229, 0.12) !important;
}

.editorial-site footer .text-sumi-light,
.editorial-site footer .text-sumi-light\/40 {
    color: rgba(244, 239, 229, 0.58) !important;
}

.editorial-site footer a:hover {
    color: var(--kin-bright);
}

@media (max-width: 1024px) {
    .editorial-site .hero {
        min-height: auto;
        padding-top: 104px;
    }

    .editorial-site .hero .container {
        min-height: auto;
    }

    .editorial-site .hero-visual {
        width: 100%;
        height: 58%;
        top: auto;
        bottom: 0;
        opacity: 0.28;
        mask-image: linear-gradient(to top, black 20%, transparent 88%);
        -webkit-mask-image: linear-gradient(to top, black 20%, transparent 88%);
    }

    .editorial-site .hero::before {
        inset: auto 6vw 4rem 6vw;
        height: 32rem;
        width: auto;
    }

    .editorial-site .hero-content {
        max-width: 760px;
    }

    .editorial-site .mockup-container {
        place-items: center;
    }

    .editorial-site .iphone-mockup {
        width: min(58vw, 300px);
    }

    .editorial-site .asym-row,
    .editorial-site #features .feature-grid {
        grid-template-columns: 1fr;
    }

    .editorial-site #features .feature-card {
        min-height: 22rem;
    }
}

@media (max-width: 768px) {
    .editorial-site .premium-header {
        background: rgba(14, 13, 11, 0.88);
    }

    .editorial-site .hero {
        padding: 94px 1rem 4rem;
    }

    .editorial-site .hero::after {
        left: 1rem;
        bottom: 0.5rem;
        font-size: clamp(3.1rem, 18vw, 5rem);
    }

    .editorial-site .hero-title {
        font-size: clamp(3rem, 16vw, 4.5rem);
        line-height: 1.03;
    }

    .editorial-site .hero-title .writing-line {
        white-space: normal;
    }

    .editorial-site .hero-subtitle {
        font-size: 0.94rem;
        line-height: 1.9;
    }

    .editorial-site .hero-metrics {
        grid-template-columns: 1fr;
        margin-top: 1.4rem;
    }

    .editorial-site .hero-proof {
        font-size: 0.66rem;
    }

    .editorial-site #about h2,
    .editorial-site #features h2,
    .editorial-site #gallery h2,
    .editorial-site #faq h2 {
        font-size: clamp(1.8rem, 8.5vw, 3.6rem) !important;
    }

    .editorial-site .asym-container {
        padding-inline: 1rem;
    }

    .editorial-site .feature-card {
        min-height: auto !important;
        border-radius: 12px;
    }

}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    scroll-padding-top: 88px;
}

body {
    background-color: var(--washi);
    background-image:
        radial-gradient(circle at 12% 8%, rgba(181, 138, 58, 0.16), transparent 28rem),
        radial-gradient(circle at 92% 18%, rgba(41, 77, 98, 0.13), transparent 26rem),
        linear-gradient(180deg, rgba(255,255,255,0.32), rgba(255,255,255,0) 36rem),
        url('washi-bg.png');
    background-size: auto, auto, auto, 480px;
    color: var(--sumi);
    font-family: var(--font-serif);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* Texture Overlay - Grain Effect */
body::after {
    content: "";
    position: fixed;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.035;
    pointer-events: none;
    z-index: 9999;
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* Sections */
section {
    padding-top: 9rem;
    padding-bottom: 9rem;
    scroll-margin-top: 88px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: 0.05em;
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
}

/* Header */
.premium-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 86px;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 clamp(1rem, 4vw, 5%);
    background: rgba(247, 242, 232, 0.72);
    backdrop-filter: blur(22px) saturate(1.12);
    border-bottom: 1px solid var(--hairline);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-header.scrolled {
    height: 68px;
    background: rgba(247, 242, 232, 0.93);
    box-shadow: 0 20px 50px rgba(23, 21, 18, 0.06);
}

.premium-header .container {
    max-width: 1180px;
}

.premium-header a {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.45em;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 108px 5% 56px;
    overflow: hidden;
    isolation: isolate;
}

.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: min(62%, 900px);
    height: 100%;
    background-image: url('hero-visual.png');
    background-size: cover;
    background-position: center;
    mask-image: linear-gradient(to left, black 46%, rgba(0,0,0,0.62) 68%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 46%, rgba(0,0,0,0.62) 68%, transparent 100%);
    opacity: 0.78;
    z-index: 1;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 7.5rem 5% 4rem auto;
    width: min(44vw, 640px);
    border: 1px solid rgba(181, 138, 58, 0.24);
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
    z-index: 0;
}

.hero::after {
    content: "俳句";
    position: absolute;
    right: clamp(1.2rem, 5vw, 5rem);
    bottom: clamp(1rem, 6vw, 5rem);
    z-index: 1;
    color: rgba(23, 21, 18, 0.055);
    font-size: clamp(8rem, 20vw, 18rem);
    font-weight: 900;
    line-height: 1;
    writing-mode: vertical-rl;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.hero-title {
    font-size: clamp(2.9rem, 6.2vw, 4.95rem);
    line-height: 1.12;
    margin-bottom: 1.6rem;
    letter-spacing: 0.02em;
    text-wrap: balance;
}

.hero-title br {
    display: none;
}

.hero-title .writing-line {
    display: block;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.22rem);
    color: var(--sumi-light);
    margin-bottom: 2.2rem;
    max-width: 40rem;
}

.hero-kicker span:last-child,
.section-label {
    letter-spacing: 0.28em;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    color: rgba(23, 21, 18, 0.64);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.hero-proof span {
    border-left: 1px solid rgba(181, 138, 58, 0.52);
    padding-left: 0.75rem;
}

/* Buttons */
.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.1rem;
    background: linear-gradient(135deg, var(--sumi), #302820);
    color: var(--washi);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
    border: 1px solid var(--sumi);
    box-shadow: 0 18px 40px rgba(23, 21, 18, 0.16);
}

.btn-premium:hover {
    background: rgba(255,255,255,0.35);
    color: var(--sumi);
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(23, 21, 18, 0.12);
}

.header-cta {
    padding: 0.72rem 1.3rem;
    box-shadow: none;
}

/* Cards */
.feature-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.52)),
        url('washi-bg.png');
    background-size: auto, 420px;
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: 8px;
    border: 1px solid var(--hairline);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-height: 100%;
    box-shadow: 0 24px 70px rgba(23, 21, 18, 0.055);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 42px 90px rgba(23, 21, 18, 0.11);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--kin);
    transition: all 0.5s ease;
}

.feature-card > div:first-of-type {
    border-radius: 8px !important;
}

.feature-number {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    color: rgba(23, 21, 18, 0.14);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.feature-card:hover::before {
    height: 100%;
}

/* Animations */
@keyframes inkSpread {
    from { mask-size: 0% 0%; }
    to { mask-size: 100% 100%; }
}

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* Background Decorations */
.bg-decor {
    position: absolute;
    font-size: 40rem;
    color: rgba(0,0,0,0.018);
    z-index: 0;
    pointer-events: none;
    font-weight: 900;
}

/* Mockups */
.mockup-container {
    perspective: 1000px;
}

.iphone-mockup {
    width: 280px;
    height: 580px;
    background: #000;
    border-radius: 34px;
    border: 7px solid #25211d;
    overflow: hidden;
    position: relative;
    box-shadow: 0 50px 100px -22px rgba(23, 21, 18, 0.34), 0 0 0 1px rgba(255,255,255,0.4) inset;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.iphone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iphone-mockup::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.floating-mockup {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0) rotateX(2deg) rotateY(-5deg); }
    50% { transform: translateY(-20px) rotateX(5deg) rotateY(2deg); }
}

/* Seasonal Themes */
body.spring {
    --seasonal-accent: var(--matcha);
    --seasonal-gradient: linear-gradient(135deg, var(--sumi) 0%, var(--matcha) 100%);
}
body.summer {
    --seasonal-accent: #3D5A80;
    --seasonal-gradient: linear-gradient(135deg, var(--sumi) 0%, #3D5A80 100%);
}
body.autumn {
    --seasonal-accent: var(--enji);
    --seasonal-gradient: linear-gradient(135deg, var(--sumi) 0%, var(--enji) 100%);
}
body.winter {
    --seasonal-accent: #8D99AE;
    --seasonal-gradient: linear-gradient(135deg, var(--sumi) 0%, #8D99AE 100%);
}

/* Brush Stroke Reveal Animation */
.brush-reveal {
    mask-image: linear-gradient(to right, black 45%, transparent 55%);
    mask-size: 250% 100%;
    mask-position: 100% 0;
    mask-repeat: no-repeat;
    transition: mask-position 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.brush-reveal.active {
    mask-position: 0% 0;
}

/* Asymmetrical Layout Refinements */
.asym-container {
    display: flex;
    flex-direction: column;
}

.asym-row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.asym-row:nth-child(even) {
    flex-direction: row-reverse;
}

.asym-row:nth-child(even) .reveal-text {
    text-align: right;
}

.gallery-note,
.faq-item {
    border-radius: 8px !important;
}

.gallery-note {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.54), rgba(222, 211, 192, 0.22)),
        url('washi-bg.png') !important;
    background-size: auto, 440px !important;
}

.faq-item {
    background: rgba(255, 252, 245, 0.72) !important;
    border-color: var(--hairline) !important;
    box-shadow: 0 16px 40px rgba(23, 21, 18, 0.045);
}

footer {
    background:
        linear-gradient(180deg, rgba(222, 211, 192, 0.2), rgba(255,255,255,0.16)),
        url('washi-bg.png');
    background-size: auto, 480px;
}

.emaki-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 2rem;
}

/* Brush Writing Effect */
.writing-char {
    display: inline-block;
    opacity: 0;
    transform: scale(1.1);
    filter: blur(5px);
    transition: all 0.4s ease-out;
}

.writing-line {
    display: inline;
}

.writing-char.written {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 132px;
        min-height: auto;
    }
    .hero-visual {
        width: 100%;
        height: 48%;
        bottom: 0;
        top: auto;
        mask-image: linear-gradient(to top, black 35%, transparent 100%);
        -webkit-mask-image: linear-gradient(to top, black 35%, transparent 100%);
        opacity: 0.32;
    }
    .hero::before {
        inset: auto 7% 4rem 7%;
        width: auto;
        height: 38%;
    }
    .hero-content {
        max-width: 100%;
        margin-bottom: 4rem;
    }
    .hero-title {
        font-size: clamp(2.85rem, 9vw, 4.15rem);
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .iphone-mockup {
        width: 240px;
        height: 500px;
    }

    section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

@media (max-width: 768px) {
    .premium-header {
        height: 68px;
        padding: 0 1rem;
    }

    .premium-header .container {
        gap: 0.75rem;
    }

    .premium-header .container > a:first-child span {
        font-size: 1.15rem;
        letter-spacing: 0.12em;
    }

    .premium-header img {
        width: 2.45rem !important;
        height: 2.45rem !important;
        border-radius: 8px !important;
    }

    .header-cta {
        padding: 0.62rem 0.82rem;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .hero {
        padding-inline: 1rem;
        text-align: left;
    }

    .hero .container {
        padding-inline: 0;
        gap: 2rem;
    }

    .hero-title {
        font-size: clamp(2.25rem, 11vw, 3.15rem);
    }

    .hero-subtitle br {
        display: none;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .hero-proof {
        gap: 0.55rem;
        font-size: 0.68rem;
    }
    
    .asym-row {
        flex-direction: column !important;
        gap: 3rem;
        text-align: center !important;
    }
    
    .emaki-item {
        width: 100%;
    }
    
    #cursor {
        display: none !important;
    }

    /* Adjust page-home top padding to prevent header overlap */
    #page-home {
        padding-top: 0;
    }

    /* Prevent overflow from decorations */
    .bg-decor {
        font-size: 15rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .faq-summary {
        padding: 1.35rem !important;
        gap: 1rem;
    }

    .faq-summary span {
        font-size: 1rem;
        line-height: 1.6;
    }
}

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

    .reveal-text,
    .brush-reveal,
    .writing-char {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        mask-position: 0 0 !important;
    }
}
