/* ════════════════════════════════════════════════════════════
   HARBOUR AUTOMATION — Ocean / Harbourside Design System
   Light, airy, coastal. Boutique studio, not generic SaaS.
   ════════════════════════════════════════════════════════════ */

:root {
    /* ── Ocean palette ── */
    --deep:       #0a2a43;   /* deep harbour navy (ink) */
    --deep-2:     #0e3a5c;
    --ocean:      #0e7490;   /* harbour water teal */
    --ocean-2:    #0891b2;
    --teal:       #14b8a6;
    --seafoam:    #5eead4;
    --aqua:       #99f6e4;

    /* ── Warm neutrals ── */
    --cream:      #fbf7f0;   /* page background — warm sand */
    --sand:       #f4ecdf;
    --shell:      #ffffff;

    /* ── Beacon (warm accent for CTAs) ── */
    --coral:      #ff7a59;
    --coral-2:    #ff6a45;
    --sun:        #f4a261;

    /* ── Text ── */
    --ink:        #0a2a43;   /* headings */
    --slate:      #37576b;   /* body */
    --muted:      #6f8a9c;   /* secondary */
    --line:       rgba(10,42,67,0.10);
    --line-2:     rgba(10,42,67,0.06);

    /* ── Shape ── */
    --radius:     14px;
    --radius-lg:  22px;
    --radius-xl:  32px;
    --shadow-sm:  0 2px 10px rgba(10,42,67,0.06);
    --shadow:     0 12px 40px rgba(10,42,67,0.10);
    --shadow-lg:  0 24px 70px rgba(10,42,67,0.16);

    /* ── Gradients ── */
    --grad-ocean: linear-gradient(135deg, #0a2a43 0%, #0e7490 55%, #14b8a6 100%);
    --grad-beacon: linear-gradient(135deg, #ff7a59 0%, #f4a261 100%);
    --grad-soft:  linear-gradient(180deg, #fbf7f0 0%, #f1f6f6 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--cream);
    color: var(--slate);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, .display {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }

/* ── Eyebrow label ── */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--ocean);
    background: rgba(14,116,144,0.08);
    border: 1px solid rgba(14,116,144,0.15);
    padding: 7px 14px; border-radius: 100px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem;
    padding: 14px 28px; border-radius: 100px; border: none; cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--grad-beacon); color: #fff;
    box-shadow: 0 10px 28px rgba(255,122,89,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(255,122,89,0.45); }
.btn-ghost {
    background: transparent; color: var(--ink);
    border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ocean); color: var(--ocean); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--deep); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-lg { padding: 17px 36px; font-size: 1.02rem; }

/* ════════════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════════════ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0; transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.nav.scrolled {
    background: rgba(251,247,240,0.85);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line); padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 11px; font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.28rem; color: var(--ink); }
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.logo span { color: var(--ocean); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--slate); transition: color 0.15s; }
.nav-links a:hover { color: var(--ocean); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-login { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.nav-login:hover { color: var(--ocean); }
.nav-burger { display: none; background: none; border: none; cursor: pointer; color: var(--ink); padding: 6px; }
/* Mobile dropdown menu */
.nav-mobile { display: none; flex-direction: column; padding: 10px 24px 22px; background: rgba(251,247,240,0.98); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: var(--shadow); }
.nav-mobile a { padding: 13px 2px; font-size: 1rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.nav-mobile a.btn { border-bottom: none; justify-content: center; }
.nav.menu-open { background: rgba(251,247,240,0.98); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.menu-open .nav-mobile { display: flex; }

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
    position: relative; padding: 168px 0 0; overflow: hidden;
    background-image: radial-gradient(rgba(10,42,67,0.055) 1px, transparent 1px);
    background-size: 28px 28px;
}
/* Ambient AI glow blobs */
.hero::before, .hero::after {
    content: ''; position: absolute; border-radius: 50%;
    filter: blur(90px); z-index: 0; pointer-events: none;
}
.hero::before {
    width: 460px; height: 460px; top: -90px; right: -70px;
    background: radial-gradient(circle, rgba(20,184,166,0.40), transparent 70%);
    animation: drift 16s ease-in-out infinite;
}
.hero::after {
    width: 380px; height: 380px; bottom: 80px; left: -90px;
    background: radial-gradient(circle, rgba(255,122,89,0.26), transparent 70%);
    animation: drift 20s ease-in-out infinite reverse;
}
@keyframes drift { 0%,100%{transform:translate(0,0);} 50%{transform:translate(34px,-30px);} }
.hero-grid {
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
    padding-bottom: 120px; position: relative; z-index: 2;
}
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.1rem); margin: 22px 0 0; }
.hero h1 .water {
    background: linear-gradient(120deg, var(--ocean), var(--teal), var(--seafoam), var(--ocean));
    background-size: 240% auto;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    font-style: italic;
    animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 240% center; } }
