html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    scroll-behavior: smooth;
}

body[data-theme="default"] {
    --landing-bg: #f7fbff;
    --landing-bg-soft: #eef6ff;
    --landing-bg-deep: #e0ecfb;
    --landing-gradient-1: #dbe8fa;
    --landing-gradient-2: #c5dcf5;

    --landing-text: #182131;
    --landing-text-soft: #5a6b82;
    --landing-text-on-dark: #182131;

    --landing-accent: #0E8ED0;
    --landing-accent-soft: #25a4a4;
    --landing-accent-warm: #d9ad00;

    --landing-line: rgba(14, 142, 208, 0.18);
    --landing-glow: rgba(14, 142, 208, 0.14);
    --landing-glow-soft: rgba(127, 222, 222, 0.18);
    --landing-surface: rgba(255, 255, 255, 0.45);
}

body[data-theme="dark"] {
    --landing-bg: #0a111d;
    --landing-bg-soft: #111b2d;
    --landing-bg-deep: #060b14;
    --landing-gradient-1: #12203a;
    --landing-gradient-2: #182b4d;

    --landing-text: #e8eefc;
    --landing-text-soft: #a9b8cc;
    --landing-text-on-dark: #f5f8ff;

    --landing-accent: #5BB8E8;
    --landing-accent-soft: #7FDEDE;
    --landing-accent-warm: #FFE44D;

    --landing-line: rgba(127, 222, 222, 0.18);
    --landing-glow: rgba(91, 184, 232, 0.16);
    --landing-glow-soft: rgba(127, 222, 222, 0.18);
    --landing-surface: rgba(255, 255, 255, 0.04);
}

body {
    /* background: var(--landing-bg); */
    background:
        radial-gradient(circle at 10% 20%, var(--landing-glow-soft), transparent 22%),
        radial-gradient(circle at 85% 18%, rgba(255, 217, 0, 0.08), transparent 18%),
        radial-gradient(circle at 70% 75%, var(--landing-glow), transparent 22%),
        linear-gradient(135deg, var(--landing-bg-deep) 0%, var(--landing-gradient-1) 50%, var(--landing-gradient-2) 100%);
    color: var(--landing-text);
    font-family:
        "Segoe UI", Tahoma, Geneva, Verdana,
        "PingFang TC", "Noto Sans TC", "Microsoft JhengHei",
        "Noto Sans JP", "Hiragino Kaku Gothic Pro", "Yu Gothic UI",
        "Noto Sans SC", "Microsoft YaHei",
        sans-serif;
}

main.page-content {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: auto !important;
}

.page-content a {
    color: var(--landing-accent);
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.page-content a:hover {
    color: var(--landing-accent-soft);
}

/* shared */
.hero-section,
.story-section {
    position: relative;
    /* width: 100%;
    overflow: hidden; */
    background: transparent;
}

.hero-layout,
.story-layout {
    width: 100%;
    padding: 0 8vw;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 10% 14%, var(--landing-glow-soft), transparent 24%),
        radial-gradient(circle at 84% 18%, rgba(255, 217, 0, 0.10), transparent 16%),
        radial-gradient(circle at 70% 78%, var(--landing-glow), transparent 22%),
        linear-gradient(135deg, var(--landing-bg-deep) 0%, var(--landing-gradient-1) 52%, var(--landing-gradient-2) 100%);
    color: var(--landing-text);
    padding: 110px 0 70px;
}

.hero-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    color: var(--landing-accent-soft);
}

.hero-section {
    padding-bottom: 120px;
}

.story-section:first-of-type {
    margin-top: -80px;
}

.hero-deco svg {
    width: 100%;
    height: 100%;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
}

.orb-1 {
    width: 220px;
    height: 220px;
    top: 14%;
    right: 8%;
    background: var(--landing-glow-soft);
    opacity: 0.55;
}

.orb-2 {
    width: 320px;
    height: 320px;
    bottom: -80px;
    left: -60px;
    background: var(--landing-glow);
    opacity: 0.45;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
    align-items: center;
    gap: 72px;
}

.hero-copy {
    max-width: 680px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--landing-text-soft);
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(3.2rem, 6vw, 6.2rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: var(--landing-accent-soft);
    text-shadow: 0 0 26px rgba(127, 222, 222, 0.16);
}

.hero-slogan {
    margin: 0;
    max-width: 620px;
    font-size: clamp(1.08rem, 2vw, 1.4rem);
    line-height: 1.9;
    color: var(--landing-accent-warm);
    font-weight: 600;
}

.hero-lines {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    margin-bottom: 8px;
}

.hero-lines span {
    display: block;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--landing-accent), var(--landing-accent-soft));
}

