/* ==========================================================================
   HitchPOS - Modern B2B SaaS Product Stylesheet
   Architecture: Pure Software Licensing & Native Purcell Webworks Cloud Sync
   Palette: Deep Authoritative Navy (#0A192F / #1E3A8A), Slate Grays, Crisp White, Cyan Accents
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    /* Brand Navy & Indigo Tones */
    --navy-950: #050b14;
    --navy-900: #0a192f;
    --navy-800: #102a4e;
    --navy-700: #1b3a6b;
    --navy-600: #1e3a8a;
    --navy-500: #2563eb;

    /* Electric & Cyan Accents */
    --cyan-500: #0ea5e9;
    --cyan-400: #38bdf8;
    --emerald-500: #10b981;
    --emerald-400: #34d399;

    /* Clean Neutrals & Surfaces */
    --bg-canvas: #ffffff;
    --bg-surface: #f8fafc;
    --bg-subtle: #f1f5f9;
    --border-light: #e2e8f0;
    --border-focus: #cbd5e1;
    --border-dark: rgba(255, 255, 255, 0.1);

    /* Text Colors */
    --text-primary: #0a192f;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;
    --text-inverse: #ffffff;

    /* Shadows & Elevations */
    --shadow-xs: 0 1px 2px rgba(10, 25, 47, 0.04);
    --shadow-sm: 0 2px 6px rgba(10, 25, 47, 0.06);
    --shadow-md: 0 8px 24px -4px rgba(10, 25, 47, 0.08);
    --shadow-lg: 0 20px 48px -8px rgba(10, 25, 47, 0.12);
    --shadow-card: 0 12px 32px -4px rgba(10, 25, 47, 0.07);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 9999px;

    /* Fonts */
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-secondary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    text-align: center;
}

.btn-navy {
    background: var(--navy-900);
    color: var(--text-inverse);
    box-shadow: 0 2px 8px rgba(10, 25, 47, 0.15);
}

.btn-navy:hover {
    background: var(--navy-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(10, 25, 47, 0.25);
    color: var(--text-inverse);
}

.btn-outline {
    background: #ffffff;
    color: var(--navy-900);
    border-color: var(--border-light);
}

.btn-outline:hover {
    background: var(--bg-subtle);
    border-color: var(--navy-900);
    color: var(--navy-900);
    transform: translateY(-1px);
}

.btn-white {
    background: #ffffff;
    color: var(--navy-900);
    box-shadow: var(--shadow-sm);
}

.btn-white:hover {
    background: var(--bg-subtle);
    transform: translateY(-1px);
}

/* Dynamic Live Announcement Bar (Purcell Webworks Sync) */
#hitch-announcement-bar {
    display: none; /* Controlled dynamically via live-sync.js */
    background: var(--navy-950);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 9px 0;
    text-align: center;
}

.announcement-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Sticky Glassmorphic Header */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo-img {
    height: 36px !important;
    max-height: 36px !important;
    width: auto !important;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.brand:hover .brand-logo-img {
    transform: scale(1.04);
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy-900);
    letter-spacing: -0.03em;
}

.brand-title span {
    color: var(--navy-600);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--navy-900);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Eyebrow Pill Badges */
.eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--navy-700);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: var(--shadow-xs);
}

.sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald-500);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.pulse {
    animation: pulseAnimation 2s infinite ease-in-out;
}

@keyframes pulseAnimation {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Hero Section */
.hero {
    padding: 72px 0 64px;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-surface) 100%);
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.3rem, 4.5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin: 0 auto 20px;
    color: var(--navy-900);
}

.hero-gradient-text {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subhead {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

/* Hero Software Interface Mockup Frame */
.hero-mockup-container {
    max-width: 1040px;
    margin: 0 auto;
    background: var(--navy-900);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg), 0 25px 60px -15px rgba(10, 25, 47, 0.25);
    overflow: hidden;
    color: #ffffff;
    text-align: left;
    position: relative;
}

.mockup-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--navy-950);
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}

.mockup-controls {
    display: flex;
    gap: 6px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.floating-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--emerald-400);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
}

.mockup-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    padding: 28px;
}

.pos-register-mock {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 20px;
}

.pos-register-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}

.pos-ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 0.88rem;
}

.ticket-tag-offline {
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(14, 165, 233, 0.2);
    color: var(--cyan-400);
    font-weight: 600;
}

.mockup-side-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sync-stat-item {
    margin-bottom: 16px;
}

.sync-stat-label {
    font-size: 0.75rem;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 4px;
}

.sync-stat-value {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

/* Spotlight Section: Powered by Purcell Webworks */
.spotlight-section {
    padding: 84px 0;
    background: var(--bg-canvas);
    border-bottom: 1px solid var(--border-light);
}

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

.section-tag {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy-600);
    margin-bottom: 12px;
}

.spotlight-content h2 {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    margin-bottom: 18px;
    color: var(--navy-900);
}

.spotlight-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.7;
}

.spotlight-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.spotlight-feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.spotlight-feature-card:hover {
    border-color: var(--navy-700);
    transform: translateY(-2px);
}

.spotlight-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-900);
    flex-shrink: 0;
}

.spotlight-feature-card h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--navy-900);
}

.spotlight-feature-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Feature Grid Section (6-Card) */
.features-section {
    padding: 92px 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}

.section-header h2 {
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    margin-bottom: 14px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-xs);
    transition: all 0.25s ease;
}

.feature-card:hover {
    border-color: var(--navy-600);
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
}

.feature-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-900);
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--navy-900);
    color: #ffffff;
    border-color: var(--navy-900);
}

.feature-card h3 {
    font-size: 1.22rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.94rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Software Walkthrough / Dashboard Section */
.walkthrough-section {
    padding: 92px 0;
    background: var(--bg-canvas);
    border-bottom: 1px solid var(--border-light);
}

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

.ledger-preview-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.ledger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.ledger-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.ledger-table th {
    text-align: left;
    padding: 10px 8px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-light);
}

.ledger-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.status-badge-settled {
    color: var(--emerald-500);
    font-weight: 600;
}

.walkthrough-bullets {
    list-style: none;
    margin-top: 24px;
}

.walkthrough-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.98rem;
    color: var(--text-secondary);
}

.walkthrough-bullets li i {
    color: var(--navy-900);
    margin-top: 3px;
    flex-shrink: 0;
}

/* Software Licensing Tiers Section */
.pricing-section {
    padding: 96px 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 28px;
    max-width: 1120px;
    margin: 0 auto;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.pricing-card.featured {
    border: 2px solid var(--navy-900);
    box-shadow: var(--shadow-md);
}

.featured-pill {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy-900);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
}

.tier-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.tier-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.tier-price {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1;
    margin-bottom: 24px;
}

.tier-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.tier-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.tier-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.tier-features li i {
    color: var(--navy-900);
    flex-shrink: 0;
}

/* Call to Action Banner */
.cta-section {
    padding: 80px 0;
    background: var(--bg-canvas);
}

.cta-banner {
    background: var(--navy-900);
    border-radius: var(--radius-xl);
    padding: 60px 48px;
    text-align: center;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-banner h2 {
    color: #ffffff;
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    margin-bottom: 16px;
}

.cta-banner p {
    color: var(--text-subtle);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto 32px;
}

/* Footer */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    padding: 64px 0 32px;
    font-size: 0.9rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 36px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-nav a:hover {
    color: var(--navy-900);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 16px;
}

.gateway-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .mockup-body,
    .spotlight-grid,
    .walkthrough-grid {
        grid-template-columns: 1fr;
    }
    .cta-banner {
        padding: 40px 24px;
    }
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
}
