/* Yacht Inventory — marketing site styles.
   Navy + brass palette to match the iOS app, hand-written so there's no
   build step. Uses modern CSS (custom properties, grid, fluid typography)
   but no preprocessor. */

:root {
    --navy-deep: #07152b;
    --navy-mid: #0f243f;
    --navy-light: #1a3458;
    --brass: #c9a55a;
    --brass-light: #e6c987;
    --text-primary: #e8e4d4;
    --text-second: #a8a090;
    --accent-green: #4ad295;
    --accent-red: #e85f5f;

    --container-max: 1080px;
    --radius: 14px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.25);
    --transition: 180ms ease-out;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--navy-deep);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
        sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Subtle vignette so the navy doesn't feel flat. */
    background-image:
        radial-gradient(ellipse at top, rgba(201, 165, 90, 0.06), transparent 60%),
        radial-gradient(ellipse at bottom, rgba(15, 36, 63, 0.6), transparent 70%);
    background-attachment: fixed;
}

a {
    color: var(--brass);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--brass-light); }

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

::selection { background: var(--brass); color: var(--navy-deep); }

/* ------------------------------------------------------------------ */
/* Layout primitives                                                  */
/* ------------------------------------------------------------------ */

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

section {
    padding: clamp(56px, 8vw, 96px) 0;
}

.section-eyebrow {
    color: var(--brass);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

h1, h2, h3 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
h3 { font-size: 1.2rem; margin-bottom: 8px; }

p { color: var(--text-primary); }
p.muted { color: var(--text-second); }

/* ------------------------------------------------------------------ */
/* Header + nav                                                       */
/* ------------------------------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(7, 21, 43, 0.78);
    border-bottom: 1px solid rgba(201, 165, 90, 0.12);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
}
.logo img {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.logo:hover { color: var(--text-primary); }

.site-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}
.site-nav a {
    color: var(--text-second);
    font-size: 15px;
    font-weight: 500;
}
.site-nav a:hover { color: var(--brass); }

@media (max-width: 640px) {
    .site-nav { gap: 18px; }
    .site-nav a { font-size: 14px; }
    .site-nav .nav-cta { display: none; }
}

/* ------------------------------------------------------------------ */
/* Buttons                                                            */
/* ------------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    transition: transform var(--transition), background var(--transition),
        border-color var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}
.btn-primary {
    background: var(--brass);
    color: var(--navy-deep);
}
.btn-primary:hover {
    background: var(--brass-light);
    color: var(--navy-deep);
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid rgba(201, 165, 90, 0.4);
}
.btn-ghost:hover {
    border-color: var(--brass);
    color: var(--brass);
}
.btn-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

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

.hero {
    padding-top: clamp(64px, 9vw, 110px);
    padding-bottom: clamp(64px, 9vw, 110px);
    position: relative;
    overflow: hidden;
}
/* Splash background — a sailing yacht photo. The navy gradient on top
   ensures text and the phone mockup stay readable; the photo sits at
   the bottom of the layer stack and fades to navy near the page edges. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/img/hero-yacht.jpg") center 30% / cover no-repeat;
    /* Drop most of the saturation so the photo doesn't fight with the
       brand colours, then we layer a navy gradient on top in ::after. */
    filter: saturate(0.85) brightness(0.85);
    z-index: 0;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%,
            rgba(7, 21, 43, 0.72) 0%,
            rgba(7, 21, 43, 0.55) 35%,
            rgba(7, 21, 43, 0.85) 100%),
        linear-gradient(180deg,
            rgba(7, 21, 43, 0.55) 0%,
            rgba(7, 21, 43, 0.7) 100%);
    z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
@media (max-width: 880px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero .btn-row { justify-content: center; }
    .hero-phone { margin: 0 auto; }
}
.hero h1 {
    margin-bottom: 22px;
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--brass-light) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero .lead {
    max-width: 540px;
    margin-bottom: 36px;
    color: var(--text-second);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}
.hero .btn-row {
    margin-bottom: 18px;
}
.hero .availability {
    color: var(--text-second);
    font-size: 13px;
    letter-spacing: 0.05em;
}

/* Brand mark — small version of the app icon shown above the hero
   headline. Sits in a tinted square to match the app's interior styling. */
.hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px 8px 8px;
    background: rgba(15, 36, 63, 0.6);
    border: 1px solid rgba(201, 165, 90, 0.18);
    border-radius: 999px;
    color: var(--brass);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.hero-brand img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

/* ------------------------------------------------------------------ */
/* iPhone mockup — pure CSS, no images. Matches the iOS app's        */
/* navy + brass palette so the marketing site and the in-app          */
/* experience read as one product.                                    */
/* ------------------------------------------------------------------ */

.phone {
    width: 296px;
    aspect-ratio: 9 / 19.5;
    background: #1a1a1a;
    border-radius: 46px;
    padding: 9px;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.06),
        0 30px 60px -20px rgba(0, 0, 0, 0.6),
        0 18px 30px -10px rgba(0, 0, 0, 0.4);
    position: relative;
}
/* Brass glow behind the phone — subtle radial that picks up the brand
   accent without overpowering the content on screen. */
