/* ============================================================
   PROJECT OCTOPUS — STYLES
   ============================================================
   Design tokens, layout, typography, animations.
   Edit colors in :root. Edit spacing/sizing below.
   Copy lives in copy.js — this file is design only.
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #0F172A;
    background: #FFFFFF;
    -webkit-font-smoothing: antialiased;
}

/* === DESIGN TOKENS === */
:root {
    --teal: #2DD4BF;
    --deep-ocean: #0F766E;
    --seafoam: #99F6E4;
    --white: #FFFFFF;
    --shell: #F0FDFA;
    --ink: #0F172A;
    --slate: #64748B;
    --coral: #F97316;
    --red: #EF4444;
}

/* === UTILITIES === */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.section-pad { padding: 100px 0; }
@media (max-width: 768px) { .section-pad { padding: 64px 0; } }

/* === OCTOPUS MARK (logo-as-O) === */
.octo-mark {
    display: inline-block;
    width: 0.95em;
    height: 0.95em;
    vertical-align: -0.12em;
    margin: 0 -0.01em;
}
.octo-mark img,
.octo-mark svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* === NAVIGATION === */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15,23,42,0.06);
    padding: 14px 0;
    transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 24px rgba(15,23,42,0.08); }
.nav-inner {
    max-width: 1140px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-size: 20px; font-weight: 700; color: var(--ink);
    text-decoration: none; display: flex; align-items: center; gap: 0;
}
.nav-logo .octo-mark { width: 22px; height: 22px; vertical-align: -2px; }
.nav-cta {
    display: inline-block; padding: 10px 24px;
    background: var(--teal); color: #fff; border: none; border-radius: 8px;
    font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--deep-ocean); transform: translateY(-1px); }

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    background: var(--ink);
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-bg::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.55) 0%, rgba(15,23,42,0.35) 100%);
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, var(--ink) 100%);
}
.hero-content {
    position: relative; z-index: 2;
    text-align: center; padding: 140px 24px 100px;
    max-width: 780px; margin: 0 auto;
}
.hero-brand {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-bottom: 40px;
    font-size: 28px; font-weight: 700; color: #fff;
}
.hero-brand .octo-mark { width: 30px; height: 30px; }
.hero h1 {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 700; line-height: 1.1;
    color: #fff; margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--teal); }
.hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255,255,255,0.75); line-height: 1.65;
    max-width: 620px; margin: 0 auto 40px;
}
.cta-btn {
    display: inline-block; padding: 16px 40px;
    background: var(--teal); color: #fff; border: none; border-radius: 10px;
    font-size: 18px; font-weight: 600; cursor: pointer; text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 24px rgba(45,212,191,0.3);
}
.cta-btn:hover {
    background: var(--deep-ocean);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(45,212,191,0.35);
}
.hero-micro {
    margin-top: 16px; font-size: 14px;
    color: rgba(255,255,255,0.5);
}
.hero-micro strong { color: var(--coral); font-weight: 600; }

/* === STATS === */
.stats { background: var(--shell); }
.stats h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700; text-align: center;
    margin-bottom: 60px; color: var(--ink);
    letter-spacing: -0.01em;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(15,23,42,0.08);
}
.stat-num {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 800; color: var(--deep-ocean);
    line-height: 1; margin-bottom: 12px;
}
.stat-label {
    font-size: 15px; color: var(--ink);
    line-height: 1.5; margin-bottom: 12px;
}
.stat-source {
    font-size: 12px; color: var(--slate);
    font-style: italic;
}
.stats-closing {
    text-align: center; margin-top: 56px;
    font-size: clamp(17px, 2vw, 20px);
    color: var(--slate); max-width: 680px; margin-left: auto; margin-right: auto;
    line-height: 1.6;
}
.stats-closing strong { color: var(--ink); font-weight: 600; }

/* === BENEFITS === */
.benefits { background: var(--ink); color: #fff; }
.benefits h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700; text-align: center;
    color: #fff; margin-bottom: 80px;
    letter-spacing: -0.01em;
}
.benefit-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}
.benefit-block:last-child { margin-bottom: 0; }
.benefit-block.reverse { direction: rtl; }
.benefit-block.reverse > * { direction: ltr; }
@media (max-width: 768px) {
    .benefit-block, .benefit-block.reverse { grid-template-columns: 1fr; direction: ltr; gap: 32px; }
}
.benefit-text h3 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700; color: var(--teal);
    line-height: 1.2; margin-bottom: 20px;
}
.benefit-text p {
    font-size: 17px; color: rgba(255,255,255,0.8);
    line-height: 1.7; margin-bottom: 20px;
}
.benefit-cite {
    font-size: 14px; color: var(--slate);
    font-style: italic; line-height: 1.5;
    border-left: 3px solid var(--deep-ocean);
    padding-left: 16px;
}
.benefit-img {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
}
.benefit-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.benefit-img::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(45,212,191,0.15);
    pointer-events: none;
}
.benefit-block:nth-child(odd) .benefit-img { transform: perspective(800px) rotateY(-2deg); }
.benefit-block:nth-child(even) .benefit-img { transform: perspective(800px) rotateY(2deg); }

