/* ==========================================================================
   Maskinel - design tokens
   Brand colours (#5B6DB2 / #BB5454) stay as-is for the logo and the waves.
   Text and UI accents use lightened steps of the same hues so they clear
   4.5:1 against the near-black surface.
   ========================================================================== */
:root {
    --brand-blue: #5B6DB2;
    --brand-red: #BB5454;

    --accent-blue: #8098E0;   /* headings, links          - 7.5:1 on black */
    --accent-red: #E07A72;    /* inline emphasis, rules   - 7.1:1 on black */

    --text: #ffffff;
    --text-muted: #A8B0C4;    /* labels, captions         - 9.7:1 on black */

    --panel: rgba(0, 0, 0, 0.82);
    --surface: rgba(255, 255, 255, 0.06);
    --surface-hover: rgba(255, 255, 255, 0.10);
    --border: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(91, 109, 178, 0.35);

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 18px;

    --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
    background: #000000;
    -webkit-font-smoothing: antialiased;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
.clickable-card:focus-visible,
.lang-switcher:focus-visible,
.hamburger:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s var(--ease);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s var(--ease);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 0.98rem;
    letter-spacing: 0.2px;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* Pages */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 50px;
}

.page:not(#home) {
    padding-top: 80px;
}

.page.active {
    display: block;
}

/* Home Page */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-black-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 0;
}

/* Animated Waves */
.waves-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.waves-container svg {
    position: absolute;
    width: 400%;
    height: 100%;
    left: -100%;
}

.wave-path {
    fill: none;
    stroke-width: 2;
    opacity: 0;
    stroke-linecap: round;
}

@keyframes wave-cycle {
    0% {
        opacity: 0;
        transform: translateX(-25%);
    }
    10% {
        opacity: 0.6;
    }
    85% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateX(-75%);
    }
}