.phone::after {
    content: "";
    position: absolute;
    inset: -40px;
    z-index: -1;
    background: radial-gradient(
        ellipse at center,
        rgba(201, 165, 90, 0.18) 0%,
        rgba(201, 165, 90, 0.04) 50%,
        transparent 75%
    );
    border-radius: 60px;
    pointer-events: none;
}
.phone-screen {
    background: var(--navy-deep);
    border-radius: 38px;
    overflow: hidden;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}
/* Dynamic Island */
.phone-screen::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 26px;
    background: #000;
    border-radius: 14px;
    z-index: 10;
}
/* Status bar — time + signal + wifi + battery, faked with text */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px 0;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    height: 30px;
}
.status-bar .icons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    letter-spacing: -0.5px;
}
/* App nav title */
.app-nav {
    padding: 14px 16px 8px;
}
.app-nav .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.app-nav h4 {
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 700;
}
.app-nav .icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(201, 165, 90, 0.15);
    color: var(--brass);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.app-nav .meta {
    color: var(--text-second);
    font-size: 11px;
}
/* Compartment card grid (mocking the dashboard) */
.compartment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 10px;
    flex: 1;
    overflow: hidden;
}
.compartment-card {
    background: var(--navy-mid);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(201, 165, 90, 0.08);
    display: flex;
    flex-direction: column;
}
.compartment-card .photo {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    position: relative;
}
.compartment-card .label { padding: 6px 8px; }
.compartment-card .name {
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.compartment-card .count {
    color: var(--brass);
    font-size: 9px;
}
/* Real yacht-interior thumbnails (Unsplash, free for commercial use). The
   small dark navy overlay on the brass bounding-box keeps the AI-detected-
   item indicator legible against any photo. */
.photo-1 { background: url("/img/compartment-1.jpg") center / cover no-repeat; }
.photo-2 { background: url("/img/compartment-2.jpg") center / cover no-repeat; }
.photo-3 { background: url("/img/compartment-3.jpg") center / cover no-repeat; }
.photo-4 { background: url("/img/compartment-4.jpg") center / cover no-repeat; }
.photo-5 { background: url("/img/compartment-5.jpg") center / cover no-repeat; }
.photo-6 { background: url("/img/compartment-6.jpg") center / cover no-repeat; }
/* Bounding-box overlay — a brass rectangle on a card to evoke the
   AI-detected item visualization */
.compartment-card .photo::after {
    content: "";
    position: absolute;
    top: 25%;
    left: 25%;
    width: 38%;
    height: 35%;
    border: 1.5px solid var(--brass);
    border-radius: 2px;
    box-shadow: 0 0 0 3px rgba(7, 21, 43, 0.35);
}
.compartment-card.no-bbox .photo::after { display: none; }
/* Tab bar at the bottom of the phone */
.tab-bar {
    display: flex;
    justify-content: space-around;
    padding: 8px 0 18px;
    border-top: 1px solid rgba(201, 165, 90, 0.12);
    background: rgba(7, 21, 43, 0.95);
}
.tab-bar .tab {
    color: var(--text-second);
    font-size: 9px;
    text-align: center;
}
.tab-bar .tab.active { color: var(--brass); }
.tab-bar .tab .tab-icon {
    display: block;
    font-size: 16px;
    margin-bottom: 2px;
    line-height: 1;
}

/* ------------------------------------------------------------------ */
/* Chat mockup variant                                                */
/* ------------------------------------------------------------------ */

.chat-section {
    padding: clamp(56px, 8vw, 96px) 0;
    background: rgba(15, 36, 63, 0.4);
}
.chat-section .container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
@media (max-width: 880px) {
    .chat-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .chat-section .phone { margin: 0 auto; }
}
.chat-thread {
    flex: 1;
    padding: 8px 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-bubble {
    max-width: 80%;
    padding: 7px 11px;
    border-radius: 14px;
    font-size: 11px;
    line-height: 1.35;
}
.chat-bubble.user {
    background: var(--brass);
    color: var(--navy-deep);
    font-weight: 500;
    align-self: flex-end;
    border-bottom-right-radius: 6px;
}
.chat-bubble.assistant {
    background: var(--navy-mid);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 6px;
}
.citation {
    background: rgba(15, 36, 63, 0.6);
    border-radius: 6px;
    padding: 5px 8px;
    align-self: flex-start;
    max-width: 80%;
    font-size: 9px;
    color: var(--text-second);
    border: 1px solid rgba(201, 165, 90, 0.12);
    margin-left: 8px;
}
.citation strong { color: var(--text-primary); display: block; margin-bottom: 1px; }
.citation .num { color: var(--brass); font-weight: 700; }
.composer {
    padding: 8px 12px 14px;
    border-top: 1px solid rgba(201, 165, 90, 0.12);
    display: flex;
    gap: 6px;
    align-items: center;
}
.composer .input {
    flex: 1;
    background: var(--navy-mid);
    border-radius: 12px;
    padding: 7px 10px;
    color: var(--text-second);
    font-size: 10px;
}
.composer .send {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brass);
    color: var(--navy-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Feature cards                                                      */
/* ------------------------------------------------------------------ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 36px;
}
.feature {
    position: relative;
    background:
        linear-gradient(180deg, rgba(15, 36, 63, 1) 0%, rgba(15, 36, 63, 0.6) 100%),
        radial-gradient(circle at top right, rgba(201, 165, 90, 0.08), transparent 60%);
    border: 1px solid rgba(201, 165, 90, 0.14);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: border-color var(--transition), transform var(--transition),
        box-shadow var(--transition);
    overflow: hidden;
}
.feature::before {
    /* Top accent line — subtle brass gradient, only on hover */
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brass), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}
.feature:hover {
    border-color: rgba(201, 165, 90, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45);
}
.feature:hover::before { opacity: 1; }
.feature .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(201, 165, 90, 0.2), rgba(201, 165, 90, 0.06));
    border: 1px solid rgba(201, 165, 90, 0.2);
    color: var(--brass);
    margin-bottom: 20px;
    font-size: 26px;
}
.feature h3 {
    color: var(--text-primary);
    font-size: 1.22rem;
    margin-bottom: 10px;
}
.feature p {
    color: var(--text-second);
    font-size: 15px;
    line-height: 1.55;
}

