:root {
    --bg-deep: #0d1728;
    --bg-top: #16233a;
    --bg-mid: #1a2a41;
    --text: #0f172a;
    --muted: #51607a;
    --line: rgba(15, 23, 42, 0.14);
    --surface: #ffffff;
    --accent: #8b5cf6;
    --header-text: #f2f6ff;
    --header-muted: #b7c4df;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.6;
}

#page-container {
    min-height: 100vh;
}

.padding {
    width: min(1120px, 92%);
    margin: 0 auto;
}

#header-container {
    padding: 2rem 0 4.5rem;
    color: var(--header-text);
    background:
        radial-gradient(circle at 85% 8%, rgba(139, 92, 246, 0.18), transparent 35%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 46%, var(--bg-deep) 100%);
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 4rem;
}

.brand {
    color: var(--header-text);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    height: 40px;
    width: auto;
    display: block;
}

.brand-text {
    margin-left: 0.55rem;
}

.main-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav a {
    color: var(--header-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.94rem;
}

.main-nav a:hover {
    color: var(--header-text);
}

.intro {
    max-width: 900px;
}

.label {
    color: #3a5696;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.76rem;
    font-weight: 700;
}

#header-container .label {
    color: #d8ccff;
}

h1,
h2,
h3 {
    line-height: 1.15;
}

.intro h1 {
    margin-top: 0.9rem;
    font-size: clamp(1.3rem, 3.6vw, 2.9rem);
    max-width: none;
}

.intro p:last-child {
    margin-top: 1.2rem;
    max-width: 58ch;
    color: var(--header-muted);
}

.bend-wrapper {
    height: 84px;
    overflow: hidden;
}

.bend {
    width: 140%;
    height: 180px;
    margin-left: -20%;
    border-radius: 0 0 50% 50%;
    background: linear-gradient(180deg, rgba(13, 23, 40, 0) 0%, #ffffff 100%);
}

#body-container {
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.app-presentations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    padding: 3.2rem 0;
}

.presentation-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.35rem;
}

.presentation-card h2 {
    font-size: clamp(0.95rem, 1.7vw, 1.3rem);
    margin: 0.55rem 0 0.7rem;
}

.presentation-card p:last-child {
    color: var(--muted);
}

.basic-presentation {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    padding: 1.6rem 0 3.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.basic-presentation h2 {
    margin-top: 0.55rem;
    font-size: clamp(0.95rem, 1.8vw, 1.4rem);
}

.basic-presentation p:last-child {
    color: var(--muted);
    max-width: 52ch;
}

.article-listing-summary {
    padding: 3.4rem 0 4rem;
}

.summary-head h2 {
    margin-top: 0.55rem;
    font-size: clamp(0.95rem, 1.8vw, 1.4rem);
}

.apps-section {
    padding: 0;
}

.about-page-section {
    padding: 2.8rem 0;
}

.about-mission-text {
    color: var(--muted);
    max-width: 72ch;
    margin-top: 1rem;
}

.mission-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.mission-item {
    background: #f6f9ff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    padding: 1rem;
}

.mission-item h3 {
    font-size: 1.04rem;
}

.mission-item p {
    margin-top: 0.45rem;
    color: var(--muted);
}

.testimonials-section {
    padding-top: 0.8rem;
    padding-bottom: 3.2rem;
}

.testimonials-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.testimonial-item {
    background: #f6f9ff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    padding: 1rem;
}

.testimonial-app {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
}

.testimonial-app img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: cover;
}

.testimonial-app span {
    margin: 0;
    color: #1e3a5f;
    font-weight: 700;
    font-size: 0.88rem;
}

.testimonial-stars {
    color: #f59e0b;
    letter-spacing: 0.08em;
    font-size: 0.92rem;
    margin-bottom: 0.45rem;
}

.testimonial-item p {
    color: #334155;
}

.testimonial-item span {
    display: inline-block;
    margin-top: 0.65rem;
    color: #64748b;
    font-weight: 600;
    font-size: 0.92rem;
}

.global-section {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 2rem;
    padding: 4rem 0 5rem;
    align-items: center;
}

.global-copy h2 {
    margin-top: 0.55rem;
    font-size: clamp(1.8rem, 3.6vw, 3rem);
    max-width: 12ch;
}

.global-copy p:last-of-type {
    margin-top: 1rem;
    color: var(--muted);
    max-width: 56ch;
}

.global-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.global-stats div {
    min-width: 120px;
}

.global-stats strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.1;
}

.global-stats span {
    color: var(--muted);
    font-size: 0.92rem;
}

.map-panel {
    position: relative;
    padding: 1.5rem;
    border-radius: 28px;
    background: linear-gradient(180deg, #eef5ff 0%, #f8fbff 100%);
    overflow: hidden;
}

.map-panel::before,
.map-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(40px);
    opacity: 0.45;
}

.map-panel::before {
    width: 180px;
    height: 180px;
    background: rgba(59, 130, 246, 0.22);
    top: -40px;
    right: 10%;
}

