/* --- Global Variables --- */
:root {
    --primary-color: #0d2b4e;
    --accent-color: #2563eb;
    --text-color: #333333;
    --text-light: #555555;
    --bg-light: #f4f6f8;
    --form-bg: #eff4f9;
    --white: #ffffff;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1000px;
}

/* --- Reset & Base Styles --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); color: var(--text-color); line-height: 1.6; background-color: var(--white); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin-bottom: 0.5em; }

/* --- Components --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  position: relative;
}

/* Broken Corner Viewfinder Style */
.btn-primary {
  --corner-color: #cbd5e1;
  --corner-hover: #3b82f6;
  --corner-len: 12px;
  --corner-width: 2px;
  background-color: transparent;
  color: #334155;
  background-image: 
    linear-gradient(var(--corner-color), var(--corner-color)), 
    linear-gradient(var(--corner-color), var(--corner-color)), 
    linear-gradient(var(--corner-color), var(--corner-color)), 
    linear-gradient(var(--corner-color), var(--corner-color)), 
    linear-gradient(var(--corner-color), var(--corner-color)), 
    linear-gradient(var(--corner-color), var(--corner-color)), 
    linear-gradient(var(--corner-color), var(--corner-color)), 
    linear-gradient(var(--corner-color), var(--corner-color));
  background-repeat: no-repeat;
  background-size: 
    var(--corner-width) var(--corner-len), var(--corner-len) var(--corner-width), 
    var(--corner-width) var(--corner-len), var(--corner-len) var(--corner-width), 
    var(--corner-width) var(--corner-len), var(--corner-len) var(--corner-width), 
    var(--corner-width) var(--corner-len), var(--corner-len) var(--corner-width); 
  background-position: 
    top left, top left,         
    top right, top right,       
    bottom right, bottom right, 
    bottom left, bottom left;   
}

.btn-primary:hover,
.btn-primary:focus {
  color: var(--corner-hover);
  background-image: 
    linear-gradient(var(--corner-hover), var(--corner-hover)), linear-gradient(var(--corner-hover), var(--corner-hover)),
    linear-gradient(var(--corner-hover), var(--corner-hover)), linear-gradient(var(--corner-hover), var(--corner-hover)),
    linear-gradient(var(--corner-hover), var(--corner-hover)), linear-gradient(var(--corner-hover), var(--corner-hover)),
    linear-gradient(var(--corner-hover), var(--corner-hover)), linear-gradient(var(--corner-hover), var(--corner-hover));
}

