html {
    scroll-behavior: smooth;
}

:root {
    --bg: #08111f;
    --card: #111c2d;
    --primary: #4f8cff;
    --primary-hover: #76a4ff;
    --text: #edf3ff;
    --muted: #9fb0cf;
    --border: rgba(255,255,255,0.08);
    --success: #5bd59b;
    --person: #5bd59b;
    --company: #4f8cff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.d-none {
    display: none !important;
}

img {
    max-width: 100%;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* ── Header ── */
.header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
    background: rgba(8,17,31,0.85);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.logo {
    width: 40px;
    height: 40px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.4rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
}

.btn-secondary:hover {
    border-color: rgba(255,255,255,0.2);
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Scroll-reveal base state */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero entrance — plays immediately on load */
.hero .tag        { animation: fadeUp 0.55s ease 0.05s both; }
.hero h1          { animation: fadeUp 0.6s  ease 0.15s both; }
.hero > .container > div:first-child > p
                  { animation: fadeUp 0.6s  ease 0.25s both; }
.hero-actions     { animation: fadeUp 0.6s  ease 0.35s both; }
.hero-stats       { animation: fadeUp 0.6s  ease 0.45s both; }
.hero-image       { animation: fadeUp 0.75s ease 0.2s  both; }

/* ── Hero ── */
.hero {
    padding: 7rem 0;
}

.hero-grid,
.split-grid,
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.05;
    margin: 1rem 0;
}

.hero p {
    color: var(--muted);
    max-width: 600px;
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-size: 1rem;
}

.hero-stats span {
    color: var(--muted);
    font-size: 0.85rem;
}

.hero-image,
.dashboard-image {
    width: 100%;
    border-radius: 16px;
}

/* ── Sections ── */
.section {
    padding: 6rem 0;
}

.section-dark {
    background: rgba(255,255,255,0.02);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2,
.section h2 {
    font-size: 2.5rem;
    margin-top: 0.75rem;
}

.section-sub {
    color: var(--muted);
    font-size: 1.05rem;
    margin-top: 0.75rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.tag {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(79,140,255,0.15);
    color: #8ab2ff;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ── Portal Section ── */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.portal-card {
    background: var(--card);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.portal-person::before {
    background: linear-gradient(90deg, #5bd59b, #3ab5e0);
}

.portal-company::before {
    background: linear-gradient(90deg, #4f8cff, #7c5ce0);
}

.portal-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.25rem;
}

.portal-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.person-icon {
    background: rgba(91, 213, 155, 0.12);
    color: var(--person);
}

.company-icon {
    background: rgba(79, 140, 255, 0.12);
    color: var(--company);
}

.portal-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.person-badge {
    background: rgba(91, 213, 155, 0.12);
    color: var(--person);
}

.company-badge {
    background: rgba(79, 140, 255, 0.12);
    color: #8ab2ff;
}

.portal-card h3 {
    font-size: 1.5rem;
    margin: 0;
}

.portal-tagline {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.55;
}

.portal-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.75rem;
}

.portal-features li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
}

.pf-icon {
    flex-shrink: 0;
    margin-top: 0.05rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.person-pf { color: var(--person); }
.company-pf { color: var(--company); }

.portal-features li span:last-child {
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.55;
}

.portal-features li strong {
    color: var(--text);
}

.portal-quote {
    margin: 0;
    padding-left: 1rem;
    border-left: 3px solid var(--border);
    color: var(--muted);
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.65;
}

.person-quote { border-left-color: rgba(91, 213, 155, 0.35); }
.company-quote { border-left-color: rgba(79, 140, 255, 0.35); }

/* Keyboard shortcut badges */
.kbd {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 5px;
    padding: 0.05rem 0.4rem;
    font-size: 0.78rem;
    font-family: monospace;
    color: var(--text);
    line-height: 1.5;
    vertical-align: middle;
}

.kbd-inline {
    display: inline-block;
    background: rgba(79,140,255,0.12);
    border: 1px solid rgba(79,140,255,0.28);
    border-radius: 4px;
    padding: 0.05rem 0.35rem;
    font-size: 0.78rem;
    font-family: monospace;
    color: #8ab2ff;
    vertical-align: middle;
}

/* ── Feature Groups ── */
.feature-group {
    margin-bottom: 4rem;
}

.feature-group:last-child {
    margin-bottom: 0;
}

.feature-group-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--border);
}

.person-accent {
    border-left-color: var(--person);
    color: var(--person);
}

.company-accent {
    border-left-color: var(--company);
    color: var(--company);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--card);
    padding: 1.75rem;
    border-radius: 18px;
    border: 1px solid var(--border);
}

.card h4 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

.card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── Security Grid ── */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.security-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
}