/* Each wave with independent timing */
.wave-1 {
    stroke: url(#gradient1);
    animation: wave-cycle 28s ease-in-out infinite;
    animation-delay: 0s;
}
.wave-2 {
    stroke: url(#gradient2);
    animation: wave-cycle 35s ease-in-out infinite;
    animation-delay: 4s;
}
.wave-3 {
    stroke: url(#gradient3);
    animation: wave-cycle 32s ease-in-out infinite;
    animation-delay: 8s;
}
.wave-4 {
    stroke: url(#gradient4);
    animation: wave-cycle 30s ease-in-out infinite;
    animation-delay: 2s;
}
.wave-5 {
    stroke: url(#gradient5);
    animation: wave-cycle 38s ease-in-out infinite;
    animation-delay: 10s;
}
.wave-6 {
    stroke: url(#gradient6);
    animation: wave-cycle 33s ease-in-out infinite;
    animation-delay: 6s;
}
.wave-7 {
    stroke: url(#gradient7);
    animation: wave-cycle 29s ease-in-out infinite;
    animation-delay: 12s;
}
.wave-8 {
    stroke: url(#gradient8);
    animation: wave-cycle 36s ease-in-out infinite;
    animation-delay: 14s;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1.5s ease;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    background: var(--brand-red);
    color: white;
    padding: 1rem 2.25rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s var(--ease);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.cta-button:hover {
    background: #9a4545;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(187, 84, 84, 0.3);
}

/* Word Reveal Animation */
.word-reveal {
    display: inline-block;
}

.reveal-word {
    display: inline-block;
    opacity: 0;
    filter: blur(10px);
    animation: revealWord 1s forwards;
}

@keyframes revealWord {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
        transform: translateY(0);
    }
}

/* Content Sections
   Readable panel over the animated waves - same treatment as the navbar.
   Kept slightly translucent with a blur so the waves still show through. */
.content {
    max-width: 1000px;
    margin: 2rem auto 3rem;
    padding: 3.5rem 4rem;
    position: relative;
    z-index: 2;
    background: var(--panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.section {
    margin-bottom: 4rem;
}

.section:last-child {
    margin-bottom: 0;
}

/* The panel already supplies the top padding - don't stack a section margin
   on top of it (.projects-section sets its own margin, hence the specificity) */
.content > .section:first-child {
    margin-top: 0;
}

.section h2 {
    color: var(--accent-blue);
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
    text-align: center;
}

/* Anchored headings (the Google Ads landing ids) must clear the fixed navbar
   when the browser jumps to them. */
.section h3[id] {
    scroll-margin-top: 100px;
}

/* Subsection heading: white text with a red accent rule, so the page is
   structured by hierarchy rather than by colouring every heading red. */
.section h3 {
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    padding-left: 0.9rem;
    border-left: 3px solid var(--accent-red);
    text-align: left;
}

.section p {
    font-size: 1.08rem;
    margin-bottom: 1.1rem;
    text-align: left;
    line-height: 1.75;
    color: var(--text);
}

.lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   KPI row - headline figures, not a chart.
   Values wear text ink (not an accent colour) so the number reads as data;
   the unit and label sit back in muted ink.
   -------------------------------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0 2.5rem;
}

.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.5rem 1.35rem;
}

.stat-value {
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.stat-unit {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.stat-label {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Spec list - replaces the "<b>Term:</b> description" paragraph runs
   -------------------------------------------------------------------------- */
.spec-list {
    display: grid;
    gap: 0.5rem;
    margin: 1.5rem 0 2rem;
}

.spec {
    display: grid;
    grid-template-columns: minmax(150px, 210px) 1fr;
    gap: 0.25rem 1.5rem;
    padding: 0.9rem 1.1rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--border-accent);
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.spec:hover {
    background: var(--surface-hover);
    border-left-color: var(--accent-blue);
}

.spec-term {
    color: var(--accent-red);
    font-weight: 600;
}

.spec-desc {
    color: var(--text);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

/* These are anchors since the page split, so the default underline and link
   colour have to be cleared. */
.skill-card {
    display: block;
    text-decoration: none;
    background: var(--surface);
    color: var(--text);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand-blue);
    transition: transform 0.3s var(--ease), background 0.3s var(--ease),
                border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.skill-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0;
}

.skill-card:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
    box-shadow: 0 10px 25px rgba(91, 109, 178, 0.3);
}

.skill-card h4 {
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.clickable-card {
    cursor: pointer;
}

.clickable-card:hover {
    transform: translateY(-8px);
    border-left-color: var(--accent-red);
}

.clickable-card:active {
    transform: translateY(-5px);
}

.clickable-card h4 {
    transition: color 0.3s var(--ease);
}

.clickable-card:hover h4 {
    color: var(--accent-red);
}

/* Projects Carousel */
.projects-section {
    margin: 3rem 0;
    overflow: hidden;
}

.projects-carousel {
    overflow: hidden;
    padding: 2rem 0;
    margin: 2rem 0 0;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.projects-track {
    display: flex;
    gap: 1.5rem;
    width: fit-content;
}

.project-card {
    min-width: 340px;
    max-width: 340px;
    background: var(--surface);
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.3s var(--ease), background 0.3s var(--ease),
                box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
    flex-shrink: 0;
}

.project-card:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
    box-shadow: 0 10px 30px rgba(91, 109, 178, 0.3);
    border-color: var(--border-accent);
}

.project-card h4 {
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
}

.project-card p {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Products
   -------------------------------------------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease),
                border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.product-card:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
    border-color: var(--border-accent);
    box-shadow: 0 10px 30px rgba(91, 109, 178, 0.25);
}

/* Swap the placeholder for an <img> and this keeps the same frame */
.product-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--border);
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-media-hint {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
}

.product-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.75rem;
}

.product-status {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-blue);
    background: rgba(91, 109, 178, 0.15);
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    padding: 0.25rem 0.7rem;
    margin-bottom: 0.9rem;
}

/* Card headings sit outside the section heading rhythm */
.product-card h3 {
    margin: 0 0 0.4rem;
    padding-left: 0;
    border-left: none;
    font-size: 1.3rem;
    color: var(--accent-blue);
}

.product-tagline {
    color: var(--text);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.product-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.product-specs {
    display: grid;
    gap: 0;
    margin: 1.25rem 0 1.5rem;
    border-top: 1px solid var(--border);
}

.product-spec {
    display: grid;
    grid-template-columns: minmax(110px, 40%) 1fr;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.product-spec dt {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.product-spec dd {
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
}

/* Lighter than the hero call to action, which would shout inside a card */
.product-cta {
    margin-top: auto;
    align-self: flex-start;
    background: transparent;
    border: 1px solid var(--border-accent);
    color: var(--accent-blue);
    padding: 0.6rem 1.4rem;
    font-size: 0.78rem;
}

.product-cta:hover {
    background: var(--surface-hover);
    border-color: var(--accent-blue);
    color: var(--text);
    transform: none;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Product detail
   -------------------------------------------------------------------------- */
.product-hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-top: 2rem;
}

.product-hero-figure {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.product-hero-figure img,
.scale-step img {
    display: block;
    width: 100%;
    height: auto;
}

.product-hero-body h3 {
    margin: 0.75rem 0 0.35rem;
    padding-left: 0;
    border-left: none;
    font-size: 2rem;
    color: var(--accent-blue);
    letter-spacing: 0.02em;
}

.product-hero-body .product-tagline {
    font-size: 1.15rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Advance information callout. The datasheet is a target specification,
   so the page has to say so wherever the figures appear. */
.notice {
    display: flex;
    gap: 0.9rem;
    background: rgba(187, 84, 84, 0.08);
    border: 1px solid rgba(187, 84, 84, 0.35);
    border-radius: var(--radius);
    padding: 1.1rem 1.35rem;
    margin: 2rem 0;
}

.notice svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent-red);
    margin-top: 0.15rem;
}

.notice p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.notice strong {
    color: var(--accent-red);
    font-weight: 600;
}

/* Scaling sequence: module to rack to three-phase transformer */
.scale-grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0 1rem;
}

.scale-step {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.75rem;
    align-items: center;
    margin: 0;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.scale-step:nth-child(even) img {
    order: 2;
}

.scale-step figcaption {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.scale-figure {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 0.4rem;
}

.scale-title {
    display: block;
    color: var(--text);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

/* Specification tables, grouped two across */
.spec-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem 2.5rem;
    margin-top: 1.5rem;
}

.spec-group h4 {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 0.35rem;
}

/* --------------------------------------------------------------------------
   Home page product highlight. A plain anchor to #products: the hash router
   in script.js picks it up, so it needs no click handler of its own.
   -------------------------------------------------------------------------- */
.product-feature {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease),
                border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.product-feature:hover {
    transform: translateY(-4px);
    background: var(--surface-hover);
    border-color: var(--border-accent);
    box-shadow: 0 10px 30px rgba(91, 109, 178, 0.25);
}

.product-feature img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.product-feature h3 {
    margin: 0.9rem 0 0.35rem;
    padding-left: 0;
    border-left: none;
    font-size: 1.5rem;
    color: var(--accent-blue);
}

.product-feature p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.product-feature .product-tagline {
    color: var(--text);
    font-weight: 500;
    font-size: 1.05rem;
}

.product-feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent-blue);
}

.product-feature-link svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease);
}

.product-feature:hover .product-feature-link svg {
    transform: translateX(3px);
}

/* Products index */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease),
                border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.product-card:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
    border-color: var(--border-accent);
    box-shadow: 0 10px 30px rgba(91, 109, 178, 0.25);
}

.product-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--border);
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-media-hint {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
}

.product-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.75rem;
}

.product-status {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-blue);
    background: rgba(91, 109, 178, 0.15);
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    padding: 0.25rem 0.7rem;
}

/* Card headings sit outside the section heading rhythm */
.product-card h3 {
    margin: 0.9rem 0 0.4rem;
    padding-left: 0;
    border-left: none;
    font-size: 1.3rem;
    color: var(--accent-blue);
}

.product-tagline {
    color: var(--text);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.product-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.product-specs {
    display: grid;
    gap: 0;
    margin: 0.75rem 0 1.5rem;
    border-top: 1px solid var(--border);
}

.product-spec {
    display: grid;
    grid-template-columns: minmax(120px, 45%) 1fr;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
}

.product-spec dt {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.product-spec dd {
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
}

/* Lighter than the hero call to action, which would shout inside a card */
.product-cta {
    align-self: flex-start;
    background: transparent;
    border: 1px solid var(--border-accent);
    color: var(--accent-blue);
    padding: 0.6rem 1.4rem;
    font-size: 0.78rem;
}

.product-cta:hover {
    background: var(--surface-hover);
    border-color: var(--accent-blue);
    color: var(--text);
    transform: none;
    box-shadow: none;
}

/* Conversion block at the foot of the service section */
.service-cta {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.service-cta .product-actions {
    margin-top: 1rem;
}

/* Equalise the two buttons. The primary stays filled and the secondary
   outlined, but .cta-button and .product-cta ship different padding, which
   left them at different heights side by side. */
.service-cta .cta-button {
    padding: 0.8rem 1.7rem;
    font-size: 0.8rem;
}

.trust-line {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    background: transparent;
    color: var(--text);
    padding: 0;
    border-radius: var(--radius);
}

.contact-info h3:first-child {
    margin-top: 0;
}

.contact-info p {
    color: var(--text);
}

.contact-item {
    margin-bottom: 1.1rem;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.contact-item strong {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    min-width: 105px;
    flex-shrink: 0;
}

.contact-item span,
.contact-item a {
    color: var(--text);
}

.contact-item a {
    text-decoration: none;
    border-bottom: 1px solid var(--border-accent);
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.contact-item a:hover {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

.contact-list {
    list-style: none;
    display: grid;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.contact-list li {
    position: relative;
    padding-left: 1.1rem;
    color: var(--text);
}

.contact-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-red);
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.map-container img {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Two classes, so this beats `.section p` on specificity */
.map-container .map-caption {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Credential card - replaces the blue-to-red gradient banner
   -------------------------------------------------------------------------- */
/* Links to the public authorization register, so the whole card is the
   hit target rather than just the number */
.authorization {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    background: var(--surface);
    border: 1px solid var(--border-accent);
    border-left: 3px solid var(--accent-blue);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    margin: 0 0 1rem;
    text-align: left;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
                transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.authorization:hover {
    background: var(--surface-hover);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(91, 109, 178, 0.25);
}

.authorization:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
}

.auth-verify {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 15rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--text-muted);
    transition: color 0.3s var(--ease);
}

.authorization:hover .auth-verify {
    color: var(--accent-blue);
}

/* Sized to the label's cap height, not its line box, so it reads as
   punctuation rather than an icon */
.auth-arrow {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    opacity: 0.75;
}

.auth-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--accent-blue);
}

.auth-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.auth-label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.auth-number {
    font-family: 'Consolas', 'SF Mono', 'Menlo', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--accent-blue);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius);
    transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.team-member:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
}

.team-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--brand-blue);
}

.team-member h3 {
    color: var(--accent-blue);
    font-size: 1.25rem;
    margin: 0 0 0.35rem;
    padding-left: 0;
    border-left: none;
    text-align: center;
}

.team-role {
    color: var(--accent-red);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1.25rem;
}

.team-member p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
    text-align: left;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.highlight {
    color: var(--accent-red);
    font-weight: 600;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-muted);
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    z-index: 999;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.footer p {
    margin: 0;
    font-size: 0.8rem;
    text-align: center;
}

/* Language switcher */
.lang-switcher {
    position: fixed;
    bottom: 80px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(91, 109, 178, 0.9);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    z-index: 9999;
    transition: background 0.3s var(--ease), transform 0.2s var(--ease);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.lang-switcher:hover {
    background: rgba(187, 84, 84, 0.9);
    transform: scale(1.1);
}

.lang-text {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.lang-flag {
    width: 20px;
    height: 15px;
    margin-right: 0.5rem;
    border-radius: 2px;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1.25rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .content {
        margin: 1rem 0.75rem 2rem;
        padding: 2rem 1.25rem;
        border-radius: 12px;
    }

    .section h2 {
        font-size: 1.9rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-width: 280px;
        max-width: 280px;
    }

    .spec {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .product-hero,
    .product-feature,
    .scale-step {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .scale-step:nth-child(even) img {
        order: 0;
    }

    .product-hero-body h3 {
        font-size: 1.6rem;
    }

    .authorization {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1.25rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-photo {
        width: 120px;
        height: 120px;
    }

    .contact-item {
        flex-direction: column;
        gap: 0.15rem;
    }
}

/* Respect users who ask for less motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .wave-path {
        opacity: 0.35;
    }

    .reveal-word {
        opacity: 1;
        filter: none;
    }
}

/* --------------------------------------------------------------------------
   Inline links in body copy, and buttons that read as links (the cookie
   settings trigger in the footer and on the cookie policy page)
   -------------------------------------------------------------------------- */
.section p a,
.spec-desc a,
.link-button {
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px solid var(--border-accent);
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.section p a:hover,
.spec-desc a:hover,
.link-button:hover {
    color: var(--text);
    border-bottom-color: var(--accent-blue);
}

.link-button {
    font: inherit;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--border-accent);
    padding: 0;
    cursor: pointer;
}

.section p.page-meta {
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* The cookie links push the footer past one line on narrow screens, so lay
   its parts out as wrapping inline items instead of one long string. */
.footer p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.1rem 0.6rem;
    padding: 0 1rem;
}

.footer a,
.footer .link-button {
    color: var(--text-muted);
    font-size: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer a:hover,
.footer .link-button:hover {
    color: var(--text);
    border-bottom-color: var(--accent-blue);
}
