/* assets/css/global.css */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    /* Monochromatic Teal Enterprise Palette - VIBRANT UPDATE */
    /* Deep Blue-Teal Enterprise Palette */
    --brand-primary: #0077B6;
    /* Star Command Blue - Brighter/Richer */
    --brand-dark: #023047;
    /* Prussian Blue - Deep & Rich */
    --brand-medium: #0096C7;
    /* Pacific Blue - Brighter */
    --brand-accent: #00B4D8;
    /* Vivid Sky Blue - High Contrast Pop */
    --brand-pink: #EF476F;
    /* Red-Pink - Maximum Vibrancy */
    --brand-orange: #FB8500;
    /* Honey Yellow/Orange - Deep & Vibrant */

    --bg-main: #ffffff;
    --bg-alt: #E0F7FA;
    /* Very Light Cyan */
    --bg-footer: #012A38;
    /* Deep Dark Blue Footer */
    --bg-dark: #012A38;
    /* Deepest Blue-Teal Grounding */

    --text-main: #181818;
    --text-muted: #444444;
    --text-light: #747474;
    --white: #ffffff;

    --border: #D8DDE1;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(13, 148, 136, 0.15), 0 8px 10px -6px rgba(13, 148, 136, 0.1);
    /* Teal tinted glow */
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.04);
    /* Clean SaaS Shadow */

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 1rem;
    /* 16px - Large SaaS rounding */
    --radius-full: 9999px;

    --transition: all 0.25s ease-in-out;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    /* Tech Grid Background */
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 32px 32px;
    color: var(--text-main);
    line-height: 1.625;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Floating Tech Shapes Container */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    /* Behind everything */
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-110vh) rotate(360deg);
        /* Move up past viewport */
        opacity: 0;
    }
}

/* Typography - Fluid Scaling */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(1.75rem, 4vw + 1rem, 4.5rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem);
}

h3 {
    font-size: clamp(1.125rem, 2vw + 0.25rem, 1.5rem);
}

p {
    margin-bottom: 1.25rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Base Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 8rem 0;
}

/* Consolidated Page Header */
.page-header {
    padding: 7.5rem 0 3rem;
    /* Increased top padding to clear 72px navbar + breathing room */
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-primary) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
    color: var(--white);
    border-bottom: none;
    text-align: center;
    overflow: hidden;
    /* Ensure gradient doesn't spill if border-radius used elsewhere */
}

.page-header h1 {
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    /* Reduced min size to help fit single line on mobile */
    margin-bottom: 1rem;
    color: var(--white);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 1rem;
    /* Balanced padding */
}

.page-header .header-pretitle {
    color: var(--brand-accent);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    display: block;
    text-align: center;
    /* Force center for pretitle */
    width: 100%;
}



.page-header p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 100%;
    /* Stretched to edge as per user request */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .page-header h1 {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Shared Section Title */
.section-title {
    margin-bottom: 4rem;
    max-width: 800px;
}

.section-title h2 {
    margin-bottom: 1rem;
    color: var(--brand-dark);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.section-title p {
    color: var(--brand-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}


.alt-bg {
    background-color: var(--bg-alt);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Request Demo Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 47, 46, 0.7);
    /* brand-dark opacity */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--brand-primary);
}

.modal-header h3 {
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.btn-primary.full-width {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

.success-message {
    text-align: center;
    padding: 2rem 0;
    display: none;
}

.success-message h3 {
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.success-icon {
    font-size: 3rem;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
    display: block;
}

/* --- Calendar UI --- */
.calendar-step {
    display: none;
}

.calendar-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.calendar-dates {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.date-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.date-card:hover {
    border-color: var(--brand-primary);
    background-color: var(--bg-alt);
}

.date-card.selected {
    border-color: var(--brand-primary);
    background-color: var(--brand-primary);
    color: var(--white);
}

.date-day {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.date-d {
    font-size: 1.25rem;
    font-weight: 700;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.time-btn {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: transparent;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition);
}

.time-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.time-btn.selected {
    background-color: var(--brand-primary);
    color: var(--white);
    border-color: var(--brand-primary);
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.alive-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}