/* =========================================
   CRYPTOGENIC SOFTWARE — Design System
   Premium SaaS aesthetic · black + neon green
   Frontend-only visual layer (no backend coupling)
   ========================================= */

:root {
    /* Brand — restrained neon for enterprise polish */
    --bg-dark: #060607;
    --bg-elevated: #0b0b0d;
    --bg-card: #0e0f11;
    --bg-card-hover: #121417;
    --bg-nav: rgba(6, 6, 7, 0.82);
    --accent: #00e68a;
    --accent-soft: rgba(0, 230, 138, 0.09);
    --accent-border: rgba(0, 230, 138, 0.2);
    --accent-glow: rgba(0, 230, 138, 0.28);
    --text-main: #f2f3f5;
    --text-muted: #9aa0a8;
    --text-dim: #6f7680;
    --border-color: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.11);
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.035) inset, 0 10px 28px rgba(0, 0, 0, 0.32);
    --shadow-hover: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 14px 36px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(0, 230, 138, 0.14);
    --font: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 2rem;
    --space-8: 2.5rem;
    --space-9: 3rem;
    --space-section: 4rem;
    --space-section-sm: 3rem;
    --container-max: 1120px;
    --nav-offset: 66px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 230, 138, 0.06), transparent 55%),
        radial-gradient(ellipse 40% 30% at 100% 20%, rgba(0, 80, 50, 0.08), transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font);
    font-size: 0.975rem;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--nav-offset);
}

.container {
    max-width: var(--container-max);
}

img, video, iframe { max-width: 100%; height: auto; display: block; }

/* ---------- Typography ---------- */
.accent-text { color: var(--accent); }
.text-muted { color: var(--text-muted) !important; }
.tracking-wide { letter-spacing: 0.08em; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-main);
}

