/* ============================================
   HÉRCULES AI — Design System
   Inspired by Kale Anders + Hormozi conversion
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
    --orange: #FF6B00;
    --orange-light: #FF8A33;
    --orange-glow: rgba(255, 107, 0, 0.25);
    --bg: #000000;
    --bg-card: #0A0A0A;
    --bg-card-hover: #111111;
    --border: rgba(255,255,255,0.08);
    --text: #FFFFFF;
    --text-muted: #888888;
    --text-dim: #555555;
    --font-primary: 'Inter', -apple-system, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* ---- Typography ---- */
.display-xl {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}
.headline-lg {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.headline-md {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.25;
}
.body-xl { font-size: 1.35rem; line-height: 1.7; color: var(--text-muted); }
.body-lg { font-size: 1.15rem; line-height: 1.7; color: var(--text-muted); }
.label-caps {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange);
}
.text-orange { color: var(--orange); }
.text-white { color: var(--text); }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-dark { background: #050505; }
.text-center { text-align: center; }

/* ---- Sticky Bar ---- */
.sticky-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--orange);
    color: #000;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex; justify-content: center; align-items: center; gap: 16px;
    height: 44px;
}
.sticky-bar .timer {
    border-left: 2px solid rgba(0,0,0,0.2);
    padding-left: 16px;
    display: flex; align-items: center; gap: 6px;
    font-variant-numeric: tabular-nums;
}

/* ---- Navbar ---- */
.navbar {
    position: fixed; top: 44px; left: 0; right: 0; z-index: 90;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: 72px;
}
.navbar-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center; height: 100%;
}
.navbar-logo {
    font-family: var(--font-display);
    font-size: 1.6rem; font-weight: 800; color: white;
    text-decoration: none; letter-spacing: -0.04em;
}
.navbar-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.navbar-links a {
    color: var(--text-muted); text-decoration: none; font-size: 0.9rem;
    font-weight: 500; transition: color 0.2s;
}
.navbar-links a:hover { color: white; }
.nav-cta {
    background: var(--orange) !important; color: #000 !important;
    padding: 10px 24px; border-radius: 8px; font-weight: 700 !important;
    transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--orange-glow); }

/* ---- CTA Button ---- */
.btn-primary {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--orange); color: #000;
    padding: 22px 48px; border-radius: 12px;
    font-family: var(--font-display);
    font-size: 1.15rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.04em;
    text-decoration: none; border: none; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 0 40px -8px var(--orange-glow);
}
.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 0 60px -4px var(--orange-glow);
}
.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--orange);
    padding: 16px 32px; border-radius: 12px;
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 700;
    border: 2px solid var(--orange); cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-secondary:hover { background: var(--orange); color: #000; }

/* ---- CTA Strip ---- */
.cta-strip {
    padding: 56px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.cta-strip p { color: var(--text-dim); font-size: 0.85rem; margin-top: 12px; }

/* ---- Cards ---- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    transition: transform 0.3s, border-color 0.3s;
}
.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 0, 0.2);
}
.tool-icon {
    width: 56px; height: 56px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.tool-icon .material-symbols-outlined { color: var(--orange); font-size: 28px; }

/* ---- Feature Grid ---- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.industry-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 16px;
    text-align: center;
    transition: border-color 0.3s;
}
.industry-item:hover { border-color: rgba(255,107,0,0.3); }
.industry-item .material-symbols-outlined { font-size: 36px; color: var(--orange); margin-bottom: 12px; }
.industry-item p { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---- Calculator ---- */
.calc-card {
    background: var(--bg-card);
    border: 2px solid var(--orange);
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 0 60px -15px var(--orange-glow);
}
.calc-slider { width: 100%; margin: 24px 0; accent-color: var(--orange); height: 6px; cursor: pointer; }
.calc-result {
    background: rgba(255,107,0,0.08);
    border: 1px solid rgba(255,107,0,0.2);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin-top: 24px;
}
.calc-price {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--orange);
}
.calc-disclaimer {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 16px;
    line-height: 1.5;
}

/* ---- Chat Widget ---- */
.chat-container {
    background: var(--bg-card);
    border: 2px solid var(--orange);
    border-radius: 20px;
    overflow: hidden;
    display: flex; flex-direction: column;
    min-height: 480px; max-height: 560px;
}
.chat-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
}
.chat-avatar {
    width: 40px; height: 40px;
    background: rgba(255,107,0,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.chat-avatar .material-symbols-outlined { color: var(--orange); font-size: 22px; }
.chat-status { display: flex; align-items: center; gap: 6px; }
.chat-status-dot {
    width: 8px; height: 8px;
    background: var(--orange);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
#chat-messages { flex: 1; padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.msg-ai {
    background: #1a1a1a;
    color: white;
    padding: 16px 20px;
    border-radius: 16px 16px 16px 4px;
    max-width: 80%;
    font-size: 0.95rem;
    line-height: 1.6;
}
.msg-user {
    background: var(--orange);
    color: #000;
    padding: 16px 20px;
    border-radius: 16px 16px 4px 16px;
    max-width: 80%;
    align-self: flex-end;
    font-size: 0.95rem;
    font-weight: 500;
}
.chat-form {
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex; gap: 8px;
}
.chat-form input {
    flex: 1;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}
.chat-form input:focus { border-color: var(--orange); }
.chat-form button {
    background: var(--orange);
    color: #000;
    border: none; border-radius: 10px;
    width: 48px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s;
}
.chat-form button:hover { transform: scale(1.05); }
.loading-dots { display: flex; gap: 4px; padding: 16px 20px; }
.loading-dot {
    width: 8px; height: 8px;
    background: #555;
    border-radius: 50%;
    animation: dot-bounce 1.4s infinite ease-in-out both;
}
.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes dot-bounce { 0%,80%,100% { transform: scale(0); } 40% { transform: scale(1); } }

/* ---- PDF card inside chat ---- */
.pdf-card {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: space-between;
}
.pdf-card a {
    background: var(--orange); color: #000;
    padding: 6px 14px; border-radius: 6px;
    font-size: 0.8rem; font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s;
}
.pdf-card a:hover { transform: scale(1.05); }

/* ---- FAQ ---- */
.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}
.faq-item summary {
    padding: 24px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    transition: background 0.2s;
}
.faq-item summary:hover { background: rgba(255,255,255,0.03); }
.faq-item summary .material-symbols-outlined { color: var(--orange); transition: transform 0.3s; }
.faq-item[open] summary .material-symbols-outlined { transform: rotate(180deg); }
.faq-item .faq-body {
    padding: 0 28px 24px;
    color: var(--text-muted);
    line-height: 1.7;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

/* ---- Form ---- */
.form-card {
    background: var(--bg-card);
    border: 2px solid var(--orange);
    border-radius: 20px;
    padding: 56px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 80px -20px var(--orange-glow);
}
.form-card::before {
    content: '';
    position: absolute; top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: var(--orange);
    opacity: 0.06;
    border-radius: 50%;
    filter: blur(60px);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
}
.form-group input, .form-group select {
    width: 100%;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--orange); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- Footer ---- */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0;
    text-align: center;
}
.footer p { color: var(--text-dim); font-size: 0.8rem; }
.footer .logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; margin-bottom: 16px; }

