/* ==========================================================================
   InfansysTech - Design System
   Light premium technology aesthetic. Brand accent derived from the
   InfansysTech logo (deep navy ground + cyan/teal mark).
   ========================================================================== */

:root {
    /* Surfaces */
    --background: #FBFBF9;
    --surface: #FFFFFF;
    --surface-alt: #F4F6F5;
    --surface-tint: #EDF5F3;
    --surface-sunken: #E9EFEE;

    /* Ink */
    --navy-950: #05141C;
    --navy-900: #082029;
    --navy-800: #0D2E39;
    --navy-700: #14424F;

    --text-primary: #0C1F2A;
    --text-secondary: #53656F;
    --text-muted: #63727A;
    --text-on-dark: #E9F1F1;
    --text-on-dark-soft: #9BB2B6;

    /* Lines */
    --border: #E4E8E7;
    --border-strong: #D2DAD8;
    --border-dark: rgba(154, 214, 206, 0.16);

    /* Brand */
    --primary: #0C7D73;
    --primary-dark: #075E56;
    --primary-soft: #E2F1EE;
    --primary-softer: #F2F9F7;
    --accent: #2DE0CE;
    --violet: #7C6BF5;

    /* Typography */
    --font-display: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --fs-display: clamp(2.4rem, 1.1rem + 2.9vw, 3.35rem);
    --fs-h2: clamp(1.9rem, 1.25rem + 2vw, 2.9rem);
    --fs-h3: clamp(1.15rem, 1.05rem + 0.35vw, 1.375rem);
    --fs-lead: clamp(1.03rem, 0.97rem + 0.3vw, 1.2rem);
    --fs-body: 1rem;
    --fs-sm: 0.9375rem;
    --fs-xs: 0.8125rem;
    --fs-label: 0.75rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 2.5rem;
    --space-8: 3rem;
    --space-9: 4rem;
    --space-10: 5rem;
    --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);

    /* Radii */
    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;

    /* Elevation */
    --shadow-xs: 0 1px 2px rgba(12, 31, 42, 0.05);
    --shadow-sm: 0 2px 10px -3px rgba(12, 31, 42, 0.09);
    --shadow-md: 0 14px 30px -16px rgba(12, 31, 42, 0.22);
    --shadow-lg: 0 32px 64px -32px rgba(12, 31, 42, 0.3);
    --shadow-primary: 0 10px 24px -12px rgba(12, 125, 115, 0.55);

    --ring: 0 0 0 3px rgba(12, 125, 115, 0.28);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

    --container: 1200px;
    --container-wide: 1320px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.65;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.022em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

img,
svg,
picture {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

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

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: var(--r-xs);
}

section {
    position: relative;
}

section[id] {
    scroll-margin-top: 90px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 2000;
    padding: 0.75rem 1.25rem;
    background: var(--navy-900);
    color: #fff;
    border-radius: var(--r-sm);
    font-weight: 600;
    transition: top 0.2s var(--ease);
}

.skip-link:focus {
    top: 1rem;
}

/* ==========================================================================
   Shared type components
   ========================================================================== */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: var(--space-4);
}

/* Corner-bracket mark echoing the logo */
.eyebrow-mark {
    width: 14px;
    height: 10px;
    border: 2px solid currentColor;
    border-right: 0;
    border-radius: 2px 0 0 2px;
    opacity: 0.85;
}

.eyebrow--light {
    color: var(--accent);
}

.section-header {
    max-width: 44rem;
    margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.section-header--split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: end;
    max-width: none;
    padding-bottom: clamp(1.5rem, 2.5vw, 2.25rem);
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: var(--fs-h2);
    font-weight: 700;
    max-width: 20ch;
}

.section-subtitle {
    font-size: var(--fs-lead);
    color: var(--text-secondary);
    max-width: 30rem;
}

.section-index {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-left: clamp(0rem, 2vw, 2rem);
}

.section-index li {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.section-index li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.section-index span {
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--primary);
    border-bottom: 1px solid transparent;
    transition: gap 0.25s var(--ease), border-color 0.25s var(--ease);
}

.text-link:hover {
    gap: 0.8rem;
    border-bottom-color: currentColor;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-primary,
.btn-secondary,
.btn-accent,
.btn-signup,
.submit-button {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--fs-sm);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
                border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
                transform 0.25s var(--ease);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.75rem;
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -14px rgba(12, 125, 115, 0.65);
}

.btn-primary svg {
    transition: transform 0.25s var(--ease);
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.75rem;
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    background: var(--accent);
    color: var(--navy-950);
    font-weight: 700;
}

