:root {
    --bg: #090a0f;
    --bg-subtle: #0f1219;
    --card-bg: rgba(18, 22, 33, 0.75);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(56, 189, 248, 0.35);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #38bdf8;
    --accent-indigo: #818cf8;
    --accent-emerald: #34d399;
    --accent-amber: #fbbf24;
    --maxw: 1200px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image:
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(56, 189, 248, 0.14), transparent 75%),
        radial-gradient(ellipse 60% 40% at 85% 30%, rgba(129, 140, 248, 0.08), transparent 70%),
        radial-gradient(ellipse 70% 50% at 15% 70%, rgba(52, 211, 153, 0.06), transparent 70%);
    min-height: 100vh;
}

/* --- Container with Generous Responsive Gutters --- */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: clamp(1.25rem, 5vw, 2.25rem);
    padding-right: clamp(1.25rem, 5vw, 2.25rem);
}

/* --- Header & Navigation --- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(9, 10, 15, 0.8);
    border-bottom: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.nav {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0.9rem clamp(1.25rem, 5vw, 2.25rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
}

.brand-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    display: grid;
    place-items: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.925rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-cta {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--card-border);
    padding: 0.5rem 1.1rem;
    border-radius: 9999px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.hamburger {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
}

/* --- Hero Section --- */
.hero {
    /* padding-block only: the side padding comes from .container */
    padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    position: relative;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 9999px;
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue);
    animation: pulseGlow 2s infinite;
    flex-shrink: 0;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.hero h1 {
    font-size: clamp(2rem, 5.5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    background: linear-gradient(180deg, #ffffff 30%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    word-break: break-word;
}

.hero-lead {
    max-width: 680px;
    margin: 0 auto 2.25rem;
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.6;
    padding: 0 0.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: #f8fafc;
    color: #090a0f;
    font-weight: 700;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 14px 28px -5px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Apps Section --- */
.section {
    /* padding-block only: the side padding comes from .container */
    padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
}

.section-header {
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    max-width: 600px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

/* App tile — opens the app's mini-site and previews its colors */
.app-tile {
    --tile-accent: var(--accent-blue);
    --tile-glow: rgba(56, 189, 248, 0.16);
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
    min-height: 310px;
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem) clamp(2rem, 3.5vw, 2.4rem);
    overflow: hidden;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(30rem 18rem at 100% 0%, var(--tile-glow), transparent 70%),
        var(--card-bg);
    box-shadow: var(--shadow-card);
    color: var(--text-primary);
    text-decoration: none;
    transition:
        transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

a.app-tile:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--tile-accent) 55%, transparent);
    box-shadow: 0 30px 60px -25px color-mix(in srgb, var(--tile-accent) 50%, transparent);
}

.tile-habits {
    --tile-accent: #8b7bff;
    --tile-glow: rgba(111, 93, 245, 0.24);
}

.tile-water {
    --tile-accent: #5db6f8;
    --tile-glow: rgba(61, 140, 255, 0.24);
}

.tile-anime {
    --tile-accent: #e0b866;
    --tile-glow: rgba(107, 53, 184, 0.24);
}

.tile-freeriders {
    --tile-accent: var(--accent-amber);
    --tile-glow: rgba(245, 158, 11, 0.12);
}

.tile-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.tile-icon {
    display: grid;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    font-size: 1.9rem;
    color: #ffffff;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6);
    transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1);
}

a.app-tile:hover .tile-icon {
    transform: rotate(-6deg) scale(1.05);
}

.tile-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-icon-freeriders {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.app-tile h3 {
    font-size: clamp(1.4rem, 2.6vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.tile-sub {
    margin-top: -0.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--tile-accent);
}

.tile-desc {
    max-width: 34em;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.tile-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: auto;
    padding-top: 1.25rem;
}

.tile-platforms {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.tile-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.05rem;
    border: 1px solid var(--card-border);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.88rem;
    font-weight: 700;
    transition:
        background-color 0.25s,
        color 0.25s,
        gap 0.25s;
}

a.app-tile:hover .tile-cta {
    gap: 0.65rem;
    border-color: transparent;
    background: var(--tile-accent);
    color: #0b0d13;
}

.tile-links {
    display: flex;
    gap: 0.5rem;
}

.tile-links a {
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--card-border);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.tile-links a:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
}

/* Decorations along the bottom edge, one per app */
.tile-deco {
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.tile-deco-habits {
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    height: 5px;
    transition: height 0.35s ease;
}

.tile-deco-habits i {
    flex: 1;
}

.tile-deco-habits i:nth-child(1) { background: #3dbf5f; }
.tile-deco-habits i:nth-child(2) { background: #f29a3e; }
.tile-deco-habits i:nth-child(3) { background: #bb55db; }
.tile-deco-habits i:nth-child(4) { background: #6f5df5; }

a.tile-habits:hover .tile-deco-habits {
    height: 9px;
}

.tile-deco-water {
    right: 0;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 34px;
    fill: rgba(93, 182, 248, 0.18);
    animation: tile-wave 6s linear infinite;
    animation-play-state: paused;
}

a.tile-water:hover .tile-deco-water {
    animation-play-state: running;
}

@keyframes tile-wave {
    to {
        transform: translateX(-50%);
    }
}

.tile-deco-anime {
    bottom: clamp(1.9rem, 3.4vw, 2.3rem);
    left: 50%;
    width: 96px;
    height: 48px;
    opacity: 0.85;
    transform: translateX(-50%);
    transition: transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1);
}

a.tile-anime:hover .tile-deco-anime {
    transform: translateX(-50%) translateY(-6px) rotate(6deg);
}

.tile-deco-freeriders {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    fill: rgba(245, 158, 11, 0.1);
}

.badge {
    font-size: 0.725rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.badge-live {
    background: rgba(52, 211, 153, 0.12);
    color: var(--accent-emerald);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-coming {
    background: rgba(251, 191, 36, 0.14);
    color: var(--accent-amber);
    border: 1px solid rgba(251, 191, 36, 0.35);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}

/* --- Support & FAQ Section --- */
.support-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
}

.faq-list {
    display: grid;
    gap: 1rem;
}

details.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.4rem;
    transition: all 0.2s ease;
}

details.faq-item[open] {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(22, 27, 40, 0.85);
}

summary.faq-question {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

summary.faq-question::-webkit-details-marker {
    display: none;
}

summary.faq-question::after {
    content: "+";
    font-size: 1.3rem;
    line-height: 1;
    color: var(--accent-blue);
    font-weight: 400;
    transition: transform 0.2s ease;
}

details[open] summary.faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    margin-top: 0.85rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: clamp(1.5rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
}

.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.email-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.email-address {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--accent-blue);
    word-break: break-all;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--card-border);
    margin-top: 5rem;
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* =======================================================
   RESPONSIVE BREAKPOINTS: Tablet & Mobile
   ======================================================= */
@media (max-width: 960px) {
    .support-layout {
        grid-template-columns: 1fr;
    }
}

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

    .app-tile {
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(11, 13, 19, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--card-border);
        padding: 1.5rem clamp(1.25rem, 5vw, 2.25rem);
        flex-direction: column;
        align-items: flex-start;
        gap: 1.15rem;
    }

    .nav-menu.open {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}

@media (max-width: 640px) {
    .section-header {
        margin-bottom: 1.75rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }

    .footer-links {
        justify-content: center;
    }
}
