﻿/**
* ArmanTp — Home page (self-contained, RTL-native).
* Loaded only by Views/Home/Index.cshtml. Does not depend on style.css or Bootstrap.
*/

@import url('/fonts/Farsi-Digits/font-face-FD.css');

@font-face {
    font-family: Samim;
    src: url('/fonts/Samim.eot');
    src: url('/fonts/Samim.eot?#iefix') format('embedded-opentype'), url('/fonts/Samim.woff2') format('woff2'), url('/fonts/Samim.woff') format('woff'), url('/fonts/Samim.ttf') format('truetype');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: Samim-Bold;
    src: url('/fonts/Samim-Bold.eot');
    src: url('/fonts/Samim-Bold.eot?#iefix') format('embedded-opentype'), url('/fonts/Samim-Bold.woff2') format('woff2'), url('/fonts/Samim-Bold.woff') format('woff'), url('/fonts/Samim-Bold.ttf') format('truetype');
    font-weight: bold;
    font-display: swap;
}

/*--------------------------------------------------------------
# Design tokens
--------------------------------------------------------------*/
:root {
    --bg: #f5f9fb;
    --surface: #ffffff;
    --surface-2: #edf4f7;
    --ink: #0d2b3e;
    --ink-2: #37566a;
    --muted: #6b8394;
    --line: #e1eaf0;
    --brand: #0e9d9b;
    --brand-dark: #0a7a79;
    --brand-tint: rgba(14, 157, 155, .10);
    --deep: #0f3b57;
    --gold: #d1922a;
    --gold-tint: rgba(209, 146, 42, .12);
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-1: 0 1px 2px rgba(13, 43, 62, .04), 0 10px 28px -14px rgba(13, 43, 62, .18);
    --shadow-2: 0 30px 60px -30px rgba(13, 43, 62, .32);
    --header-h: 78px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --font: 'samim FD', 'Samim', Vazirmatn, Tahoma, sans-serif;
    --font-bold: 'Samim-Bold', 'samim FD', 'Samim', Vazirmatn, Tahoma, sans-serif;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 2;
    color: var(--ink-2);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-bold);
    color: var(--ink);
    line-height: 1.6;
    margin: 0;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--brand);
    text-decoration: none;
    transition: color .25s var(--ease);
}

a:hover { color: var(--brand-dark); }

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 20px;
}

.skip-link {
    position: fixed;
    inset-block-start: -100px;
    inset-inline-start: 16px;
    z-index: 999;
    background: var(--ink);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 10px 10px;
    transition: inset-block-start .2s var(--ease);
}

.skip-link:focus { inset-block-start: 0; color: #fff; }

/*--------------------------------------------------------------
# Scroll progress + preloader
--------------------------------------------------------------*/
.scroll-progress {
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: 0;
    height: 3px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: right center;
    background: linear-gradient(90deg, var(--brand), var(--gold));
    z-index: 1002;
    will-change: transform;
}

#preloader {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    background: var(--bg);
    transition: opacity .5s var(--ease), visibility .5s var(--ease);
}

#preloader.is-done { opacity: 0; visibility: hidden; }

.ecg {
    width: 190px;
    height: 60px;
    overflow: visible;
}

.ecg path {
    fill: none;
    stroke: var(--brand);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    animation: ecg-draw 1.6s var(--ease) infinite;
}

@keyframes ecg-draw {
    0%   { stroke-dashoffset: 320; }
    55%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -320; }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: transparent;
    transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}

.site-header.is-stuck {
    height: 66px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 var(--line), 0 12px 30px -22px rgba(13, 43, 62, .5);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.logo {
    font-family: var(--font-bold);
    font-size: 26px;
    color: var(--ink);
    letter-spacing: -.5px;
    white-space: nowrap;
}

.logo:hover { color: var(--ink); }
.logo span { color: var(--brand); }

.logo-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    margin-inline-start: 3px;
    vertical-align: 4px;
    animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.5); opacity: .5; }
}

.nav {
    margin-inline-start: auto;
    position: relative;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.nav a {
    display: block;
    position: relative;
    z-index: 1; /* keep the label above the sliding pill */
    padding: 8px 16px;
    font-size: 15px;
    color: var(--ink-2);
    border-radius: 999px;
    transition: color .3s var(--ease);
}

.nav a:hover, .nav a.active { color: var(--ink); }

/* Sliding pill that tracks the active/hovered nav item.
   Anchored with physical top/left because it is driven by offsetLeft, which is
   also physical. Without an explicit `left` it would fall back to its static
   position — the far edge of the RTL flex row — and translate from there. */
.nav-pill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 999px;
    background: var(--brand-tint);
    transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s var(--ease);
    opacity: 0;
    pointer-events: none;
}

.nav-pill.is-on { opacity: 1; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border: 0;
    border-radius: 999px;
    font-family: var(--font-bold);
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(14, 157, 155, .9);
}

