/*
  Ten Drop — marketing site stylesheet.

  Fonts: this file loads Cherry Bomb One via @import below so it works
  standalone, but the PREFERRED approach is to add these tags to the
  document <head> (faster, with proper preconnect):

    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Cherry+Bomb+One&display=swap" rel="stylesheet">

  If those tags are present in the HTML, the @import below is redundant
  but harmless (the browser just reuses the cached font).
*/
@import url('https://fonts.googleapis.com/css2?family=Cherry+Bomb+One&display=swap');

:root {
    /* Ten Drop palette — the pit, deep purple, darkest at the page edge */
    --ground-core: #2B1A66;
    --ground-mid:  #1C0F45;
    --ground-edge: #0F0826;

    /* the nine numbered balls, used as accents */
    --ball-1: #FA913D; /* orange */
    --ball-2: #21D4ED; /* cyan   — primary accent */
    --ball-3: #A3E636; /* lime   */
    --ball-4: #61A6FA; /* blue   */
    --ball-5: #4ADE80; /* green  */
    --ball-6: #F77070; /* red    */
    --ball-7: #F573B5; /* pink   */
    --ball-8: #A68CFA; /* purple */
    --ball-9: #FACC14; /* yellow */

    --bg-dark: var(--ground-edge);   /* page background, and the footer floor */
    --bg-darker: var(--ground-core); /* alt sections step UP to the richer core tone */
    --bg-card: var(--ground-mid);    /* card surfaces sit between the two */
    --text-primary: #F5F0FF;
    --text-secondary: #B3A6D9;
    --accent: var(--ball-2);         /* cyan — links, section-title rule, hover states */
    --accent-glow: rgba(33, 212, 237, 0.22);
    --border: #35235e;

    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Cherry Bomb One', system-ui, sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* pure-CSS pit gradient — no image asset needed */
    background: radial-gradient(ellipse at top, var(--ground-core) 0%, var(--ground-mid) 45%, var(--ground-edge) 100%);
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 400;
    letter-spacing: 0;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.app-store-btn {
    display: inline-block;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.app-store-btn img {
    height: 56px;
}
.app-store-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.screenshots-fan {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fan-img {
    position: absolute;
    width: 240px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(245,240,255,0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.fan-left {
    transform: translateX(-100px) rotate(-8deg) scale(0.85);
    z-index: 1;
    opacity: 0.6;
}

.fan-center {
    transform: translateX(0) scale(1.05);
    z-index: 3;
}

.fan-right {
    transform: translateX(100px) rotate(8deg) scale(0.85);
    z-index: 2;
    opacity: 0.6;
}

.screenshots-fan:hover .fan-left {
    transform: translateX(-140px) rotate(-12deg) scale(0.9);
    opacity: 0.9;
}

.screenshots-fan:hover .fan-right {
    transform: translateX(140px) rotate(12deg) scale(0.9);
    opacity: 0.9;
}

.screenshots-fan:hover .fan-center {
    transform: translateX(0) scale(1.1);
}

/* SECTIONS */
.section {
    padding: 100px 0;
}

.alt-bg {
    background-color: var(--bg-darker);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0;
    text-align: center;
    margin-bottom: 64px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 4px;
    border-radius: 2px;
    background: var(--accent);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 12px 32px var(--accent-glow);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #fff;
}

.card p {
    color: var(--text-secondary);
}

.warning-box {
    background-color: rgba(250, 145, 61, 0.12);
    border-left: 4px solid var(--ball-1);
    padding: 24px;
    border-radius: 0 8px 8px 0;
    color: #fff;
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background-color: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.feature-list .icon {
    font-size: 2rem;
    background: var(--bg-dark);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* cycle the icon chips through the ball colours, sparingly, as a ring */
.feature-list li:nth-child(8n+1) .icon { box-shadow: inset 0 0 0 2px var(--ball-1); }
.feature-list li:nth-child(8n+2) .icon { box-shadow: inset 0 0 0 2px var(--ball-3); }
.feature-list li:nth-child(8n+3) .icon { box-shadow: inset 0 0 0 2px var(--ball-4); }
.feature-list li:nth-child(8n+4) .icon { box-shadow: inset 0 0 0 2px var(--ball-5); }
.feature-list li:nth-child(8n+5) .icon { box-shadow: inset 0 0 0 2px var(--ball-6); }
.feature-list li:nth-child(8n+6) .icon { box-shadow: inset 0 0 0 2px var(--ball-7); }
.feature-list li:nth-child(8n+7) .icon { box-shadow: inset 0 0 0 2px var(--ball-8); }
.feature-list li:nth-child(8n+8) .icon { box-shadow: inset 0 0 0 2px var(--ball-9); }

.feature-list strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #fff;
}

.feature-list span {
    color: var(--text-secondary);
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
    background-color: var(--bg-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-col h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: #fff;
}

.footer-col p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.support-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}
.support-link:hover {
    color: #fff;
}

/* DOCUMENT PAGES (privacy) — plain reading, not a landing page. Narrow measure,
   generous leading, and no decoration competing with the text. */
.doc {
    max-width: 720px;
    padding-top: 64px;
    padding-bottom: 96px;
}

.doc-title {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0;
    font-size: 2.25rem;
    color: #fff;
    margin-bottom: 8px;
}

.doc-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.doc h2 {
    font-size: 1.05rem;
    color: #fff;
    margin: 32px 0 10px;
}

.doc p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
}

.doc a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.doc a:hover { color: #fff; }

.doc-back {
    font-size: 0.9rem;
    margin-bottom: 32px;
}
.doc-back-bottom {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .screenshots-fan {
        height: 450px;
        margin-top: 40px;
    }
    .fan-img {
        width: 180px;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .description {
        margin: 0 auto 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .doc-title {
        font-size: 1.75rem;
    }

    .fan-img {
        width: 150px;
    }
}

/* MOTION */
@media (prefers-reduced-motion: reduce) {
    .app-store-btn,
    .fan-img,
    .card,
    .support-link {
        transition: none;
    }

    .app-store-btn:hover {
        transform: none;
    }

    .card:hover {
        transform: none;
    }

    .screenshots-fan:hover .fan-left,
    .screenshots-fan:hover .fan-right,
    .screenshots-fan:hover .fan-center {
        transform: none;
    }
}
