/* Tides Scout — main site styles */

:root {
    --bg-deep: #061528;
    --bg-mid: #0a2438;
    --bg-panel: #0f2f48;
    --tide-blue: #4ec3ff;
    --tide-blue-deep: #1a8fd6;
    --foam: #e8f4ff;
    --muted: rgba(232, 244, 255, 0.72);
    --gold: #f0c14d;
    --coral: #ff6b5a;
    --line: rgba(78, 195, 255, 0.18);
    --shadow: 0 24px 60px rgba(0, 8, 24, 0.55);
    --font-display: "Outfit", sans-serif;
    --font-body: "Source Sans 3", sans-serif;
    --radius: 18px;
    --max: 1120px;

    /* Legacy aliases for privacy.html */
    --primary-blue: #1a8fd6;
    --secondary-blue: #4ec3ff;
    --accent-green: #3dd6a5;
    --navy: #061528;
    --seafoam: #4ec3ff;
    --text-light: #e8f4ff;
    --text-dark: #0a2438;
    --bg-light: #ffffff;
    --bg-dark: #061528;
    --card-bg: #0f2f48;
    --border-color: rgba(78, 195, 255, 0.18);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--foam);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(26, 143, 214, 0.28), transparent 60%),
        radial-gradient(900px 500px at 10% 20%, rgba(61, 214, 165, 0.08), transparent 55%),
        linear-gradient(180deg, var(--bg-deep) 0%, #071c2e 40%, var(--bg-mid) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--tide-blue);
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Nav ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 21, 40, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--foam);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.nav-brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-brand h1 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--foam);
}

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

.nav-menu a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.25s ease;
}

.nav-menu a:hover {
    color: var(--foam);
}

.nav-cta {
    background: linear-gradient(135deg, var(--tide-blue-deep), var(--tide-blue));
    color: #041018 !important;
    font-weight: 700 !important;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(26, 143, 214, 0.35);
}

.nav-cta:hover {
    filter: brightness(1.08);
    color: #041018 !important;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: min(92vh, 880px);
    display: flex;
    align-items: center;
    padding: 3.5rem 0 4rem;
    overflow: hidden;
}

.hero-atmosphere {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 520px at 78% 35%, rgba(26, 143, 214, 0.22), transparent 60%),
        radial-gradient(700px 420px at 15% 80%, rgba(240, 193, 77, 0.08), transparent 55%),
        linear-gradient(105deg, rgba(6, 21, 40, 0.97) 0%, rgba(6, 21, 40, 0.78) 55%, rgba(10, 36, 56, 0.65) 100%);
    transform: scale(1.04);
    animation: hero-drift 18s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes hero-drift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.08) translate3d(-1.5%, 1%, 0); }
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-copy {
    animation: rise-in 0.9s ease-out both;
}

.hero-visual {
    animation: rise-in 1.1s 0.15s ease-out both;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-brand {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.02;
    color: var(--foam);
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    margin-bottom: 0.85rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--tide-blue);
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 32rem;
    margin-bottom: 1.75rem;
}

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

.store-badge {
    display: inline-flex;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.store-badge:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.hero-image {
    width: 100%;
    max-height: min(78vh, 720px);
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

/* ---------- Sections shared ---------- */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--foam);
    margin-bottom: 0.75rem;
}

.section-lead {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 36rem;
    margin-bottom: 2rem;
}

.features,
.showcase,
.gallery,
.download {
    padding: 5rem 0;
}

.features {
    background: linear-gradient(180deg, transparent, rgba(15, 47, 72, 0.45) 20%, rgba(15, 47, 72, 0.45) 80%, transparent);
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem 2rem;
}

.feature-list h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 650;
    color: var(--tide-blue);
    margin-bottom: 0.35rem;
}

.feature-list p {
    color: var(--muted);
    font-size: 1rem;
}

.feature-list li {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

/* ---------- Showcase ---------- */
.showcase-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
    align-items: center;
}

.showcase-grid.reverse {
    grid-template-columns: 1.1fr 0.9fr;
}

.showcase-grid.reverse .showcase-copy {
    order: 2;
}

.showcase-grid.reverse .showcase-media {
    order: 1;
}

.showcase-media {
    margin: 0;
}

.showcase-media img {
    width: min(420px, 100%);
    margin-inline: auto;
    border-radius: 28px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.showcase-watch {
    background: radial-gradient(700px 400px at 20% 50%, rgba(26, 143, 214, 0.18), transparent 70%);
}

/* ---------- Gallery ---------- */
.gallery-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.gallery-row img {
    width: 100%;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: var(--shadow);
    transition: transform 0.35s ease;
}

.gallery-row img:hover {
    transform: translateY(-6px);
}

/* ---------- Download ---------- */
.download {
    text-align: center;
}

.download-inner {
    padding: 3rem 1.5rem;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(15, 47, 72, 0.9), rgba(6, 21, 40, 0.85)),
        radial-gradient(500px 200px at 50% 0%, rgba(78, 195, 255, 0.2), transparent 70%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.download-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 18px;
}

.download .section-lead {
    margin-left: auto;
    margin-right: auto;
}

.download .hero-actions {
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 650;
    font-size: 1rem;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--tide-blue-deep), var(--tide-blue));
    color: #041018;
    box-shadow: 0 12px 30px rgba(26, 143, 214, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--foam);
    border: 1px solid rgba(78, 195, 255, 0.45);
}

.btn-secondary:hover {
    border-color: var(--tide-blue);
    transform: translateY(-2px);
}

/* ---------- Footer ---------- */
footer {
    padding: 2.5rem 0 3rem;
    border-top: 1px solid var(--line);
    margin-top: 2rem;
}

.footer-inner {
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.footer-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

footer p {
    color: var(--muted);
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

footer a {
    color: var(--tide-blue);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ---------- Privacy (kept for privacy.html) ---------- */
.privacy-policy {
    padding: 4rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.privacy-policy h1 {
    font-family: var(--font-display);
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: var(--tide-blue);
}

.last-updated {
    color: var(--muted);
    margin-bottom: 3rem;
    font-style: italic;
}

.policy-content {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.policy-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--tide-blue);
}

.policy-content h3,
.policy-content h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--foam);
}

.policy-content p {
    margin-bottom: 1rem;
    color: var(--muted);
    line-height: 1.8;
}

.policy-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--muted);
}

.policy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.policy-content a {
    color: var(--tide-blue);
    text-decoration: underline;
}

.policy-content a:hover {
    color: var(--foam);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-layout,
    .showcase-grid,
    .showcase-grid.reverse {
        grid-template-columns: 1fr;
    }

    .showcase-grid.reverse .showcase-copy,
    .showcase-grid.reverse .showcase-media {
        order: unset;
    }

    .feature-list {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-row {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin-inline: auto;
    }

    .hero {
        min-height: auto;
        padding-top: 2.5rem;
    }

    .hero-atmosphere {
        opacity: 0.55;
    }
}

@media (max-width: 720px) {
    .nav-menu {
        gap: 0.85rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .nav-menu li:not(:last-child) {
        display: none;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .hero-brand {
        font-size: 2.5rem;
    }

    .policy-content {
        padding: 2rem 1.25rem;
    }

    .privacy-policy h1 {
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-atmosphere,
    .hero-copy,
    .hero-visual,
    .gallery-row img {
        animation: none !important;
        transition: none !important;
    }
}