.security-icon {
    color: var(--primary);
    margin-bottom: 0.85rem;
    display: flex;
}

.security-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.security-item p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}


/* ── Check-list (kept for compatibility) ── */
.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-list li {
    margin-bottom: 1rem;
    color: var(--muted);
    padding-left: 1.5rem;
    position: relative;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
}

/* ── Contact CTA ── */
.contact-cta {
    text-align: center;
    max-width: 640px;
}

.contact-cta p {
    color: var(--muted);
    margin-top: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(79,140,255,0.5);
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

/* ── Footer ── */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.footer ul {
    list-style: none;
}

.footer a {
    text-decoration: none;
    color: var(--muted);
    transition: color 0.15s;
}

.footer a:hover {
    color: var(--text);
}

.footer li {
    margin-bottom: 0.75rem;
}

.footer p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    line-height: 1.7;
}

.footer h3 {
    font-size: 1.1rem;
}

.footer h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 1rem;
}

/* ── Import Analysis Section ── */
.tag-green {
    background: rgba(91, 213, 155, 0.12);
    color: var(--person);
}

.import-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.import-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #5bd59b, #3ab5e0, #4f8cff);
}

.import-left h2 {
    font-size: 2rem;
    margin: 0.75rem 0 1rem;
    line-height: 1.2;
}

.import-left > p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.import-promises {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.import-promises li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}

.promise-icon {
    flex-shrink: 0;
    color: var(--person);
    font-weight: 700;
    margin-top: 0.05rem;
}

.promise-highlight {
    color: #f5c518;
}

.promise-smile {
    color: #ff7eb3;
}

.import-promises li strong {
    color: var(--text);
}

.import-form-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.import-form {
    background: transparent;
}

.import-form textarea {
    min-height: 214px;
}

.btn-green {
    background: var(--person);
    color: #08111f;
    font-weight: 700;
}

.btn-green:hover {
    background: #7ae8b5;
}

@media (max-width: 900px) {
    .import-card {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2rem;
    }
}

/* ── Hover lift effects ── */
.card {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(79,140,255,0.22);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.portal-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portal-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.35);
}

.security-item {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.security-item:hover {
    transform: translateY(-4px);
    border-color: rgba(79,140,255,0.2);
}

/* ── Cookie popup ── */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(17, 28, 45, 0.97);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(12px);
    padding: 1.1rem 1.5rem;
    z-index: 500;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-popup.visible {
    transform: translateY(0);
}

.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.cookie-text {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
    flex: 1;
    min-width: 220px;
}

.cookie-actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

.btn-sm {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* ── Ctrl+K easter egg dialog ── */
@keyframes ctrlkIn {
    from { opacity: 0; transform: translateY(-18px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ctrlk-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 17, 31, 0.75);
    backdrop-filter: blur(8px);
    z-index: 600;
    align-items: flex-start;
    justify-content: center;
    padding-top: 14vh;
}

.ctrlk-overlay.open {
    display: flex;
}

.ctrlk-modal {
    width: min(560px, 92%);
    background: var(--card);
    border: 1px solid rgba(79, 140, 255, 0.25);
    border-radius: 20px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(79,140,255,0.08);
    overflow: hidden;
    animation: ctrlkIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ctrlk-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--border);
}

.ctrlk-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.ctrlk-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.ctrlk-close:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

.ctrlk-search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.ctrlk-search-icon {
    color: var(--muted);
    flex-shrink: 0;
}

.ctrlk-placeholder {
    flex: 1;
    color: rgba(159, 176, 207, 0.45);
    font-size: 1rem;
}

.ctrlk-body {
    padding: 1.5rem 1.25rem 1.75rem;
}

.ctrlk-headline {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.6rem;
    background: linear-gradient(90deg, #4f8cff, #5bd59b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ctrlk-sub {
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.65;
}

/* ── Hamburger button ── */
.hamburger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
    cursor: pointer;
    color: var(--text);
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s;
    flex-shrink: 0;
}

.hamburger:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

/* ── Mobile slide-down menu ── */
@keyframes menuSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 17, 31, 0.98);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    padding: 0.5rem 4% 1.25rem;
}

.mobile-menu.open {
    display: flex;
    animation: menuSlideDown 0.2s ease both;
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links a {
    display: block;
    padding: 0.85rem 0;
    color: var(--muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: color 0.15s;
}

.mobile-nav-links a:hover {
    color: var(--text);
}

.mobile-demo-btn {
    margin-top: 1.1rem;
    text-align: center;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-demo-btn {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding-top: 4rem;
    }

    .hero-stats {
        gap: 1.25rem;
    }

    .portal-grid {
        grid-template-columns: 1fr;
    }

    .security-grid {
        grid-template-columns: 1fr;
    }

    .split-grid {
        gap: 2.5rem;
    }
}
