/* ============================================
   AlgoPay - The Complete Payment Ecosystem
   GITEX 2026 Website
   ============================================ */

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

:root {
    /* AlgoPay Brand Colors */
    --navy: #1E3A5F;
    --teal: #00BFB3;
    --teal-light: #33d4c9;
    --teal-dark: #009e94;
    --blue: #1976D2;
    --blue-light: #3B82F6;
    --purple: #8B5CF6;
    --purple-light: #a78bfa;
    --green: #388E3C;
    --green-light: #22c55e;
    --amber: #F59E0B;
    --red: #EF4444;

    /* UI Colors - Warm Sand & Navy */
    --gold: #C8922A;
    --gold-light: #E5B85C;
    --gold-dark: #A67720;
    --bg: #FAFAF5;
    --bg-surface: #F3F1EB;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F7F5EF;
    --text: #1E293B;
    --text-muted: #5C6B7A;
    --text-dim: #8C99A8;
    --border: #E4DFD5;
    --border-light: #D1CABC;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(30,58,95,0.06), 0 4px 6px -1px rgba(30,58,95,0.04);
    --shadow-lg: 0 10px 25px -5px rgba(30,58,95,0.08), 0 4px 12px rgba(30,58,95,0.03);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* --- Brand Text --- */
.gradient-text {
    background: linear-gradient(135deg, var(--gold), var(--navy));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-blue { color: var(--blue-light); -webkit-text-fill-color: var(--blue-light); }
.text-purple { color: var(--purple); -webkit-text-fill-color: var(--purple); }
.text-teal { color: var(--gold); -webkit-text-fill-color: var(--gold); }

/* --- Logo --- */
.logo-algo { color: var(--navy); font-weight: 800; }
.logo-pay { color: var(--gold); font-weight: 800; }
.logo-algo-hero { color: var(--navy); font-weight: 900; }
.logo-pay-hero { color: var(--gold); font-weight: 900; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--navy), #152d4a);
    color: white;
    box-shadow: 0 0 20px rgba(30, 58, 95, 0.25);
}
.btn-primary:hover {
    box-shadow: 0 0 30px rgba(30, 58, 95, 0.4);
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--border-light);
}
.btn-ghost:hover {
    background: var(--bg-surface);
    border-color: var(--navy);
}
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}
.nav-logo .logo-algo { color: var(--navy); }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--navy); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.gitex-badge {
    display: inline-flex;
    padding: 4px 12px;
    background: rgba(200, 146, 42, 0.1);
    border: 1px solid rgba(200, 146, 42, 0.25);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold-dark);
    letter-spacing: 0.05em;
}
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu-btn span {
    display: block; width: 24px; height: 2px;
    background: var(--navy); border-radius: 2px;
    transition: var(--transition);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(180deg, #F5F0E6 0%, #FAFAF5 60%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(200, 146, 42, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 146, 42, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}
.hero-glow-1 {
    width: 600px; height: 600px;
    background: var(--gold);
    top: -200px; right: -100px;
    opacity: 0.1;
}
.hero-glow-2 {
    width: 400px; height: 400px;
    background: var(--navy);
    bottom: -100px; left: -50px;
    opacity: 0.06;
}
.hero-content { position: relative; z-index: 1; text-align: center; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(200, 146, 42, 0.08);
    border: 1px solid rgba(200, 146, 42, 0.25);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-dark);
    margin-bottom: 32px;
}
.pulse-dot {
    width: 8px; height: 8px;
    background: var(--green-light);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 7rem);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}
.hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}
.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 24px 40px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}
.stat { text-align: center; }
.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}
.stat-value.teal { color: var(--gold-dark); }
.stat-value.blue { color: var(--blue); }
.stat-value.purple { color: var(--purple); }
.stat-value.green { color: var(--green); }
.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}
.stat-divider { width: 1px; height: 32px; background: var(--border); }

.hero-scroll-indicator {
    position: absolute; bottom: 32px; left: 50%;
    transform: translateX(-50%); z-index: 1;
}
.scroll-mouse {
    width: 24px; height: 40px;
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex; justify-content: center; padding-top: 8px;
}
.scroll-dot {
    width: 3px; height: 8px;
    background: var(--text-muted);
    border-radius: 3px;
    animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* --- Sections --- */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-surface); }
.section-header { text-align: center; margin-bottom: 64px; }

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(200, 146, 42, 0.08);
    border: 1px solid rgba(200, 146, 42, 0.2);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