.display-3 {
    font-size: clamp(2.15rem, 4.2vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
}
.display-4 {
    font-size: clamp(1.85rem, 3.2vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.display-5 {
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.2;
}
.lead {
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-muted);
}

.section-label {
    /* Must be block — inline-block sits beside multi-line H1 (eyebrow next to typing word) */
    display: block;
    width: 100%;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 var(--space-3) 0;
}

.section-head {
    margin-bottom: var(--space-6) !important;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.section-head h1,
.section-head h2 {
    margin-bottom: var(--space-3);
}
.section-head p {
    margin-bottom: 0;
    line-height: 1.55;
}

.text-gradient {
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Do NOT use inline-block on headings — it lets the eyebrow sit beside the H1 */
}
h1.text-gradient,
.display-3.text-gradient,
.display-4.text-gradient,
.display-5.text-gradient {
    display: block;
    width: 100%;
}

/* Section rhythm — maps Bootstrap .py-6 to design system */
.py-6 {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
}

/* ---------- Navbar ---------- */
.crypto-navbar {
    background-color: var(--bg-nav) !important;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--border-color);
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
}
.crypto-navbar .nav-link {
    color: var(--text-muted) !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.42rem 0.8rem !important;
    margin: 0 0.05rem;
    border-radius: 999px;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    border: 1px solid transparent;
}
.crypto-navbar .nav-link:hover {
    color: var(--text-main) !important;
    background-color: rgba(255, 255, 255, 0.045);
}
.crypto-navbar .nav-link.active {
    color: #04140c !important;
    background-color: var(--accent);
    border-color: var(--accent);
    font-weight: 650;
}
.logo-img {
    max-height: 38px;
    width: auto;
    height: auto;
    transition: opacity 0.2s ease;
}
.navbar-brand:hover .logo-img { opacity: 0.9; }
.crypto-navbar .btn-primary-crypto {
    padding: 0.45rem 1.1rem !important;
    font-size: 0.875rem !important;
    border-radius: 999px;
    font-weight: 650;
}

/* ---------- Buttons ---------- */
.btn-primary-crypto {
    background-color: var(--accent);
    color: #04140c;
    font-weight: 650;
    font-size: 0.9rem;
    border: 1px solid var(--accent);
    border-radius: 999px;
    padding: 0.65rem 1.35rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, filter 0.18s ease;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 6px 20px rgba(0, 230, 138, 0.18);
    letter-spacing: -0.01em;
}
.btn-primary-crypto:hover {
    background-color: #3ef0a8;
    border-color: #3ef0a8;
    color: #04140c;
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 28px rgba(0, 230, 138, 0.28);
}
.btn-primary-crypto:active { transform: translateY(0); }

.btn-outline-crypto {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 0.65rem 1.35rem;
    font-weight: 550;
    font-size: 0.9rem;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-outline-crypto:hover {
    border-color: var(--accent-border);
    color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.btn-lg.btn-primary-crypto,
.btn-lg.btn-outline-crypto {
    padding: 0.75rem 1.45rem;
    font-size: 0.95rem;
}

/* ---------- Hero ---------- */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: min(68vh, 600px);
    display: flex;
    align-items: center;
    padding: 2.25rem 0 2rem;
    border-bottom: 1px solid var(--border-color);
}
.hero-section > .container {
    width: 100%;
}
.hero-content {
    max-width: 34rem;
}
.hero-content .section-label {
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
    margin-bottom: 0.65rem;
}
.hero-content h1,
.hero-content .display-3 {
    display: block;
    width: 100%;
    clear: both;
    margin-top: 0;
}
.hero-content .lead {
    display: block;
    width: 100%;
    max-width: 31rem;
    font-size: 1rem;
    line-height: 1.55;
    margin-top: 0;
    margin-bottom: 0 !important;
}
.hero-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 1rem 0 1.25rem;
}
.hero-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.hero-chip:hover {
    color: var(--accent);
    border-color: var(--accent-border);
    background: var(--accent-soft);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.glow-circle {
    position: absolute;
    top: 48%;
    left: 58%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(0, 255, 153, 0.45) 0%, transparent 68%);
    filter: blur(52px);
    z-index: 0;
    opacity: 0.65;
    pointer-events: none;
    animation: pulseGlow 7s infinite alternate ease-in-out;
}

.typing-container::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

.hero-visual {
    position: relative;
    z-index: 1;
}
.hero-panel {
    width: 100%;
    aspect-ratio: 5 / 4;
    max-height: 360px;
    min-height: 280px;
    background:
        radial-gradient(circle at 85% 15%, rgba(0, 255, 153, 0.18), transparent 42%),
        linear-gradient(155deg, rgba(16, 24, 20, 0.95) 0%, #0a0c0b 55%, #070807 100%);
    border: 1px solid rgba(0, 255, 153, 0.18);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        -12px 20px 50px rgba(0, 0, 0, 0.55),
        0 0 60px rgba(0, 255, 153, 0.08);
}
.hero-panel-bar {
    position: absolute;
    top: 16px; left: 16px; right: 16px;
    height: 34px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.hero-panel-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}
.hero-panel-dot:nth-child(1) { background: #ff5f57; }
.hero-panel-dot:nth-child(2) { background: #febc2e; }
.hero-panel-dot:nth-child(3) { background: #28c840; }
.hero-panel-title {
    margin-left: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.04em;
}
.hero-panel-body {
    position: absolute;
    top: 64px; left: 16px; right: 16px; bottom: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.hero-panel-tile {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hero-panel-tile.accent {
    border-color: rgba(0, 255, 153, 0.25);
    background: linear-gradient(160deg, rgba(0, 255, 153, 0.1), rgba(0, 255, 153, 0.02));
    grid-column: 1 / -1;
}
.hero-panel-tile .label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}
.hero-panel-tile .value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-top: 4px;
}
.hero-panel-tile.accent .value { color: var(--accent); }
.hero-panel-tile .meta {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
}
.hero-panel-line { display: none; }
.hero-panel-corner {
    position: absolute;
    bottom: -1px; right: -1px;
    width: 120px; height: 120px;
    border-top-left-radius: 100%;
    border-top: 1.5px solid rgba(0, 255, 153, 0.45);
    border-left: 1.5px solid rgba(0, 255, 153, 0.45);
    opacity: 0.7;
    pointer-events: none;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-size: 48px 48px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    z-index: -2;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
    pointer-events: none;
}

/* ---------- Cards ---------- */
.crypto-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.035) 0%, transparent 42%), var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 1.25rem 1.3rem !important;
}
.crypto-card.p-4,
.crypto-card.p-md-5 {
    padding: 1.25rem 1.3rem !important;
}
.crypto-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 230, 138, 0.05), transparent 42%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.crypto-card:hover::before { opacity: 1; }
.crypto-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(165deg, rgba(0, 230, 138, 0.04) 0%, transparent 48%), var(--bg-card-hover);
}
.crypto-card .card-icon {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
}
.crypto-card h3,
.crypto-card .h5 {
    font-size: 1.02rem;
    font-weight: 650;
    line-height: 1.35;
    margin-bottom: 0.4rem;
}
.crypto-card p.small,
.crypto-card .text-muted.small {
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--text-muted) !important;
}
.crypto-card .badge {
    font-weight: 550;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    white-space: normal;
    text-align: left;
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: var(--border-color) !important;
    color: var(--text-muted) !important;
}

