@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap");

:root {
    --bg: #f2f6f4;
    --bg-elev: #ffffff;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --text: #113327;
    --muted: #5c7268;
    --line: rgba(17, 51, 39, 0.12);
    --accent: #008753;
    --accent-deep: #006b42;
    --teal: #1b9a67;
    --shadow: 0 4px 14px rgba(17, 51, 39, 0.08);
    --radius-xl: 24px;
    --radius-lg: 16px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --type-label: 0.75rem;
    --type-caption: 0.875rem;
    --type-body: 1rem;
    --type-body-sm: 0.9375rem;
    --type-title: 1.25rem;
    --type-headline: 1.5rem;
    --type-display: clamp(2rem, 5vw, 3.5rem);
    --motion-fast: 160ms;
    --motion-base: 220ms;
    --motion-ease: cubic-bezier(0.2, 0, 0, 1);
    --border-subtle: 1px solid rgba(0, 135, 83, 0.16);
    --elev-1: 0 2px 8px rgba(17, 51, 39, 0.08);
    --elev-2: 0 6px 14px rgba(17, 51, 39, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    padding: 16px;
    font-family: "Roboto", "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    line-height: 1.5;
}

.bg-orb,
.bg-grid {
    display: none;
}

.bg-orb {
    border-radius: 999px;
    filter: none;
    opacity: 0;
}

.orb-one {
    width: 320px;
    height: 320px;
    left: -110px;
    top: -90px;
    background: #d6efe3;
    animation: float 14s ease-in-out infinite;
}

.orb-two {
    width: 280px;
    height: 280px;
    right: -80px;
    bottom: -90px;
    background: #dff4ea;
    animation: float 16s ease-in-out infinite reverse;
}

.bg-grid {
    inset: 0;
    z-index: -3;
    opacity: 0;
    background-image: none;
    background-size: auto;
    mask-image: none;
}

.shell {
    width: min(980px, 100%);
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: clamp(16px, 4vw, 32px);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0 var(--space-4);
    border-bottom: 1px solid var(--line);
}

.header-logo-section {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0, 135, 83, 0.14);
}

.brand {
    font-size: var(--type-caption);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.mini-link {
    color: var(--accent);
    text-decoration: none;
    font-size: var(--type-caption);
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: var(--space-2) var(--space-4);
    border-radius: 12px;
    background: rgba(0, 135, 83, 0.1);
    border: 1px solid rgba(0, 135, 83, 0.18);
}

.mini-link:hover {
    color: var(--accent-deep);
    background: rgba(0, 135, 83, 0.16);
}

.topbar-main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin-top: var(--space-2);
}

.topbar-main-nav a {
    text-decoration: none;
    color: var(--text);
    font-size: var(--type-caption);
    font-weight: 700;
    border: 1px solid rgba(0, 135, 83, 0.16);
    background: rgba(0, 135, 83, 0.08);
    padding: var(--space-2) var(--space-3);
    border-radius: 12px;
    white-space: nowrap;
}

.topbar-main-nav a:hover {
    color: var(--accent-deep);
    border-color: rgba(0, 135, 83, 0.24);
    background: rgba(0, 135, 83, 0.14);
}

.static-page {
    width: min(900px, 100%);
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: clamp(18px, 3.5vw, 34px);
}

.static-page h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    max-width: none;
}

.static-page .lede {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.7;
}

.info-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.info-card {
    border-radius: 14px;
    border: 1px solid rgba(0, 135, 83, 0.14);
    background: #ffffff;
    padding: 18px;
}

.info-card h2 {
    margin-bottom: 8px;
    font-size: 1.12rem;
}

