/* ============================================================
   RIGFORGE CO. — 2026 Design System
   Dark Mode 3.0 · Bento Grid · Kinetic Type · Fluid Spacing
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --bg: #07090d;
    --bg-alt: #0b0e14;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-2: rgba(255, 255, 255, 0.14);
    --text: #eef2f7;
    --text-dim: #9aa7b8;
    --accent-1: #38bdf8;   /* electric cyan */
    --accent-2: #6366f1;   /* indigo */
    --accent-3: #a78bfa;   /* violet */
    --grad: linear-gradient(90deg, #38bdf8 0%, #6366f1 55%, #a78bfa 100%);

    /* Fluid spacing (8px grid) */
    --space-s: clamp(1rem, 0.75rem + 1.25vw, 1.5rem);
    --space-m: clamp(1.5rem, 1rem + 2.5vw, 3rem);
    --space-l: clamp(2.5rem, 1.5rem + 5vw, 5rem);
    --space-xl: clamp(4.5rem, 3rem + 8vw, 9rem);

    --radius: 16px;
    --radius-sm: 10px;
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.container {
    width: min(1140px, 92%);
    margin-inline: auto;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }

a { color: inherit; text-decoration: none; }

::selection { background: rgba(99, 102, 241, 0.4); }

/* Gradient text */
.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- Reveal animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
}
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: var(--grad);
    color: #050810;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 32px rgba(99, 102, 241, 0.5); }

.btn-ghost {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--border-2);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(56, 189, 248, 0.6); transform: translateY(-2px); }

/* ---------- Scroll-reactive circuit layer ---------- */
#circuitCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ---------- Nav ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    padding: 0.4rem 0;
    transition: background 0.35s ease, border-color 0.35s ease;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(7, 9, 13, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    width: min(1140px, 92%);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0;
}
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-text {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
}
.brand-text em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links a:not(.nav-cta) {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.25s ease;
}
.nav-links a:not(.nav-cta):hover { color: var(--text); }
.nav-cta { padding: 0.55rem 1.2rem; font-size: 0.88rem; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 9rem 0 5rem;
    overflow: hidden;
}
.hero-glow {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(56, 189, 248, 0.08) 45%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-1);
    margin-bottom: 1.2rem;
}
.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-1);
    box-shadow: 0 0 12px var(--accent-1);
    animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: clamp(2.6rem, 7.5vw, 5.2rem);
    font-weight: 700;
    margin-bottom: 1.4rem;
}
.hero-title .line { display: block; }

.hero-sub {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: var(--text-dim);
    max-width: 40rem;
    margin-bottom: 2.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.5rem; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(8px);
}
.stat {
    background: rgba(11, 14, 20, 0.6);
    padding: 1.1rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.stat-num {
    font-family: var(--font-head);
    font-size: clamp(1.4rem, 2.8vw, 1.9rem);
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.82rem; color: var(--text-dim); }

/* ---------- Marquee ---------- */
.marquee {
    border-block: 1px solid var(--border);
    padding: 1.1rem 0;
    overflow: hidden;
    background: var(--bg-alt);
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: max-content;
    animation: scroll 32s linear infinite;
}
.marquee-track span {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.14em;
    color: var(--text-dim);
    white-space: nowrap;
}
.marquee-track i { color: var(--accent-2); font-size: 0.6rem; font-style: normal; }
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-xl); }
.section-alt { background: rgba(11, 14, 20, 0.86); border-block: 1px solid var(--border); }

.section-head { max-width: 44rem; margin-bottom: var(--space-l); }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 0.9rem; }
/* The gradient phrase in every section heading drops onto its own line */
.section-head h2 .gradient-text {
    display: block;
    margin-top: 0.3rem;
    line-height: 1.15;
}
.section-sub { color: var(--text-dim); font-size: clamp(1rem, 1.6vw, 1.15rem); }