.btn-accent:hover {
    background: #5CEDDE;
    transform: translateY(-2px);
}

.btn-accent svg {
    transition: transform 0.25s var(--ease);
}

.btn-accent:hover svg {
    transform: translateX(3px);
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(251, 251, 249, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
                box-shadow 0.3s var(--ease);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: var(--border);
    box-shadow: 0 8px 24px -20px rgba(12, 31, 42, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-5);
    min-height: 74px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-primary);
}

.logo-img {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.logo-text span {
    color: var(--primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2.75rem);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.2vw, 2rem);
}

.nav-link {
    position: relative;
    display: inline-block;
    padding: 0.35rem 0;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.25s var(--ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Contact address lives in the mobile panel; the desktop bar stays uncluttered */
.btn-signin {
    display: none;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-signin:hover {
    color: var(--primary);
}

.btn-signup {
    padding: 0.7rem 1.4rem;
    background: var(--navy-900);
    color: #fff;
    box-shadow: var(--shadow-xs);
}

.btn-signup:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 9px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    padding: calc(74px + clamp(3.5rem, 7vw, 7rem)) 0 clamp(4rem, 7vw, 7rem);
    overflow: hidden;
    background:
        radial-gradient(1200px 520px at 78% 10%, rgba(45, 224, 206, 0.18), transparent 62%),
        radial-gradient(820px 420px at 6% 55%, rgba(124, 107, 245, 0.09), transparent 62%),
        linear-gradient(180deg, #FFFFFF 0%, var(--surface-tint) 45%, #FFFFFF 100%);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(12, 31, 42, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(12, 31, 42, 0.045) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: radial-gradient(900px 560px at 60% 30%, #000 10%, transparent 78%);
    -webkit-mask-image: radial-gradient(900px 560px at 60% 30%, #000 10%, transparent 78%);
}

.hero-container {
    position: relative;
    max-width: var(--container-wide);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2.5rem, 4vw, 4rem);
    align-items: center;
}

.hero-content {
    max-width: 44rem;
}

.hero-title {
    font-size: var(--fs-display);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.07;
    margin-bottom: var(--space-5);
    text-wrap: balance;
}

.hero-title em {
    font-style: normal;
    color: var(--primary);
}

.hero-description {
    font-size: var(--fs-lead);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 33rem;
    margin-bottom: var(--space-7);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: center;
}

.hero-meta {
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border);
    font-size: var(--fs-sm);
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.hero-meta a {
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-strong);
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.hero-meta a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Hero visual ------------------------------------------------------------ */

.hero-visual {
    position: relative;
}

.bracket-frame {
    position: relative;
    padding: clamp(1.25rem, 2.5vw, 2rem);
}

.bracket-frame::before,
.bracket-frame::after {
    content: '';
    position: absolute;
    width: clamp(56px, 8vw, 84px);
    height: clamp(56px, 8vw, 84px);
    border: 2px solid var(--primary);
    opacity: var(--bracket-opacity, 0.4);
    border-radius: 4px;
}

.bracket-frame::before {
    top: 0;
    left: 0;
    border-right: 0;
    border-bottom: 0;
}

.bracket-frame::after {
    right: 0;
    bottom: 0;
    border-left: 0;
    border-top: 0;
}

.hv-panel {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hv-diagram {
    width: 100%;
    height: auto;
}

.hv-chips {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: -1.75rem 0 0 clamp(0.5rem, 2vw, 1.5rem);
    padding: 0.85rem 1rem;
    width: fit-content;
    background: var(--navy-900);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
}

.hv-chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--text-on-dark);
    white-space: nowrap;
}

.hv-chips .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ==========================================================================
   Services  (white)
   ========================================================================== */

.services {
    padding: var(--section-y) 0;
    background: var(--surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.75rem);
}

.service-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    padding: clamp(1.75rem, 2.5vw, 2.25rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
                transform 0.3s var(--ease);
}

.service-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--space-5);
    margin-bottom: var(--space-5);
    border-bottom: 1px solid var(--border);
}

.service-number {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: var(--r-sm);
    background: var(--primary-softer);
    color: var(--primary);
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #fff;
}

.service-title {
    font-size: var(--fs-h3);
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.service-description {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-5);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: var(--space-6);
}

.service-tags li {
    padding: 0.28rem 0.65rem;
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface-alt);
    border-radius: 999px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--primary);
    transition: gap 0.25s var(--ease);
}