/* ------------------------------------------------------------------ */
/* How-it-works                                                       */
/* ------------------------------------------------------------------ */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 36px;
}
.step {
    position: relative;
    padding: 24px;
    border-left: 2px solid rgba(201, 165, 90, 0.3);
}
.step .num {
    position: absolute;
    top: 24px;
    left: -14px;
    width: 26px;
    height: 26px;
    background: var(--brass);
    color: var(--navy-deep);
    font-weight: 700;
    font-size: 13px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--text-second); font-size: 15px; }

/* ------------------------------------------------------------------ */
/* CTA                                                                */
/* ------------------------------------------------------------------ */

.cta-band {
    margin: 0 auto;
    max-width: var(--container-max);
    padding: 56px 32px;
    text-align: center;
    background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-light) 100%);
    border: 1px solid rgba(201, 165, 90, 0.18);
    border-radius: 18px;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--text-second); margin-bottom: 28px; }

/* ------------------------------------------------------------------ */
/* Tech-credibility row                                               */
/* ------------------------------------------------------------------ */

.tech-row {
    margin-top: 40px;
    padding: 24px;
    background: rgba(15, 36, 63, 0.5);
    border-radius: var(--radius);
    border: 1px solid rgba(201, 165, 90, 0.08);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px 32px;
    color: var(--text-second);
    font-size: 14px;
}
.tech-row strong {
    display: block;
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 4px;
}

/* ------------------------------------------------------------------ */
/* Long-form content (privacy / terms / support)                      */
/* ------------------------------------------------------------------ */

.prose {
    max-width: 720px;
    margin: 0 auto;
}
.prose h1 { margin-bottom: 12px; }
.prose .updated {
    color: var(--text-second);
    font-size: 14px;
    margin-bottom: 40px;
}
.prose h2 {
    color: var(--brass);
    font-size: 1.3rem;
    margin-top: 36px;
    margin-bottom: 14px;
}
.prose h3 {
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-top: 24px;
    margin-bottom: 8px;
}
.prose p, .prose li {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 12px;
}
.prose ul, .prose ol {
    margin: 0 0 16px 22px;
}
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text-primary); }
.prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9em;
    background: var(--navy-mid);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--brass-light);
}

/* ------------------------------------------------------------------ */
/* FAQ (used on /support)                                             */
/* ------------------------------------------------------------------ */

.faq details {
    background: var(--navy-mid);
    border: 1px solid rgba(201, 165, 90, 0.12);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 12px;
    transition: border-color var(--transition);
}
.faq details[open] {
    border-color: rgba(201, 165, 90, 0.35);
}
.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    color: var(--brass);
    font-size: 22px;
    line-height: 1;
    transition: transform var(--transition);
}
.faq details[open] summary::after { content: "−"; }
.faq details > p,
.faq details > ul {
    margin-top: 12px;
    color: var(--text-second);
    font-size: 15px;
}

.contact-card {
    background: var(--navy-mid);
    border: 1px solid rgba(201, 165, 90, 0.18);
    border-radius: var(--radius);
    padding: 28px;
    margin-top: 32px;
    text-align: center;
}
.contact-card a {
    font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Footer                                                             */
/* ------------------------------------------------------------------ */

.site-footer {
    border-top: 1px solid rgba(201, 165, 90, 0.12);
    padding: 36px 0;
    margin-top: 80px;
    color: var(--text-second);
    font-size: 14px;
}
.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.site-footer nav {
    display: flex;
    gap: 22px;
}
.site-footer nav a { color: var(--text-second); }
.site-footer nav a:hover { color: var(--brass); }

@media (max-width: 540px) {
    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }
}
