/* css/style.css - eye-friendly light theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
:root {
    /* Eye-friendly light palette */
    --gold: #b8935a;
    --light-gold: #d4b87a;
    --gold-dark: #8a6d3f;
    --border: rgba(184, 147, 90, 0.2);
    --bg-start: #f5f5f5;
    --bg-end: #e9e9e9;
    --sun-glow: rgba(184, 147, 90, 0.04);
    --card-shadow: rgba(0, 0, 0, 0.04);
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-nav: rgba(255, 255, 255, 0.95);
    --text: #2c2c2c;
    --muted: #5f5f5f;
    --muted-light: #8a8a8a;
    --shadow: rgba(0, 0, 0, 0.06);
    --splash-bg: #f5f5f5;
    --loader-bg: rgba(0, 0, 0, 0.08);
    --footer-border: rgba(0, 0, 0, 0.08);
    --card-hover-border: rgba(184, 147, 90, 0.5);
    --input-bg: rgba(255, 255, 255, 0.9);
    --input-border: rgba(0, 0, 0, 0.12);
    --input-text: #2c2c2c;
    --nav-scroll-border: rgba(0, 0, 0, 0.1);
    --contact-bg: rgba(0, 0, 0, 0.02);
    --section-alt-bg: rgba(0, 0, 0, 0.02);
    --wave-color: rgba(0, 0, 0, 0.03);
}
[data-theme="dark"] {
    --gold: #c7a45a;
    --light-gold: #e4c982;
    --gold-dark: #8f6f34;
    --border: rgba(199, 164, 90, 0.22);
    --bg-start: #12101a;
    --bg-end: #1c1a2e;
    --sun-glow: rgba(199, 164, 90, 0.04);
    --card-shadow: rgba(0, 0, 0, 0.3);
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-nav: rgba(18, 16, 26, 0.9);
    --text: #f0eadd;
    --muted: #b0a89b;
    --muted-light: #8a837a;
    --shadow: rgba(0, 0, 0, 0.4);
    --splash-bg: #12101a;
    --loader-bg: rgba(255, 255, 255, 0.05);
    --footer-border: rgba(255, 255, 255, 0.04);
    --card-hover-border: rgba(199, 164, 90, 0.45);
    --input-bg: rgba(255, 255, 255, 0.04);
    --input-border: rgba(255, 255, 255, 0.06);
    --input-text: #f0eadd;
    --nav-scroll-border: rgba(199, 164, 90, 0.15);
    --contact-bg: rgba(199, 164, 90, 0.03);
    --section-alt-bg: rgba(199, 164, 90, 0.015);
    --wave-color: rgba(199, 164, 90, 0.03);
}
body {
    background: linear-gradient(160deg, var(--bg-start) 0%, var(--bg-end) 100%);
    color: var(--text);
    font-family: 'Inter', 'Tajawal', 'Noto Sans JP', sans-serif;
    overflow-x: hidden;
    transition: background .5s ease, color .4s ease;
    min-height: 100vh;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(90deg,
            var(--wave-color) 0px,
            var(--wave-color) 1px,
            transparent 1px,
            transparent 60px),
        repeating-linear-gradient(0deg,
            var(--wave-color) 0px,
            var(--wave-color) 1px,
            transparent 1px,
            transparent 60px);
    background-size: 60px 60px;
    opacity: 0.35;
}
body::after {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    top: -150px;
    right: -150px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--sun-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
h1, h2, h3, h4, .logo, .splash h1, .member-image, .label {
    font-family: 'Zen Old Mincho', 'Noto Sans JP', 'Tajawal', serif;
}
h1, h2, .section-title, .hero h1 {
    font-weight: 600;
    letter-spacing: 0.04em;
}
body, p, .card p, .description, .form-group label,
.contact-info .card p, nav a, .button, .lang-btn,
.lang-dropdown button, input, textarea {
    font-family: 'Noto Sans JP', 'Tajawal', 'Inter', sans-serif;
}
.logo {
    font-family: 'Zen Old Mincho', 'Noto Sans JP', serif;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.splash {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--splash-bg);
    transition: opacity .8s ease, visibility .8s ease;
}
.splash.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.splash-content {
    text-align: center;
    position: relative;
    z-index: 1;
}
.splash img {
    width: 180px;
    opacity: 0;
    transform: scale(0.8);
    animation: logo 1.2s ease forwards;
}
.splash h1 {
    font-size: 4.5rem;
    letter-spacing: 0.18em;
    color: var(--light-gold);
    opacity: 0;
    animation: show 1s 0.5s ease forwards;
}
.splash p {
    color: var(--muted-light);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    opacity: 0;
    animation: show 1s 0.9s ease forwards;
}
.loader {
    width: 220px;
    height: 2px;
    margin: 55px auto 0;
    background: var(--loader-bg);
    overflow: hidden;
    opacity: 0;
    animation: show 1s 1.2s ease forwards;
}
.loader span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--gold);
    animation: loading 2.5s ease forwards;
}
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 7%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-nav);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid transparent;
    transition: background .4s ease, border-color .3s ease, box-shadow .3s ease;
}
nav.scrolled {
    border-color: var(--nav-scroll-border);
    box-shadow: 0 2px 20px var(--shadow);
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light-gold);
    text-decoration: none;
    font-size: 1.8rem;
}
.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}
nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color .3s ease;
    position: relative;
    font-weight: 500;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width .3s ease;
}
nav a:hover::after,
nav a.active::after {
    width: 100%;
}
nav a:hover {
    color: var(--light-gold);
}
.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color .3s ease, border-color .3s ease, transform .3s ease;
}
.theme-toggle:hover {
    color: var(--light-gold);
    border-color: var(--gold);
    transform: rotate(20deg);
}
.lang-select {
    position: relative;
}
.lang-btn {
    padding: 8px 14px;
    border-radius: 25px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.lang-btn:hover {
    color: var(--light-gold);
    border-color: var(--gold);
}
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-nav);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 12px 40px var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.96);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    z-index: 50;
}
.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.lang-dropdown button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 0.8rem;
    cursor: pointer;
    text-align: left;
}
.lang-dropdown button:hover {
    background: rgba(184, 147, 90, 0.12);
    color: var(--light-gold);
}
.lang-dropdown button.active-lang {
    background: rgba(184, 147, 90, 0.15);
    color: var(--light-gold);
    font-weight: 600;
}
.lang-flag {
    margin-right: 8px;
}
.hero {
    min-height: 100vh;
    padding: 150px 7% 80px;
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}
.hero-content {
    width: 55%;
    position: relative;
    z-index: 1;
}
.label {
    color: var(--gold);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-weight: 500;
}
.hero h1 {
    font-size: clamp(3.5rem, 7vw, 6rem);
    line-height: 1.1;
    font-weight: 600;
    color: var(--text);
}
.hero h1 span {
    color: var(--gold);
    font-style: italic;
}
.hero p {
    max-width: 560px;
    margin-top: 28px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 1rem;
}
.buttons {
    display: flex;
    gap: 14px;
    margin-top: 35px;
    flex-wrap: wrap;
    align-items: center;
}
.button {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: transform .3s ease, background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
    letter-spacing: 0.02em;
}
.primary {
    background: var(--gold);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(184, 147, 90, 0.3);
}
.primary:hover {
    background: var(--light-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 147, 90, 0.4);
}
.secondary {
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
}
.secondary:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    transform: translateY(-2px);
}
.download-buttons {
    margin-top: 25px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.download-btn {
    text-decoration: none;
    display: inline-block;
}
.download-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    user-select: none;
}
.hero-image {
    width: 45%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.hero-image img {
    width: min(430px, 90%);
    filter: drop-shadow(0 0 50px rgba(184, 147, 90, 0.15));
    animation: float 5s ease-in-out infinite;
}
section {
    padding: 110px 7%;
    position: relative;
    z-index: 1;
}
section:nth-of-type(even) {
    background: var(--section-alt-bg);
}
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity .8s ease, transform .8s ease;
}
.reveal.show {
    opacity: 1;
    transform: translateY(0);
}
.section-title {
    max-width: 700px;
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 600;
    line-height: 1;
    color: var(--text);
}
.description {
    max-width: 650px;
    margin-top: 20px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 1rem;
}
.highlight-cards {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    flex: 1;
    min-width: 200px;
    transition: transform .3s ease, border-color .3s ease;
}
.highlight-card:hover {
    transform: translateY(-5px);
    border-color: var(--card-hover-border);
}
.highlight-card strong {
    display: block;
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 8px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 55px;
}
.feature-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg-card);
    transition: transform .35s ease, border-color .35s ease;
}
.feature-card:hover {
    transform: translateY(-7px);
    border-color: var(--card-hover-border);
    box-shadow: 0 8px 25px var(--shadow);
}
.feature-card .icon {
    margin-bottom: 20px;
    color: var(--gold);
    font-size: 1.8rem;
}
.feature-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}
.feature-card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}
.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 50px;
}
.step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    text-align: center;
}
.step span {
    display: block;
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.step strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text);
}
.step p {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
}
.reader-highlight {
    margin-top: 30px;
    padding: 30px;
    background: var(--bg-card);
    border-left: 4px solid var(--gold);
    font-size: 1.3rem;
    color: var(--gold);
    font-family: 'Zen Old Mincho', serif;
}
.mini-points {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.mini {
    flex: 1;
    min-width: 150px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
}
.mini strong {
    display: block;
    color: var(--gold);
    margin-bottom: 6px;
}
.kanji-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}
.kanji-highlights span {
    font-size: 1.1rem;
    color: var(--muted);
    padding-left: 20px;
    border-left: 3px solid var(--gold);
}
.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.audience {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
}
.audience strong {
    display: block;
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 8px;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 55px;
}
.member {
    text-align: center;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg-card);
}
.member-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-dark);
    border-radius: 50%;
    color: var(--gold);
    font-family: 'Zen Old Mincho', serif;
    font-size: 2.4rem;
    background: var(--bg-card);
}
.member h3 {
    font-size: 1.4rem;
    color: var(--text);
}
.member span {
    display: block;
    color: var(--gold);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 5px;
}
.member p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
}
.contact-section {
    background: var(--contact-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 22px;
    margin-top: 55px;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-info .card {
    padding: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
}
.contact-info .icon {
    margin-bottom: 12px;
    font-size: 1.5rem;
    color: var(--gold);
}
.contact-info h4 {
    font-size: 1.2rem;
    color: var(--text);
}
.contact-info p {
    color: var(--muted);
    margin-top: 4px;
}
.contact-form .card {
    padding: 35px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--input-text);
    font-size: 0.9rem;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 147, 90, 0.15);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form .button {
    width: 100%;
}
footer {
    padding: 60px 7% 25px;
    border-top: 1px solid var(--footer-border);
    text-align: center;
    background: var(--bg-card);
    position: relative;
    z-index: 1;
}
footer img {
    width: 80px;
}
footer h2 {
    color: var(--light-gold);
    font-size: 2.8rem;
}
footer p {
    color: var(--muted);
}
.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--footer-border);
    color: var(--muted-light);
    font-size: 0.7rem;
}
@keyframes logo {
    to { opacity: 1; transform: scale(1); }
}
@keyframes show {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes loading {
    to { width: 100%; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-start);
}
::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--light-gold);
}
[dir="rtl"] .lang-flag {
    margin-right: 0;
    margin-left: 8px;
}
[dir="rtl"] .lang-dropdown button {
    text-align: right;
}
[dir="rtl"] nav a::after {
    left: auto;
    right: 0;
}
[dir="rtl"] body::after {
    right: auto;
    left: -150px;
}
@media (max-width: 1024px) {
    .features-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 900px) {
    nav ul {
        display: none;
    }
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }
    .hero-content,
    .hero-image {
        width: 100%;
    }
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    .buttons {
        justify-content: center;
    }
    .download-buttons {
        justify-content: center;
    }
    .features-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .audience-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .splash h1 {
        font-size: 3.5rem;
    }
    .splash img {
        width: 150px;
    }
    section {
        padding: 85px 6%;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .button {
        padding: 12px 22px;
        font-size: 0.85rem;
    }
}