.hero-sub { font-size: 1.16rem; color: var(--slate); margin: 26px 0 34px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 0.86rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { color: var(--teal); flex-shrink: 0; }

/* Hero visual — layered harbour card */
.hero-visual { position: relative; }
.harbour-card {
    background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
    padding: 26px; position: relative; overflow: hidden;
    border: 1px solid var(--line-2);
}
.hc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.hc-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-ocean); display: grid; place-items: center; color: #fff; font-weight: 700; }
.hc-title { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.hc-status { font-size: 0.78rem; color: var(--teal); display: flex; align-items: center; gap: 6px; }
.hc-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(20,184,166,0.5); animation: livepulse 2s infinite; }
@keyframes livepulse { 0%{box-shadow:0 0 0 0 rgba(20,184,166,0.5);} 70%{box-shadow:0 0 0 8px rgba(20,184,166,0);} 100%{box-shadow:0 0 0 0 rgba(20,184,166,0);} }
.hc-msg { padding: 12px 16px; border-radius: 16px; font-size: 0.88rem; margin-bottom: 10px; max-width: 85%; line-height: 1.5; }
.hc-msg.caller { background: var(--sand); color: var(--slate); border-bottom-left-radius: 5px; }
.hc-msg.ai { background: var(--grad-ocean); color: #fff; margin-left: auto; border-bottom-right-radius: 5px; }
.hc-footer { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); }
.hc-footer b { color: var(--ink); }
.hero-float {
    position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow);
    padding: 14px 18px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2);
}
.hero-float .hf-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.hero-float .hf-label { font-size: 0.72rem; color: var(--muted); }
.hero-float .hf-val { font-size: 1.05rem; font-weight: 800; color: var(--ink); font-family: 'Fraunces', serif; }
.hero-float.f1 { top: -22px; right: -18px; animation: bob 5s ease-in-out infinite; }
.hero-float.f2 { bottom: 38px; left: -34px; animation: bob 6s ease-in-out infinite 0.5s; }
@keyframes bob { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }

/* ── AI chip (sits in hero demo card) ── */
.ai-chip {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em;
    color: var(--ocean); background: rgba(14,116,144,0.10);
    border: 1px solid rgba(14,116,144,0.20);
    padding: 3px 9px; border-radius: 100px; text-transform: uppercase;
}
.ai-chip svg { color: var(--teal); }

/* ── Typing indicator (AI "thinking") ── */
.hc-typing { display: inline-flex; gap: 5px; padding: 13px 18px; background: var(--grad-ocean); border-radius: 16px; border-bottom-right-radius: 5px; margin-left: auto; width: fit-content; }
.hc-typing span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.85); animation: typing 1.3s infinite ease-in-out; }
.hc-typing span:nth-child(2) { animation-delay: 0.18s; }
.hc-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing { 0%,60%,100%{transform:translateY(0);opacity:0.5;} 30%{transform:translateY(-5px);opacity:1;} }

/* ── Glowing service icons ── */
.service-card .sc-icon { position: relative; box-shadow: 0 8px 22px rgba(14,116,144,0.30); }
.service-card .sc-icon::after {
    content: ''; position: absolute; inset: -3px; border-radius: 18px;
    background: var(--grad-ocean); filter: blur(14px); opacity: 0.35; z-index: -1;
    transition: opacity 0.25s;
}
.service-card:hover .sc-icon::after { opacity: 0.6; }

/* ── Sparkle eyebrow variant ── */
.eyebrow svg.spark { color: var(--coral); }

/* ── Wave divider ── */
.wave { display: block; width: 100%; height: auto; line-height: 0; }
.wave-flip { transform: rotate(180deg); }

/* ── Trust strip ── */
.trust { background: var(--deep); padding: 30px 0; }
.trust-inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.85); font-size: 0.92rem; font-weight: 500; }
.trust-item svg { color: var(--seafoam); flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════
   SECTION HEADERS
   ════════════════════════════════════════════════════════════ */
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 18px 0 16px; }
.section-head p { font-size: 1.1rem; color: var(--slate); }

/* ── Problem cards ── */
.problem { background: var(--grad-soft); }
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.problem-card {
    background: #fff; border-radius: var(--radius-lg); padding: 28px 24px;
    border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
}
.problem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.problem-card .pc-icon { font-size: 1.7rem; margin-bottom: 14px; }
.problem-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.problem-card p { font-size: 0.9rem; color: var(--muted); }