.btn-primary:hover {
    color: #fff;
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -14px rgba(14, 157, 155, .95);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn-ghost:hover {
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1.5px var(--brand);
}

.btn i { font-size: 18px; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    font-size: 28px;
    color: var(--ink);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/
.section { padding: 100px 0; }
.section-alt { background: var(--surface); }

.section-head {
    max-width: 660px;
    margin: 0 auto 60px;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--brand-tint);
    color: var(--brand-dark);
    font-size: 13px;
    font-family: var(--font-bold);
    line-height: 1.8;
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 14px;
}

.section-head p {
    color: var(--muted);
    font-size: 17px;
}

.text-brand { color: var(--brand); }
.text-gold { color: var(--gold); }

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.hero {
    position: relative;
    padding-block: calc(var(--header-h) + 70px) 150px;
    overflow: hidden;
    background: var(--surface);
}

/* Soft drifting colour fields — the only ambient motion on the page. */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
    pointer-events: none;
    will-change: transform;
}

.hero-blob-1 {
    width: 520px; height: 520px;
    background: rgba(14, 157, 155, .28);
    inset-block-start: -180px;
    inset-inline-end: -120px;
    animation: drift-a 18s ease-in-out infinite alternate;
}

.hero-blob-2 {
    width: 420px; height: 420px;
    background: rgba(209, 146, 42, .20);
    inset-block-end: -160px;
    inset-inline-start: -100px;
    animation: drift-b 22s ease-in-out infinite alternate;
}

@keyframes drift-a {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(-60px, 50px, 0) scale(1.12); }
}

@keyframes drift-b {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(70px, -40px, 0) scale(1.08); }
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 100%);
    opacity: .55;
    pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 60px;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.35;
    margin-bottom: 20px;
}

/* Word-by-word rise. Each word stays a single token so Persian shaping is intact. */
.word {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.word > span {
    display: inline-block;
    transform: translateY(105%);
    animation: word-rise .9s var(--ease) forwards;
    animation-delay: var(--d, 0s);
}

@keyframes word-rise { to { transform: translateY(0); } }

.hero-lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--muted);
}

.hero-trust i { color: var(--brand); font-size: 20px; }

/* Hero visual: one main product card with two orbiting mini cards. */
.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
}

.hero-ring {
    position: absolute;
    inset: 6%;
    border: 1.5px dashed #c3d6e0;
    border-radius: 50%;
    animation: spin 60s linear infinite;
}

.hero-ring::after {
    content: "";
    position: absolute;
    inset-block-start: -7px;
    inset-inline-start: calc(50% - 7px);
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 5px var(--gold-tint);
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-card {
    position: relative;
    z-index: 2;
    width: 66%;
    padding: 22px;
    border-radius: 26px;
    background: var(--surface);
    box-shadow: var(--shadow-2);
    animation: float-y 6s ease-in-out infinite;
}

.hero-card img { border-radius: 14px; }

.hero-chip {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-1);
    font-size: 13px;
    font-family: var(--font-bold);
    color: var(--ink);
    line-height: 1.7;
    white-space: nowrap;
}

.hero-chip i { font-size: 20px; color: var(--brand); }

.hero-chip-1 {
    inset-block-start: 12%;
    inset-inline-start: 0;
    animation: float-y 5s ease-in-out infinite .4s;
}

.hero-chip-2 {
    inset-block-end: 14%;
    inset-inline-end: 2%;
    animation: float-y 5.6s ease-in-out infinite .9s;
}

.hero-chip-2 i { color: var(--gold); }

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

/*--------------------------------------------------------------
# Stats
--------------------------------------------------------------*/
.stats { background: var(--bg); padding-bottom: 100px; }

/* Lifted so the card straddles the hero/stats seam. It needs its own stacking
   position: .hero is `position: relative`, so it would otherwise paint over
   this in-flow card and hide the numbers. */
.stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: -70px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-2);
}

.stat {
    background: var(--surface);
    padding: 32px 20px;
    text-align: center;
    transition: background .3s var(--ease);
}

.stat:hover { background: var(--bg); }

.stat-num {
    font-family: var(--font-bold);
    font-size: clamp(30px, 3.4vw, 44px);
    color: var(--ink);
    line-height: 1.3;
}

.stat-num small { font-size: .55em; color: var(--brand); }
.stat-label { font-size: 14px; color: var(--muted); }

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* z-index:0 makes this a stacking context, so the -1 decoration below stays
   inside it instead of painting behind the section background. */
.about-media { position: relative; z-index: 0; }

.about-media img {
    width: 100%;
    padding: 26px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-2);
}

.about-media::before {
    content: "";
    position: absolute;
    inset-block-end: -18px;
    inset-inline-start: -18px;
    width: 130px; height: 130px;
    border-radius: var(--radius);
    background: var(--brand-tint);
    z-index: -1;
}