/* ---- Spacer ---- */
.spacer-top { padding-top: 136px; } /* 44px bar + 72px nav + 20px */

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .navbar-links { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 32px 20px; }
    .calc-card { padding: 28px 20px; }
    .container { padding: 0 16px; }
    .container-narrow { padding: 0 16px; }
    .section { padding: 64px 0; }

    /* Sticky bar: smaller text, wrap */
    .sticky-bar { font-size: 0.6rem; gap: 8px; height: 40px; padding: 0 12px; }
    .sticky-bar .timer { padding-left: 8px; }

    /* Typography scales */
    .display-xl { font-size: 2.2rem; }
    .headline-lg { font-size: 1.7rem; }
    .headline-md { font-size: 1.3rem; }
    .body-xl { font-size: 1.1rem; }
    .body-lg { font-size: 1rem; }

    /* Buttons: fit mobile */
    .btn-primary { padding: 18px 24px; font-size: 0.95rem; width: 100%; justify-content: center; text-align: center; }
    .btn-secondary { padding: 14px 24px; font-size: 0.9rem; width: 100%; justify-content: center; }

    /* Grids: single column */
    .feature-grid { grid-template-columns: 1fr !important; }
    .industry-grid { grid-template-columns: repeat(2, 1fr); }

    /* Glass cards: less padding */
    .glass-card { padding: 28px 24px; }

    /* Calculator price */
    .calc-price { font-size: 2.5rem; }

    /* Chat: full width messages */
    .msg-ai, .msg-user { max-width: 90%; }

    /* CTA strip */
    .cta-strip { padding: 40px 16px; }

    /* Spacer adjusted for smaller bar */
    .spacer-top { padding-top: 124px; }
}

@media (max-width: 480px) {
    .display-xl { font-size: 1.8rem; }
    .headline-lg { font-size: 1.4rem; }
    .industry-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .industry-item { padding: 20px 12px; }
    .industry-item .material-symbols-outlined { font-size: 28px; }
    .industry-item p { font-size: 0.65rem; }
    .calc-price { font-size: 2rem; }
    .sticky-bar { font-size: 0.55rem; }
}

/* Booking Slots */
.slot-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.slot-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}
.slot-btn.selected {
    background: rgba(255, 107, 0, 0.15);
    border-color: var(--orange);
    color: var(--orange);
}

/* Custom Calendar Widget */
.calendar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.calendar-header button {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    transition: background 0.2s;
}
.calendar-header button:hover {
    background: rgba(255, 255, 255, 0.1);
}
.calendar-month {
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: capitalize;
}
.calendar-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-weight: 600;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.cal-day:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
.cal-day.selected {
    background: var(--orange);
    color: white;
}
.cal-day.disabled {
    color: var(--text-dim);
    opacity: 0.3;
    cursor: not-allowed;
}
