/* Exact Otegrity header+hero (image path = Klyper) */
:root {
  --primary-navy: #003366;
  --primary-blue: #0A94DB;
  --primary-blue-hover: #0880C2;
  --text-dark: #1A1A2E;
  --text-heading: #0D1B2A;
  --text-body: #475569;
  --bg-white: #FFFFFF;
  --border-light: #E2E8F0;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.3s ease;
  --container-max: 1240px;
}
.container { width:100%; max-width:var(--container-max); margin:0 auto; padding:0 24px; }
.text-blue { color: var(--primary-blue); }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #1BA8F0, #0A94DB 45%, #0670a8);
    color: #fff;
    padding: 15px 16px 15px 30px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: var(--radius-full);
    box-shadow:
        0 8px 28px rgba(10,148,219,0.45),
        0 2px 6px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.22);
    position: relative;
    overflow: hidden;
    gap: 16px;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #1BA8F0 0%, #0A94DB 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10,148,219,0.35), 0 2px 6px rgba(0,0,0,0.1);
}
.btn-primary:hover::before {
    left: 100%;
}

.btn-nav {
    background: var(--primary-blue);
    color: white;
    font-size: 14px;
    padding: 10px 10px 10px 22px;
    font-weight: 600;
    letter-spacing: 0.2px;
    gap: 10px;
}
.btn-nav:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10,148,219,0.3);
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    border: 2px solid white;
    color: white;
    background: transparent;
    transition: all var(--transition);
}
.btn-outline-white:hover {
    background: white;
    color: var(--primary-navy);
}


.header {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1320px;
    z-index: 1000;
    /* Hero state: clear white glass */
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 0 10px;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.header.scrolled {
    /* Past hero: solid light glass — always readable */
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(226, 232, 240, 0.9);
    box-shadow:
        0 8px 28px rgba(15, 40, 80, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.header .nav-link {
    color: #0a1628;
    font-weight: 600;
    transition: color var(--transition);
}
.header .nav-link:hover,
.header .nav-link.active {
    color: #0A94DB;
}
.header .nav-link.active::after {
    width: 100%;
    height: 3px;
    background: #0A94DB;
    bottom: -2px;
}
.header .mobile-toggle span {
    background: #0a1628;
}
.header .btn-nav {
    background: var(--primary-blue);
    color: #fff;
}
.header .btn-nav:hover {
    background: var(--primary-blue-hover);
}

/* Keep nav text readable when bar is transparent over light page sections */
.header.scrolled .nav-link {
    color: #0a1628;
}
.header.scrolled .logo-text {
    color: #0a1628;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo-icon {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-body);
    padding: 8px 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.2px;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2.5px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.has-dropdown {
    position: relative;
}
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 440px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(226,232,240,0.6);
    box-shadow: 0 12px 48px rgba(0,0,0,0.1), 0 0 0 1px rgba(10,148,219,0.06);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}
.dropdown::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: rgba(255,255,255,0.96);
    border-left: 1px solid rgba(226,232,240,0.6);
    border-top: 1px solid rgba(226,232,240,0.6);
    border-radius: 3px 0 0 0;
}
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.dropdown li + li {
    border-top: 1px solid rgba(226,232,240,0.5);
}
.dropdown li a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    font-size: 14px;
    color: #0a1628;
    border-radius: 12px;
    transition: all 0.25s ease;
}
.dropdown li a:hover {
    background: rgba(10,148,219,0.05);
    color: #0a1628;
    padding-left: 16px;
}
.dropdown-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(10,148,219,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #0A94DB;
    transition: all 0.3s ease;
}
.dropdown li a:hover .dropdown-icon {
    background: rgba(10,148,219,0.12);
}
.dropdown-icon svg {
    width: 22px;
    height: 22px;
}
.dropdown-text {
    flex: 1;
    min-width: 0;
}
.dropdown-title {
    font-weight: 700;
    font-size: 15px;
    color: #0a1628;
    display: block;
    margin-bottom: 2px;
}
.dropdown-desc {
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
}
.dropdown-chevron {
    flex-shrink: 0;
    color: #c0c8d4;
    transition: all 0.25s ease;
}
.dropdown li a:hover .dropdown-chevron {
    color: #0A94DB;
    transform: translateX(3px);
}
.dropdown-active-bar {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 32px;
    background: #0A94DB;
    border-radius: 0 3px 3px 0;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}
.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-heading);
    border-radius: 2px;
    transition: all var(--transition);
}
.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================================
   HERO
   =================================================== */

