/* --- VARIABLES (From Image Palette) --- */
:root {
    /* Base Colors */
    --bg-blue: #dce7ec;        /* Soft baby blue from image */
    --bg-white: #ffffff;
    
    /* Text Colors */
    --text-color: #162036;     /* Professional dark navy/slate */
    --muted: #4b5563;          /* Slate gray for readability */
    
    /* Branding */
    --primary: rgb(20, 29, 82);        /* Deep slate button color */
    --primary-hover: #182b58;
    --highlight: #3b82f6;      /* Subtle blue accent */
    
    --border-subtle: rgba(0, 0, 0, 0.08);
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASE --- */
html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body.menu-open { overflow: hidden; }
img, video { max-width: 100%; display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; }
p { line-height: 1.8; color: var(--muted); }

/* --- SECTION BACKGROUNDS --- */
.bg-blue { background-color: var(--bg-blue); }
.bg-white { background-color: var(--bg-white); }
.container { width: 92%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
.center-text { text-align: center; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 5vw, 4.5rem); margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 20px; }
h4 { font-size: 1.1rem; margin-bottom: 12px; }

.highlight-text { color: var(--highlight); }

.sub-label {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--muted);
    display: block;
    margin-bottom: 16px;
}

.terminal-label {
    border-left: 2px solid var(--primary);
    padding-left: 12px;
    display: inline-block;
}

.section-description { max-width: 600px; margin: 20px auto 0; font-size: 1.05rem; }

/* --- BUTTONS --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px;
    border-radius: 8px; /* Professional SaaS rounding */
    font-weight: 600; font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-primary { background: var(--primary); color: #ffffff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: rgba(0,0,0,0.05); }

/* --- NAVBAR --- */
.navbar {
    position: fixed; top: 0; width: 100%; padding: 20px 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    transition: padding 0.3s ease;
}
.navbar.scrolled { padding: 12px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.nav-links a { margin: 0 16px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }

/* --- HERO & MASSIVE VIDEO SECTION --- */
.hero-section {
    position: relative;
    padding-top: 160px;
    padding-bottom: 40px;
}
.hero-copy { max-width: 800px; margin: 0 auto 60px; }
.hero-copy p.lead { font-size: 1.1rem; margin: 0 auto 30px; }
.hero-cta { display: flex; justify-content: center; gap: 16px; }

/* The Apple-style video container */
.hero-video-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 24px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.4); /* Glass edge */
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.video-glass-border {
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    height: 60vh; /* Epic scale */
    background: #000;
}
.hero-video-el { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }

/* --- STATS WHITE BANNER --- */
.stats-banner { background: var(--bg-white); padding: 50px 0; border-bottom: 1px solid var(--border-subtle); position: relative; z-index: 10; }
.trust-bar-inner { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 30px; }
.stat-block { display: flex; align-items: center; gap: 16px; color: var(--text-color); }
.stat-block svg { width: 32px; height: 32px; stroke: var(--primary); }
.stat-info .num { font-family: var(--font-heading); font-weight: 800; font-size: 2.2rem; }
.stat-info .stat-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* --- SAAS CARDS & GRIDS --- */
.saas-card {
    background: var(--bg-white);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}
.saas-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: rgba(0,0,0,0.15);
}
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.icon-circle { margin-bottom: 20px; }
.icon-circle svg { width: 32px; height: 32px; fill: var(--primary); }

/* --- PROCESS SECTION --- */
.process-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
.p-step { text-align: left; }
.p-index { color: var(--primary); font-size: 1.2rem; font-weight: 800; margin-bottom: 16px; display: inline-block; border-bottom: 2px solid var(--primary); padding-bottom: 4px; }
.p-title { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; font-size: 0.95rem; margin-bottom: 12px; }
.p-text { font-size: 0.9rem; }

/* --- FORM / CTA SECTION --- */
.cta-band { padding: 100px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.checklist { list-style: none; }
.checklist li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.checklist svg { width: 20px; height: 20px; }
.terminal-image img { border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* --- SECURITY & FAQ --- */
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.security-badge { text-align: center; font-size: 0.95rem; font-weight: 600; }

.faq { max-width: 800px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq .saas-card { padding: 15px 20px; border-radius: 12px; }
.faq-q { width: 100%; text-align: left; background: transparent; color: var(--text-color); font-weight: 700; border: 0; font-size: 1rem; cursor: pointer; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; color: var(--muted); margin-top: 0; opacity: 0; }
.faq-item.open .faq-a { max-height: 200px; margin-top: 15px; opacity: 1; }

/* --- FOOTER --- */
.main-footer { background: var(--bg-white); padding: 40px 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.footer-links a { margin-left: 20px; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }

/* --- SUPER SMOOTH ANIMATIONS --- */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* New Scale-in for Video */
.scale-in { opacity: 0; transform: scale(0.95); transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.scale-in.visible { opacity: 1; transform: scale(1); }

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }

/* --- RESPONSIVE & MOBILE MENU --- */
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 6px; width: 28px; height: 28px; justify-content: center; align-items: flex-end; }
.hamburger span { width: 100%; height: 2.5px; background: var(--primary); border-radius: 2px; transition: all 0.3s ease; transform-origin: right center; }
.hamburger span:nth-child(1) { width: 120%; }
.hamburger.active span:nth-child(1) { transform: rotate(-45deg) translateY(12px); width: 100%; }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.hamburger.active span:nth-child(3) { transform: rotate(45deg) translateY(-12px); width: 100%; }

.mobile-menu { position: fixed; top: 0; right: 0; width: 100%; height: 100vh; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); z-index: 999; transform: translateX(100%); transition: transform 0.4s ease; display: flex; align-items: center; justify-content: center; }
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-content { display: flex; flex-direction: column; gap: 24px; text-align: center; }
.mobile-menu-content a { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-color); }

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .cta-inner { grid-template-columns: 1fr; }
    .process-cards, .platform-grid { grid-template-columns: 1fr 1fr; }
    .video-glass-border { height: 40vh; }
}

@media (max-width: 768px) {
    .nav-links, .nav-right .btn-primary { display: none; }
    .hamburger { display: flex; }
    h1 { font-size: 2.5rem; }
    .process-cards, .platform-grid, .security-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}