.border-accent {
    border-top: 2px solid var(--accent) !important;
}

.crypto-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.15s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.crypto-link:hover {
    color: #fff;
    transform: translateX(3px);
}

/* ---------- Stats ---------- */
.stats-section,
.glass-panel {
    background: rgba(10, 11, 12, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.stats-section.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}
.stats-section .counter {
    font-size: clamp(1.65rem, 2.8vw, 2.15rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.stats-section p {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    margin-top: 0.35rem !important;
    color: var(--text-dim) !important;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.testimonial-quote {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted);
    position: relative;
    padding-left: 0.15rem;
}
.testimonial-quote::before {
    content: "“";
    color: var(--accent);
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 700;
    opacity: 0.7;
    margin-right: 0.15rem;
}
.testimonial-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: var(--space-4);
}
.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ---------- FAQ accordion ---------- */
.crypto-accordion .accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 0.55rem;
    overflow: hidden;
}
.crypto-accordion .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    padding: 0.95rem 1.1rem;
    color: var(--text-main);
    background: transparent;
    box-shadow: none !important;
}
.crypto-accordion .accordion-button:not(.collapsed) {
    color: var(--accent) !important;
    background: rgba(0, 255, 153, 0.05) !important;
}
.crypto-accordion .accordion-button::after {
    filter: invert(1) brightness(1.4);
    width: 0.9rem;
    height: 0.9rem;
    background-size: 0.9rem;
}
.crypto-accordion .accordion-body {
    padding: 0 1.1rem 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted);
}
.crypto-accordion .accordion-button:focus {
    box-shadow: 0 0 0 2px rgba(0, 255, 153, 0.12) !important;
}

/* ---------- CTA ---------- */
.cta-section {
    margin-bottom: 0 !important;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    border-top: 1px solid var(--border-color);
    background:
        radial-gradient(ellipse 55% 90% at 50% 120%, rgba(0, 230, 138, 0.1), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 40%),
        var(--bg-dark);
}
.cta-section .display-4 {
    max-width: 20ch;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
}
.cta-section .lead,
.cta-section p.text-muted {
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
}
.cta-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 260px; height: 140px;
    background: var(--accent);
    filter: blur(110px);
    opacity: 0.09;
    z-index: -1;
    pointer-events: none;
}
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-top: 1.35rem;
}

/* ---------- Footer (professional, compact) ---------- */
.crypto-footer {
    background: linear-gradient(180deg, #060606 0%, #030303 100%);
    font-size: 0.875rem;
    margin-top: 0;
    padding-top: 2.25rem !important;
    padding-bottom: 1.25rem !important;
    border-top: 1px solid var(--border-color) !important;
}
.crypto-footer .footer-brand-img {
    max-height: 34px;
    width: auto;
    margin-bottom: 0.75rem;
}
.crypto-footer .footer-about {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    max-width: 26rem;
}
.crypto-footer h6,
.crypto-footer .footer-heading {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.75rem !important;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 0.35rem; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.84rem;
    line-height: 1.35;
    transition: color 0.15s ease;
    display: inline-block;
}
.footer-links a:hover { color: var(--accent); }
.footer-links-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}
.footer-contact {
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-contact li {
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--text-muted);
}
.footer-contact a { color: var(--text-muted); text-decoration: none; }
.footer-contact a:hover { color: var(--accent); }
.footer-newsletter-box {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.05rem;
}
.footer-newsletter-box p {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.footer-newsletter-box .input-group {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-strong);
}
.footer-newsletter-box .form-control {
    border: none !important;
    border-radius: 0 !important;
    background: rgba(0, 0, 0, 0.35) !important;
    font-size: 0.875rem !important;
    padding: 0.6rem 0.85rem !important;
}
.footer-newsletter-box .btn {
    border-radius: 0 !important;
    width: 48px !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.footer-bottom {
    margin-top: 1.35rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
}
.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
    font-size: 0.75rem;
}
.footer-bottom-links a:hover { color: var(--accent); }
.footer-glow {
    top: 100% !important;
    left: 50% !important;
    width: 360px !important;
    height: 120px !important;
    opacity: 0.07 !important;
    pointer-events: none;
}
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.social-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
    text-decoration: none;
    font-size: 0.85rem;
}
.social-icon:hover {
    color: var(--accent);
    border-color: var(--accent-border);
    background: var(--accent-soft);
    transform: translateY(-2px);
}