/* === PERSONAS === */
.personas { background: var(--shell); }
.personas h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700; text-align: center;
    margin-bottom: 60px; color: var(--ink);
}
.persona-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
@media (max-width: 768px) { .persona-grid { grid-template-columns: 1fr; } }
.persona-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
.persona-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(15,23,42,0.08);
}
.persona-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 2px solid var(--seafoam);
}
.persona-quote {
    font-size: 16px; font-style: italic;
    color: var(--ink); line-height: 1.65;
    margin-bottom: 16px;
}
.persona-label {
    font-size: 14px; font-weight: 600;
    color: var(--deep-ocean);
}

/* === CTA SECTION === */
.cta-section {
    position: relative;
    overflow: hidden;
    background: var(--ink);
}
.cta-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.cta-bg::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.7) 0%, rgba(15,23,42,0.85) 100%);
}
.cta-content {
    position: relative; z-index: 2;
    text-align: center;
    max-width: 640px; margin: 0 auto;
}
.cta-section h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700; color: #fff;
    margin-bottom: 24px;
}
.cta-section .cta-sub {
    font-size: 18px; color: rgba(255,255,255,0.7);
    margin-bottom: 40px; line-height: 1.6;
}
.perks {
    display: flex; gap: 32px; justify-content: center;
    margin-bottom: 48px; flex-wrap: wrap;
}
.perk {
    text-align: center; flex: 1; min-width: 160px; max-width: 200px;
}
.perk-icon {
    width: 48px; height: 48px;
    background: rgba(45,212,191,0.15);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
}
.perk-icon svg { width: 24px; height: 24px; stroke: var(--teal); fill: none; }
.perk h4 {
    font-size: 16px; font-weight: 600; color: #fff;
    margin-bottom: 6px;
}
.perk p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.5; }

/* === FORM === */
.signup-form {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 480px; margin: 0 auto;
    backdrop-filter: blur(8px);
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; font-size: 14px; font-weight: 600;
    color: rgba(255,255,255,0.7); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 12px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: #fff; font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    background: rgba(255,255,255,0.12);
}
.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: var(--ink); color: #fff; }
.form-group textarea { resize: vertical; min-height: 60px; }
.submit-btn {
    width: 100%; padding: 16px;
    background: var(--teal); color: #fff; border: none; border-radius: 10px;
    font-size: 18px; font-weight: 600; cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 24px rgba(45,212,191,0.3);
}
.submit-btn:hover {
    background: var(--deep-ocean);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(45,212,191,0.35);
}
.form-privacy {
    text-align: center; margin-top: 14px;
    font-size: 13px; color: rgba(255,255,255,0.4);
}

/* === HUBSPOT FORM OVERRIDES === */
.signup-form .hs-form-frame,
.signup-form .hs-form {
    color: #fff;
}
.signup-form .hs-form label,
.signup-form .hs-form .hs-form-field > label {
    color: rgba(255,255,255,0.85) !important;
    font-size: 14px;
    font-weight: 600;
}
.signup-form .hs-form input,
.signup-form .hs-form select,
.signup-form .hs-form textarea {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 16px;
    padding: 12px 16px;
}
.signup-form .hs-form input::placeholder,
.signup-form .hs-form textarea::placeholder {
    color: rgba(255,255,255,0.3) !important;
}
.signup-form .hs-form input:focus,
.signup-form .hs-form select:focus,
.signup-form .hs-form textarea:focus {
    border-color: var(--teal) !important;
    background: rgba(255,255,255,0.12) !important;
    outline: none;
}
.signup-form .hs-form .hs-button,
.signup-form .hs-form input[type="submit"] {
    width: 100%;
    padding: 16px !important;
    background: var(--teal) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 24px rgba(45,212,191,0.3);
}
.signup-form .hs-form .hs-button:hover,
.signup-form .hs-form input[type="submit"]:hover {
    background: var(--deep-ocean) !important;
    transform: translateY(-2px);
}
.signup-form .hs-form .hs-error-msgs,
.signup-form .hs-form .hs-error-msg {
    color: var(--coral) !important;
    font-size: 13px;
}
.signup-form .hs-form .hs-richtext,
.signup-form .hs-form .hs-richtext p,
.signup-form .hs-form .legal-consent-container,
.signup-form .hs-form .hs-form-field .hs-field-desc {
    color: rgba(255,255,255,0.5) !important;
    font-size: 13px;
}
.signup-form .hs-form a {
    color: var(--teal) !important;
}
.signup-form .hs-form .submitted-message {
    color: #fff !important;
    font-size: 18px;
}

/* === FOOTER === */
footer {
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 40px 0;
}
.footer-inner {
    max-width: 1140px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 20px;
}
.footer-brand {
    display: flex; align-items: center; gap: 0;
    font-size: 16px; font-weight: 700; color: #fff;
}
.footer-brand .octo-mark { width: 18px; height: 18px; }
.footer-tagline {
    font-size: 13px; color: var(--slate);
    margin-left: 12px; font-weight: 400;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
    font-size: 14px; color: var(--slate);
    text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--teal); }
.footer-social { display: flex; gap: 16px; }
.footer-social a {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; background: rgba(255,255,255,0.06);
    transition: background 0.2s;
}
.footer-social a:hover { background: rgba(45,212,191,0.15); }
.footer-social svg { width: 18px; height: 18px; fill: var(--slate); }
@media (max-width: 600px) {
    .footer-inner { flex-direction: column; text-align: center; }
}

/* === SCROLL ANIMATIONS === */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
