/* =======================================================
   VINCENTA CSS v0.1
   Electronic Celestial Navigation for the Sailor
======================================================= */

/* ===============================
   RESET
=============================== */

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

html, body {
    height: 100%;
    font-family: 'Open Sans', sans-serif;
    background: #061521;
    color: #E6EDF3;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===============================
   ROOT VARIABLES
=============================== */

:root {

    --bg: #061521;
    --bg-soft: #0B2233;
    --panel: #0E2A3F;

    --text: #E6EDF3;
    --muted: #9FB3C8;

    --gold: #C9A24A;
    --gold-soft: #E2C875;

    --line: rgba(255,255,255,0.08);

    --danger: #E06C75;

    --radius: 12px;

    --shadow: 0 20px 60px rgba(0,0,0,0.45);

    --header-height: 72px;
}

/* ===============================
   STARFIELD CANVAS
=============================== */

#starCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ===============================
   LAYOUT
=============================== */

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

.narrow {
    width: min(800px, 92%);
}

section {
    position: relative;
    padding: 50px 0;
    z-index: 1;
}

/* ===============================
   TYPOGRAPHY
=============================== */

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.3rem;
}

p {
    color: var(--muted);
    line-height: 1.6;
}

/* ===============================
   HEADER
=============================== */

#header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6,21,33,0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    height: var(--header-height);
}

.navContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo img {
    height: 38px;
}

#navMenu {
    display: flex;
    gap: 25px;
}

#navMenu a {
    font-size: 0.95rem;
    color: var(--text);
    opacity: 0.85;
    transition: 0.2s;
}

#navMenu a:hover {
    color: var(--gold);
    opacity: 1;
}

/* mobile button */

#mobileButton {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

#mobileButton span {
    width: 25px;
    height: 2px;
    background: var(--text);
}

/* ===============================
   HERO
=============================== */

.hero {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 90px;
    min-height: 75vh;
    display: flex;
    align-items: center;
}

.heroGrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 40px;
    align-items: center;
}

.heroText {
    min-width: 0;
}

.heroDevice {
    width: 230px;
    min-width: 0;
    justify-self: center;
}

.heroLogo {
    width: 240px;
    margin-bottom: 20px;
}

.hero h1 {
    margin-bottom: 20px;
}

.hero h2 {
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 20px;
}

.heroButtons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

/* ===============================
   BUTTONS
=============================== */

.button {
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.25s;
    display: inline-block;
    border: 1px solid transparent;
}

.button.gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    color: #1a1a1a;
}

.button.gold:hover {
    transform: translateY(-2px);
}

.button.outline {
    border: 1px solid var(--gold);
    color: var(--gold);
}

.button.outline:hover {
    background: rgba(201,162,74,0.1);
}

/* ===============================
   DEVICE MOCKUP
=============================== */

#device {
    position: relative;
    width: 100%;
    max-width: 230px;
    margin: 0;
    animation: deviceFloat 10s ease-in-out infinite;
    transform-origin: center center;
}

#deviceFrame {
    display: block;
    width: 100%;
    height: auto;
}

/* ===============================
   DEVICE ANIMATIONS
=============================== */

@keyframes deviceFloat {

    0% {
        transform: translateY(0px) rotate(-0.3deg);
    }

    50% {
        transform: translateY(-18px) rotate(0.3deg);
    }

    100% {
        transform: translateY(0px) rotate(-0.3deg);
    }

}

/* ===============================
   SECTIONS
=============================== */

.sectionTitle {
    text-align: center;
    margin-bottom: 50px;
}

/* ===============================
   CARDS
=============================== */

.cardGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    background: var(--panel);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: 0.25s;
}

.card:hover {
    transform: translateY(-5px);
}

.cardIcon {
    margin-bottom: 15px;
    opacity: 0.9;
}

/* ===============================
   HARDWARE SECTION
=============================== */

.featureRow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.featureList li {
    margin: 10px 0;
    color: var(--text);
}

/* ===============================
   SHOWCASE
=============================== */

.viewer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.viewerDisplay
{
    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}

