:root {
    --bg-dark: #0a0a0c;
    --bg-panel: #121216;
    --text-main: #e2e2e2;
    --text-muted: #8a8a93;
    --accent: #3b82f6; /* Fintech blue */
    --border: rgba(255, 255, 255, 0.08);
    /* Font Variables */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
    --font-mono: 'Cutive Mono', monospace;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body); /* Lato for body */
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading); /* Montserrat for headings */
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #ffffff;
}

/* Add after the existing h1, h2, h3, h4 rule */

h2 {
    font-size: clamp(1.35rem, 3.5vw, 1.65rem);
    line-height: 1.25;
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

    a:hover {
        opacity: 0.8;
    }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* Sections */
section {
    padding: clamp(3rem, 8vw, 6rem) 0;
    border-bottom: 1px solid var(--border);
}

/* Navigation */
header {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

    .nav-links a {
        color: var(--text-main);
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-weight: 500;
    }

/* Hero */
.hero {
    padding: clamp(5rem, 12vw, 10rem) 0 clamp(4rem, 10vw, 8rem);
    position: relative;
    background-image: linear-gradient( to bottom, rgba(10, 10, 12, 0.7) 0%, rgba(10, 10, 12, 1) 100% ), url('/images/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    .hero h1 {
        font-size: clamp(1.75rem, 6vw, 2.8rem);
        letter-spacing: -0.02em;
        margin-bottom: 1.5rem;
        text-transform: uppercase;
    }

    .hero p {
        font-size: clamp(1rem, 2.5vw, 1.15rem);
        color: var(--text-muted);
        max-width: 650px;
    }

/* Grid Layouts */
.grid-2 {
    display: grid;
    /* auto-fit + minmax: as many columns as fit, each at least 22rem wide.
       min(100%, 22rem) prevents overflow on narrow viewports. */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: clamp(1.5rem, 5vw, 4rem);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
}

/* Cards */
.card {
    background: var(--bg-panel);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color 0.3s;
}

    .card:hover {
        border-color: rgba(59, 130, 246, 0.4);
    }

    .card h3 {
        font-size: clamp(1.05rem, 2.5vw, 1.25rem);
        margin-bottom: 1rem;
    }

    .card p {
        color: var(--text-muted);
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .card .role {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--accent);
        display: block;
        margin-bottom: 1rem;
    }

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 0.5rem;
        color: var(--text-muted);
    }

.form-control {
    width: 100%;
    padding: clamp(0.75rem, 2vw, 1rem);
    background: var(--bg-panel);
    border: 1px solid var(--border);
    color: white;
    font-family: inherit;
    font-size: 1rem; /* keep 16px — prevents iOS zoom on focus */
    transition: border-color 0.2s;
}

    .form-control:focus {
        outline: none;
        border-color: var(--accent);
    }

.btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: clamp(0.85rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.2s;
}

    .btn:hover {
        background: #2563eb;
    }

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/*.nav-links a {
    font-family: var(--font-mono);*/ /* Gives a subtle terminal/hacker vibe */
    /*font-size: 0.85rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}*/


/* ============================================================
   FOCUS
   - Suppress the ring on programmatically-focused headings
     (Blazor's FocusOnNavigate focuses the first <h1> after
      every navigation, and adds tabindex="-1" to do so)
   - Keep visible indicators on real interactive elements
   ============================================================ */

/* Non-interactive programmatic targets: no ring.
   Scoped to [tabindex="-1"] so this never hits Tab-focusable controls. */
h1[tabindex="-1"]:focus,
h1[tabindex="-1"]:focus-visible,
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Keyboard users still get a clear indicator on real controls */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Form controls already use border-color; don't double up */
.form-control:focus,
.form-control:focus-visible {
    outline: none;
    border-color: var(--accent);
}

/* ============================================================
   NAVIGATION — hamburger toggle + mobile collapse
   ============================================================ */

/* Toggle button — hidden on desktop */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

    .nav-toggle:hover {
        color: var(--accent);
    }

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    /* Dropdown panel — overlays content, header height stays 80px */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 0.25rem 0;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        z-index: 99;
    }

        .nav-links.open {
            display: flex;
        }

        .nav-links a {
            width: 100%;
            padding: 0.85rem 2rem;
            border-bottom: 1px solid var(--border);
        }

            .nav-links a:last-child {
                border-bottom: none;
            }
}

/* ============================================================
   ANCHOR SCROLL — clean offset under the sticky header
   ============================================================ */

section[id] {
    scroll-margin-top: 100px; /* 80px header + 20px breathing room */
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

footer p {
    margin: 0;
}

    footer p + p {
        margin-top: 0.5rem;
    }

p + p {
    margin-top: 1.25rem;
}

/* ============================================================
   FOCUS SECTION — image-backed cards
   ============================================================ */

/* Structural properties — needed only on the two focus cards
   so .card stays generic for the ventures section */
#focus .grid-2 .card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

    /* Card A — AI-Driven Workflow Automation */
    #focus .grid-2 .card:nth-child(1)::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -2;
        background-image: url('/images/bg2.jpg');
        background-position: center 40%;
        background-size: cover;
        background-repeat: no-repeat;
        filter: blur(1.5px) contrast(1.05);
        transform: scale(1.04);
    }

    /* Card B — Fintech Integration & Cross-Border Infrastructure */
    #focus .grid-2 .card:nth-child(2)::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -2;
        background-image: url('/images/bg8.jpg');
        background-position: center 40%;
        background-size: cover;
        background-repeat: no-repeat;
        filter: blur(1.5px) contrast(1.05);
        transform: scale(1.04);
    }

    /* Shared dark overlay for text legibility */
    #focus .grid-2 .card:nth-child(1)::after,
    #focus .grid-2 .card:nth-child(2)::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(180deg, rgba(10, 10, 12, 0.45) 0%, rgba(10, 10, 12, 0.70) 50%, rgba(10, 10, 12, 0.88) 100%);
    }

/* ============================================================
   ANNOUNCEMENT BANNER
   ============================================================ */

.announcement-banner {
    background: rgba(59, 130, 246, 0.10);
    border-bottom: 1px solid rgba(59, 130, 246, 0.28);
    color: var(--text-main);
    font-size: 0.85rem;
    padding: 0.65rem 0;
}

.banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.banner-text {
    margin: 0;
    flex: 1;
    line-height: 1.45;
}

.banner-link {
    color: var(--accent);
    margin-left: 0.35rem;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

    .banner-link:hover {
        opacity: 0.85;
    }

.banner-dismiss {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    line-height: 1;
    padding: 0.1rem 0.4rem;
    cursor: pointer;
    transition: color 0.2s;
    flex-shrink: 0;
}

    .banner-dismiss:hover {
        color: var(--text-main);
    }

@media (max-width: 640px) {
    .announcement-banner {
        font-size: 0.8rem;
        padding: 0.55rem 0;
    }

    .banner-inner {
        gap: 0.5rem;
    }

    .banner-link {
        margin-left: 0.2rem;
    }
}