.service-card:hover .service-link {
    gap: 0.8rem;
}

/* ==========================================================================
   Why Us  (off-white, asymmetric)
   ========================================================================== */

.features {
    padding: var(--section-y) 0;
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.features-title {
    font-size: var(--fs-h2);
    font-weight: 700;
    margin-bottom: var(--space-5);
    max-width: 16ch;
}

.features-description {
    font-size: var(--fs-lead);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 34rem;
    margin-bottom: var(--space-6);
}

/* Layered visual */
.fv-stack {
    position: relative;
    aspect-ratio: 5 / 4;
    max-width: 460px;
    margin-left: auto;
}

.fv-layer {
    position: absolute;
    border-radius: var(--r-lg);
}

.fv-layer--back {
    inset: 0 12% 14% 0;
    background: linear-gradient(140deg, var(--primary) 0%, var(--navy-800) 100%);
    opacity: 0.12;
    transform: rotate(-4deg);
}

.fv-layer--mid {
    inset: 8% 4% 6% 8%;
    background: var(--surface);
    border: 1px solid var(--border);
    transform: rotate(3deg);
}

.fv-layer--front {
    inset: 14% 0 0 14%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--navy-900);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.fv-logo {
    width: clamp(72px, 14vw, 104px);
    height: auto;
    border-radius: var(--r-md);
}

.fv-caption {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-on-dark);
}

/* Feature list */
.features-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.75rem);
    padding-top: clamp(2rem, 3vw, 3rem);
    border-top: 1px solid var(--border-strong);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
}

.feature-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--r-xs);
    background: var(--primary);
    color: #fff;
}

.feature-item h3 {
    font-size: 1.0625rem;
    font-weight: 700;
}

.feature-item p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   Assurance  (dark contrast band)
   ========================================================================== */

.assurance > .container {
    transform: translateY(var(--band-shift, 0px));
}

.assurance {
    padding: var(--section-y) 0;
    background:
        radial-gradient(900px 420px at 85% 0%, rgba(45, 224, 206, 0.14), transparent 60%),
        radial-gradient(700px 400px at 5% 100%, rgba(124, 107, 245, 0.16), transparent 62%),
        var(--navy-950);
    color: var(--text-on-dark);
}

.assurance-head {
    max-width: 46rem;
    margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.assurance-title {
    font-size: var(--fs-h2);
    font-weight: 700;
    color: #fff;
}

.assurance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.assurance-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding: clamp(1.75rem, 2.5vw, 2.25rem);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-dark);
    border-radius: var(--r-lg);
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
                transform 0.3s var(--ease);
}

.assurance-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(154, 214, 206, 0.32);
    transform: translateY(-4px);
}

.assurance-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: var(--space-2);
    border-radius: var(--r-sm);
    background: rgba(45, 224, 206, 0.12);
    color: var(--accent);
}

.assurance-card h3 {
    font-size: var(--fs-h3);
    font-weight: 700;
    color: #fff;
}

.assurance-card p {
    font-size: var(--fs-sm);
    color: var(--text-on-dark-soft);
    line-height: 1.7;
}

.assurance-card--cta {
    background: linear-gradient(150deg, rgba(45, 224, 206, 0.16) 0%, rgba(12, 125, 115, 0.1) 100%);
    border-color: rgba(45, 224, 206, 0.28);
    justify-content: center;
}

.assurance-card--cta .btn-accent {
    margin-top: var(--space-4);
}

/* ==========================================================================
   Contact  (light tinted)
   ========================================================================== */

.contact {
    padding: var(--section-y) 0;
    background: linear-gradient(180deg, var(--surface-tint) 0%, var(--background) 70%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-xs);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.contact-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: var(--r-xs);
    background: var(--primary-softer);
    color: var(--primary);
}

.contact-card h3 {
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.contact-card a {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-primary);
    overflow-wrap: anywhere;
    transition: color 0.25s var(--ease);
}

.contact-card > div {
    min-width: 0;
}

.contact-card a + a {
    margin-top: 0.2rem;
}

.contact-card a:hover {
    color: var(--primary);
}

/* Form */
.contact-form {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-group {
    margin-bottom: var(--space-5);
}

.form-row .form-group {
    margin-bottom: var(--space-5);
}

.form-group label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.required {
    color: #C2410C;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: inherit;
    font-size: var(--fs-sm);
    color: var(--text-primary);
    background: var(--background);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
                background-color 0.25s var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--primary);
    box-shadow: var(--ring);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem;
    font-size: var(--fs-body);
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-primary);
}

