@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    --ink: #0A0E1A;
    --steel: #4B5768;
    --steel-light: #8993A3;
    --accent: #0B5FFF;
    --accent-dark: #0847C4;
    --signal: #FF6A2B;
    --surface: #F6F8FB;
    --surface-alt: #EEF1F6;
    --line: #E4E8EE;
    --white: #FFFFFF;

    --shadow-soft: 0 4px 24px rgba(10, 14, 26, 0.05);
    --shadow-premium: 0 24px 48px -18px rgba(10, 14, 26, 0.16);
    --shadow-accent: 0 20px 40px -16px rgba(11, 95, 255, 0.28);

    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.75rem;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--steel);
    background-color: var(--surface);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.font-mono-tech {
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: -0.01em;
}

::selection { background: var(--accent); color: #90a4ff; }

/* ============ EYEBROW / LABELS ============ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}
.eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--signal);
    display: inline-block;
}

/* ============ SIGNATURE: CORNER BRACKET FRAME ============ */
/* Blueprint / measurement-mark motif — echoes technical drawings & the
   "tension gauge" the product itself is measured by. */
.tech-frame {
    position: relative;
}
.tech-frame::before,
.tech-frame::after,
.tech-frame > .tf-tl,
.tech-frame > .tf-br {
    content: '';
    position: absolute;
    width: 22px; height: 22px;
    z-index: 20;
    pointer-events: none;
}
.tech-frame::before {
    top: -1px; left: -1px;
    border-top: 2px solid var(--ink);
    border-left: 2px solid var(--ink);
}
.tech-frame::after {
    bottom: -1px; right: -1px;
    border-bottom: 2px solid var(--ink);
    border-right: 2px solid var(--ink);
}
.tech-frame.tf-accent::before,
.tech-frame.tf-accent::after {
    border-color: var(--accent);
}
.tech-frame.tf-light::before,
.tech-frame.tf-light::after {
    border-color: rgba(255,255,255,0.6);
}

/* Small measurement tick label, used to annotate hero/media */
.tech-tag {
    position: absolute;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--ink);
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--line);
    padding: 0.35rem 0.7rem;
    z-index: 20;
}

/* ============ CARDS ============ */
.hover-lift {
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease, border-color 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-premium);
}

.card-industrial {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

/* ============ TEXT / GRADIENT ============ */
.text-gradient {
    background: linear-gradient(120deg, var(--ink) 20%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============ BLUEPRINT GRID BACKGROUND ============ */
.bg-blueprint {
    background-image:
        linear-gradient(rgba(10,14,26,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10,14,26,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}
.bg-blueprint-dark {
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ============ SPEC TABLE (product detail) ============ */
.spec-row { transition: background-color 0.2s; }
.spec-row:hover { background-color: var(--surface-alt); }

/* ============ MARQUEE ============ */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-content {
    animation: scroll-left 32s linear infinite;
    display: flex;
    white-space: nowrap;
    flex-shrink: 0;
}
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.marquee-container:hover .marquee-content { animation-play-state: paused; }

/* ============ FILTER BUTTONS ============ */
.filter-btn { transition: all 0.25s ease; }
.filter-btn.active {
    background-color: var(--ink);
    color: white;
}

/* ============ NUMBERED PROCESS LINE ============ */
.process-line {
    position: relative;
}
.process-line::before {
    content: '';
    position: absolute;
    top: 28px; left: 28px; right: 28px;
    height: 1px;
    background: var(--line);
    z-index: 0;
}

/* ============ ACCORDION (FAQ) ============ */
.faq-item summary { cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform 0.3s ease; }

/* ============ TIMELINE (About) ============ */
.timeline-track {
    position: relative;
}
.timeline-track::before {
    content: '';
    position: absolute;
    left: 15px; top: 4px; bottom: 4px;
    width: 1px;
    background: var(--line);
}
@media (min-width: 768px) {
    .timeline-track::before { left: 50%; transform: translateX(-50%); }
}

/* ============ FLOATING WHATSAPP ============ */
.fab-whatsapp {
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 60;
    box-shadow: 0 10px 30px -8px rgba(0,0,0,0.35);
}

/* ============ BACK TO TOP ============ */
#back-to-top {
    position: fixed;
    bottom: 28px; left: 28px;
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }

/* ============ FOCUS STATES (a11y) ============ */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}