/* ── Services ── */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
    display: flex; gap: 22px; background: #fff; border-radius: var(--radius-lg);
    padding: 32px; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; position: relative; overflow: hidden;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(14,116,144,0.25); }
.service-card .sc-icon {
    width: 58px; height: 58px; border-radius: 16px; flex-shrink: 0;
    display: grid; place-items: center; color: #fff; font-size: 1.5rem;
    background: var(--grad-ocean);
}
.service-card h3 { font-size: 1.28rem; margin-bottom: 8px; }
.service-card p { font-size: 0.95rem; color: var(--slate); }
.service-card .sc-tag { display: inline-block; margin-top: 12px; font-size: 0.78rem; font-weight: 600; color: var(--ocean); }

/* ── How it works ── */
.how { background: var(--deep); color: #fff; position: relative; }
.how .section-head h2 { color: #fff; }
.how .section-head p { color: rgba(255,255,255,0.7); }
.how .eyebrow { background: rgba(94,234,212,0.12); border-color: rgba(94,234,212,0.25); color: var(--seafoam); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg); padding: 30px 24px; position: relative;
    transition: transform 0.2s, background 0.2s;
}
.step:hover { transform: translateY(-5px); background: rgba(255,255,255,0.07); }
.step-num {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.15rem; color: var(--deep);
    background: var(--grad-beacon); margin-bottom: 18px;
}
.step h3 { color: #fff; font-size: 1.18rem; margin-bottom: 10px; }
.step p { color: rgba(255,255,255,0.72); font-size: 0.9rem; }

/* ── Why us / exclusivity ── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-points { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }
.why-point { display: flex; gap: 16px; }
.why-point .wp-check { width: 30px; height: 30px; border-radius: 9px; background: rgba(20,184,166,0.12); display: grid; place-items: center; color: var(--teal); flex-shrink: 0; }
.why-point h4 { font-family: 'Inter', sans-serif; font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.why-point p { font-size: 0.9rem; color: var(--muted); }
.why-visual { background: var(--grad-ocean); border-radius: var(--radius-xl); padding: 44px; color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.why-visual .wv-big { font-family: 'Fraunces', serif; font-size: 3.4rem; font-weight: 600; line-height: 1; }
.why-visual .wv-label { color: var(--aqua); font-size: 0.95rem; margin-top: 6px; margin-bottom: 28px; }
.why-visual .wv-row { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.92rem; }
.why-visual .wv-row b { font-family: 'Fraunces', serif; }

/* ── CTA band ── */
.cta-band { background: var(--grad-ocean); position: relative; overflow: hidden; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.2rem); margin-bottom: 18px; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 540px; margin: 0 auto 34px; }
.cta-band .seats { margin-top: 22px; font-size: 0.88rem; color: var(--aqua); display: inline-flex; align-items: center; gap: 8px; }

/* ── Footer ── */
.footer { background: var(--deep); color: rgba(255,255,255,0.6); padding: 60px 0 34px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer .logo { color: #fff; margin-bottom: 12px; }
.footer-col h5 { color: #fff; font-size: 0.88rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col a { display: block; font-size: 0.9rem; margin-bottom: 9px; transition: color 0.15s; }
.footer-col a:hover { color: var(--seafoam); }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; }
.footer-blurb { max-width: 280px; font-size: 0.9rem; }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
    .hero-grid, .why-grid { grid-template-columns: 1fr; gap: 44px; }
    .hero-visual { max-width: 440px; margin: 0 auto; }
    .problem-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: 1fr; }
    .nav-links, .nav-cta { display: none; }
    .nav-burger { display: flex; }
}
@media (max-width: 560px) {
    .wrap { padding: 0 18px; }
    .section { padding: 60px 0; }
    .problem-grid, .steps { grid-template-columns: 1fr; }
    .hero { padding-top: 112px; }
    .hero h1 { font-size: 2.15rem; }
    .hero-sub { font-size: 1.04rem; margin: 20px 0 28px; }
    .hero-grid { padding-bottom: 72px; gap: 32px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .hero-float { display: none; }            /* declutter on phones */
    .harbour-card { padding: 20px; }
    .trust-inner { gap: 12px 20px; }
    .trust-item { font-size: 0.84rem; }
    .section-head { margin-bottom: 36px; }
    .section-head p { font-size: 1rem; }
    .service-card { padding: 22px; gap: 16px; }
    .service-card .sc-icon { width: 50px; height: 50px; font-size: 1.3rem; }
    .why-visual { padding: 30px 24px; }
    .why-visual .wv-big { font-size: 2.8rem; }
    .footer-top { flex-direction: column; gap: 26px; }
    .btn-lg { padding: 15px 26px; font-size: 0.98rem; }
}