.submit-button:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.submit-button svg {
    transition: transform 0.25s var(--ease);
}

.submit-button:hover:not(:disabled) svg {
    transform: translateX(3px);
}

.submit-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.submit-button .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-message {
    margin-top: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: #ECFBF5;
    color: #0A6B4B;
    border: 1px solid #B6E7D4;
}

.form-message.error {
    display: block;
    background: #FEF1F0;
    color: #9B1C1C;
    border: 1px solid #F5C6C4;
}

/* Inline, per-field validation message */
.field-error {
    display: none;
    margin-top: var(--space-2);
    font-size: var(--fs-xs);
    font-weight: 500;
    color: #9B1C1C;
}

.field-error.is-visible {
    display: block;
}

.form-group input.has-error,
.form-group textarea.has-error {
    border-color: #DC2626;
}

.form-group input.has-error:focus,
.form-group textarea.has-error:focus {
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* Anti-spam honeypot - hidden from people, reachable by bots */
.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    padding: clamp(3.5rem, 6vw, 5.5rem) 0 var(--space-6);
    background: var(--navy-950);
    color: var(--text-on-dark-soft);
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 3.5rem);
    padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.logo--footer .logo-text,
.logo--footer .logo-text span {
    color: #fff;
}

.logo--footer .logo-text span {
    color: var(--accent);
}

.footer-brand .logo {
    margin-bottom: var(--space-4);
}

.footer-description {
    font-size: var(--fs-sm);
    line-height: 1.7;
    max-width: 30ch;
    margin-bottom: var(--space-5);
}

.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-dark);
    color: var(--text-on-dark);
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
                transform 0.25s var(--ease);
}

.social-link:hover {
    background: var(--accent);
    color: var(--navy-950);
    transform: translateY(-2px);
}

.footer-links h2,
.footer-contact h2 {
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: var(--space-4);
}

.footer-links li,
.footer-contact li {
    margin-bottom: var(--space-3);
}

.footer-links a,
.footer-contact a {
    font-size: var(--fs-sm);
    color: var(--text-on-dark-soft);
    transition: color 0.25s var(--ease);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-3);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-dark);
}

.footer-bottom p {
    font-size: var(--fs-xs);
    color: #6F878C;
}

.footer-tagline {
    letter-spacing: 0.06em;
}

/* ==========================================================================
   Scroll to top
   ========================================================================== */

.scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 990;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--navy-900);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    box-shadow: var(--shadow-md);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
                visibility 0.3s var(--ease), background-color 0.25s var(--ease);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--primary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
    .hero-container {
        gap: clamp(2rem, 4vw, 3rem);
    }
}

@media (max-width: 1024px) {
    .hero {
        padding-top: calc(70px + 3.5rem);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: clamp(2.5rem, 6vw, 4rem);
    }

    .hero-content {
        max-width: 42rem;
    }

    .hero-visual {
        width: 100%;
        max-width: 620px;
        margin: 0 auto;
    }

    .bracket-frame::before,
    .bracket-frame::after {
        width: 64px;
        height: 64px;
    }

    .features-top {
        grid-template-columns: 1fr;
    }

    .fv-stack {
        margin: 0 auto;
        max-width: 420px;
    }

    .features-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-6) var(--space-5);
    }

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

    .contact-info {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .services-grid,
    .assurance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-right {
        position: fixed;
        top: 74px;
        left: 0;
        right: 0;
        height: calc(100dvh - 74px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: var(--space-6);
        padding: var(--space-7) clamp(1.25rem, 5vw, 2rem) var(--space-8);
        background: var(--surface);
        border-top: 1px solid var(--border);
        overflow-y: auto;
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.32s var(--ease), visibility 0.32s var(--ease);
    }

    .nav-right.active {
        transform: translateX(0);
        visibility: visible;
    }

    /* With GSAP driving the panel, the slide transition steps aside so the
       clip-path wipe and link stagger can run in place. */
    .js-motion .nav-right,
    .js-motion .nav-right.active {
        transform: none;
        transition: none;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-links li + li {
        border-top: 1px solid var(--border);
    }

    .nav-link {
        display: block;
        padding: 1.1rem 0;
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .nav-link::after {
        display: none;
    }

    .nav-buttons {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: var(--space-4);
    }

    .btn-signup {
        padding: 1rem;
        text-align: center;
        font-size: var(--fs-body);
    }

    .btn-signin {
        display: block;
        padding: 0.9rem;
        text-align: center;
        font-weight: 600;
        color: var(--text-primary);
        border: 1px solid var(--border-strong);
        border-radius: var(--r-sm);
        word-break: break-word;
    }

    .services-grid,
    .assurance-grid {
        grid-template-columns: 1fr;
    }

    .section-header--split {
        grid-template-columns: 1fr;
        align-items: start;
        gap: var(--space-5);
    }

    .section-title {
        max-width: none;
    }

    /* The services slider sits directly below and says the same thing */
    .section-index {
        display: none;
    }

    .hv-chips {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: left;
    }
}

@media (max-width: 560px) {
    .features-list {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-7);
    }

    .footer-description {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        justify-content: center;
        width: 100%;
    }

    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .hero-meta span {
        display: none;
    }

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

    .scroll-top {
        bottom: 1rem;
        right: 1rem;
    }
}

/* ==========================================================================
   Motion layer (Phase 2)

   Every hidden-until-animated state is scoped to .js-motion, which is only set
   when JS runs AND the visitor has not asked for reduced motion. No-JS and
   reduced-motion visitors get the finished page immediately.
   ========================================================================== */

.js-motion [data-reveal],
.js-motion [data-hero],
.js-motion [data-hero-visual],
.js-motion [data-hero-title] {
    opacity: 0;
}

.js-motion .bracket-frame {
    --bracket-opacity: 0;
}

/* Headline word masks */
.hero-title .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    /* room for descenders so the mask never clips a 'g' or 'y' */
    padding-bottom: 0.14em;
    margin-bottom: -0.14em;
}

.hero-title .word-inner {
    display: inline-block;
    will-change: transform;
}

/* Scroll progress -------------------------------------------------------- */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 1100;
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    height: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    will-change: transform;
}

