:root {
    --ink: #10222a;
    --teal: #0d3b3a;
    --teal-mid: #1f6b66;
    --teal-soft: #d7ebe8;
    --sand: #e8f0f1;
    --copper: #c45c26;
    --copper-deep: #9e4318;
    --mist: #e4ecef;
    --white: #ffffff;
    --text: #1c2a2e;
    --muted: #5a6b70;
    --line: rgba(16, 34, 42, 0.12);
    --radius: 18px;
    --shadow: 0 18px 40px rgba(16, 34, 42, 0.08);
    --font-display: "Space Grotesk", sans-serif;
    --font-body: "Source Sans 3", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 90% -10%, rgba(31, 107, 102, 0.16), transparent 60%),
        radial-gradient(900px 500px at -10% 20%, rgba(196, 92, 38, 0.1), transparent 55%),
        linear-gradient(180deg, #eef4f5 0%, var(--mist) 45%, #e8f1f2 100%);
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--teal-mid);
    text-decoration: none;
}

a:hover {
    color: var(--copper);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    background: rgba(238, 244, 245, 0.88);
    border-bottom: 1px solid var(--line);
}

.navbar {
    padding: 0.85rem 0;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink) !important;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.brand-logo {
    width: 2.75rem;
    height: 2.75rem;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 50%;
    background: var(--white);
}

.brand-text {
    font-size: 1.2rem;
    line-height: 1.2;
    white-space: nowrap;
}

.brand-text .brand-tech {
    color: var(--teal-mid);
}

.nav-link {
    color: var(--text) !important;
    font-weight: 600;
    padding: 0.5rem 0.85rem !important;
}

.nav-link.active,
.nav-link:hover {
    color: var(--teal) !important;
}

.nav-external::after {
    content: "↗";
    margin-left: 0.35rem;
    font-size: 0.85em;
}

.btn-nav,
.btn-primary-brand,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 0.7rem;
    font-weight: 700;
    padding: 0.7rem 1.15rem;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-nav,
.btn-primary-brand {
    background: var(--copper);
    color: var(--white) !important;
}

.btn-nav:hover,
.btn-primary-brand:hover {
    background: var(--copper-deep);
    color: var(--white) !important;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(16, 34, 42, 0.2);
    color: var(--ink) !important;
}

.btn-ghost:hover {
    border-color: var(--teal);
    color: var(--teal) !important;
}

.navbar-toggler {
    border: 1px solid var(--line);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero */
.hero {
    position: relative;
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(15, 40, 42, 0.88) 0%, rgba(15, 40, 42, 0.55) 42%, rgba(15, 40, 42, 0.2) 100%),
        url("../img/hero.jpg") center/cover no-repeat,
        linear-gradient(135deg, #0d3b3a 0%, #1f6b66 45%, #24424a 100%);
    animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    padding: 5.5rem 0 4.5rem;
    width: 100%;
    display: flex;
    align-items: flex-end;
}

.hero-brand-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1.25rem;
    animation: riseIn 0.8s ease both;
}

.hero-logo {
    width: clamp(4.25rem, 10vw, 6rem);
    height: clamp(4.25rem, 10vw, 6rem);
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.hero-brand {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4.8vw, 3.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
    white-space: nowrap;
}

.hero-brand span {
    color: #f0c4a8;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.8vw, 1.9rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.25;
    margin: 0 0 0.85rem;
    max-width: 22ch;
    animation: riseIn 0.8s ease 0.1s both;
}

.hero-lead {
    font-size: 1.1rem;
    line-height: 1.55;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 1.75rem;
    animation: riseIn 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    animation: riseIn 0.8s ease 0.3s both;
}

.hero .btn-primary-brand {
    background: var(--copper);
}

.hero .btn-ghost {
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--white) !important;
}

.hero .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white) !important;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-tight {
    padding: 3.5rem 0;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-mid);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-size: clamp(1.8rem, 3.5vw, 2.7rem);
    color: var(--ink);
    margin: 0 0 0.85rem;
    max-width: 16ch;
}

.section-text {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.65;
    max-width: 38rem;
    margin: 0;
}

/* Services carousel */
.services-carousel {
    margin-top: 2.5rem;
}

.services-carousel-viewport {
    overflow: hidden;
}

.services-carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 85%);
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.25rem 0.15rem 1rem;
    scrollbar-width: none;
}

.services-carousel-track::-webkit-scrollbar {
    display: none;
}

.service-card {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 2px);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(16, 34, 42, 0.12);
}

.service-card-media {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--teal);
}

.service-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.service-card:hover .service-card-media img {
    transform: scale(1.04);
}

.service-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.35rem 1.35rem 1.5rem;
    flex: 1;
}