.badge-year {
    position: absolute;
    inset-block-start: 20px;
    inset-inline-end: 20px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--font-bold);
    font-size: 14px;
    color: var(--ink);
    box-shadow: var(--shadow-1);
}

.about-body h3 {
    font-size: clamp(20px, 2.4vw, 27px);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-body p { color: var(--muted); margin-bottom: 26px; }

.about-list li {
    position: relative;
    padding-inline-start: 38px;
    margin-bottom: 18px;
    color: var(--ink-2);
    font-size: 15px;
}

.about-list li > i {
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 6px;
    display: grid;
    place-items: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand-dark);
    font-size: 14px;
    line-height: 1;
}

/*--------------------------------------------------------------
# Brands marquee
--------------------------------------------------------------*/
.marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
    direction: ltr; /* keep the translate math independent of page direction */
    display: flex;
    width: max-content;
    animation: marquee 32s linear infinite;
}

/* Spacing lives on the chips, not as a track gap: translateX(-50%) must land
   exactly on the start of the cloned group, and a track gap would offset it. */
.marquee-group { display: flex; }

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.brand-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-inline-end: 18px;
    padding: 18px 34px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-family: var(--font-bold);
    font-size: 18px;
    color: var(--ink-2);
    white-space: nowrap;
    transition: color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}

.brand-chip:hover {
    color: var(--brand-dark);
    border-color: var(--brand);
    transform: translateY(-3px);
}

.brand-chip i { color: var(--gold); font-size: 20px; }

/*--------------------------------------------------------------
# Features
--------------------------------------------------------------*/
.features-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.features-media {
    position: relative;
    min-height: 460px;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-2);
    overflow: hidden;
}

.features-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, rgba(15, 59, 87, .12), rgba(14, 157, 155, .38));
}

.feature {
    display: flex;
    gap: 20px;
    padding: 22px;
    border-radius: var(--radius-sm);
    transition: background .3s var(--ease), transform .3s var(--ease);
}

.feature:hover { background: var(--surface); transform: translateX(-6px); }
.section-alt .feature:hover { background: var(--bg); }

.feature-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--brand-tint);
    color: var(--brand-dark);
    font-size: 24px;
    transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}

.feature:hover .feature-icon {
    background: var(--brand);
    color: #fff;
    transform: rotate(-6deg) scale(1.06);
}

.feature h4 { font-size: 18px; margin-bottom: 4px; }
.feature p { font-size: 15px; color: var(--muted); line-height: 1.9; }

/*--------------------------------------------------------------
# Products
--------------------------------------------------------------*/
.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 44px;
}

.filter {
    padding: 10px 24px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-family: var(--font-bold);
    font-size: 14px;
    color: var(--ink-2);
    cursor: pointer;
    transition: all .3s var(--ease);
}

.filter:hover { border-color: var(--brand); color: var(--brand-dark); }

.filter.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 10px 22px -12px rgba(14, 157, 155, .9);
}

.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease), opacity .3s var(--ease);
}

/* Hidden by the filter; kept in the DOM so the FLIP transition can measure it. */
.product.is-hidden { display: none; }

.product:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: var(--shadow-2);
}

.product-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #fff;
}

/* `contain`, not `cover`: these are studio shots on white, and cropping a tall
   product (the X4 humidifier) makes it unrecognisable in a catalogue grid. */
.product-media img {
    width: 100%; height: 100%;
    padding: 18px;
    object-fit: contain;
    transition: transform .7s var(--ease);
}

.product:hover .product-media img { transform: scale(1.07); }

/* Gold sheen that sweeps across the image on hover. */
.product-media::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-18deg);
    transition: inset-inline-start .8s var(--ease);
}

.product:hover .product-media::after { inset-inline-start: 130%; }

.product-tag {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-start: 14px;
    z-index: 2;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 12px;
    font-family: var(--font-bold);
    color: var(--ink);
    line-height: 1.9;
}

.product-zoom {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-end: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    font-size: 18px;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .35s var(--ease), transform .35s var(--ease), background .25s var(--ease), color .25s var(--ease);
}

.product:hover .product-zoom { opacity: 1; transform: scale(1); }
.product-zoom:hover { background: var(--brand); color: #fff; }

.product-body { padding: 22px 22px 26px; border-top: 1px solid var(--line); }

.product-body h4 {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 8px;
    transition: color .3s var(--ease);
}

.product:hover .product-body h4 { color: var(--brand-dark); }

.product-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}

.product-cat::before {
    content: "";
    width: 16px; height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.contact-card {
    position: relative;
    padding: 34px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.section-alt .contact-card { background: var(--bg); }

.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }

.contact-card::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--gold));
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .5s var(--ease);
}