.hero-lines span:first-child {
    width: 44px;
}

.hero-lines span:last-child {
    width: 18px;
    opacity: 0.7;
}

.btn-playstore {
    display: inline-flex;
    align-items: center;
    margin-top: 26px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.btn-playstore:hover {
    transform: translateY(-3px);
    opacity: 0.88;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 520px;
}
.hero-flow {
    position: absolute;
    inset: 0;
    color: var(--landing-accent-soft);
    opacity: 0.25;
    pointer-events: none;
}

.hero-flow svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-flow path {
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.vision-radiate {
    position: absolute;
    right: 10%;
    top: 20%;
    opacity: 0.15;
    width: 400px;
    height: 400px;
    pointer-events: none;
}

.vision-radiate svg {
    width: 100%;
    height: 100%;
    display: block;
}

.vision-radiate circle {
    stroke: var(--landing-accent);
    fill: none;
}

.value-network {
    position: absolute;
    left: 5%;
    top: 30%;
    opacity: 0.2;
    width: 300px;
    height: 200px;
    pointer-events: none;
}

.value-network svg {
    width: 100%;
    height: 100%;
    display: block;
}

.value-network line {
    stroke: var(--landing-accent-soft);
}

.value-network circle {
    fill: var(--landing-accent);
}

.mission-flow {
    position: absolute;
    right: 5%;
    bottom: 20%;
    opacity: 0.18;
    width: 400px;
    height: 200px;
    pointer-events: none;
}

.mission-flow svg {
    width: 100%;
    height: 100%;
    display: block;
}

.mission-flow path {
    stroke: var(--landing-accent-soft);
    stroke-width: 1.2;
    fill: none;
}

.about-path {
    position: absolute;
    right: 10%;
    top: 40%;
    opacity: 0.18;
    width: 500px;
    height: 200px;
    pointer-events: none;
}

.about-path svg {
    width: 100%;
    height: 100%;
    display: block;
}

.about-path path {
    stroke: var(--landing-accent-soft);
    stroke-width: 1.2;
    fill: none;
}

.about-path circle {
    fill: var(--landing-accent);
}  

.contact-focus {
    position: absolute;
    right: 10%;
    bottom: 20%;
    opacity: 0.18;
    width: 400px;
    height: 200px;
    pointer-events: none;
}

.contact-focus svg {
    width: 100%;
    height: 100%;
    display: block;
}

.contact-focus line {
    stroke: var(--landing-accent-soft);
    stroke-width: 1.2;
}

/* hero app image – free-floating, no device frame */
@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-18px); }
}

.hero-app-img {
    display: block;
    width: min(320px, 82vw);
    height: auto;
    filter:
        drop-shadow(0 24px 48px rgba(0,0,0,0.36))
        drop-shadow(0 0 40px var(--landing-glow));
    animation: hero-float 5.5s ease-in-out infinite;
    transform-origin: center;
}

/* story sections */
.story-section {
    padding: 160px 0;
}

.story-layout {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    gap: 48px;
    min-height: 420px;
}

/* text on right (cols 6–12), illu on left (cols 1–5) */
.story-right .story-text {
    grid-column: 6 / 13;
    grid-row: 1;
    transform: translateX(10px);
}

.story-right .story-illu {
    grid-column: 1 / 6;
    grid-row: 1;
}

/* text on left (cols 1–7), illu on right (cols 8–12) */
.story-left .story-text {
    grid-column: 1 / 8;
    grid-row: 1;
    transform: translateX(-10px);
}

.story-left .story-illu {
    grid-column: 8 / 13;
    grid-row: 1;
}

.story-text {
    position: relative;
    max-width: 720px;
    padding: 8px 0;
}

