/* Import Google Fonts reliably */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Public+Sans:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --color-primary: #001233;
  --color-primary-container: #002855; 
  
  --color-surface-container-lowest: #ffffff;
  --color-surface: #f8f9fa;
  --color-surface-container-low: #f1f3f5;
  --color-surface-container: #e9ecef;
  
  --color-on-surface: #212529;
  --color-on-primary-container: #a3b1c6;
  --color-on-primary: #ffffff;
  
  /* Glassmorphism tokens - Refined for Light Mode Clarity */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.75);
  --glass-border: 1px solid rgba(0, 18, 51, 0.08);
  --glass-blur: blur(16px);
  --glass-shadow: 0 8px 32px rgba(0, 18, 51, 0.06);
  --glass-shimmer: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.15) 100%);
  
  --font-display: 'Playfair Display', "Times New Roman", serif;
  --font-body: 'Public Sans', "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', Consolas, monospace;
}

/* Background Accents for Light Glass Pop */
.bg-glass-accent {
    position: relative;
    background: var(--color-surface);
    overflow: hidden;
}

.bg-glass-accent::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(0, 40, 85, 0.04) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.bg-glass-accent::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(0, 122, 138, 0.03) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.bg-surface-low.bg-glass-accent {
    background-color: var(--color-surface-container-low);
}

/* Base Reset & 0px Enforcer */
* { margin: 0; padding: 0; box-sizing: border-box; border-radius: 0 !important; }
html { scroll-behavior: smooth; font-size: 16px; font-family: var(--font-body); color: var(--color-on-surface); overflow-x: hidden; width: 100%; }
body { background-color: var(--color-surface); overflow-x: hidden; width: 100%; line-height: 1.6; position: relative; }

