:root {
    --brand: #000;
    --black: #000000;
    --white: #ffffff;
    --textColor:#0b0b0b;
    --bgGrey:#f6f6f6;
    --border: #e5e7eb;
    --shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0
}

body {
    font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", Arial, sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
}

p {
    margin: 0;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle
}

a {
    color: inherit;
    text-decoration: none;
    line-height: 1.5;
}

ol,
ul,
li,
dl,
dt,
dd {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nowrap {
    white-space: nowrap
}

.hide-sm {
    display: none
}

.container {
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    background: var(--black);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 8px;
    z-index: 999
}

.brand-logo {
    display: block;
    height: 25px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 30px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, .9)
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px
}

/* Hamburger button */
.nav-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    z-index: 9999;
}

.nav-btn .icon-close {
    display: none;
    font-size: 2rem;
    line-height: 1;
}

.nav-btn .icon-burger {
    display: inline-block;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 3px;
}

/* when open, swap icons */
.nav-btn[aria-expanded="true"] .icon-burger {
    display: none;
}

.nav-btn[aria-expanded="true"] .icon-close {
    display: inline-block;
}

/* --- full-screen mobile menu --- */
.site-nav {
    position: fixed;
    inset: 0;
    height: 100dvh;
    background: var(--white);
    transform: translateY(-100%);
    transition: transform .25s ease;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
}


.site-nav a {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1.15rem;
}

/* overlay under the header controls (for click outside) */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .3);
    z-index: 55;
}

/* open state */
.site-header.is-open .site-nav {
    transform: translateY(0);
}

.site-header.is-open [data-nav-overlay] {
    display: block;
}

.site-header.is-open [data-nav-overlay][hidden] {
    display: block;
}

/* prevent body scroll when menu open */
body.menu-open {
    overflow: hidden;
}

/* --- desktop: inline nav, no overlay, show links horizontally --- */
@media (min-width: 768px) {
    .nav-btn {
        display: none;
    }

    .site-nav {
        position: static;
        inset: auto;
        height: auto;
        transform: none;
        transition: none;
        background: transparent;
        display: block;
    }

    .site-nav[hidden] {
        display: block;
    }

    /* ensure visible on desktop */
    .site-nav ul {
        display: flex;
        gap: 12px;
        align-items: center;
    }

    .site-nav a {
        padding: 8px 12px;
        font-size: 1rem;
    }

    .nav-overlay {
        display: none !important;
    }
}

.wan-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===============================
   Base layout
================================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: clamp(70vh, 90vh, 100vh);
    background: linear-gradient(90deg, #fff 0%, #f6f7fb 50%, #eef3f9 100%);
    padding: 4rem 1.5rem;
}

.hero-grid {
    display: grid;
    align-items: center;
    gap: 2.5rem;
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.hero-copy {
    max-width: 640px;
    margin: 0 auto;
    z-index: 2;
}

.hero-main-h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.2;
    font-weight: 700;
    color: var(--textColor);
}

.lead {
    font-size: 1.1rem;
    color: var(--textColor);
    margin-top: 1rem;
}

.store-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.8rem;
    flex-wrap: wrap;
}

.badge-img {
    height: 48px;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: clamp(80vh, 95vh, 100vh);
    background: radial-gradient(circle at 70% 10%, rgba(255, 255, 255, 0.9), transparent 60%),
    linear-gradient(90deg, #fff 0%, #f8fafc 50%, #eef3f9 100%);
    padding: 4rem 1.5rem;
}

.hero-grid {
    display: grid;
    align-items: center;
    gap: 2.5rem;
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.hero-copy {
    max-width: 640px;
    margin: 0 auto;
    z-index: 2;
}

.hero-main-h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.2;
    font-weight: 700;
    color: var(--textColor);
}

.lead {
    font-size: 1.1rem;
    color: var(--textColor);
    margin-top: 1rem;
}

.store-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.8rem;
    flex-wrap: wrap;
}

.badge-img {
    height: 48px;
    transition: transform 0.2s ease;
}

.badge-link:hover .badge-img {
    transform: scale(1.05);
}

/* =========================================
   iPhone Mockups
========================================= */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-mockups {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

/* Frame style */
.phone-frame {
    position: relative;
    width: 260px;
    border-radius: 40px;
    background: var(--black);
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: rotate(-5deg) translateY(0);
    z-index: 2;
    transition: all 0.5s ease;
    cursor: pointer;
}

.phone-frame img {
    width: 100%;
    border-radius: 30px;
    display: block;
}

/* Second overlapping phone */
.phone-frame.second {
    position: absolute;
    right: -80px;
    bottom: -20px;
    transform: rotate(8deg);
    z-index: 1;
    opacity: 0.95;
}

/* Hover / tap brings front */
.phone-frame.active,
.phone-frame:hover {
    z-index: 5;
    transform: scale(1.08) rotate(0deg) translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

/* Glowing effect */
.phone-frame.active::after,
.phone-frame:hover::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 40px;
    box-shadow: 0 0 40px rgba(255, 185, 90, 0.4);
    pointer-events: none;
}

/* =========================================
   Responsive Adjustments
========================================= */
@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .store-cta {
        justify-content: flex-start;
    }
}

@media (max-width: 899px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        flex-direction: column;
        padding-top: 3rem;
        padding-bottom: 6rem;
        background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
    }

    /* Phones below text */
    .hero-visual {
        margin-top: -2rem;
        order: 2;
    }

    .phone-mockups {
        margin-top: -2rem;
        transform: scale(0.9);
    }

    .phone-frame {
        width: 220px;
    }

    .phone-frame.second {
        right: -50px;
        bottom: -10px;
    }
}

/* Small devices */
@media (max-width: 480px) {
    .phone-mockups {
        transform: scale(0.85);
        margin-top: -1rem;
    }

    .hero-main-h1 {
        font-size: 1.9rem;
    }
}


/* ===== FEATURES ===== */
.features {
    padding: 40px 0;
    background: var(--white);
}

.features h2 {
    font-size: 1.3rem;
    margin: .2em 0 .4em
}

.features-sub {
    margin: 0 0 20px;
    color: var(--textColor)
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px
}

@media (min-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media (min-width: 960px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

.feature-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    background: var(--white);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
    transition: transform .12s ease, box-shadow .12s ease;
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 168px;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(2, 6, 23, .06)
}

.feature-icon {
    font-size: 1.6rem;
    line-height: 1
}

.feature-card h3 {
    margin: .1em 0 .3em;
    font-size: 1.05rem
}

.feature-card p {
    margin: 0;
    color: var(--textColor);
}

.feature-meta {
    font-size: .92rem;
    color: var(--textColor)
}

.feature-link {
    font-weight: 800
}

.site-footer {
    background: var(--bgGrey);
    padding-top: 30px;
}

.footer-inner {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
    padding: 10px 0 30px;
    flex-wrap: wrap;
}

.foot-brand > .brand {
    margin-bottom: 10px;
}

.foot-brand >.brand > img {
    height: 25px;
    display: block;
}

.footer-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-nav > a {
    font-size: 15px;
}

.site-footer__copyright {
    background-color:var(--white);
    color: var(--black);
    font-size: 10px;
    text-align: center;
    padding: 10px;

}

/* Utilities */
@media (min-width: 360px) {
    .hide-sm {
        display: inline
    }
}