.service-card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--ink);
    margin: 0;
}

.service-card-text {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
}

.service-card-link {
    font-weight: 700;
    color: var(--copper) !important;
    width: fit-content;
}

.service-card-link:hover {
    color: var(--copper-deep) !important;
}

.services-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.carousel-nav-btn {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.75rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.85);
    color: var(--ink);
    font-size: 1.15rem;
    line-height: 1;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.carousel-nav-btn:hover:not(:disabled) {
    border-color: var(--teal-mid);
    color: var(--teal);
}

.carousel-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.services-carousel-dots {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.carousel-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(16, 34, 42, 0.2);
    cursor: pointer;
}

.carousel-dot.is-active {
    background: var(--teal-mid);
    width: 1.25rem;
}

@media (min-width: 768px) {
    .services-carousel-track {
        grid-auto-columns: calc((100% - 1.25rem) / 2);
        gap: 1.25rem;
    }
}

@media (min-width: 1100px) {
    .services-carousel-track {
        grid-auto-columns: calc((100% - 2.5rem) / 3);
        gap: 1.25rem;
    }
}

.product-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.product-row {
    display: grid;
    grid-template-columns: 1.1fr 2fr auto;
    gap: 1.25rem;
    align-items: start;
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
    transition: transform 0.25s ease;
}

.product-row:last-child {
    border-bottom: 1px solid var(--line);
}

.product-row:hover {
    transform: translateX(4px);
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 0.2rem;
}

.product-category {
    color: var(--teal-mid);
    font-weight: 600;
    font-size: 0.95rem;
}

.product-summary {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.product-status {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--copper-deep);
    white-space: nowrap;
}

.panel {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature-item h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.55rem;
    color: var(--ink);
}

.feature-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.cta-band {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--radius) + 4px);
    background:
        linear-gradient(120deg, rgba(13, 59, 58, 0.95), rgba(31, 107, 102, 0.88)),
        linear-gradient(135deg, #0d3b3a, #24424a);
    color: var(--white);
    padding: 2.75rem;
    display: grid;
    grid-template-columns: 1.6fr auto;
    gap: 1.5rem;
    align-items: center;
}

.cta-band::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -80px;
    bottom: -100px;
    border-radius: 50%;
    background: rgba(196, 92, 38, 0.28);
    animation: pulseSoft 5s ease-in-out infinite;
}

.cta-band h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.6rem;
    position: relative;
    z-index: 1;
}

.cta-band p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    max-width: 40rem;
    position: relative;
    z-index: 1;
}

.cta-band .btn-primary-brand {
    position: relative;
    z-index: 1;
    background: var(--white);
    color: var(--teal) !important;
}

.cta-band .btn-primary-brand:hover {
    background: var(--sand);
    color: var(--ink) !important;
}

/* Page hero (inner) */
.page-hero {
    padding: 4.5rem 0 2rem;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 0.8rem;
}

.page-hero p {
    margin: 0;
    color: var(--muted);
    font-size: 1.15rem;
    max-width: 40rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
}

.form-control,
.form-select {
    border-radius: 0.75rem;
    border-color: rgba(16, 34, 42, 0.16);
    padding: 0.8rem 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--teal-mid);
    box-shadow: 0 0 0 0.2rem rgba(31, 107, 102, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--ink);
}

.alert-success-brand {
    background: var(--teal-soft);
    border: 1px solid rgba(31, 107, 102, 0.25);
    color: var(--teal);
    border-radius: 0.85rem;
}

.alert-error-brand {
    background: #fde8df;
    border: 1px solid rgba(196, 92, 38, 0.3);
    color: var(--copper-deep);
    border-radius: 0.85rem;
}

.contact-meta p {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.6;
}

.contact-meta a {
    font-weight: 700;
}

/* Footer */
.site-footer {
    margin-top: 2rem;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.55);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 2rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--ink);
    margin: 0 0 0.5rem;
}

.footer-brand img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    border-radius: 50%;
    background: var(--white);
}

.footer-copy,
.footer-label {
    color: var(--muted);
}

.footer-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
}

.footer-grid a {
    display: block;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.footer-grid a:hover {
    color: var(--copper);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroDrift {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

@keyframes pulseSoft {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

@media (max-width: 991.98px) {
    .hero-content {
        padding: 4.5rem 0 3.5rem;
    }

    .product-row,
    .feature-grid,
    .cta-band,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .product-status {
        justify-self: start;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .navbar-collapse {
        padding-top: 1rem;
    }

    .btn-nav {
        margin-top: 0.5rem;
        width: fit-content;
    }
}

@media (max-width: 575.98px) {
    .section {
        padding: 3.5rem 0;
    }

    .cta-band,
    .panel {
        padding: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
