/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

/* Prevent background scroll when modal open */
body.modal-open { overflow: hidden; }

/* Mode Toggle & Variant Handling */
[data-variant] { display: none; }
body[data-mode="technical"] [data-variant="technical"],
body[data-mode="executive"] [data-variant="executive"] { display: inline; }
/* Block variants: ensure block context preserved */
.variant-block [data-variant] { display: none; }
body[data-mode="technical"] .variant-block [data-variant="technical"],
body[data-mode="executive"] .variant-block [data-variant="executive"] { display: inline; }

.mode-toggle { margin-left: auto; }
.mode-toggle-wrap { display:flex; flex-direction:column; align-items:flex-end; gap:6px; margin-left:auto; }
.mode-toggle-hint { font-size:11px; font-weight:600; letter-spacing:.7px; text-transform:uppercase; color:#f97316; position:relative; display:flex; align-items:center; gap:4px; animation: pulseFade 3.5s ease-in-out infinite; }
.hint-arrow { display:inline-block; animation: arrowWiggle 1.6s ease-in-out infinite; font-size:14px; }
@keyframes arrowWiggle { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@keyframes pulseFade { 0%,100% { opacity:1; } 60% { opacity:.35; } }
.mode-switch { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid #d1d5db; background: #fff; border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: #374151; transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }
.mode-switch:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.mode-switch .mode-slider { position: absolute; top: 2px; bottom: 2px; width: 50%; background: linear-gradient(135deg,#f97316,#ea580c); border-radius: 999px; z-index: 0; left: 2px; transition: transform .35s cubic-bezier(.16,.8,.24,1); }
body[data-mode="executive"] .mode-switch .mode-slider { transform: translateX(100%); }
.mode-label { position: relative; z-index: 1; pointer-events: none; }
.mode-label-tech { color: #111827; }
body[data-mode="executive"] .mode-label-tech { color: #6b7280; }
body[data-mode="executive"] .mode-label-exec { color: #111827; }
.mode-label-exec { color: #6b7280; }

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

/* Header */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    max-width: 70%;
}

.logo-img {
    height: 40px;
    width: 120px;
    object-fit: contain;
}

.logoport-img {
    height: 70px;
    width: auto;
    max-width: 340px;
    object-fit: contain;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 0;
}
.logo-link, .footer-logo-link { display:inline-flex; align-items:center; text-decoration:none; }
.logo-link:focus-visible, .footer-logo-link:focus-visible { outline:3px solid #1d4ed8; outline-offset:4px; border-radius:4px; }


.partnership {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Add spacing from Port Technology logo */
    margin-left: 36px;
}

.partnership-text {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.partner-logo {
    height: 64px;
    width: auto;
}

.partner-network-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badge {
    display: inline-block;
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 14px;
    padding: 18px 28px;
    text-align: center;
    box-shadow: 0 8px 18px -6px rgba(0,0,0,0.35), 0 2px 6px -1px rgba(0,0,0,0.25);
    overflow: hidden;
}

.hero-badge:before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255,255,255,0.6), rgba(255,255,255,0) 35%, rgba(255,255,255,0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}

.badge-text {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.badge-subtitle {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Credentials Section */
.credentials {
    padding: 80px 0;
    background: #fafafa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.warning-section {
    text-align: center;
    margin-bottom: 48px;
    padding: 24px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.warning-text {
    color: white;
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.credential-item {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    will-change: transform;
}

.credential-item:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 14px 32px -6px rgba(0,0,0,0.18);
}

.credential-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.credential-icon i { color: #f97316; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }

.credential-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.credential-item p {
    color: #6b7280;
    line-height: 1.6;
}

/* Evidence / Why Now Section */
.evidence {
    padding: 80px 0;
    background: #ffffff;
}

.evidence-list {
    list-style: disc;
    max-width: 900px;
    margin: 0 auto 48px auto;
    padding-left: 24px;
    color: #374151;
    line-height: 1.55;
}

.evidence-list li { margin-bottom: 14px; }

/* Subtle accent evidence list */
.evidence-list.accented { list-style: none; padding-left: 0; }
.evidence-list.accented li { position: relative; padding: 14px 18px 14px 40px; background: linear-gradient(135deg,#ffffff,#fdfdfd); border:1px solid #ececec; border-radius:10px; box-shadow:0 2px 4px rgba(0,0,0,0.04); }
.evidence-list.accented li:not(:last-child){ margin-bottom:14px; }
.evidence-list.accented li:before { content:""; position:absolute; left:16px; top:18px; width:10px; height:10px; border-radius:3px; background: linear-gradient(135deg,#f97316,#ea580c); box-shadow:0 0 0 3px rgba(249,115,22,0.25); }
.evidence-list.accented li:hover { border-color:#f97316; box-shadow:0 6px 14px -4px rgba(0,0,0,0.12); }
.evidence-list.accented strong { color:#111827; }
@media (prefers-reduced-motion: reduce){ .evidence-list.accented li:hover { box-shadow:0 2px 4px rgba(0,0,0,0.04); } }

.mini-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 24px;
    margin: 48px 0;
}

.metric-block {
    background: #f9fafb;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.metric-block h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

.metric-block p { color: #4b5563; font-size: 0.95rem; line-height: 1.5; }

.references { max-width: 900px; margin: 0 auto; }
.ref-note { font-size: 0.9rem; color: #374151; margin-bottom: 8px; }
.ref-list { font-size: 0.85rem; color: #4b5563; padding-left: 18px; }
.ref-list li { margin-bottom: 6px; }
.disclaimer { font-size: 0.7rem; color: #6b7280; margin-top: 12px; line-height: 1.4; }

/* Process Section */
.process { padding: 80px 0; background: #f8fafc; }
.process-intro { max-width: 880px; margin: 0 auto 48px auto; text-align: center; color: #374151; font-size: 1.05rem; line-height: 1.55; }
.process-steps { counter-reset: proc; list-style: none; max-width: 1100px; margin: 0 auto; padding: 0; display: grid; gap: 32px; }
.process-step { position: relative; background: #ffffff; padding: 32px 28px 28px 28px; border: 1px solid #e5e7eb; border-radius: 16px; box-shadow: 0 4px 10px -2px rgba(0,0,0,0.06); transition: transform .25s ease, box-shadow .25s ease; }
.process-step:hover { transform: translateY(-10px) rotate3d(1,0,0,8deg); box-shadow: 0 22px 46px -10px rgba(0,0,0,0.22); }
.process-step:active { transform: translateY(-4px) scale(.985); }

/* Focus-visible enhancements */
:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 3px; border-radius: 6px; }
button:focus-visible, a:focus-visible { box-shadow: 0 0 0 4px rgba(29,78,216,0.35); }

html.js-enhanced .process-step { perspective: 1200px; }
.process-step::before { counter-increment: proc; content: counter(proc); position: absolute; top: -16px; left: 20px; background: linear-gradient(135deg,#f97316,#ea580c); color: #fff; width: 40px; height: 40px; display:flex; align-items:center; justify-content:center; border-radius: 12px; font-weight: 600; font-size: 1rem; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.process-step h3 { font-size: 1.25rem; margin-bottom: 14px; letter-spacing: -0.5px; color: #111827; }
.process-step p { color: #4b5563; line-height: 1.55; font-size: 0.97rem; }
.step-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.step-tags span { background: #1d4ed8; color: #ffffff; font-size: 0.65rem; letter-spacing: .5px; padding: 6px 10px; border-radius: 999px; text-transform: uppercase; font-weight: 600; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

/* Animations */
/* Progressive enhancement: default visible; animation only when JS adds .js-enhanced */
.fade-in-up { opacity: 1; transform: none; }
.js-enhanced .fade-in-up { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,.8,.24,1); transition-delay: var(--delay,0ms); }
.js-enhanced .fade-in-up.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .fade-in-up { opacity: 1 !important; transform: none !important; transition: none !important; }
    .process-step:hover, .credential-item:hover { transform: none !important; }
    .process-step:active { transform: none !important; }
}

/* GPU hinting */
.credential-item, .process-step { will-change: transform; transform-style: preserve-3d; }

/* Ripple effect */
.btn { position: relative; overflow: hidden; }
.ripple { position: absolute; width: 16px; height: 16px; background: radial-gradient(circle at center, rgba(255,255,255,0.65), rgba(255,255,255,0) 70%); transform: translate(-50%, -50%) scale(0); border-radius: 50%; animation: ripple .55s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: translate(-50%, -50%) scale(14); opacity: 0; } }

/* Cursor glow */
.cursor-glow { position: fixed; top:0; left:0; width: 460px; height: 460px; margin:-230px 0 0 -230px; background: radial-gradient(circle at center, rgba(255,136,0,0.18), rgba(255,94,0,0.05) 45%, rgba(255,94,0,0) 70%); mix-blend-mode: plus-lighter; pointer-events: none; opacity: .6; transition: opacity .4s ease; z-index: 10; }
@media (pointer: coarse) { .cursor-glow { display: none; } }
@media (prefers-reduced-motion: reduce) { .cursor-glow { display: none; } }

@media (min-width: 900px) { .process-steps { grid-template-columns: repeat(auto-fit,minmax(330px,1fr)); } }
@media (max-width: 600px) { .process-step { padding: 28px 22px 24px; } .process-step h3 { font-size: 1.1rem; } }

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #f97316;
    color: white;
    border-color: #f97316;
}

.btn-primary:hover {
    background: #ea580c;
    border-color: #ea580c;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #1d4ed8;
}

/* Footer */
.footer {
    background: #374151;
    color: white;
    padding: 48px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-left {
    flex: 1;
}

.footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.footer-left p {
    color: #9ca3af;
    max-width: 300px;
}

.partner-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
}

.partner-badge-img {
    height: 48px;
    width: auto;
}

.partner-badge .partner-network-img { height: 60px; }

.partner-badge span {
    font-size: 14px;
    font-weight: 500;
}

/* Modal Styles */
.modal { position: fixed; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding: 60px 24px 80px; background: rgba(17,24,39,0.72); backdrop-filter: blur(6px) saturate(140%); -webkit-backdrop-filter: blur(6px) saturate(140%); z-index: 500; overflow-y: auto; }
.modal[hidden] { display: none !important; }
.modal-dialog { position: relative; background: #ffffff; max-width: 1100px; width: 100%; border-radius: 20px; padding: 40px 48px 48px; box-shadow: 0 30px 70px -15px rgba(0,0,0,.35), 0 6px 20px -5px rgba(0,0,0,.2); border: 1px solid #e5e7eb; animation: modalIn .55s cubic-bezier(.16,.8,.24,1); }
@media (max-width: 760px){ .modal-dialog { padding: 32px 26px 40px; } }
@keyframes modalIn { 0% { opacity:0; transform: translateY(40px) scale(.96); } 100% { opacity:1; transform: translateY(0) scale(1); } }
.modal-header { margin-bottom: 28px; text-align: center; }
.modal-title { font-size: 2.1rem; font-weight: 650; letter-spacing: -.5px; margin-bottom: 14px; color:#111827; }
@media (max-width: 760px){ .modal-title { font-size: 1.7rem; } }
.modal-intro { font-size: 1.05rem; color:#374151; max-width: 800px; margin:0 auto; line-height:1.55; }
.modal-close { position:absolute; top:14px; right:16px; background:transparent; border: none; font-size: 2rem; line-height:1; cursor:pointer; color:#6b7280; transition: color .25s ease, transform .25s ease; }
.modal-close:hover { color:#111827; transform: rotate(6deg); }
.roadmap-steps { list-style:none; margin:0; padding:0; display:grid; gap:28px; counter-reset: rstep; }
.roadmap-step { position:relative; background:#f9fafb; border:1px solid #e5e7eb; border-radius:16px; padding:28px 26px 26px 26px; display:flex; gap:22px; box-shadow:0 4px 10px -2px rgba(0,0,0,0.05); }
@media (max-width: 760px){ .roadmap-step { flex-direction:column; padding:24px 22px; } }
.roadmap-step .step-num { flex-shrink:0; width:50px; height:50px; border-radius:14px; background:linear-gradient(135deg,#f97316,#ea580c); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:600; font-size:1.15rem; box-shadow:0 4px 14px -4px rgba(0,0,0,.25); }
.roadmap-step h3 { font-size:1.15rem; margin-bottom:10px; letter-spacing:-.3px; color:#111827; }
.roadmap-step p { font-size:.92rem; line-height:1.55; color:#4b5563; }
.micro-tags { list-style:none; margin:12px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.micro-tags li { background:#1d4ed8; color:#fff; font-size:.6rem; letter-spacing:.6px; text-transform:uppercase; font-weight:600; padding:5px 9px; border-radius:999px; box-shadow:0 2px 4px rgba(0,0,0,0.15); }
.phase-window { margin-top:12px; font-size:.7rem; font-weight:600; letter-spacing:.6px; color:#1e3a8a; background:#dbeafe; border:1px solid #bfdbfe; padding:6px 10px; border-radius:8px; display:inline-block; }
.modal-footer { margin-top:40px; text-align:center; }
.modal-note { font-size:.85rem; color:#374151; font-weight:500; }

@media (prefers-reduced-motion: reduce){ .modal-dialog { animation:none !important; } }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .credentials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    /* Header responsive adjustments */
    .nav { flex-wrap: wrap; gap: 12px; justify-content: flex-start; }
    .logo-section { flex: 1 1 auto; }
    .partnership { order: 3; flex: 1 1 100%; justify-content: flex-start; }
    .mode-toggle-wrap { order: 2; width: 100%; align-items: flex-start; }
    .logoport-img { height: 54px; max-width: 260px; }
    .partner-network-img { height: 48px; }
    .mode-toggle-hint { font-size: 10px; }
}

@media (max-width: 480px) {
    .logoport-img { height: 48px; }
    .partner-network-img { height: 42px; }
    .mode-toggle-hint { display: none; }
    .mode-switch { padding: 6px 12px; }
}