/* ---------- Forms ---------- */
.crypto-input,
.form-control.crypto-input,
.form-select.crypto-input {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-strong) !important;
    color: var(--text-main) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.7rem 0.9rem !important;
    font-size: 0.95rem !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.crypto-input:focus,
.form-control.crypto-input:focus,
.form-select.crypto-input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(0, 255, 153, 0.12) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}
.crypto-input::placeholder { color: rgba(255, 255, 255, 0.32) !important; }
.form-select.crypto-input option { background: #111; color: #fff; }
.form-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 550;
    letter-spacing: 0.02em;
    margin-bottom: 0.4rem;
    text-transform: none;
}
.alert-crypto {
    background: rgba(0, 255, 153, 0.08);
    border: 1px solid rgba(0, 255, 153, 0.25);
    color: #e8fff5;
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
}

/* Honeypot */
.hp-wrap {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.hp-field,
input.hp-field,
.hp-wrap input {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ---------- Motion ---------- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.96); opacity: 0.45; }
    100% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.65; }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Marquee (if used) */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    padding: 0.75rem 0;
}
.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0; width: 100px; height: 100%;
    z-index: 2;
}
.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}
.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}
.marquee-content {
    display: inline-block;
    animation: marqueeScroll 35s linear infinite;
}
.marquee-item {
    display: inline-flex;
    margin: 0 1.5rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    opacity: 0.55;
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 52px;
    height: 52px;
    bottom: 22px;
    right: 22px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}
.whatsapp-float svg { width: 28px; height: 28px; }