/* illustration column – free-floating, no card frame */
.story-illu {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.story-illu svg {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    fill: var(--landing-accent);
    opacity: 0.9;
    filter: drop-shadow(0 8px 28px var(--landing-glow));
    transition: opacity 0.3s ease;
}

.story-dark .story-illu svg {
    fill: var(--landing-accent-soft);
}

/* ── per-section float + rotation animations ───────────────────────────── */
@keyframes illu-float-vision {
    0%, 100% { transform: translateY(0)    rotate(6deg); }
    50%       { transform: translateY(-15px) rotate(6deg); }
}
@keyframes illu-float-value {
    0%, 100% { transform: translateY(0)    rotate(-5deg); }
    50%       { transform: translateY(-12px) rotate(-5deg); }
}
@keyframes illu-float-mission {
    0%, 100% { transform: translateY(0)    rotate(4deg); }
    50%       { transform: translateY(-17px) rotate(4deg); }
}
@keyframes illu-float-about {
    0%, 100% { transform: translateY(0)    rotate(-4deg); }
    50%       { transform: translateY(-11px) rotate(-4deg); }
}
@keyframes illu-float-contact {
    0%, 100% { transform: translateY(0)    rotate(3deg); }
    50%       { transform: translateY(-14px) rotate(3deg); }
}

#vision  .story-illu svg { animation: illu-float-vision  5.0s ease-in-out infinite; transform-origin: center; }
#value   .story-illu svg { animation: illu-float-value   4.5s ease-in-out infinite; transform-origin: center; animation-delay: -1.5s; }
#mission .story-illu svg { animation: illu-float-mission 5.5s ease-in-out infinite; transform-origin: center; animation-delay: -0.8s; }
#about   .story-illu svg { animation: illu-float-about   4.8s ease-in-out infinite; transform-origin: center; animation-delay: -2.0s; }
#contact .story-illu svg { animation: illu-float-contact 5.2s ease-in-out infinite; transform-origin: center; animation-delay: -0.5s; }

/* hourglass sand highlight */
#contact .story-illu svg .sand {
    fill: var(--landing-accent-warm);
    opacity: 1;
}

.story-text::before {
    content: "";
    position: absolute;
    left: -24px;
    top: -40px;
    width: 1px;
    height: calc(100% + 80px);
    background: linear-gradient(
        180deg,
        transparent,
        var(--landing-line),
        transparent
    );
}

.story-dark .story-text::before {
    background: linear-gradient(180deg, transparent, var(--landing-line), transparent);
}

.section-mark {
    width: 120px;
    margin-bottom: 24px;
    color: var(--landing-accent);
    opacity: 0.85;
}

.story-dark .section-mark {
    color: var(--landing-accent-soft);
}

.section-mark svg {
    display: block;
    width: 100%;
    height: auto;
}

.story-text h1 {
    margin: 0 0 14px;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.story-text h2 {
    margin: 0 0 18px;
    font-size: clamp(1.12rem, 2vw, 1.5rem);
    line-height: 1.6;
    font-weight: 650;
    color: var(--landing-text-soft);
}

.story-dark .story-text h2 {
    color: var(--landing-text-soft);
}

.story-text p {
    margin: 0;
    font-size: 1.08rem;
    line-height: 2;
    max-width: 62ch;
}

.story-text p + p {
    margin-top: 14px;
}

.contact-text a {
    color: var(--landing-accent);
    font-weight: 700;
}

/* natural svg integration */
.section-wave,
.floating-trace {
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    color: var(--landing-accent);
    opacity: 0.15;
}

.section-wave svg,
.floating-trace svg {
    display: block;
    width: 100%;
    height: auto;
}

.top-wave {
    top: 0;
    transform: translateY(-1px);
}

.top-wave svg path,
.bottom-wave svg path {
    fill: currentColor;
}

.bottom-wave {
    bottom: 0;
    transform: translateY(1px);
}

.floating-trace {
    top: 10%;
}

.ambient-line {
    position: absolute;
    inset: 0;
    pointer-events: none;
    color: var(--landing-accent-soft);
    opacity: 0.2;
}

.ambient-line svg {
    width: 100%;
    height: 100%;
}

/* responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 96px 0 60px;
    }

    .hero-layout,
    .story-layout {
        grid-template-columns: 1fr;
        width: min(100% - 24px, 1320px);
        gap: 42px;
    }

    .hero-copy {
        max-width: 100%;
    }

    .hero-copy h1 {
        font-size: 2.8rem;
    }

    .hero-slogan {
        font-size: 1rem;
        line-height: 1.8;
    }

    .hero-visual {
        min-height: 340px;
    }

    .device-frame {
        width: min(300px, 82vw);
        border-radius: 30px;
        padding: 14px;
    }

    .story-section {
        padding: 88px 0;
    }

    .story-layout {
        padding: 0 6vw;
    }

    .story-right .story-text,
    .story-left .story-text {
        grid-column: auto !important;
        grid-row: auto !important;
        max-width: 820px;
        transform: none !important;
    }

    .story-right .story-illu,
    .story-left .story-illu {
        grid-column: auto !important;
        grid-row: auto !important;
        max-width: 360px;
        margin: 0 auto;
    }

    .story-text {
        max-width: none;
        width: 100%;
    }

    .story-text::before {
        display: none;
    }

    .story-text h1 {
        font-size: 2rem;
    }

    .story-text h2 {
        font-size: 1.08rem;
    }

    .story-text p {
        font-size: 1rem;
        line-height: 1.85;
    }

    .section-mark {
        width: 96px;
        margin-bottom: 18px;
    }
}