.contact-card:hover::before { transform: scaleX(1); }

.contact-icon {
    display: grid;
    place-items: center;
    width: 54px; height: 54px;
    border-radius: 16px;
    background: var(--brand-tint);
    color: var(--brand-dark);
    font-size: 24px;
    margin-bottom: 18px;
    transition: transform .4s var(--ease);
}

.contact-card:hover .contact-icon { transform: scale(1.08) rotate(-5deg); }

.contact-card h4 { font-size: 17px; margin-bottom: 10px; }
.contact-card p, .contact-card a { font-size: 15px; color: var(--muted); line-height: 2.1; }
.contact-card a:hover { color: var(--brand); }
.contact-card bdi { direction: ltr; }

/*--------------------------------------------------------------
# CTA banner
--------------------------------------------------------------*/
.cta {
    position: relative;
    padding: 60px;
    border-radius: 26px;
    background: linear-gradient(120deg, var(--deep), var(--brand-dark));
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

/* Gold needs a high alpha here: blurred at low opacity over teal it reads olive. */
.cta::before {
    content: "";
    position: absolute;
    inset-block-start: -140px;
    inset-inline-end: -90px;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 178, 74, .75), rgba(233, 178, 74, 0) 70%);
    filter: blur(40px);
    animation: drift-a 16s ease-in-out infinite alternate;
}

.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.cta p { color: rgba(255, 255, 255, .8); }

.cta .btn {
    background: #fff;
    color: var(--deep);
    box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .6);
}

.cta .btn:hover { background: var(--gold); color: #fff; }

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .62);
    padding-top: 70px;
    font-size: 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer h3 { color: #fff; font-size: 24px; margin-bottom: 16px; }
.footer h3 span { color: var(--brand); }
.footer h4 { color: #fff; font-size: 17px; margin-bottom: 20px; }
.footer p { line-height: 2.2; }
.footer strong { color: rgba(255, 255, 255, .85); font-family: var(--font-bold); font-weight: normal; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .62);
    transition: color .3s var(--ease), gap .3s var(--ease);
}

.footer-links a:hover { color: var(--gold); gap: 14px; }
.footer-links i { color: var(--brand); font-size: 12px; }

.social {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.social a {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    font-size: 18px;
    transition: background .3s var(--ease), transform .3s var(--ease);
}

.social a:hover { background: var(--brand); color: #fff; transform: translateY(-3px); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 26px 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
}

.footer-bottom a { color: var(--gold); }

/*--------------------------------------------------------------
# Back to top (progress ring)
--------------------------------------------------------------*/
.to-top {
    position: fixed;
    inset-block-end: 28px;
    inset-inline-end: 28px; /* bottom-left in RTL */
    z-index: 999;
    width: 52px; height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}

.to-top.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: var(--brand); }
.to-top i { font-size: 22px; position: relative; z-index: 1; }

.to-top svg {
    position: absolute;
    inset: 0;
    width: 52px; height: 52px;
    transform: rotate(-90deg);
}

.to-top circle {
    fill: none;
    stroke: var(--brand);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 151; /* 2 * PI * r(24) */
    stroke-dashoffset: 151;
    transition: stroke-dashoffset .1s linear;
}

/*--------------------------------------------------------------
# Scroll reveal
--------------------------------------------------------------*/
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="zoom"]  { transform: scale(.94); }

[data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 991px) {
    .hero-grid, .about-grid, .features-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { max-width: 460px; margin-inline: auto; }
    .about-media { order: -1; }
    .products { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta { padding: 44px 32px; }

    .nav-toggle { display: block; order: 3; margin-inline-start: auto; }
    .header-inner .btn-primary { display: none; }

    .nav {
        position: fixed;
        inset: 0;
        margin: 0;
        background: rgba(255, 255, 255, .97);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: grid;
        place-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity .35s var(--ease), visibility .35s;
    }

    .nav.is-open { opacity: 1; visibility: visible; }

    .nav ul { flex-direction: column; gap: 10px; }
    .nav a { font-size: 22px; padding: 12px 30px; }
    .nav-pill { display: none; }
}

@media (max-width: 600px) {
    :root { --header-h: 66px; }
    .section { padding: 70px 0; }
    .section-head { margin-bottom: 44px; }
    .products, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-chip { font-size: 12px; padding: 9px 12px; }
    .cta { padding: 36px 24px; text-align: center; justify-content: center; }
    .footer-bottom { justify-content: center; text-align: center; }
    .to-top { inset-block-end: 18px; inset-inline-end: 18px; }
    .stats-grid { margin-top: -50px; }
}

/*--------------------------------------------------------------
# Reduced motion — strip everything ambient, keep the page usable
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    [data-reveal] { opacity: 1; transform: none; }
    .word > span { transform: none; }
    .hero-blob, .hero-ring { display: none; }
}