.hero {
    position: sticky;
    top: 0;
    padding-top: 76px;
    background: url('../assets/images/hero-bg-home.webp') center center / cover no-repeat;
    background-color: #06101c;
    overflow: hidden;
    height: 100vh;
    min-height: 700px;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to right,
            rgba(4, 12, 24, 0.92) 0%,
            rgba(4, 12, 24, 0.82) 22%,
            rgba(4, 12, 24, 0.55) 42%,
            rgba(4, 12, 24, 0.22) 62%,
            rgba(4, 12, 24, 0.08) 78%,
            transparent 92%
        ),
        linear-gradient(
            to bottom,
            rgba(4, 12, 24, 0.35) 0%,
            transparent 28%,
            transparent 78%,
            rgba(4, 12, 24, 0.45) 100%
        );
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 18%;
    left: 0;
    width: 52%;
    height: 62%;
    background: radial-gradient(ellipse at 30% 45%, rgba(10, 148, 219, 0.28) 0%, rgba(10, 148, 219, 0.08) 42%, transparent 72%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    filter: blur(8px);
}

.main-content-wrapper {
    position: relative;
    z-index: 5;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 28%, #f5f9ff 100%);
    border-radius: 24px 24px 0 0;
    margin-top: 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.08);
}

.hero-container {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 40px;
}

.hero-content {
    max-width: 560px;
    position: relative;
    padding-top: 14px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: 2.3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 16px;
}

.hero-eyebrow .eyebrow-line {
    display: inline-block;
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    flex-shrink: 0;
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 13px;
    letter-spacing: -0.9px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero-title .text-blue {
    color: #2eb6ff;
    -webkit-text-fill-color: #2eb6ff;
}

.hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 16px;
    line-height: 1.65;
    font-weight: 500;
    max-width: 490px;
}

.hero-pillars {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.pillar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, rgba(8, 22, 40, 0.72), rgba(10, 30, 52, 0.55));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 9px 16px 9px 9px;
    border-radius: 12px;
    border: 1px solid rgba(46, 182, 255, 0.28);
    box-shadow:
        0 0 0 1px rgba(46, 182, 255, 0.08),
        0 8px 28px rgba(0, 0, 0, 0.28);
    transition: all 0.3s ease;
}
.pillar:hover {
    transform: translateY(-3px);
    border-color: rgba(46, 182, 255, 0.5);
    box-shadow:
        0 0 0 1px rgba(46, 182, 255, 0.16),
        0 12px 32px rgba(0, 0, 0, 0.35);
}
.pillar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(46, 182, 255, 0.12);
    flex-shrink: 0;
    color: #2eb6ff;
    box-shadow: inset 0 0 0 1px rgba(46, 182, 255, 0.2);
}
.pillar-icon svg {
    width: 19px;
    height: 19px;
    stroke: #2eb6ff !important;
}
.pillar-icon svg circle,
.pillar-icon svg path,
.pillar-icon svg rect,
.pillar-icon svg line {
    stroke: #2eb6ff !important;
}
.pillar span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: 1.6px;
    color: #ffffff;
}
.pillar-plus {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: #2eb6ff;
    opacity: 0.85;
}

.hero-body {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    margin-bottom: 20px;
    max-width: 500px;
    font-weight: 400;
}

.hero-cta .btn-primary {
    padding: 13px 15px 13px 26px;
    font-size: 14.5px;
    gap: 14px;
}

.hero-cta .btn-arrow-circle {
    width: 32px;
    height: 32px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.btn-arrow-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
    transition: all var(--transition);
}
.btn-primary .btn-arrow-circle {
    background: rgba(255,255,255,0.2);
}
.btn-primary:hover .btn-arrow-circle {
    background: rgba(255,255,255,0.35);
    transform: translateX(2px);
}
.btn-nav .btn-arrow-circle {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.2);
}
.header .btn-nav .btn-arrow-circle {
    background: rgba(255,255,255,0.2);
    color: #fff;
}


/* ===================================================
   HERO FLOATING CONTACT CARD
   =================================================== */
.hero-contact-card {
    position: relative;
    z-index: 6;
}

.contact-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #ffffff;
    border-radius: 999px;
    padding: 14px 16px 14px 18px;
    box-shadow:
        0 16px 48px rgba(10, 29, 55, 0.1),
        0 4px 14px rgba(10, 29, 55, 0.05);
    border: 1px solid rgba(226, 238, 252, 0.9);
    position: relative;
}

.contact-card-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1.1;
}

.contact-strip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, #1BA8F0, #0A78D0);
    border-radius: 14px;
    flex-shrink: 0;
    color: #fff;
    box-shadow: 0 8px 18px rgba(10, 148, 219, 0.3);
}

.contact-strip-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #0a1d37;
    margin-bottom: 2px;
    letter-spacing: -0.2px;
    line-height: 1.25;
}
.contact-strip-text {
    font-size: 12.5px;
    color: #6b7c90;
    line-height: 1.4;
}

.contact-card-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
    padding: 11px 16px;
    transition: all var(--transition);
    white-space: nowrap;
    border-radius: 14px;
    border: 1px solid #e2eefc;
    background: #f7faff;
}
.contact-item:hover {
    color: #0A78D0;
    border-color: rgba(10, 148, 219, 0.35);
    background: #ebf5ff;
}
.contact-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(10, 148, 219, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
    color: #0A94DB;
}