/* Utilities */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 5%; }
.mono { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.text-primary { color: var(--color-primary); }
.margin-bottom { margin-bottom: 1rem; }
.margin-top-md { margin-top: 2rem; }
.dim-text { color: #495057; }

/* Tonal Shifts for Sectioning */
.bg-surface { background-color: var(--color-surface); }
.bg-surface-low { background-color: var(--color-surface-container-low); }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--color-primary); }
.display-heading { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 2rem; letter-spacing: -0.02em; }
.body-text { font-size: 1.15rem; margin-bottom: 1.5rem; color: #343a40; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2.5rem; font-family: var(--font-body); font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em;
  transition: all 0.3s ease;
}
.btn-primary { background-color: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-container); box-shadow: var(--ambient-shadow); }
.btn-outline { background-color: transparent; border: 1px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background-color: var(--color-primary); color: #fff; }

/* Header & Nav */
.header { position: absolute; top: 0; left: 0; width: 100%; z-index: 100; padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.15); transition: all 0.4s ease; }
.header.scrolled { position: fixed; background: rgba(0, 18, 51, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.08); box-shadow: 0 4px 30px rgba(0,0,0,0.15); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.logo-sub { font-family: var(--font-mono); font-size: 0.75rem; color: #a3b1c6; margin-left: 0.5rem; letter-spacing: 0.1em; font-weight: 400; }
.nav-links { display: flex; gap: 3rem; list-style: none; }
.nav-links a { font-family: var(--font-mono); color: #fff; text-decoration: none; font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8; transition: opacity 0.3s; }
.nav-links a:hover { opacity: 1; }

/* Hero Section */
.hero-section { 
  position: relative; min-height: 90vh; display: flex; align-items: center; padding-top: 100px;
  overflow: hidden;
}
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: grayscale(50%); }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(0,18,51,0.85) 0%, rgba(0,40,85,0.95) 100%); z-index: 1; pointer-events: none; }
.hero-content { position: relative; z-index: 2; width: 100%; }
.badge { display: inline-block; padding: 0.5rem 1rem; border: 1px solid rgba(255,255,255,0.3); color: #fff; margin-bottom: 2rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.15em; background: rgba(0,0,0,0.2); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.hero-section h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; color: #fff; line-height: 1.1; }
.hero-desc { font-family: var(--font-body); font-size: 1.25rem; color: #e9ecef; max-width: 650px; margin-bottom: 3rem; line-height: 1.6; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-section .btn-outline { border-color: #fff; color: #fff; }
.hero-section .btn-outline:hover { background: #fff; color: var(--color-primary); }

/* Glassmorphic COA Authenticator */
.glass-authenticator {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  padding: 2.5rem;
  width: 100%;
  max-width: 500px;
  margin: auto;
  position: relative;
  overflow: hidden;
}
.glass-authenticator::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}
.auth-header { display: flex; align-items: center; gap: 0.75rem; color: #fff; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1rem; }
.auth-icon { color: #00ffcc; }
.auth-input-group { margin-bottom: 1.5rem; }
.auth-search-wrapper { display: flex; margin-top: 0.5rem; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.2); }
.glass-input { flex-grow: 1; background: transparent; border: none; padding: 1rem; color: #fff; font-family: var(--font-mono); font-size: 0.9rem; outline: none; }
.glass-input::placeholder { color: rgba(255,255,255,0.4); }
.glass-btn { background: rgba(255,255,255,0.1); border: none; border-left: 1px solid rgba(255,255,255,0.2); padding: 0 1.25rem; color: #fff; cursor: pointer; transition: background 0.3s; display: flex; align-items: center; justify-content: center; }
.glass-btn:hover { background: rgba(255,255,255,0.2); }

.auth-results { margin-top: 1.5rem; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); padding: 1.5rem; animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.auth-loading { display: flex; align-items: center; gap: 1rem; color: #a3b1c6; }
.loader { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.2); border-bottom-color: #00ffcc; border-radius: 50% !important; display: inline-block; animation: rotation 1s linear infinite; }
@keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.auth-data { display: flex; flex-direction: column; }
.data-row { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.data-label { font-size: 0.75rem; color: #a3b1c6; }
.data-val { font-size: 0.9rem; font-family: var(--font-mono); color: #fff; font-weight: 500; }

/* Trust Bar - Frosted Glass */
.trust-bar { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border-bottom: var(--glass-border); padding: 2.5rem 0; box-shadow: var(--glass-shadow); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; align-items: center; justify-items: center; }
.trust-item { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-primary); font-weight: 600; letter-spacing: 0.05em; opacity: 0.85; }
.trust-item svg { width: 24px; height: 24px; stroke-width: 1.5px; }

/* Decorative Accents */
.teal-underline { position: relative; display: inline-block; }
.teal-underline::after { content: ''; position: absolute; left: 0; bottom: 8px; width: 100%; height: 4px; background: #00ffcc; z-index: -1; }

.foundation-stats { display: flex; gap: 4rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(0, 18, 51, 0.05); }
.stat-box { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-val { font-size: 2rem; font-weight: 700; color: var(--color-primary); font-family: var(--font-display); line-height: 1; }
.stat-lbl { font-size: 0.75rem; font-family: var(--font-mono); color: #5c6b7a; letter-spacing: 0.05em; text-transform: uppercase; }

.floating-status-card {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: #ffffff;
    padding: 1.5rem 2rem;
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(0,0,0,0.05);
}
.status-lbl { font-size: 0.65rem; font-family: var(--font-mono); color: #a3b1c6; letter-spacing: 0.1em; display: block; margin-bottom: 0.25rem; }
.status-val { font-family: var(--font-body); font-weight: 700; color: var(--color-primary); font-size: 1.1rem; }

/* Integrity Stream Widget */
.integrity-stream {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}
.stream-header {
    background: var(--color-primary);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.stream-title { font-family: var(--font-mono); font-size: 0.65rem; color: #ffffff; letter-spacing: 0.15em; display: flex; align-items: center; gap: 0.5rem; }
.stream-dot { width: 6px; height: 6px; background: #007a8a; border-radius: 50% !important; }

.stream-body { padding: 2rem 1.5rem; }
.stream-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid rgba(0,0,0,0.03); }
.stream-lbl { font-family: var(--font-mono); font-size: 0.8rem; color: #5c6b7a; }
.stream-val { font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; color: var(--color-primary); }
.stream-val.certified { color: #007a8a; display: flex; align-items: center; gap: 0.5rem; }

.stream-progress { margin: 1.5rem 0; }
.progress-bar { width: 100%; height: 6px; background: rgba(0, 18, 51, 0.05); margin-bottom: 0.5rem; position: relative; }
.progress-fill { position: absolute; height: 100%; background: #007a8a; width: 100%; }
.progress-stats { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.55rem; color: #a3b1c6; }

.crypto-block {
    background: #f8f9fa;
    padding: 1.25rem;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    line-height: 1.6;
    color: #5c6b7a;
}
.crypto-block strong { color: #5c6b7a; font-weight: 600; }

.vertical-process { display: grid; gap: 3.5rem; position: relative; }
.vertical-process::before {
    content: ''; position: absolute; top: 1.5rem; bottom: 1.5rem; left: 28px; width: 1px; background: rgba(0, 18, 51, 0.15); z-index: 0;
}
.process-item { display: flex; gap: 2.5rem; align-items: center; position: relative; z-index: 1; }
.process-num {
    width: 56px; height: 56px; background: var(--color-primary); color: #ffffff;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50% !important; font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700;
    box-shadow: 0 8px 24px rgba(0,18,51,0.12);
    flex-shrink: 0;
    border: none;
}
.process-num.teal { background: #007a8a; }
.process-num.blue-grey { background: #5c6b7a; }

.batch-status-panel {
    position: absolute;
    bottom: -1rem;
    left: -2rem;
    background: #ffffff;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(0,0,0,0.05);
    width: 260px;
}
.batch-status-panel .crypto-block { margin-top: 0.5rem; background: transparent; padding: 0; }
.batch-status-panel .stream-title { color: var(--color-primary); margin-bottom: 1rem; }
.batch-status-panel .stream-row { padding: 0.5rem 0; font-size: 0.75rem; }
.batch-status-panel .stream-lbl { font-size: 0.65rem; }
.batch-status-panel .stream-val { font-size: 0.75rem; font-family: var(--font-mono); }

/* Technical Bento Grid */
.bento-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 1.5rem;
    margin-top: 4rem;
}
.bento-card {
    background: #ffffff;
    border: 1px solid rgba(0, 18, 51, 0.05);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}
.bento-card.col-2 { grid-column: span 2; }
.bento-card.bg-dark { background: var(--color-primary); color: #ffffff; border: none; }
.bento-card.bg-low { background: var(--color-surface-container-low); }

/* Bento Specific: HPLC Dark */
.hplc-card {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    justify-content: flex-end;
}
.hplc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; mix-blend-mode: luminosity; }
.hplc-card h3 { color: #ffffff; font-size: 2rem; margin-bottom: 1rem; position: relative; }
.hplc-card p { color: #a3b1c6; max-width: 400px; font-size: 1.1rem; position: relative; }
.hplc-stats { margin-top: 4rem; display: flex; gap: 4rem; position: relative; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2rem; }

/* Bento Specific: API Code */
.api-card { flex-direction: row; align-items: center; gap: 4rem; padding-right: 0; }
.code-terminal {
    background: #001a33;
    padding: 1.5rem;
    color: #a3b1c6;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    line-height: 1.6;
    width: 100%;
    max-width: 380px;
    border-left: 4px solid #007a8a;
}
.code-terminal .key { color: #00ffcc; }
.code-terminal .string { color: #ffffff; }

/* Institutional FAQ */
.faq-list { max-width: 900px; margin: 4rem auto 0; display: grid; gap: 1rem; }
.faq-item {
    background: #ffffff;
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0, 18, 51, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}
.faq-item:hover { border-color: rgba(0, 18, 51, 0.15); box-shadow: 0 10px 30px rgba(0, 18, 51, 0.03); }
.faq-question { font-family: var(--font-body); font-weight: 700; color: var(--color-primary); font-size: 1.05rem; }
.faq-plus { color: var(--color-primary); font-size: 1.5rem; font-weight: 300; transition: transform 0.4s; }
.faq-item.active .faq-plus { transform: rotate(45deg); color: #007a8a; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: #ffffff;
    border: 1px solid rgba(0, 18, 51, 0.05);
    border-top: none;
    padding: 0 2.5rem;
    color: #5c6b7a;
    font-size: 1rem;
    line-height: 1.6;
}
.faq-item.active + .faq-answer { max-height: 200px; padding: 1.5rem 2.5rem; border-color: rgba(0, 18, 51, 0.15); }


/* Bento Tables */
.bento-table { margin-top: auto; border-top: 1px solid rgba(0, 18, 51, 0.05); padding-top: 1.5rem; }
.bento-table-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.7rem; margin-bottom: 0.5rem; }
.bento-table-row span:last-child { color: var(--color-primary); font-weight: 700; }

@media (max-width: 1024px) {
    .bento-container { grid-template-columns: 1fr; }
    .bento-card.col-2 { grid-column: span 1; }
    .api-card { flex-direction: column; padding-right: 2.5rem; }
}

/* Institutional Manifest Banner */
.manifest-banner {
    background: var(--color-primary);
    padding: 8rem 0;
    text-align: center;
    color: #ffffff;
}
.manifest-banner .display-heading { color: #ffffff; margin-bottom: 1.5rem; }
.manifest-quote { font-family: var(--font-display); font-size: 2rem; font-style: italic; color: #ffffff; margin-bottom: 2rem; opacity: 0.9; }
.manifest-body { max-width: 650px; margin: 0 auto; color: #a3b1c6; line-height: 1.8; font-size: 1.1rem; }
.teal-divider { width: 80px; height: 4px; background: #007a8a; margin: 0 auto 2rem; }
.red-accent-underline {
    position: relative;
    display: inline-block;
    color: #ff4d4d;
}
.red-accent-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 3px;
    background: #ff4d4d;
}

/* Institutional Service Grid */
.institutional-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem 5rem;
    padding: 5.5rem 0;
    background: #ffffff;
}
.inst-item { display: flex; gap: 1.5rem; }
.inst-num { font-family: var(--font-mono); font-size: 2.2rem; font-weight: 700; color: var(--color-primary); opacity: 0.45; line-height: 1; min-width: 45px; }
.inst-content h4 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--color-primary); font-family: var(--font-body); font-weight: 700; }
.inst-content p { color: #5c6b7a; font-size: 0.95rem; line-height: 1.5; margin: 0; }

/* Horizontal Workflow */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    padding-top: 4rem;
}
.workflow-grid::before {
    content: ''; position: absolute; top: calc(4rem + 40px); left: 10%; right: 10%; height: 1px; background: rgba(0, 18, 51, 0.08); z-index: 0;
}
.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}
.workflow-circle {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 18, 51, 0.05);
    margin-bottom: 2rem;
    color: var(--color-primary);
    border: 1px solid rgba(0, 18, 51, 0.03);
}
.workflow-step h4 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 0.75rem; color: var(--color-primary); }
.workflow-step p { font-size: 0.95rem; color: #5c6b7a; line-height: 1.5; max-width: 200px; margin: 0; }

@media (max-width: 768px) {
    .workflow-grid { grid-template-columns: 1fr; gap: 4rem; }
    .workflow-grid::before { display: none; }
}

@media (max-width: 1024px) {
    .institutional-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
}
@media (max-width: 768px) {
    .institutional-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.section-pad { padding: 5.5rem 0; overflow: hidden; position: relative; }
.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* Engage Protocol (Final CTA) */
.bg-primary { background: var(--color-primary); color: #ffffff; }
.bg-primary .display-heading { color: #ffffff; margin-bottom: 2rem; }
.bg-primary .body-text { color: #a3b1c6; }

.engage-stats { display: flex; gap: 4rem; margin-top: 4rem; }
.e-stat-box { display: flex; flex-direction: column; }
.e-stat-val { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: #ffffff; margin-bottom: 0.25rem; }
.e-stat-lbl { font-family: var(--font-mono); font-size: 0.75rem; color: #007a8a; letter-spacing: 0.1em; }

.engage-card {
    background: #ffffff;
    padding: 3.5rem;
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
}
.engage-card h3 { color: var(--color-primary); font-size: 1.8rem; margin-bottom: 2.5rem; font-family: var(--font-body); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.form-group-full { margin-bottom: 1.5rem; }

.engage-card label {
    font-family: var(--font-mono); font-size: 0.65rem; color: #a3b1c6; display: block; margin-bottom: 0.5rem; letter-spacing: 0.05em;
}
.engage-card input, .engage-card select, .engage-card textarea {
    width: 100%; padding: 1rem 1.25rem; background: #f8f9fa; border: 1px solid rgba(0,0,0,0.03);
    font-family: var(--font-body); font-size: 0.95rem; color: var(--color-primary);
}
.engage-card input:focus, .engage-card textarea:focus { outline: none; border-color: rgba(0, 122, 138, 0.2); background: #ffffff; }

.feature-list { list-style: none; margin-top: 2rem; display: grid; gap: 1.5rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 1rem; font-size: 1.15rem; }
.icon-box { color: var(--color-primary); flex-shrink: 0; margin-top: 0.2rem; }

/* Image Wrapper */
.gap-image-wrapper { height: 600px; width: 100%; position: relative; overflow: hidden; background: #dee2e6; border: var(--ghost-border); }
.architectural-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(80%) contrast(1.1); transition: transform 0.8s ease; }
.gap-image-wrapper:hover .architectural-img { transform: scale(1.05); filter: grayscale(50%) contrast(1.1); }

/* Cards (Services) - Glassmorphic */
.tension-header { margin-bottom: 4rem; max-width: 800px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.service-card {
  background: var(--glass-bg-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  padding: 3rem 2.5rem; border: var(--glass-border); border-top: 4px solid var(--color-primary);
  transition: transform 0.4s ease, box-shadow 0.4s ease; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--glass-shimmer); pointer-events: none; opacity: 0.5;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0, 18, 51, 0.1); border-color: rgba(0, 18, 51, 0.25); border-top: 4px solid var(--color-primary); }
.service-icon { margin-bottom: 1.5rem; color: var(--color-primary); position: relative; }
.service-icon svg { width: 44px; height: 44px; stroke-width: 1.2px; }
.service-card h3 { margin-bottom: 1rem; font-size: 1.4rem; font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; position: relative; }
.service-card p { color: #495057; font-size: 1.05rem; line-height: 1.6; position: relative; }

/* Sectors We Support - Glassmorphic */
.sector-card {
  background: rgba(220, 235, 255, 0.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 3.5rem 2.5rem; border: 1px solid rgba(0, 18, 51, 0.06);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative; overflow: hidden;
}
.sector-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--glass-shimmer); pointer-events: none; opacity: 0.4;
}
.sector-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0, 18, 51, 0.08); border-color: rgba(0, 122, 138, 0.2); }
.sector-icon { color: #007a8a; margin-bottom: 1.5rem; position: relative; }
.sector-icon svg { width: 48px; height: 48px; }
.sector-card h3 { margin-bottom: 0.75rem; font-size: 1.25rem; font-family: var(--font-body); font-weight: 700; color: var(--color-primary); line-height: 1.3; position: relative; }
.sector-card p { color: #5c6b7a; font-size: 0.95rem; line-height: 1.6; margin: 0; position: relative; }

/* Timeline Process - Glassmorphic */
.timeline-grid { display: grid; gap: 2rem; }
.process-step {
  background: var(--glass-bg-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  padding: 2.5rem; border: var(--glass-border); display: flex; gap: 2rem; align-items: flex-start;
  transition: all 0.4s ease; position: relative; overflow: hidden;
}
.process-step::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--color-primary) 0%, rgba(0, 18, 51, 0.1) 100%);
  opacity: 0; transition: opacity 0.4s ease;
}
.process-step:hover { box-shadow: 0 12px 40px rgba(0, 18, 51, 0.08); border-color: rgba(0, 18, 51, 0.2); }
.process-step:hover::before { opacity: 1; }
.step-number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--color-primary); opacity: 0.2; line-height: 1; }
.step-content h4 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.step-content p { color: #495057; font-size: 1.05rem; margin: 0; }

/* COA Graphic Mock - Glassmorphic */
.coa-graphic {
  width: 100%; padding: 3rem; font-family: var(--font-body);
  background: var(--glass-bg-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: var(--glass-border); box-shadow: 0 16px 40px rgba(0, 18, 51, 0.08);
  position: relative; overflow: hidden;
}
.coa-graphic::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--glass-shimmer); pointer-events: none; opacity: 0.3;
}
.coa-header { text-align: center; border-bottom: 3px solid var(--color-primary); padding-bottom: 1.5rem; margin-bottom: 2rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--color-primary); letter-spacing: 0.05em; position: relative; }
.coa-table { width: 100%; border-collapse: collapse; margin-bottom: 3rem; font-size: 0.95rem; position: relative; }
.coa-table th { text-align: left; padding: 1rem; background: rgba(0, 18, 51, 0.04); font-weight: 700; border-bottom: 2px solid var(--color-primary); border: 1px solid rgba(0, 18, 51, 0.08); }
.coa-table td { padding: 1rem; border: 1px solid rgba(0, 18, 51, 0.08); }
.coa-table tr:hover td { background: rgba(0, 18, 51, 0.02); }
.signature { text-align: right; font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-primary); font-weight: 600; border-top: 1px solid rgba(0, 18, 51, 0.1); padding-top: 1rem; display: block; float: right; width: 150px; position: relative; }

/* Form Elements - Glassmorphic */
.quote-form {
  background: var(--glass-bg-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 3.5rem; border: var(--glass-border); display: grid; gap: 2rem;
  box-shadow: 0 16px 40px rgba(0, 18, 51, 0.06);
  position: relative; overflow: hidden;
}
.quote-form::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--glass-shimmer); pointer-events: none; opacity: 0.3;
}
.form-group { display: flex; flex-direction: column; gap: 0.75rem; position: relative; }
.form-group label { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; color: var(--color-primary); }
.form-group input, .form-group textarea {
  width: 100%; padding: 1.25rem 1rem;
  background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(0, 18, 51, 0.1);
  color: var(--color-on-surface); font-family: var(--font-body); font-size: 1rem; outline: none;
  transition: all 0.3s ease; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--color-primary); background: rgba(255, 255, 255, 0.8); box-shadow: 0 0 0 3px rgba(0, 18, 51, 0.05); }
.checkbox-container { display: flex; gap: 1rem; align-items: flex-start; cursor: pointer; position: relative; }
.text-mini { font-size: 0.85rem; color: #495057; line-height: 1.5; }
.full-width { width: 100%; }

/* Footer */
.footer { padding: 6rem 0 3rem 0; background: var(--color-primary); color: #fff; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; align-items: start; }
.footer .logo { color: #fff; }
.footer ul { list-style: none; margin-top: 1.5rem; display: grid; gap: 1rem; }
.footer ul a { color: #a3b1c6; text-decoration: none; font-size: 0.9rem; font-family: var(--font-mono); text-transform: uppercase; transition: color 0.3s; }
.footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.disclaimer { max-width: 800px; font-size: 0.85rem; color: #a3b1c6; }

/* Mobile Menu & Responsive */
/* Mobile Menu Controls */
.mobile-menu-btn {
    display: none; width: 30px; height: 24px; position: relative; background: transparent; border: none; cursor: pointer; z-index: 1001;
}
.mobile-menu-btn span {
    display: block; position: absolute; height: 2px; width: 100%; background: #fff; opacity: 1; left: 0; transform: rotate(0deg); transition: .25s ease-in-out;
}
.mobile-menu-btn span:nth-child(1) { top: 0px; }
.mobile-menu-btn span:nth-child(2) { top: 10px; }
.mobile-menu-btn span:nth-child(3) { top: 20px; }

.mobile-menu-btn.active span:nth-child(1) { top: 10px; transform: rotate(135deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; left: -60px; }
.mobile-menu-btn.active span:nth-child(3) { top: 10px; transform: rotate(-135deg); }

.mobile-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--color-primary);
    z-index: 1000; display: none; opacity: 0; transition: opacity 0.4s ease;
}
.mobile-overlay.active { display: block; opacity: 1; }

/* REFINED RESPONSIVE QUERIES */
@media (max-width: 1100px) {
    .container { padding: 0 40px; }
    .grid-split { gap: 4rem; }
}

@media (max-width: 991px) {
    .display-heading { font-size: 2.8rem; line-height: 1.1; margin-bottom: 1.5rem; text-align: center; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .d-none-mobile { display: none; }
    
    .grid-split { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .stats-grid, .workflow-grid, .sector-grid { grid-template-columns: 1fr; }
    
    .feature-list li, .inst-item, .workflow-step { flex-direction: column; align-items: center; text-align: center; }
    .icon-box, .inst-num, .workflow-circle { margin-bottom: 1rem; margin-right: 0 !important; }
    
    .bento-container { grid-template-columns: 1fr; }
    .bento-card.col-2 { grid-column: span 1; }
    
    .hero-content { text-align: center; }
    .hero-desc { margin: 0 auto 3rem; font-size: 1.1rem; }
    .hero-actions { justify-content: center; }
    
    .integrity-stream { margin: 3rem auto 0; width: 100%; position: static; transform: none; }
    .batch-status-panel { position: static; width: 100%; margin-top: 2rem; transform: none; }
    
    /* Center all body text on mobile */
    .body-text { text-align: center; margin-left: auto; margin-right: auto; }
}

@media (max-width: 600px) {
    .section-pad { padding: 4rem 0; }
    .display-heading { font-size: 2.2rem; }
    .container { padding: 0 20px; }
    
    .engage-stats { flex-direction: column; gap: 1.5rem; align-items: center; }
    .form-row { grid-template-columns: 1fr; }
    .engage-card { padding: 1.5rem; }
    
    .process-step { padding: 1.5rem; gap: 1rem; text-align: center; flex-direction: column; }
    .step-number { font-size: 2rem; margin-bottom: 0.5rem; }
    
    .nav-container { padding: 1rem 0; }
    .logo { font-size: 1.2rem; }
}