/* Hero WebGL canvas ------------------------------------------------------ */

.hv-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.hv-panel .hv-diagram {
    transition: opacity 0.7s var(--ease);
}

/* Once the 3D scene is live the SVG stays in flow (it sets the panel's
   aspect ratio) but hands over the visual. */
.hv-panel.is-3d .hv-diagram {
    opacity: 0;
}

/* Card micro-interactions ------------------------------------------------ */

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
                rgba(45, 224, 206, 0.16), transparent 62%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

.service-card:hover::after,
.service-card:focus-within::after {
    opacity: 1;
}

.service-icon {
    transform: translateY(0);
}

.service-card:hover .service-icon {
    transform: translateY(-2px);
}

.feature-check {
    transition: transform 0.3s var(--ease);
}

.feature-item:hover .feature-check {
    transform: scale(1.08);
}

.assurance-icon {
    transition: transform 0.3s var(--ease);
}

.assurance-card:hover .assurance-icon {
    transform: translateY(-2px);
}

.social-link svg,
.contact-icon svg {
    transition: transform 0.3s var(--ease);
}

.social-link:hover svg {
    transform: scale(1.1);
}

.contact-card:hover .contact-icon svg {
    transform: translateX(2px);
}

.text-link svg,
.service-link svg,
.btn-accent svg {
    transition: transform 0.25s var(--ease);
}

.text-link:hover svg,
.service-link:hover svg {
    transform: translateX(3px);
}

/* Lenis ------------------------------------------------------------------ */

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* Services slider (mobile only) ------------------------------------------ */

.services-carousel {
    --swiper-pagination-color: var(--primary);
    --swiper-pagination-bullet-inactive-color: var(--text-muted);
    --swiper-pagination-bullet-inactive-opacity: 0.3;
    --swiper-pagination-bullet-size: 7px;
}

/* Beats Swiper's own .swiper-wrapper rule regardless of load order */
.services-grid.swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.services-carousel.swiper {
    overflow: hidden;
    padding-bottom: 4px;
}

.services-carousel .swiper-slide {
    height: auto;
    display: flex;
}

.services-carousel .swiper-slide > .service-card,
.services-carousel .service-card.swiper-slide {
    width: 100%;
}

.services-carousel .services-pagination {
    position: relative;
    inset: auto;
    margin-top: var(--space-5);
    text-align: center;
}

.services-pagination:empty {
    display: none;
}

/* ==========================================================================
   Motion & print preferences
   ========================================================================== */

@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;
    }

    /* Nothing stays hidden waiting for an animation that will not run */
    [data-reveal],
    [data-hero],
    [data-hero-visual],
    [data-hero-title],
    [data-clip] {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }

    [data-parallax] {
        transform: none !important;
    }
}

@media print {
    .navbar,
    .scroll-top,
    .hero-backdrop {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
    }
}