/* ---------- Bento grid ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}
.bento-tile {
    position: relative;
    padding: 1.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}
.bento-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 18px 48px rgba(56, 189, 248, 0.12);
}
.tile-lg { grid-column: span 6; }
.bento-tile:not(.tile-lg):nth-child(2), .bento-tile:not(.tile-lg):nth-child(3) { grid-column: span 3; }
.bento-tile:nth-child(4) { grid-column: span 2; }
.bento-tile:nth-child(5) { grid-column: span 2; }
.bento-tile:nth-child(6) { grid-column: span 2; }

.tile-tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-1);
    margin-bottom: 0.9rem;
}
.bento-tile h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.tile-lg h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.bento-tile p { color: var(--text-dim); font-size: 0.95rem; }

.tile-list { list-style: none; margin: 1rem 0; display: grid; gap: 0.45rem; }
.tile-list li {
    padding-left: 1.4rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-dim);
}
.tile-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-1);
}

.tile-link {
    margin-top: auto;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--accent-1);
    transition: gap 0.25s ease;
}
.tile-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.tile-sparkline { margin: 1.2rem 0; opacity: 0.9; }

.tile-stat { justify-content: center; text-align: center; }
.tile-stat .big-num {
    font-family: var(--font-head);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.tile-stat p:not(.big-num) { font-size: 0.85rem; }

.tile-cta { justify-content: center; background: linear-gradient(160deg, rgba(99, 102, 241, 0.16), rgba(56, 189, 248, 0.06)); }
.tile-cta .btn { margin-top: 1.1rem; }

/* ---------- Trend grid (Why now) ---------- */
.trend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
.trend-card {
    padding: 1.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.trend-card:hover { border-color: rgba(167, 139, 250, 0.5); transform: translateY(-3px); }
.trend-num {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-3);
    letter-spacing: 0.2em;
}
.trend-card h3 { font-size: 1.2rem; margin: 0.7rem 0 0.6rem; }
.trend-card p { color: var(--text-dim); font-size: 0.93rem; }
.trend-card p strong { color: var(--text); }

.trend-card-wide {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.1), rgba(56, 189, 248, 0.04));
}
.trend-card-wide div { max-width: 46rem; }

/* ---------- Process ---------- */
.process {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem 2.5rem;
    position: relative;
}
.step {
    display: flex;
    gap: 1.1rem;
    padding-top: 0.4rem;
    position: relative;
}
.step-dot {
    flex: 0 0 auto;
    width: 14px; height: 14px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--grad);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Configurator ---------- */
.config {
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    background: var(--surface);
    backdrop-filter: blur(12px);
    overflow: hidden;
}
.config-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
}
.config-tab {
    flex: 1 1 auto;
    padding: 1rem 1.4rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-dim);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.config-tab:hover { color: var(--text); background: var(--surface-2); }
.config-tab.active {
    color: var(--text);
    border-bottom-color: var(--accent-1);
    background: rgba(56, 189, 248, 0.06);
}

.config-body {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0;
}
.config-controls { padding: 1.8rem; display: grid; gap: 1.3rem; align-content: start; }

.control { display: grid; gap: 0.45rem; }
.control-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-2);
    background: var(--bg-alt);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.25s ease;
}
.select:focus { outline: none; border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15); }