.contact-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 22px;
    background: linear-gradient(135deg, #1BA8F0, #0A78D0);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    white-space: nowrap;
    letter-spacing: 0.2px;
    box-shadow: 0 8px 22px rgba(10, 148, 219, 0.32);
}
.contact-card-btn__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    transition: transform var(--transition), background var(--transition);
}
.contact-card-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(10, 148, 219, 0.4);
}
.contact-card-btn:hover .contact-card-btn__arrow {
    background: rgba(255, 255, 255, 0.35);
    transform: translateX(2px);
}


/* Mobile/tablet hero from Otegrity */
@media (max-width: 1200px) {
  .contact-card-inner {
    border-radius: 28px;
    padding: 16px 18px;
    flex-wrap: wrap;
  }
  .contact-card-left { flex: 1 1 240px; }
  .contact-card-right {
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .contact-strip-text { font-size: 12px; }
  .contact-item { font-size: 12.5px; padding: 10px 12px; }
}

@media (max-width: 1024px) {
  .header { top: 10px; width: calc(100% - 24px); padding: 0 6px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: -6px; right: -6px;
    max-height: calc(100vh - 80px); background: #fff; flex-direction: column;
    align-items: flex-start; gap: 0; padding: 20px 24px; overflow-y: auto; z-index: 999;
    border-radius: 0 0 20px 20px; margin-top: 4px; box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .header .nav-link { display: flex; width: 100%; padding: 16px 0; font-size: 18px; border-bottom: 1px solid #E2E8F0; color: #0D1B2A; }
  .nav-link::after { display: none; }
  .has-dropdown .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible; display: none;
    box-shadow: none; border: none; background: transparent; min-width: 0; width: 100%;
    padding: 8px 0 0 16px; backdrop-filter: none;
  }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown::before { display: none; }
  .mobile-toggle { display: flex; }
  .btn-nav { display: none; }
  .theme-toggle { margin-left: auto; margin-right: 8px; }
  .hero-container { padding-bottom: 40px; }
  .hero-content { max-width: 100%; }
  .hero-title { font-size: 38px; letter-spacing: -0.5px; }
  .hero-desc { font-size: 15px; color: rgba(255,255,255,0.88); }
  .hero-body { font-size: 14px; color: rgba(255,255,255,0.72); }
  .pillar { padding: 8px 16px 8px 8px; border-radius: 10px; }
  .contact-card-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 22px;
    border-radius: 24px;
  }
  .contact-card-right { width: 100%; flex-wrap: wrap; }
  .contact-card-btn { margin-left: auto; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .hero {
    position: relative;
    height: auto;
    min-height: 100vh;
    background-size: cover;
    background-position: center bottom;
  }
  .main-content-wrapper { margin-top: 0; border-radius: 0; box-shadow: none; }
  .hero-container { padding-top: 16px; padding-bottom: 40px; }
  .hero-content { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(4, 12, 24, 0.88) 0%,
      rgba(4, 12, 24, 0.78) 35%,
      rgba(4, 12, 24, 0.55) 65%,
      rgba(4, 12, 24, 0.35) 100%
    );
  }
  .hero-title { font-size: 34px; letter-spacing: -0.5px; }
  .hero-desc { font-size: 14.5px; margin-bottom: 18px; max-width: 440px; color: rgba(255,255,255,0.88); }
  .hero-body { font-size: 13.5px; margin-bottom: 24px; max-width: 440px; color: rgba(255,255,255,0.72); }
  .hero-pillars { margin-bottom: 20px; gap: 10px; justify-content: center; }
  .pillar { padding: 10px 16px 10px 10px; }
  .pillar-icon { width: 36px; height: 36px; border-radius: 9px; }
  .pillar span { font-size: 11.5px; letter-spacing: 1.5px; }
  .pillar-plus { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: center; gap: 16px; width: 100%; max-width: 380px; }
  .btn-primary { width: 100%; justify-content: center; padding: 13px 14px 13px 22px; font-size: 14px; }
  .contact-card-right { flex-direction: column; align-items: stretch; }
  .contact-item { width: 100%; justify-content: flex-start; }
  .contact-card-btn { width: 100%; justify-content: space-between; }
  /* logo sizing handled in site-nav.css for consistency */
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; margin-bottom: 12px; letter-spacing: -0.3px; }
  .hero-desc { font-size: 13px; margin-bottom: 14px; max-width: 100%; }
  .hero-body { font-size: 12.5px; margin-bottom: 18px; max-width: 100%; }
  .hero-pillars { gap: 8px; margin-bottom: 14px; }
  .pillar { padding: 8px 12px 8px 8px; border-radius: 10px; }
  .pillar-icon { width: 32px; height: 32px; border-radius: 8px; }
  .pillar span { font-size: 10.5px; letter-spacing: 1.2px; }
  .btn-primary { padding: 12px 12px 12px 20px; font-size: 13px; }
  /* logo-text kept visible for brand consistency — see site-nav.css */
}