.btn-full { width: 100%; background: #1e5cd6; color: white; padding: 14px; border-radius: 6px; font-size: 1rem; margin-top: 10px; }
.btn-full:hover { background: #1646a7; }

.btn-viewfinder { color: #334155; text-decoration: none; }
.btn-viewfinder:hover, .btn-viewfinder:focus { color: #3b82f6; }


/* --- Header --- */
header { background: var(--white); padding: 25px 0; position: relative; }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 40px; list-style: none; align-items: center; }
.nav-links a { font-weight: 500; font-size: 1rem; color: #111; }
.nav-links a:hover { color: var(--accent-color); }

/* --- Hero Section --- */
.wp-hero, .home-hero {
    background-color: var(--primary-color);
    color: var(--white);
    overflow: hidden; 
}
.home-hero {
    padding: 80px 0;
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg width="200" height="400" xmlns="http://www.w3.org/2000/svg"><style>.b{fill:%234dabf7;opacity:0.12;font-family:monospace;font-size:11px;writing-mode:vertical-rl;text-orientation:upright;}</style><text x="10" y="0" class="b">1011010100101101010</text><text x="30" y="-50" class="b">010101101010101101</text><text x="50" y="-20" class="b">110100101010110101</text><text x="70" y="-80" class="b">001011010101010110</text><text x="90" y="-10" class="b">101010110101011010</text><text x="110" y="-60" class="b">011010101010101101</text><text x="130" y="-30" class="b">101010101101011010</text><text x="150" y="-90" class="b">010101101010101101</text><text x="170" y="-40" class="b">110100101010110101</text><text x="190" y="-70" class="b">001011010101010110</text></svg>');
    background-color: var(--primary-color);
    background-repeat: repeat-y, no-repeat;
    background-position: right top, center;
    background-size: 50% auto, auto;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero-text h1 { font-size: 3rem; line-height: 1.1; font-weight: 700; margin-bottom: 20px; }
.hero-text p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 30px; max-width: 450px; line-height: 1.5; }
.hero-visual { position: relative; display: flex; justify-content: center; z-index: 3; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2)); }

/* --- Trust Bar & Services --- */
.trust-bar { padding: 60px 0; text-align: center; }
.trust-bar p { max-width: 800px; margin: 0 auto; font-size: 1.1rem; line-height: 1.6; color: #222; font-weight: 500;}
.services-section { padding-bottom: 80px; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.service-card {
    display: flex; gap: 20px; padding: 30px; background: #ffffff;
    border: 1px solid #f0f0f0; border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease; align-items: flex-start;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-color: #e5e7eb; }
.service-icon { flex-shrink: 0; width: 48px; height: 48px; color: var(--primary-color); }
.service-content h3 { font-size: 1.25rem; color: #111; margin-bottom: 8px; font-weight: 700; }
.service-content p { color: #555; font-size: 0.95rem; line-height: 1.5; margin: 0;}

/* --- Logo Wall --- */
.logos-section { padding-bottom: 80px; }
.logos-section h4 { text-align: center; font-weight: 400; color: #666; margin-bottom: 40px; font-size: 1rem; }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; align-items: center; justify-items: center; opacity: 0.7; }
.logo-grid img { max-height: 35px; filter: grayscale(100%); transition: 0.3s; }
.logo-grid img:hover { filter: grayscale(0%); opacity: 1; }

/* --- Footer --- */
footer { background-color: #fff; padding: 60px 0 40px; border-top: 1px solid #eee; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 60px; }
.footer-links-col { display: flex; flex-direction: column; gap: 12px; }
.footer-links-col a { color: #333; font-weight: 500; font-size: 0.95rem; }
.footer-social-col .social-icons { display: flex; gap: 15px; }
.social-icons a { color: #333; display: flex; align-items: center; justify-content: center; }
.copyright-row { border-top: 1px solid #e5e7eb; padding-top: 30px; font-size: 0.85rem; color: #666; }
/* Legacy footer grid support */
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 60px; }
.footer-col h4 { font-size: 1rem; margin-bottom: 20px; color: var(--primary-color); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; font-size: 0.95rem; color: #555; }
.copyright { text-align: center; color: #999; font-size: 0.85rem; padding-top: 20px; border-top: 1px solid #f5f5f5;}


/* ========================================= */
/* --- WHITEPAPER PAGE SPECIFICS (FIXED) --- */
/* ========================================= */
.wp-hero { padding: 60px 0; margin-bottom: 50px; text-align: center; }
.wp-content { padding-bottom: 80px; }
.intro-grid { display: grid; grid-template-columns: 350px 1fr; gap: 60px; margin-bottom: 60px; align-items: center; }

/* Document Card Graphic */
.doc-preview { position: relative; display: flex; justify-content: center; }
.blob-bg { position: absolute; width: 280px; height: 280px; background: #eef4ff; border-radius: 50%; z-index: -1; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.doc-card { background: white; width: 200px; height: 280px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); border-radius: 4px; padding: 25px; display: flex; flex-direction: column; position: relative; border: 1px solid #eee; }
.doc-header small { color: var(--accent-color); font-weight: 700; font-size: 0.6rem; display: block; margin-bottom: 5px;}
.doc-header strong { font-size: 0.8rem; line-height: 1.3; display: block; color: #222;}
.doc-lines { margin-top: 20px; flex-grow: 1; }
.doc-lines span { display: block; height: 6px; background: #eee; margin-bottom: 8px; border-radius: 2px;}
.doc-lines span:last-child { width: 60%; }
.doc-shield { align-self: flex-end; color: var(--primary-color); width: 50px; height: 50px; }

/* Details & Form Layout */
.details-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: flex-start; }
.benefits-col li { position: relative; padding-left: 25px; margin-bottom: 20px; color: var(--text-light); }
.benefits-col li::before { content: "•"; color: #222; font-weight: bold; font-size: 1.5rem; position: absolute; left: 0; top: -5px; }

/* Form Card */
.form-card { background-color: var(--form-bg); padding: 30px; border-radius: 10px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: #333; }
.form-group input { width: 100%; padding: 12px; border: 1px solid #dbe2e8; border-radius: 6px; outline: none; }
.form-group input:focus { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }


/* ========================================= */
/* --- VIDEO PAGE SPECIFICS (RETAINED) --- */
/* ========================================= */
.video-page-layout { margin-top: 40px; padding-bottom: 80px; }
.video-page-title { font-size: 2.2rem; font-weight: 700; margin-bottom: 25px; color: #111; }
.main-video-player { position: relative; width: 100%; aspect-ratio: 16/9; background-color: #000; border-radius: 8px; overflow: hidden; margin-bottom: 40px; display: flex; justify-content: center; align-items: center; }
.video-bg { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.video-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 2; color: white; }
.video-overlay h2 { font-size: 2.5rem; text-align: center; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); line-height: 1.2; }
.play-btn { background: transparent; border: none; color: white; cursor: pointer; transform: scale(2); opacity: 0.8; transition: 0.2s; }
.video-controls { position: absolute; bottom: 0; left: 0; right: 0; padding: 15px 20px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); display: flex; justify-content: space-between; font-size: 0.9rem; font-family: monospace; }
.video-content-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; }
.related-col h3, .transcript-col h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 20px; color: #222; }
.related-card { display: flex; gap: 15px; margin-bottom: 20px; cursor: pointer; align-items: flex-start; }
.related-card:hover .related-info h4 { color: var(--accent-color); }
.related-thumb { position: relative; flex-shrink: 0; width: 150px; }
.related-thumb img { border-radius: 8px; width: 100%; height: auto; }
.duration { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,0.8); color: white; font-size: 0.75rem; padding: 2px 4px; border-radius: 4px; font-weight: 600; }
.related-info h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; line-height: 1.4; color: #333; }
.related-info span { font-size: 0.85rem; color: #666; }


/* ========================================= */
/* --- MOBILE MENU & RESPONSIVE --- */
/* ========================================= */

/* Hamburger Icon (Hidden on Desktop) */
.hamburger {
    display: none; 
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
}
.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: 0.3s;
}

/* Mobile Menu Dropdown (Hidden on Desktop) */
.mobile-menu {
    display: none; 
    background-color: var(--white);
    padding: 20px;
    border-bottom: 2px solid #eee;
    text-align: center;
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    z-index: 99;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.mobile-menu a {
    display: block;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 1px solid #f0f0f0;
}
.mobile-menu a:last-child { border-bottom: none; }

/* Mobile Layout Overrides */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }

    /* Fix grids for all pages */
    .hero-grid, 
    .services-grid, 
    .footer-grid, 
    .video-content-grid,
    .intro-grid,      /* Added Whitepaper grid */
    .details-grid {   /* Added Whitepaper grid */
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    
    .logo-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-text h1 { font-size: 2.2rem; }
    .footer-row { flex-direction: column; gap: 30px; }
}