.config-readout {
    padding: 1.8rem;
    border-left: 1px solid var(--border);
    background: rgba(7, 9, 13, 0.55);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.readout-head {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px dashed var(--border-2);
}
.readout-title { font-size: 0.75rem; letter-spacing: 0.2em; font-weight: 700; color: var(--text-dim); }
.readout-price {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.readout-specs { list-style: none; display: grid; gap: 0.55rem; }
.readout-specs li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.88rem;
}
.readout-specs li span:first-child { color: var(--text-dim); }
.readout-specs li span:last-child { font-weight: 600; text-align: right; }
.readout-note { font-size: 0.78rem; color: var(--text-dim); }
.config-readout .btn { margin-top: auto; }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.quote {
    padding: 1.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.quote:hover { border-color: rgba(56, 189, 248, 0.4); transform: translateY(-3px); }
.quote p { font-size: 0.98rem; color: var(--text); }
/* (decorative quote mark handled by .quote::below) */
.quote footer { font-size: 0.85rem; color: var(--text-dim); }
.quote footer strong { color: var(--text); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.8rem; max-width: 46rem; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.faq-item[open] { border-color: rgba(56, 189, 248, 0.45); }
.faq-item summary {
    padding: 1.1rem 1.4rem;
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: var(--accent-1);
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.4rem 1.3rem; color: var(--text-dim); font-size: 0.93rem; }

/* ---------- Final CTA ---------- */
.cta-final {
    padding-block: var(--space-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    background:
        radial-gradient(60% 100% at 50% 0%, rgba(99, 102, 241, 0.18) 0%, transparent 70%),
        var(--bg);
}
.cta-final h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.8rem; }
.cta-final p { color: var(--text-dim); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: var(--space-l) 0 2rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}
.footer-brand .brand-text { font-size: 1.1rem; display: block; margin-bottom: 0.8rem; }
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; max-width: 22rem; }
.footer-col { display: grid; gap: 0.55rem; align-content: start; }
.footer-col h4 {
    font-family: var(--font-head);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}
.footer-col a { color: var(--text-dim); font-size: 0.92rem; transition: color 0.25s ease; }
.footer-col a:hover { color: var(--accent-1); }
.footer-loc { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.4rem; }
.footer-base {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1.5rem;
}
.footer-base p { color: var(--text-dim); font-size: 0.8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .config-body { grid-template-columns: 1fr; }
    .config-readout { border-left: none; border-top: 1px solid var(--border); }

    .bento-tile { grid-column: 1 / -1 !important; }
    .bento { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(7, 9, 13, 0.96);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 1rem 4%;
        transform: translateY(-130%);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .nav-links.open { transform: none; }
    .nav-links a:not(.nav-cta) { padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
    .nav-cta { margin-top: 1rem; justify-content: center; }

    .hero { padding-top: 7rem; }
    .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- Badges (motion sim tile) ---------- */
.tile-badges { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.9rem 0 1rem; }
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--accent-1);
    background: rgba(56, 189, 248, 0.07);
}

/* ---------- Delivery cards ---------- */
.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}
.delivery-card {
    padding: 1.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.delivery-card:hover { border-color: rgba(56, 189, 248, 0.45); transform: translateY(-3px); }
.delivery-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.delivery-card p { color: var(--text-dim); font-size: 0.93rem; }

/* ---------- Config paths strip ---------- */
.config-paths {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.9rem;
    padding: 1rem 1.4rem;
    border-bottom: 1px solid var(--border);
    background: rgba(99, 102, 241, 0.05);
}
.config-paths p { font-size: 0.9rem; color: var(--text-dim); }
.config-paths p strong { color: var(--text); }

/* ---------- Blog cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.blog-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
    border-color: rgba(56, 189, 248, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(56, 189, 248, 0.08);
}
.blog-meta {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-1);
}
.blog-card h3 { font-size: 1.15rem; }
.blog-card p { color: var(--text-dim); font-size: 0.92rem; flex-grow: 1; }

/* ---------- Hero grid & visual ---------- */
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.9fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}
.hero-visual { position: relative; }
.hero-visual img {
    width: 100%;
    display: block;
    border-radius: var(--radius);
    border: 1px solid var(--border-2);
    box-shadow: 0 30px 90px rgba(99, 102, 241, 0.28);
}
.spec-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    background: rgba(11, 14, 20, 0.78);
    border: 1px solid var(--border-2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    animation: float 6s ease-in-out infinite;
}
.chip-1 { top: 9%; right: -3%; }
.chip-2 { top: 44%; right: -8%; animation-delay: 1.6s; }
.chip-3 { bottom: 12%; right: -2%; animation-delay: 3.2s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 520px; }
    .chip-1 { right: 4%; }
    .chip-2 { right: 2%; }
    .chip-3 { right: 5%; }
}

/* ---------- Media slots (placeholders / photos) ---------- */
.tile-media { margin: -1.8rem -1.8rem 1.4rem; overflow: hidden; }
.tile-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.tile-lg .tile-media img { aspect-ratio: 21 / 9; }
.bento-tile:hover .tile-media img { transform: scale(1.05); }

.blog-media {
    margin: -1.8rem -1.8rem 0.2rem;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.blog-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.blog-card:hover .blog-media img { transform: scale(1.05); }

/* ============================================================
   PSEUDO-ELEMENT LAYER — ambient, accents & crop marks
   Everything below is pure ::before / ::after decoration
   ============================================================ */

/* Body ambient layer — fixed aurora glow behind the whole page */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(42rem 30rem at 12% -6%, rgba(99, 102, 241, 0.10), transparent 60%),
        radial-gradient(46rem 32rem at 92% 12%, rgba(56, 189, 248, 0.07), transparent 60%),
        radial-gradient(50rem 40rem at 50% 118%, rgba(167, 139, 250, 0.06), transparent 60%);
}

/* Giant faint section watermark (reads data-label from each section) */
.section { position: relative; }
.section::before {
    content: attr(data-label);
    position: absolute;
    top: 1.2rem;
    right: 3%;
    font-family: var(--font-head);
    font-size: clamp(3.5rem, 11vw, 9rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}
@media (max-width: 700px) {
    .section::before { display: none; }
}

/* Gradient dash before section eyebrow labels */
.section-head .eyebrow::before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 2px;
    margin-right: 0.6rem;
    vertical-align: middle;
    background: var(--grad);
    border-radius: 2px;
}

/* Accent gradient line along the bottom edge of alt sections */
.section-alt::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(56, 189, 248, 0.45), rgba(167, 139, 250, 0.35), transparent 95%);
}

