:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --text: #334155;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    /* Additional variables from digitalpasses to ensure consistency if needed */
    --header-shadow: rgba(0,0,0,0.08);
    --link-hover: var(--accent);
    --nav-cta-bg: var(--accent);
    --nav-cta-hover-bg: var(--accent-hover);
    --hamburger-color: var(--primary);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Hero */
/* The original .hero style now only applies to the main hero section */
.hero {
    background-color: var(--bg-light); /* Kept for the main hero content below header */
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
}

/* Typography elements */
h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Sections */
section {
    padding: 80px 0;
}

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

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-title p {
    font-size: 1.125rem;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Split Content */
.split-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.split-content:last-child {
    margin-bottom: 0;
}

.split-content.reverse {
    flex-direction: row-reverse;
}

.image-box {
    flex: 1;
}

.image-box img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.text-box {
    flex: 1;
}

.text-box ul {
    list-style: none;
    margin-top: 20px;
    margin-bottom: 25px;
}

.text-box li {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary);
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

.footer h2 {
    color: #fff;
    font-size: 2rem;
}

.footer p {
    margin-bottom: 30px;
    color: #cbd5e1;
    font-size: 1.125rem;
}

/* Contact Form */
.contact-section {
    background-color: var(--bg);
    border-top: 1px solid var(--border);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form .btn {
    width: 100%;
    margin-top: 10px;
    font-size: 1.125rem;
    cursor: pointer;
    border: none;
}

/* --- New Header/Navigation Styles from Digital Passes --- */

header {
    background-color: var(--bg);
    padding: 1rem 5%;
    box-shadow: 0 2px 15px var(--header-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.logo-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.8px;
    white-space: nowrap;
}

.logo-main {
    color: var(--primary);
}

.powered-by-text-simple {
    font-size: 0.75rem;
    color: var(--text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--link-hover);
}

.nav-demo {
    color: var(--accent); /* Highlight the demo link */
}

.nav-cta {
    background-color: var(--nav-cta-bg);
    color: var(--bg) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    margin-left: 2rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background-color: var(--nav-cta-hover-bg);
    transform: translateY(-2px);
}

nav a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 5px;
}

/* --- Mobile Navigation Optimizations --- */

/* Hamburger Button */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
    position: relative;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--hamburger-color);
    transition: all 0.3s ease-in-out;
}

.hamburger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Ensure desktop nav behaves normally */
@media (min-width: 769px) {
    .header-container nav {
        display: flex !important;
    }
}

/* Mobile Overrides */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .header-container {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .logo-container {
        width: auto;
    }

    /* The Mobile Menu Overlay */
    .header-container nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1050;
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
        display: flex;
    }

    .header-container nav.nav-open {
        transform: translateY(0);
    }

    .header-container nav a {
        margin: 0;
        font-size: 1.5rem;
    }

    .nav-cta {
        margin-top: 1rem;
        width: auto;
    }
}

/* Responsive from original mobilepasses styles (retained and adjusted) */
@media (max-width: 768px) {
    /* Existing responsive rules, potentially adjusted for new header */
    .hero-content {
        flex-direction: column;
    }
    
    .split-content {
        flex-direction: column;
    }
    
    .split-content.reverse {
        flex-direction: column;
    }
    
    .hero-text h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    .contact-form {
        padding: 25px;
    }
}