/* Service category blocks */
.service-category-block {
    margin-bottom: var(--space-8);
}
.service-category-block h2 {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

/* Legal */
.legal-content h2 { font-weight: 700; font-size: 1.05rem; }
.legal-content ul { padding-left: 1.15rem; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content a { text-decoration: none; color: var(--accent); }
.legal-content a:hover { text-decoration: underline; }

.breadcrumb { --bs-breadcrumb-divider-color: #555; }
.breadcrumb-item + .breadcrumb-item::before { color: #555; }

main#main-content { min-height: 0; max-width: 100%; }
.crypto-footer, .hero-section, .container { max-width: 100%; }
.row { --bs-gutter-x: 1.25rem; }

/* Portfolio image cards */
.portfolio-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin-bottom: var(--space-3);
    background: var(--bg-elevated);
}

/* =========================================
   RESPONSIVE SYSTEM
   Desktop (≥992px) stays as designed above.
   Tablet/mobile rules only below.
   Bootstrap breakpoints: sm 576, md 768, lg 992
   ========================================= */

/* Prevent horizontal overflow sitewide (safe on desktop too) */
html, body { max-width: 100%; }
img, svg, video, canvas, iframe { max-width: 100%; }
.table-responsive { -webkit-overflow-scrolling: touch; }

/* ---- Tablet & below (< lg 992px) ---- */
@media (max-width: 991.98px) {
    /* Navigation — full-width drawer panel */
    .crypto-navbar {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .crypto-navbar .navbar-toggler {
        width: 44px;
        height: 44px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border-color) !important;
        background: rgba(255, 255, 255, 0.03);
    }
    .crypto-navbar .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(0, 230, 138, 0.2);
        outline: none;
    }
    .crypto-navbar .navbar-toggler-icon {
        width: 1.15rem;
        height: 1.15rem;
        filter: invert(1) grayscale(100%) brightness(200%);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .crypto-navbar .navbar-toggler[aria-expanded="true"] {
        border-color: var(--accent-border) !important;
        background: var(--accent-soft);
    }
    .crypto-navbar .navbar-collapse {
        margin-top: 0.65rem;
        padding: 0.65rem 0.75rem 0.85rem;
        background: rgba(10, 11, 12, 0.97);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
        max-height: min(75vh, 520px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .crypto-navbar .navbar-nav {
        width: 100%;
        align-items: stretch !important;
        gap: 0.2rem;
    }
    .crypto-navbar .nav-item {
        width: 100%;
        margin: 0 !important;
    }
    .crypto-navbar .nav-link {
        width: 100%;
        min-height: 44px;
        display: flex !important;
        align-items: center;
        padding: 0.7rem 0.9rem !important;
        font-size: 0.95rem !important;
        border-radius: var(--radius-sm);
    }
    .crypto-navbar .nav-item .btn-primary-crypto {
        width: 100%;
        min-height: 46px;
        margin-top: 0.35rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    body.nav-open {
        overflow: hidden;
        touch-action: none;
    }

    /* Hero — stack, no forced tall viewport */
    .hero-section {
        min-height: 0 !important;
        height: auto !important;
        display: block;
        padding: 1.35rem 0 1.5rem;
        align-items: stretch;
    }
    .hero-content {
        max-width: none;
    }
    .hero-content .lead {
        max-width: none;
        font-size: 0.98rem;
    }
    .hero-capabilities {
        margin: 0.85rem 0 1.1rem;
    }
    .hero-actions {
        gap: 0.55rem;
    }
    .hero-actions .btn {
        min-height: 46px;
    }

    /* Sections */
    .py-6 {
        padding-top: 2.65rem;
        padding-bottom: 2.65rem;
    }
    .stats-section.py-4 {
        padding-top: 1.2rem !important;
        padding-bottom: 1.2rem !important;
    }
    .section-head {
        margin-bottom: 1.35rem !important;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    .display-3 { font-size: clamp(1.85rem, 6.5vw, 2.45rem) !important; }
    .display-4 { font-size: clamp(1.65rem, 5.5vw, 2.15rem) !important; }
    .display-5 { font-size: clamp(1.4rem, 4.5vw, 1.85rem) !important; }

    /* Cards fill width */
    .crypto-card {
        width: 100%;
    }
    .row {
        --bs-gutter-x: 0.9rem;
        --bs-gutter-y: 0.9rem;
    }

    /* Images */
    .portfolio-thumb {
        height: 150px;
    }
    img.img-fluid,
    .crypto-card img {
        height: auto;
        max-width: 100%;
    }

    /* Forms — full width fields, touch-friendly */
    .crypto-input,
    .form-control.crypto-input,
    .form-select.crypto-input,
    input.form-control,
    select.form-select,
    textarea.form-control {
        min-height: 46px;
        width: 100% !important;
        font-size: 16px !important; /* prevents iOS zoom */
    }
    textarea.form-control,
    textarea.crypto-input {
        min-height: 120px;
    }
    .btn-primary-crypto,
    .btn-outline-crypto {
        min-height: 46px;
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
    }

    /* Footer stack */
    .footer-links-cols {
        grid-template-columns: 1fr 1fr;
    }
    .footer-newsletter-box {
        width: 100%;
    }
    .footer-newsletter-box .form-control {
        min-height: 46px;
        font-size: 16px !important;
    }
    .footer-newsletter-box .btn {
        min-width: 48px;
        min-height: 46px !important;
    }
    .crypto-footer {
        padding-top: 1.75rem !important;
        padding-bottom: 1.15rem !important;
    }
    .social-icon {
        width: 42px;
        height: 42px;
    }

    /* CTA */
    .cta-section {
        padding-top: 2.25rem !important;
        padding-bottom: 2.25rem !important;
    }
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .cta-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* Map embeds */
    .ratio {
        max-width: 100%;
    }

    /* Accordion touch */
    .crypto-accordion .accordion-button {
        min-height: 48px;
        padding: 0.85rem 1rem;
        font-size: 0.92rem;
    }

    /* Glow circles can overflow on small screens */
    .glow-circle {
        max-width: 70vw;
        max-height: 70vw;
        opacity: 0.35;
    }

    /* WhatsApp smaller, clear of content */
    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 14px;
        right: 14px;
    }
}

/* ---- Phone (< sm 576px) — Firefox + Chrome device mode ---- */
@media (max-width: 575.98px) {
    body { padding-top: 58px; }
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .logo-img {
        max-height: 34px !important;
    }
    .hero-section {
        padding: 1rem 0 1.1rem;
        border-bottom: 1px solid var(--border-color);
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .hero-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: inline-flex;
    }
    .hero-chip {
        font-size: 0.68rem;
        padding: 0.32rem 0.6rem;
        line-height: 1.2;
    }
    .hero-capabilities {
        gap: 0.35rem;
        margin: 0.75rem 0 1rem;
    }
    .py-6 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .section-head {
        margin-bottom: 1.1rem !important;
    }
    .section-label {
        font-size: 0.68rem;
        margin-bottom: 0.4rem;
    }
    .crypto-card {
        padding: 1.05rem 1.1rem !important;
    }
    .crypto-card .card-icon {
        width: 2.15rem;
        height: 2.15rem;
        font-size: 0.9rem;
        margin-bottom: 0.65rem;
    }
    .crypto-card h3,
    .crypto-card .h5 {
        font-size: 0.98rem;
    }
    .crypto-card p.small {
        font-size: 0.84rem;
        line-height: 1.5;
    }

    /* Stats: readable 2×2 grid (Firefox often compresses labels) */
    .stats-section.py-4 {
        padding-top: 1.1rem !important;
        padding-bottom: 1.1rem !important;
    }
    .stats-section .row {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.85rem;
    }
    .stats-section .counter {
        font-size: 1.55rem !important;
        line-height: 1.15;
    }
    .stats-section p {
        font-size: 0.65rem !important;
        letter-spacing: 0.06em;
        line-height: 1.3;
        padding: 0 0.15rem;
        white-space: normal;
        max-width: 11ch;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Footer: shorter service list on small screens */
    .footer-links-cols {
        grid-template-columns: 1fr 1fr;
        gap: 0 0.75rem;
    }
    .footer-links-cols li:nth-child(n + 7) {
        display: none;
    }
    .footer-about {
        font-size: 0.8rem;
        margin-bottom: 0.7rem;
    }
    .footer-newsletter-box {
        padding: 0.9rem;
    }
    .footer-bottom {
        text-align: center;
        margin-top: 1.1rem;
        padding-top: 0.85rem;
    }
    .footer-bottom-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35rem 0.85rem;
    }
    .footer-bottom-links .list-inline-item {
        margin: 0 !important;
    }
    .testimonial-meta {
        gap: 0.6rem;
    }
    .crypto-card:hover {
        transform: none;
    }
    .btn-primary-crypto:hover,
    .btn-outline-crypto:hover {
        transform: none;
    }
    /* Inline max-width containers stay full bleed */
    .container[style*="max-width"],
    div[style*="max-width: 760"],
    div[style*="max-width: 820"],
    div[style*="max-width: 640"],
    div[style*="max-width: 720"] {
        max-width: 100% !important;
    }
    /* Reduce oversized utility padding on phones */
    .crypto-card.p-md-5,
    .crypto-card.p-5 {
        padding: 1.05rem 1.1rem !important;
    }
    .mb-4 {
        margin-bottom: 1rem !important;
    }
    .mb-5 {
        margin-bottom: 1.25rem !important;
    }
    /* Service category headings */
    .service-category-block {
        margin-bottom: 1.75rem;
    }
    .service-category-block h2 {
        font-size: 1.1rem;
    }
    /* FAQ accordion text wrap */
    .crypto-accordion .accordion-button {
        text-align: left;
        white-space: normal;
        line-height: 1.35;
    }
    /* WhatsApp: don’t cover newsletter CTA */
    .whatsapp-float {
        bottom: 12px;
        right: 12px;
        width: 46px;
        height: 46px;
        z-index: 1040;
    }
}

/* ---- Landscape phones ---- */
@media (max-height: 480px) and (orientation: landscape) {
    .hero-section {
        min-height: 0 !important;
        padding: 0.85rem 0 1rem;
    }
    .crypto-navbar .navbar-collapse {
        max-height: 70vh;
    }
    .py-6 {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }
}

/* Focus visibility (a11y) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .typing-container::after { animation: none; }
    .crypto-card:hover { transform: none; }
    .btn-primary-crypto:hover,
    .btn-outline-crypto:hover { transform: none; }
    .navbar-toggler-icon { transition: none; }
}