.map-panel::after {
    width: 160px;
    height: 160px;
    background: rgba(16, 185, 129, 0.18);
    bottom: -20px;
    left: 8%;
}

.world-map {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

.map-land path {
    fill: #d7e6fb;
    stroke: rgba(30, 58, 95, 0.16);
    stroke-width: 2;
}

.map-routes path {
    fill: none;
    stroke: rgba(59, 130, 246, 0.45);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 8 10;
}

.map-dots circle {
    fill: #2563eb;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 4;
}

.apps-grid {
    margin-top: 1.4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.app-card {
    background: var(--surface);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    display: grid;
    grid-template-columns: minmax(360px, 560px) minmax(340px, 520px);
    align-items: stretch;
    min-height: 520px;
    position: relative;
    justify-content: center;
    overflow: hidden;
}

.app-card--reverse {
    grid-template-columns: minmax(340px, 520px) minmax(360px, 560px);
}

.app-card--workout {
    background: #c2e4ff;
}

.app-card--workout .app-card-content {
    grid-column: 1;
}

.app-card--workout .app-visual {
    grid-column: 2;
}

.app-card--shopping {
    background: #e6fff4;
}

.app-card-content {
    padding: clamp(1.5rem, 4vw, 4rem);
    max-width: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.app-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    min-height: 520px;
}

.app-phone-frame {
    position: relative;
    right: auto;
    top: auto;
    transform: rotate(6deg);
    width: min(290px, 28vw);
    aspect-ratio: 9 / 19.5;
    background: #0f172a;
    border-radius: 36px;
    padding: 10px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.app-card--reverse .app-phone-frame {
    left: auto;
    transform: rotate(-6deg);
}

.app-phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 34%;
    height: 18px;
    background: #020617;
    border-radius: 0 0 14px 14px;
    z-index: 2;
}

.app-phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 26px;
}

.app-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 11px;
    object-fit: cover;
    border: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.app-card-content p {
    color: var(--muted);
    margin-top: 0.45rem;
}

.app-links {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.9rem;
}

.more-link {
    color: #1f3f69;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.4rem 0.2rem 0.4rem 0.4rem;
}

.more-link::after {
    content: "→";
    margin-left: 0.36rem;
    transition: transform 120ms ease;
    display: inline-block;
}

.more-link:hover::after {
    transform: translateX(2px);
}

.store-links {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.store-badge {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 0.35rem;
}

.store-badge img {
    display: block;
    height: 62px;
    width: auto;
    border-radius: 10px;
    box-shadow: none;
}

#footer-container {
    background: linear-gradient(180deg, #eef5ff 0%, #f8fbff 100%);
}

.footer-inner {
    padding: 2.5rem 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #334155;
}

.footer-inner a {
    color: #1e3a5f;
    text-decoration: none;
}

.footer-links {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.footer-fb {
    display: inline-flex;
    align-items: center;
}

.footer-fb-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1e3a5f;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.support-email-box {
    margin-top: 1.1rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.support-email-link {
    color: #1e3a5f;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.support-email-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2ebfb;
    color: #1e3a5f;
    font-size: 1.8rem;
}

.support-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.support-content-section {
    padding: 2.4rem 0 3rem;
}

.support-card {
    background: #f6f9ff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    padding: 1rem;
}

.support-card p {
    color: var(--muted);
    margin-top: 0.45rem;
}

.support-list {
    margin-top: 0.7rem;
    padding-left: 1.1rem;
    color: #334155;
}

.support-list li+li {
    margin-top: 0.35rem;
}

.faq-section {
    margin-top: 2rem;
}

.faq-list {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.11);
    border-radius: 12px;
    padding: 0.95rem;
}

.faq-item p {
    margin-top: 0.42rem;
    color: var(--muted);
}

.privacy-content-section {
    padding: 2.6rem 0 3.2rem;
}

.privacy-content {
    max-width: 860px;
    background: #f8fbff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    padding: clamp(1rem, 2vw, 1.5rem);
}

.privacy-content h2 {
    margin-top: 1.35rem;
    font-size: 1.18rem;
}

.privacy-content p,
.privacy-content ul {
    margin-top: 0.75rem;
    color: #334155;
}

.privacy-content ul {
    padding-left: 1.2rem;
}

.privacy-content a {
    color: #1e3a5f;
}

.privacy-effective {
    color: #64748b;
    font-weight: 600;
}

@media (max-width: 860px) {
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 2.6rem;
    }

    .global-section {
        grid-template-columns: 1fr;
        padding: 3rem 0 4rem;
    }

    .global-copy h2 {
        max-width: none;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .app-card {
        grid-template-columns: 1fr;
        margin-left: calc(50% - 50vw);
        min-height: auto;
        justify-content: stretch;
    }

    .app-card--reverse {
        grid-template-columns: 1fr;
    }

    .app-visual {
        min-height: 360px;
    }

    .app-phone-frame,
    .app-card--reverse .app-phone-frame {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        width: min(280px, 66vw);
    }

    .app-links {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .footer-inner {
        flex-direction: column;
    }
}