.tag-blue { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.2); color: var(--blue-light); }
.tag-purple { background: rgba(139,92,246,0.1); border-color: rgba(139,92,246,0.2); color: var(--purple-light); }
.tag-teal { background: rgba(200,146,42,0.08); border-color: rgba(200,146,42,0.2); color: var(--gold-dark); }
.tag-amber { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.2); color: var(--amber); }
.tag-red { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.2); color: var(--red); }

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--navy);
}
.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* --- Problem / Pain Points --- */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.pain-card {
    padding: 28px 24px;
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.12);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}
.pain-card:hover {
    border-color: rgba(239, 68, 68, 0.25);
    transform: translateY(-2px);
}
.pain-icon {
    width: 48px; height: 48px;
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
    font-size: 1.4rem;
    font-weight: 800;
}
.pain-icon.warn {
    background: rgba(245, 158, 11, 0.1);
    color: var(--amber);
}
.pain-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}
.pain-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Video Section --- */
.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}
.video-wrapper video {
    width: 100%;
    display: block;
    background: black;
}

/* --- Ecosystem Flow --- */
.ecosystem-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
}
.eco-card {
    flex: 0 1 320px;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.eco-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.eco-terminal { border-color: rgba(59,130,246,0.2); }
.eco-terminal:hover { border-color: rgba(59,130,246,0.4); }
.eco-switch { border-color: rgba(139,92,246,0.2); }
.eco-switch:hover { border-color: rgba(139,92,246,0.4); }
.eco-portal { border-color: rgba(200,146,42,0.2); }
.eco-portal:hover { border-color: rgba(200,146,42,0.4); }

.eco-icon {
    width: 72px; height: 72px;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
}
.eco-terminal .eco-icon { background: rgba(59,130,246,0.1); color: var(--blue-light); }
.eco-switch .eco-icon { background: rgba(139,92,246,0.1); color: var(--purple); }
.eco-portal .eco-icon { background: rgba(200,146,42,0.1); color: var(--gold); }

.eco-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.eco-tagline { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 16px; }
.eco-features {
    list-style: none;
    text-align: left;
    margin-bottom: 16px;
}
.eco-features li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}
.eco-features li::before {
    content: '';
    position: absolute;
    left: 0; top: 12px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.6;
}
.eco-terminal .eco-features li::before { background: var(--blue-light); }
.eco-switch .eco-features li::before { background: var(--purple); }
.eco-portal .eco-features li::before { background: var(--gold); }

.eco-link {
    color: var(--gold-dark);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}
.eco-link:hover { color: var(--navy); }

.eco-connector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    flex-shrink: 0;
}
.connector-line {
    width: 24px; height: 2px;
    background: linear-gradient(90deg, var(--navy), var(--gold));
    opacity: 0.25;
}
.connector-dot {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--gold);
    flex-shrink: 0;
    box-shadow: var(--shadow);
}
.connector-label { display: none; }

/* --- Product Hero --- */
.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 72px;
}
.product-hero-reverse { direction: rtl; }
.product-hero-reverse > * { direction: ltr; }
.product-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}
.product-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
}
.badge-blue { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.15); color: var(--blue-light); }
.badge-purple { background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.15); color: var(--purple-light); }
.badge-teal { background: rgba(200,146,42,0.08); border: 1px solid rgba(200,146,42,0.15); color: var(--gold-dark); }

/* --- POS Device Visual --- */
.pos-device {
    width: 280px;
    margin: 0 auto;
    background: #1e293b;
    border-radius: 24px;
    border: 2px solid #334155;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}
.pos-screen {
    background: #0f172a;
    margin: 16px 16px 0;
    border-radius: 12px;
    overflow: hidden;
}
.pos-screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(200, 146, 42, 0.05);
    border-bottom: 1px solid rgba(200, 146, 42, 0.1);
}
.pos-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.pos-indicators { display: flex; align-items: center; gap: 6px; }
.indicator-dot { width: 6px; height: 6px; border-radius: 50%; }
.indicator-dot.green { background: var(--green-light); }
.indicator-bar { width: 16px; height: 6px; background: var(--text-dim); border-radius: 3px; }

.pos-screen-body { padding: 24px 16px; text-align: center; }
.pos-amount { margin-bottom: 20px; }
.pos-currency {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}
.pos-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}
.pos-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.card-animation {
    position: relative;
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
}
.tap-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    opacity: 0;
    animation: tapRing 2.5s ease-out infinite;
}
.ring-1 { width: 32px; height: 32px; animation-delay: 0s; }
.ring-2 { width: 48px; height: 48px; animation-delay: 0.3s; }
.ring-3 { width: 64px; height: 64px; animation-delay: 0.6s; }
@keyframes tapRing {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 0; }
}
.contactless-icon { position: relative; z-index: 1; }
.pos-instruction { font-size: 0.8rem; color: var(--text-muted); }