/* Bento blueprint corner crop-marks — appear on hover */
.bento-tile::before,
.bento-tile::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.bento-tile::before {
    top: 10px;
    left: 10px;
    border-top: 2px solid var(--accent-1);
    border-left: 2px solid var(--accent-1);
    border-top-left-radius: 8px;
}
.bento-tile::after {
    bottom: 10px;
    right: 10px;
    border-bottom: 2px solid var(--accent-3);
    border-right: 2px solid var(--accent-3);
    border-bottom-right-radius: 8px;
}
.bento-tile:hover::before,
.bento-tile:hover::after { opacity: 1; }

/* Marquee edge fades so brand strip dissolves at the viewport edges */
.marquee { position: relative; }
.marquee::before,
.marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(60px, 10vw, 140px);
    z-index: 2;
    pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-alt), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-alt), transparent); }

/* Primary button — light sweep on hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -160%;
    width: 55%;
    height: 100%;
    background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.4) 50%, transparent 80%);
    transform: skewX(-18deg);
    transition: left 0.65s ease;
    pointer-events: none;
}
.btn-primary:hover::after { left: 160%; }

/* Testimonial cards — decorative gradient quote mark */
.quote { position: relative; }
.quote::before {
    content: "\201C";
    position: absolute;
    top: 0rem;
    right: 1.1rem;
    font-family: var(--font-head);
    font-size: 4.5rem;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
}

/* Delivery cards — gradient top-line wipes in on hover */
.delivery-card { position: relative; overflow: hidden; }
.delivery-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.delivery-card:hover::before { width: 100%; }

/* Footer base — glowing gradient divider */
.footer-base { position: relative; }
.footer-base::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .marquee-track { animation: none; }
}





.gradient-border-card {
  position: relative;
  border-radius: 50%; /* Adjust to match your design */
  background: #1a1a1a; /* Your card's solid inner background */
  color: #fff;
  padding: 8px;
  overflow: hidden;
  z-index: 1;
  width:100px;
}

.gradient-border-card img {
    max-height:100%;
}

/* Create the animated gradient border using a pseudo-element */
.gradient-border-card::before {
  content: "";
  position: absolute;
  inset: -3px; /* Controls the border thickness (e.g., 3px) */
  background: var(--grad);
  border-radius: inherit;
  animation: spin-gradient 4s linear infinite;
  z-index: -1;
}

/* Keyframes to rotate the background */
@keyframes spin-gradient {
  0% {
    filter: hue-rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
    transform: rotate(360deg);
  }
}