.info-card p,
.info-card li {
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.info-card ul {
    padding-left: 18px;
}

.back-row {
    margin-top: 24px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero {
    padding: clamp(30px, 5vw, 64px) 0 clamp(20px, 3vw, 34px);
}

.kicker {
    margin-bottom: 14px;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    font-weight: 700;
}

h1 {
    font-size: clamp(2.3rem, 6vw, 4.1rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    max-width: 11ch;
}

h1 span {
    color: var(--accent);
}

.subtitle {
    margin-top: 20px;
    max-width: 60ch;
    color: var(--muted);
    line-height: 1.72;
    font-size: clamp(1rem, 2vw, 1.15rem);
}

.cta-row {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: transform 180ms ease, box-shadow 220ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 135, 83, 0.22);
}

.btn-primary:hover {
    background: var(--accent-deep);
    box-shadow: 0 12px 24px rgba(0, 135, 83, 0.24);
}

.btn-ghost {
    border: 1px solid rgba(0, 135, 83, 0.18);
    color: var(--accent);
    background: rgba(0, 135, 83, 0.08);
}

.btn-ghost:hover {
    border-color: rgba(0, 135, 83, 0.24);
    background: rgba(0, 135, 83, 0.12);
}

.stats {
    margin-top: 30px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats li {
    border: 1px solid rgba(0, 135, 83, 0.14);
    border-radius: 12px;
    background: #ffffff;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stats strong {
    font-size: 1.28rem;
    color: var(--accent);
}

.stats span {
    font-size: 0.82rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.feature-panel {
    margin-top: 20px;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.platform-overview,
.apps-directory {
    margin-top: 30px;
}

.section-head {
    margin-bottom: 16px;
}

.section-head .kicker {
    margin-bottom: 10px;
}

.section-head h2 {
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--muted);
    line-height: 1.68;
    max-width: 68ch;
}

.overview-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-card {
    border-radius: 14px;
    border: 1px solid rgba(0, 135, 83, 0.14);
    background: #ffffff;
    padding: 18px;
}

.overview-card h3 {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 1.04rem;
}

.overview-card p {
    color: var(--muted);
    line-height: 1.66;
    font-size: 0.94rem;
}

.apps-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-tile {
    border-radius: 14px;
    border: 1px solid rgba(0, 135, 83, 0.14);
    padding: 20px;
    background: #ffffff;
}

.app-tile h3 {
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.app-tile p {
    color: var(--muted);
    line-height: 1.66;
    font-size: 0.94rem;
}

.app-tile.live {
    background: #f5faf7;
    box-shadow: inset 0 0 0 1px rgba(0, 135, 83, 0.2);
}

.app-tile.coming-soon {
    background: #f7faf8;
}

.feature-card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 135, 83, 0.14);
    background: var(--surface);
    padding: clamp(20px, 3.5vw, 28px);
    box-shadow: 0 8px 20px rgba(17, 51, 39, 0.06);
}

.feature-card.active {
    background: #f5faf7;
    box-shadow: 0 10px 24px rgba(0, 135, 83, 0.08), inset 0 0 0 1px rgba(0, 135, 83, 0.16);
}

.feature-card.muted {
    background: var(--surface-strong);
}

.chip {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: rgba(0, 135, 83, 0.12);
}

h2 {
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    margin-bottom: 10px;
}

.feature-card p,
.feature-card li {
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.97rem;
}

.feature-card ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.text-link {
    margin-top: 15px;
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    color: var(--accent-deep);
}

.site-meta {
    margin-top: 30px;
    padding: clamp(16px, 2.6vw, 24px);
    border-radius: 16px;
    border: 1px solid rgba(0, 135, 83, 0.14);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 8px 20px rgba(17, 51, 39, 0.06);
}

.site-meta h3 {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    margin-bottom: 6px;
}

.site-meta p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 62ch;
}

.site-footer {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(0, 135, 83, 0.14);
}

.footer-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
}

.footer-title {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
}

.footer-copy {
    color: var(--muted);
    line-height: 1.72;
    max-width: 38ch;
    font-size: 0.92rem;
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.5;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px dashed rgba(0, 135, 83, 0.22);
    color: var(--muted);
    font-size: 0.84rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    justify-content: space-between;
}

/* Material micro-pass: 4/8 spacing + type scale */
.shell,
.static-page {
    padding: clamp(16px, 4vw, 32px);
}

.topbar {
    gap: var(--space-3);
    padding: var(--space-2) 0 var(--space-4);
}

.header-logo-section {
    gap: var(--space-2);
}

.brand,
.mini-link,
.topbar-main-nav a,
.footer-bottom {
    font-size: var(--type-caption);
}

.mini-link,
.topbar-main-nav a,
.btn {
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
}

.mini-link {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.topbar-main-nav a {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
}

h1 {
    font-size: var(--type-display);
}

h2,
.info-card h2,
.stats strong {
    font-size: var(--type-title);
}

.kicker,
.chip,
.footer-title,
.stats span {
    font-size: var(--type-label);
}

.subtitle {
    font-size: var(--type-body);
}

.info-card p,
.info-card li,
.overview-card p,
.app-tile p,
.feature-card p,
.feature-card li,
.footer-copy,
.footer-links a,
.site-meta p {
    font-size: var(--type-body-sm);
}

.info-grid,
.overview-grid,
.apps-grid,
.feature-panel {
    gap: var(--space-4);
}

.cta-row,
.back-row,
.stats,
.site-meta {
    gap: var(--space-3);
}

.hero {
    padding: clamp(24px, 5vw, 56px) 0 clamp(16px, 3vw, 32px);
}

.info-card,
.overview-card {
    padding: var(--space-4);
}

.app-tile,
.btn {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
}

.app-tile {
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
}

/* Material polish: motion, elevation, touch-target consistency */
.mini-link,
.topbar-main-nav a,
.btn,
.text-link {
    transition:
        color var(--motion-fast) var(--motion-ease),
        background-color var(--motion-fast) var(--motion-ease),
        border-color var(--motion-fast) var(--motion-ease),
        transform var(--motion-fast) var(--motion-ease),
        box-shadow var(--motion-base) var(--motion-ease);
}

.shell,
.static-page,
.feature-card,
.site-meta,
.info-card,
.overview-card,
.app-tile,
.stats li {
    border: var(--border-subtle);
    box-shadow: var(--elev-1);
}

.feature-card.active,
.btn-primary:hover,
.app-tile.live {
    box-shadow: var(--elev-2);
}

.btn,
.mini-link,
.topbar-main-nav a {
    min-height: 44px;
}

@media (max-width: 560px) {
    .btn,
    .mini-link,
    .topbar-main-nav a {
        min-height: 48px;
    }

    h1 {
        letter-spacing: -0.02em;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    animation: reveal 700ms ease forwards;
}

.delay-1 {
    animation-delay: 120ms;
}

.delay-2 {
    animation-delay: 220ms;
}

.delay-3 {
    animation-delay: 320ms;
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-14px) translateX(8px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

@media (max-width: 900px) {
    .feature-panel,
    .stats,
    .overview-grid,
    .apps-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .site-meta { flex-direction: column; align-items: flex-start; }

    .site-meta .btn {
        width: 100%;
    }

    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .shell {
        padding: 22px;
    }

    .hero {
        padding-top: 26px;
    }
}

@media (max-width: 560px) {
    body {
        padding: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        gap: 10px;
        flex-direction: column;
    }

    .topbar-main-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .topbar-main-nav a {
        flex: 0 0 auto;
    }

    .btn {
        width: 100%;
        min-height: 50px;
    }

    .mini-link { width: 100%; text-align: center; }
}