.pos-body-device { padding: 16px; }
.pos-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 8px;
}
.pos-keypad span {
    display: flex; align-items: center; justify-content: center;
    height: 32px;
    background: #1e293b;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}
.pos-keypad .key-cancel { background: rgba(239,68,68,0.12); color: var(--red); }
.pos-keypad .key-ok { background: rgba(200,146,42,0.12); color: var(--gold); }

/* --- Switch Dashboard Visual --- */
.switch-dashboard, .portal-dashboard {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.dash-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid #334155;
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots span { width: 10px; height: 10px; border-radius: 50%; background: #475569; }
.dash-dots span:first-child { background: var(--red); }
.dash-dots span:nth-child(2) { background: var(--amber); }
.dash-dots span:last-child { background: var(--green-light); }
.dash-title { font-size: 0.8rem; color: #94a3b8; font-weight: 500; }
.dash-body { padding: 20px; }

.dash-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.dash-stat {
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
}
.dash-stat-value {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
}
.dash-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.green-text { color: var(--green-light); }
.purple-text { color: var(--purple); }
.teal-text { color: var(--gold-light); }

.dash-chart { margin-bottom: 16px; padding: 16px 0; }
.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
}
.chart-bar {
    flex: 1;
    height: var(--height);
    background: linear-gradient(180deg, var(--purple), rgba(139, 92, 246, 0.2));
    border-radius: 4px 4px 0 0;
    position: relative;
    opacity: 0.6;
}
.chart-bar.active {
    opacity: 1;
    background: linear-gradient(180deg, var(--gold), rgba(200, 146, 42, 0.2));
}
.chart-bar span {
    position: absolute;
    bottom: -18px; left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
}

.dash-transactions { display: flex; flex-direction: column; gap: 6px; }
.tx-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    font-size: 0.8rem;
}
.tx-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}
.tx-status.approved { background: rgba(34,197,94,0.15); color: var(--green-light); }
.tx-status.declined { background: rgba(239,68,68,0.15); color: var(--red); }
.tx-type { color: var(--text-muted); }
.tx-amount { font-family: 'JetBrains Mono', monospace; color: white; font-weight: 500; }
.tx-time { font-family: 'JetBrains Mono', monospace; color: var(--text-dim); font-size: 0.75rem; }

/* --- Portal Dashboard Visual --- */
.portal-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow-x: auto;
}
.portal-nav-item {
    padding: 6px 12px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-dim);
    border-radius: 6px;
    white-space: nowrap;
}
.portal-nav-item.active {
    background: rgba(200, 146, 42, 0.15);
    color: var(--gold-light);
}
.portal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.portal-stat-card {
    padding: 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
}
.portal-stat-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.portal-stat-value {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: white;
}
.portal-stat-change {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 600;
}
.portal-stat-change.up { color: var(--green-light); }

.portal-chart { padding: 12px; background: rgba(0,0,0,0.15); border-radius: var(--radius-sm); }
.portal-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.portal-chart-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--gold-light);
}
.portal-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 60px;
}
.portal-bar {
    flex: 1;
    height: var(--h);
    background: linear-gradient(180deg, var(--gold), rgba(200, 146, 42, 0.15));
    border-radius: 3px 3px 0 0;
    position: relative;
    opacity: 0.7;
}
.portal-bar span {
    position: absolute;
    bottom: -16px; left: 50%;
    transform: translateX(-50%);
    font-size: 0.55rem;
    color: var(--text-dim);
}

/* --- Feature Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.feature-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}
.section-dark .feature-card { background: white; }

.feature-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}
.feature-icon.blue { background: rgba(59,130,246,0.1); color: var(--blue-light); }
.feature-icon.purple { background: rgba(139,92,246,0.1); color: var(--purple); }
.feature-icon.teal { background: rgba(200,146,42,0.1); color: var(--gold); }

.feature-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--navy); }
.feature-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* --- Devices Section --- */
.devices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}
.device-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.device-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.device-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.device-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.12));
}
.device-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}
.device-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.device-spec {
    padding: 8px;
    background: var(--bg-surface);
    border-radius: 6px;
    text-align: left;
}
.spec-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.spec-value {
    font-size: 0.85rem;
    color: var(--navy);
    font-weight: 600;
}

