:root {
    --bg: #f4efe6;
    --bg-deep: #eadfcf;
    --ink: #102a3f;
    --ink-soft: #335067;
    --accent: #e35d38;
    --accent-dark: #ba4223;
    --sea: #0f7c8a;
    --card: rgba(255, 252, 247, 0.88);
    --line: rgba(16, 42, 63, 0.14);
    --shadow: 0 20px 50px rgba(16, 42, 63, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(120deg, var(--bg) 0%, #f9f4ea 44%, var(--bg-deep) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.site-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(15, 124, 138, 0.2), transparent 33%),
        radial-gradient(circle at 86% 24%, rgba(227, 93, 56, 0.2), transparent 35%),
        radial-gradient(circle at 54% 88%, rgba(16, 42, 63, 0.08), transparent 34%);
    z-index: -1;
}

.topbar {
    width: min(1180px, 92vw);
    margin: 1.25rem auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    background: rgba(255, 250, 242, 0.72);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--ink);
    text-decoration: none;
}

.logo-mark {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    display: block;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(16, 42, 63, 0.22);
}

.logo-mark img {
    width: 100%;
    height: 100%;
    display: block;
}

.logo-text {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.topnav {
    display: flex;
    gap: 1.1rem;
}

.topnav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 500;
}

main {
    width: min(1180px, 92vw);
    margin: 1.3rem auto 3.5rem;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.3rem;
    align-items: stretch;
    padding: 1.1rem;
    border-radius: 28px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(10, 30, 46, 0.78) 0%, rgba(10, 30, 46, 0.52) 46%, rgba(10, 30, 46, 0.28) 100%),
        url("../img/hero-sailing-scene.svg") center/cover no-repeat;
    box-shadow: var(--shadow);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    padding: clamp(1.2rem, 3vw, 2.4rem);
    background: linear-gradient(180deg, rgba(9, 30, 46, 0.58), rgba(9, 30, 46, 0.42));
    color: #fff;
    box-shadow: var(--shadow);
    backdrop-filter: blur(4px);
}

.eyebrow {
    margin: 0;
    color: #a9e7ee;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.79rem;
    font-weight: 700;
}

h1,
h2,
h3 {
    margin: 0;
}

h1 {
    margin-top: 0.75rem;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.08;
}

.subtitle {
    margin: 1rem 0 1.2rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.04rem;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quick-box {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 24px;
    padding: 1.15rem;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.quick-box h2 {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
}

.quick-form {
    display: grid;
    gap: 0.7rem;
}

label {
    display: grid;
    gap: 0.32rem;
    font-size: 0.91rem;
    font-weight: 500;
}

input,
select {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.64rem 0.68rem;
    font: inherit;
    background: #fff;
}

.inline-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.btn {
    border-radius: 999px;
    padding: 0.66rem 1rem;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-solid {
    background: var(--accent);
    color: #fff;
}

.btn-solid:hover {
    background: var(--accent-dark);
}

.btn-outline {
    border-color: var(--line);
    background: transparent;
    color: var(--ink);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
}

.btn.small {
    padding: 0.5rem 0.85rem;
    font-size: 0.86rem;
}

.instant-response {
    margin-top: 0.85rem;
    border: 1px dashed rgba(15, 124, 138, 0.38);
    border-radius: 12px;
    padding: 0.75rem;
    background: rgba(15, 124, 138, 0.08);
    color: var(--ink);
}

.metrics {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.metrics article {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1rem;
}

.metrics h3 {
    font-size: 1.55rem;
    color: var(--sea);
}

.metrics p {
    margin: 0.35rem 0 0;
    color: var(--ink-soft);
}

.captains,
.quick-links,
.faq {
    margin-top: 1.55rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 1.2rem;
    background: var(--card);
}

.section-head {
    margin-bottom: 0.95rem;
}

.section-head h2 {
    margin-top: 0.3rem;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
}

.captain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.7rem;
}

.links-grid a {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
    text-decoration: none;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.links-grid a:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 124, 138, 0.45);
    background: rgba(15, 124, 138, 0.08);
}

.captain-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0.95rem;
    background: rgba(255, 255, 255, 0.85);
}

.captain-card p {
    margin: 0.3rem 0 0.45rem;
    color: var(--ink-soft);
}

.captain-card ul {
    margin: 0 0 0.85rem;
    padding-left: 1rem;
    color: var(--ink-soft);
}

.faq details {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.7rem 0.85rem;
    background: rgba(255, 255, 255, 0.78);
}

.faq details+details {
    margin-top: 0.7rem;
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
}

.faq p {
    color: var(--ink-soft);
    margin: 0.6rem 0 0;
    line-height: 1.5;
}

.footer {
    width: min(1180px, 92vw);
    margin: 0 auto 2rem;
    color: var(--ink-soft);
    text-align: center;
    font-size: 0.92rem;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: riseIn 0.8s ease forwards;
}

.reveal:nth-of-type(2) {
    animation-delay: 0.15s;
}

.reveal:nth-of-type(3) {
    animation-delay: 0.28s;
}

.reveal:nth-of-type(4) {
    animation-delay: 0.4s;
}

@keyframes riseIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .topbar {
        border-radius: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero,
    .captain-grid,
    .links-grid,
    .metrics {
        grid-template-columns: 1fr;
    }

    .hero {
        background-position: 62% center;
    }

    .topnav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 620px) {

    main,
    .topbar,
    .footer {
        width: 94vw;
    }

    .inline-fields {
        grid-template-columns: 1fr;
    }
}