#viewerImage
{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;

    display: block;
}

.viewerButton {
    background: none;
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
}

.thumbnailBar {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.thumbnail {
    width: 70px;
    opacity: 0.6;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--gold);
}

/* ===============================
   TOUR
=============================== */

.tourItem {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.tourItem.reverse {
    direction: rtl;
}

.tourItem.reverse > * {
    direction: ltr;
}

/* ===============================
   GNSS SECTION
=============================== */

.gnss {
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.2));
    text-align: center;
}

/* ===============================
   QUOTE
=============================== */

.quoteSection {
    background: url('../assets/images/quote-bg.jpg') center/cover no-repeat;
    position: relative;
}

.quoteOverlay {
    background: rgba(0,0,0,0.6);
    padding: 120px 0;
    text-align: center;
}

blockquote {
    font-size: 2rem;
    color: var(--gold);
}

/* ===============================
   CTA
=============================== */

.cta {
    text-align: center;
    background: var(--bg-soft);
}

/* ===============================
   FOOTER
=============================== */

footer {
    background: #050F18;
    padding: 60px 0 20px;
}

.footerGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footerBottom {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

/* ===============================
   MOBILE MENU
=============================== */

#mobileMenu {
    position: fixed;
    inset: 0;
    background: rgba(6,21,33,0.98);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#mobileMenu ul {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#mobileMenu a {
    font-size: 1.3rem;
    color: var(--text);
}

/* ===============================
   SPLASH SCREEN
=============================== */

#splashScreen {
    position: fixed;
    inset: 0;
    background: #061521;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

/* ===============================
   BACK TO TOP
=============================== */

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gold);
    color: #000;
    border: none;
    padding: 10px 12px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
}

/* ===============================
   RESPONSIVE
=============================== */

/* ---------- Tablet ---------- */

@media (max-width:900px) {

    .heroGrid {
        grid-template-columns: minmax(0,1fr) 180px;
        gap: 20px;
    }

    .heroDevice {
        width: 180px;
    }

    #device {
        width: 180px;
    }

}

/* ---------- Phone ---------- */

@media (max-width: 700px) {

    .heroGrid,
    .featureRow,
    .tourItem,
    .footerGrid,
    .cardGrid {
        grid-template-columns: 1fr;
    }

    /* ---------- Mobile Hero ---------- */

    .hero {
        padding-top: calc(var(--header-height) + 10px);
        padding-bottom: 50px;
        min-height: auto;
    }

    .heroDevice {
        margin: 30px auto 0 auto;
    }

    .heroText {
        max-width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.1rem;
        line-height: 1.15;
        margin-bottom: 15px;
    }

    .hero h2 {
        font-size: 1.15rem;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .heroLogo {
        width: 190px;
        margin: 0 auto 15px auto;
    }

    .heroButtons {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 20px;
    }

    #device {
        max-width: 180px;
    }


    /* ---------- Navigation ---------- */

    #navMenu {
        display: none;
    }

    #mobileButton {
        display: flex;
    }


    /* ---------- Viewer ---------- */

    .viewerDisplay {
        width: 100%;
    }

}

/* ======================================================
   BODY ID CALLOUT
====================================================== */

.callout
{
    margin-top: 70px;

    padding: 40px;

    border: 1px solid rgba(201,166,87,.35);

    border-radius: 14px;

    background: rgba(8,28,49,.45);

    text-align: center;
}

.callout h3
{
    color: var(--gold);

    margin-bottom: 18px;
}

.callout p
{
    max-width: 760px;

    margin: 0 auto 18px auto;
}

/* ======================================================
   ONBOARD SECTION
====================================================== */

.onboard .cardGrid
{
    display: flex;

    justify-content: center;

    align-items: stretch;

    flex-wrap: wrap;

    gap: 35px;

    margin-top: 55px;
}

.onboard .card
{
    width: 280px;

    flex: 0 0 280px;

    text-align: left;
}

.onboard .card h3
{
    text-align: center;

    margin-bottom: 18px;
}

.intro {
    padding-top: 10px;
    text-align: center;
}