/* --- Architecture --- */
.architecture-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 64px;
}
.arch-layer { width: 100%; display: flex; justify-content: center; }
.arch-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 36px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 240px;
    text-align: center;
    box-shadow: var(--shadow);
}
.arch-node-icon { color: var(--text-muted); }
.arch-pos .arch-node-icon { color: var(--blue-light); }
.arch-pos { border-color: rgba(59,130,246,0.25); }
.arch-app .arch-node-icon { color: var(--blue-light); }
.arch-app { border-color: rgba(59,130,246,0.15); }
.arch-switch .arch-node-icon { color: var(--purple); }
.arch-switch { border-color: rgba(139,92,246,0.25); }
.arch-bank .arch-node-icon { color: var(--green-light); }
.arch-bank { border-color: rgba(34,197,94,0.25); }

.arch-node-title { font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.arch-node-desc { font-size: 0.78rem; color: var(--text-muted); }
.arch-arrow {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px; color: var(--text-dim); padding: 2px 0;
}
.arch-protocol {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* --- Tech Stack --- */
.tech-stack {
    padding: 40px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.tech-title {
    font-size: 1.2rem; font-weight: 700;
    color: var(--navy); margin-bottom: 24px; text-align: center;
}
.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
}
.tech-category h5 {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.tech-items { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-item {
    padding: 6px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--navy);
    font-family: 'JetBrains Mono', monospace;
}

/* --- Results / Why --- */
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.result-card {
    padding: 32px 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.result-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}
.result-value {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.result-value.teal { color: var(--gold); }
.result-value.blue { color: var(--blue-light); }
.result-value.purple { color: var(--purple); }
.result-value.green { color: var(--green-light); }

.result-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}
.result-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- CTA / Contact --- */
.section-cta {
    background: linear-gradient(145deg, #F5F0E6 0%, #F3F1EB 50%, #F0EDE4 100%);
}
.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
}
.cta-ecosystem-tag {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.cta-pillars {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 20px;
    font-weight: 500;
}
.cta-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}
.cta-details { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.cta-detail {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-muted); font-size: 0.88rem;
}
.cta-detail svg { color: var(--gold); flex-shrink: 0; }
.cta-closing {
    font-size: 0.9rem;
    color: var(--gold-dark);
    font-weight: 500;
    font-style: italic;
}

.cta-form-wrapper { display: flex; justify-content: center; }
.cta-form {
    width: 100%; max-width: 420px;
    padding: 32px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.cta-form h3 {
    font-size: 1.2rem; font-weight: 700;
    color: var(--navy); margin-bottom: 24px;
}
.form-group { margin-bottom: 14px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 146, 42, 0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group select { appearance: none; cursor: pointer; }
.form-group textarea { resize: vertical; min-height: 80px; }

/* --- Footer --- */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
    background: var(--navy);
    color: #e2e8f0;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}
.footer-brand { max-width: 320px; }
.footer-brand .nav-logo { margin-bottom: 12px; font-size: 1.3rem; }
.footer-brand .nav-logo .logo-algo { color: white; }
.footer-brand p { color: #94a3b8; font-size: 0.88rem; line-height: 1.6; }
.footer-links { display: flex; gap: 64px; }
.footer-col h5 {
    font-size: 0.82rem; font-weight: 600;
    color: #e2e8f0; margin-bottom: 16px;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.footer-col a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    margin-bottom: 10px;
    transition: var(--transition);
}
.footer-col a:hover { color: white; }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.footer-bottom p { color: #64748b; font-size: 0.8rem; }

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .ecosystem-flow { flex-direction: column; align-items: center; gap: 16px; }
    .eco-connector { transform: rotate(90deg); padding: 4px 0; }
    .eco-card { width: 100%; max-width: 400px; }
    .product-hero { grid-template-columns: 1fr; gap: 40px; }
    .product-hero-reverse { direction: ltr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-content { grid-template-columns: 1fr; gap: 40px; }
    .results-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: 1fr 1fr; }
    .pain-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: flex; }
    .gitex-badge { display: none; }
    .hero-stats { flex-wrap: wrap; gap: 16px; padding: 20px; }
    .stat-divider { display: none; }
    .stat { min-width: 80px; }
    .features-grid { grid-template-columns: 1fr; }
    .devices-grid { grid-template-columns: 1fr; }
    .results-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: 1fr; }
    .pain-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 32px; }
    .footer-links { gap: 40px; }
    .hero-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .section { padding: 60px 0; }
    .pos-device { width: 240px; }
    .pos-value { font-size: 1.5rem; }
}
