/* ============================================
   SMARTICA 2026 — Precision Architect Design System
   Vanilla CSS | No frameworks
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

/* --- Design Tokens / CSS Variables --- */
:root {
    /* Colors */
    --primary:                  #48fed0;
    --primary-fixed:            #47fdd0;
    --primary-fixed-dim:        #00e0b4;
    --primary-container:        #00e1b5;
    --on-primary:               #00382b;
    --on-primary-fixed:         #002118;
    --on-primary-fixed-variant: #00513f;
    --on-primary-container:     #005f4b;

    --secondary:                #9dcaff;
    --secondary-fixed:          #d1e4ff;
    --secondary-fixed-dim:      #9dcaff;
    --secondary-container:      #0473bd;
    --on-secondary:             #003257;
    --on-secondary-fixed:       #001d35;
    --on-secondary-fixed-variant: #00497c;
    --on-secondary-container:   #eff4ff;

    --tertiary:                 #d1e6ff;
    --tertiary-fixed:           #cfe5ff;
    --tertiary-fixed-dim:       #9acbff;
    --tertiary-container:       #9cccff;
    --on-tertiary:              #003355;
    --on-tertiary-fixed:        #001d34;
    --on-tertiary-fixed-variant:#004a78;
    --on-tertiary-container:    #00578c;

    --error:                    #ffb4ab;
    --error-container:          #93000a;
    --on-error:                 #690005;
    --on-error-container:       #ffdad6;

    /* Surface Hierarchy (darkest → lightest) */
    --surface-container-lowest: #090f14;
    --surface-container-low:    #161c22;
    --surface:                  #0e1419;
    --surface-dim:              #0e1419;
    --background:               #0e1419;
    --surface-container:        #1a2026;
    --surface-container-high:   #252b30;
    --surface-container-highest:#2f353b;
    --surface-bright:           #343a40;
    --surface-variant:          #2f353b;
    --surface-tint:             #00e0b4;

    --on-surface:               #dde3eb;
    --on-surface-variant:       #bacac2;
    --on-background:            #dde3eb;
    --inverse-surface:          #dde3eb;
    --inverse-on-surface:       #2b3137;
    --inverse-primary:          #006b55;

    --outline:                  #84948d;
    --outline-variant:          #3b4a44;

    /* Typography */
    --font-headline: 'Space Grotesk', sans-serif;
    --font-body:     'Inter', sans-serif;
    --font-label:    'Space Grotesk', sans-serif;

    /* Timing */
    --transition-fast: 0.2s ease;
    --transition-slow: 0.5s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--on-background);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: var(--primary);
    color: var(--on-primary-fixed);
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* --- Material Symbols --- */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* --- Utility Classes --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-primary     { color: var(--primary); }
.text-secondary   { color: var(--secondary); }
.text-outline     { color: var(--outline); }
.text-on-surface  { color: var(--on-surface); }
.text-on-surface-variant { color: var(--on-surface-variant); }

.font-headline { font-family: var(--font-headline); }
.font-label    { font-family: var(--font-label); }

/* --- Background Patterns --- */
.grid-bg {
    background-image:
        linear-gradient(to right, rgba(72, 254, 208, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(72, 254, 208, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.dot-pattern {
    background-image: radial-gradient(circle, var(--outline-variant) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* --- Glassmorphism --- */
.glass-panel {
    background: rgba(14, 20, 25, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(14, 20, 25, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 0 40px -15px rgba(72, 254, 208, 0.1);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav__logo {
    display: flex;
    align-items: center;
}

.nav__logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav__link {
    font-family: var(--font-label);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: rgba(186, 202, 194, 0.7);
    transition: color var(--transition-fast);
    cursor: pointer;
    background: none;
    border: none;
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--primary);
}

.nav__link.is-active {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}

.nav__cta {
    background: var(--primary-container);
    color: var(--on-primary-fixed);
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.6rem 1.5rem;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.nav__cta:hover  { background: var(--primary); }
.nav__cta:active { transform: scale(0.97); }

.nav__divider {
    height: 1px;
    background: var(--surface-container-highest);
    opacity: 0.2;
}

/* Hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--on-surface);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
    display: none;
    flex-direction: column;
    background: var(--surface-container-low);
    padding: 1.5rem;
    gap: 1rem;
}

.nav__mobile.is-open { display: flex; }

.nav__mobile .nav__link {
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(59, 74, 68, 0.2);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero__fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(14, 20, 25, 0.2), var(--background));
    pointer-events: none;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(72, 254, 208, 0.08);
    border-left: 2px solid var(--primary);
    margin-bottom: 1.5rem;
}

.hero__badge-text {
    font-family: var(--font-label);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--primary);
}

.hero__title {
    font-family: var(--font-headline);
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.92;
    color: var(--on-background);
    margin-bottom: 2rem;
}

.hero__title .accent { color: var(--primary); }

.hero__desc {
    font-family: var(--font-body);
    color: var(--on-surface-variant);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 420px;
    margin-bottom: 2.5rem;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    transition: background var(--transition-fast), transform var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover  { background: var(--primary-fixed-dim); }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
    background: transparent;
    color: var(--primary);
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: 1px solid rgba(59, 74, 68, 0.5);
    cursor: pointer;
    border-radius: 2px;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: rgba(72, 254, 208, 0.05);
    border-color: rgba(72, 254, 208, 0.3);
}

/* --- Wireframe Graphic --- */
.hero__graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 500px;
}

.hero__graphic svg {
    width: 100%;
    height: 100%;
    color: var(--primary);
    opacity: 0.4;
    filter: drop-shadow(0 0 15px rgba(72, 254, 208, 0.3));
}

.hero__graphic-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(72, 254, 208, 0.08) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1; }
}

/* --- Status Strip --- */
.hero__strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(59, 74, 68, 0.1);
    background: rgba(14, 20, 25, 0.7);
    backdrop-filter: blur(20px);
}

.hero__strip-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-label);
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    color: var(--outline);
    text-transform: uppercase;
}

.hero__strip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    display: inline-block;
    margin-right: 0.4rem;
    animation: blink 1.5s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: 6rem 0;
    background: var(--surface);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    gap: 2rem;
}

.section-label {
    font-family: var(--font-label);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--on-background);
}

.section-note {
    font-family: var(--font-label);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--outline);
    max-width: 220px;
    text-align: right;
}

/* Services Grid */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(59, 74, 68, 0.2);
    border: 1px solid rgba(59, 74, 68, 0.2);
    overflow: hidden;
}

.service-card {
    background: var(--surface);
    padding: 2.5rem;
    transition: all var(--transition-slow);
    position: relative;
    cursor: pointer;
}

.service-card:hover { 
    background: var(--surface-container-high); 
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card__icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    transition: transform var(--transition-slow);
    display: block;
    transform-origin: left center;
}

.service-card:hover .service-card__icon {
    transform: scale(1.15);
}

.service-card__icon.primary   { color: var(--primary); }
.service-card__icon.secondary { color: var(--secondary); }

.service-card__title {
    font-family: var(--font-headline);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--on-surface);
}

.service-card__desc {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--on-surface-variant);
    margin-bottom: 2rem;
}

.service-card__tag {
    font-family: var(--font-label);
    font-size: 0.625rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.service-card:hover .service-card__tag { opacity: 1; }

/* ============================================
   PIPELINE SECTION
   ============================================ */
.pipeline {
    padding: 6rem 0;
    background: var(--surface-container-lowest);
    position: relative;
    overflow: hidden;
}

.pipeline__header {
    text-align: center;
    margin-bottom: 5rem;
}

.pipeline__subtitle {
    font-family: var(--font-label);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--outline);
    margin-top: 0.75rem;
}

.pipeline__steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.pipeline__step {
    flex: 1;
    min-width: 200px;
    padding: 2.5rem 2rem;
    background: var(--surface);
    border: 1px solid rgba(59, 74, 68, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: all var(--transition-slow);
    cursor: pointer;
}

.pipeline__step:hover {
    background: var(--surface-container-high);
    border-color: var(--primary);
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.pipeline__step-icon {
    width: 64px;
    height: 64px;
    border: 1px solid rgba(72, 254, 208, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: rgba(14, 20, 25, 0.7);
    backdrop-filter: blur(20px);
    transition: border-color var(--transition-fast);
}

.pipeline__step:hover .pipeline__step-icon { border-color: var(--primary); }
.pipeline__step.secondary:hover .pipeline__step-icon { border-color: var(--secondary); }

.pipeline__step-icon .material-symbols-outlined { color: var(--primary); }
.pipeline__step.secondary .pipeline__step-icon .material-symbols-outlined { color: var(--secondary); }

.pipeline__step-num {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--on-background);
}

.pipeline__step-desc {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--on-surface-variant);
    line-height: 1.5;
}

.pipeline__connector {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(72, 254, 208, 0.4), rgba(157, 202, 255, 0.4));
    position: relative;
    min-width: 40px;
}

.pipeline__connector::after {
    content: '';
    position: absolute;
    right: -1px;
    top: -4px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    transform: rotate(45deg);
}

.pipeline__connector.alt {
    background: linear-gradient(to right, rgba(157, 202, 255, 0.4), rgba(72, 254, 208, 0.4));
}

.pipeline__connector.alt::after { background: var(--secondary); }

/* Stats bar */
.pipeline__stats {
    margin-top: 5rem;
    padding: 2rem;
    border: 1px solid rgba(59, 74, 68, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    background: rgba(14, 20, 25, 0.7);
    backdrop-filter: blur(20px);
}

.pipeline__stat {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pipeline__stat-num {
    font-family: var(--font-headline);
    font-size: 3rem;
    font-weight: 700;
}

.pipeline__stat-num.primary   { color: var(--primary); }
.pipeline__stat-num.secondary { color: var(--secondary); }

.pipeline__stat-label {
    font-family: var(--font-label);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--outline);
    line-height: 1.6;
}

.pipeline__cta {
    background: rgba(72, 254, 208, 0.08);
    border: 1px solid rgba(72, 254, 208, 0.4);
    color: var(--primary);
    font-family: var(--font-label);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
    border-radius: 2px;
}

.pipeline__cta:hover {
    background: var(--primary);
    color: var(--on-primary);
}

/* BG Decorations */
.pipeline__bg-line {
    position: absolute;
    background: rgba(72, 254, 208, 0.04);
    pointer-events: none;
}

.pipeline__bg-line.h { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.pipeline__bg-line.v1 { top: 0; left: 25%; bottom: 0; width: 1px; }
.pipeline__bg-line.v2 { top: 0; right: 25%; bottom: 0; width: 1px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--surface-container-lowest);
    border-top: 1px solid var(--surface-container-highest);
    position: relative;
    z-index: 20;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding: 4rem 0;
}

.footer__brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.footer__brand-desc {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--outline);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 220px;
}

.footer__socials {
    display: flex;
    gap: 0.75rem;
}

.footer__social {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-container-high);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast);
    text-decoration: none;
}

.footer__social:hover { background: rgba(72, 254, 208, 0.15); }

.footer__social .material-symbols-outlined {
    font-size: 16px;
    color: var(--primary);
}

.footer__col-title {
    font-family: var(--font-label);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--on-background);
    margin-bottom: 1.5rem;
}

.footer__col-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__col-list a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--outline);
    transition: color var(--transition-fast);
}

.footer__col-list a:hover { color: var(--primary); }

/* Footer newsletter */
.footer__newsletter {
    background: var(--surface-container);
    padding: 1.25rem;
    border: 1px solid rgba(59, 74, 68, 0.1);
}

.footer__newsletter-label {
    font-family: var(--font-label);
    font-size: 0.625rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--outline);
    margin-bottom: 1rem;
    display: block;
}

.footer__newsletter-row {
    display: flex;
}

.footer__newsletter-input {
    flex: 1;
    background: var(--surface-container-lowest);
    border: none;
    color: var(--on-surface);
    font-family: var(--font-label);
    font-size: 0.75rem;
    padding: 0.75rem 1rem;
    outline: none;
    letter-spacing: 0.05em;
}

.footer__newsletter-input::placeholder { color: rgba(59, 74, 68, 0.8); }

.footer__newsletter-btn {
    background: var(--primary);
    border: none;
    cursor: pointer;
    padding: 0 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.footer__newsletter-btn:hover { background: var(--primary-fixed-dim); }
.footer__newsletter-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.footer__newsletter-btn .material-symbols-outlined { color: var(--on-primary); font-size: 18px; }

/* Login feedback (System_Entry) */
.footer__login-response {
    display: none;
    margin-top: 0.75rem;
    font-family: var(--font-label);
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem;
    border-radius: 2px;
}

.footer__login-response.success {
    display: block;
    background: rgba(72, 254, 208, 0.08);
    border: 1px solid rgba(72, 254, 208, 0.25);
    color: var(--primary);
}

.footer__login-response.error {
    display: block;
    background: rgba(147, 0, 10, 0.12);
    border: 1px solid rgba(255, 180, 171, 0.25);
    color: var(--error);
}

/* Footer bottom bar */
.footer__bottom {
    border-top: 1px solid rgba(59, 74, 68, 0.1);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer__copy {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--outline);
}

.footer__meta {
    display: flex;
    gap: 2rem;
    font-family: var(--font-label);
    font-size: 0.625rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--outline);
}

/* ============================================
   CONTACT MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(9, 15, 20, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay.is-open .modal {
    transform: translateY(0);
    opacity: 1;
}

.modal-dot-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(59, 74, 68, 0.5) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.1;
    pointer-events: none;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 680px;
    background: var(--surface-container-high);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(59, 74, 68, 0.3);
    box-shadow: 0 0 60px -15px rgba(72, 254, 208, 0.15);
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    max-height: 95vh;
    overflow-y: auto;
}

/* Modal Header */
.modal__header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(59, 74, 68, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(47, 53, 59, 0.3);
}

.modal__status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.modal__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.85); }
}

.modal__status-text {
    font-family: var(--font-label);
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
}

.modal__title {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--on-surface);
}

.modal__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background var(--transition-fast);
    color: var(--outline);
    display: flex;
}

.modal__close:hover {
    background: rgba(72, 254, 208, 0.1);
    color: var(--primary);
}

/* Modal Form */
.modal__form {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-family: var(--font-label);
    font-size: 0.625rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(186, 202, 194, 0.5);
    display: flex;
    justify-content: space-between;
}

.form-field label span {
    color: rgba(72, 254, 208, 0.4);
    font-size: 0.6rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    background: var(--surface-container-lowest);
    border: 0;
    border-bottom: 2px solid var(--outline-variant);
    color: var(--on-surface);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
    width: 100%;
    transition: border-color var(--transition-fast);
    outline: none;
    border-radius: 2px 2px 0 0;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(60, 70, 65, 0.9); }
.form-field select { appearance: none; -webkit-appearance: none; cursor: pointer; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-bottom-color: var(--primary);
}

.form-field textarea { resize: none; }

.form-select-wrapper {
    position: relative;
}

.form-select-wrapper .form-field__arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(186, 202, 194, 0.5);
    font-size: 20px;
}

.form-meta select option { background: var(--surface-container); }

/* Form Action Row */
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 0.5rem;
    flex-wrap: wrap;
}

.form-tech-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.form-tech-col {
    display: flex;
    flex-direction: column;
    font-family: var(--font-label);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: rgba(186, 202, 194, 0.4);
    text-transform: uppercase;
    line-height: 1.7;
}

.form-tech-divider {
    width: 1px;
    height: 2rem;
    background: rgba(59, 74, 68, 0.3);
}

.btn-submit {
    background: linear-gradient(90deg, var(--primary), var(--primary-container));
    color: var(--on-primary-fixed);
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 1.1rem 2.5rem;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
    box-shadow: 0 10px 20px -10px rgba(72, 254, 208, 0.4);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    box-shadow: 0 15px 25px -10px rgba(72, 254, 208, 0.6);
}

.btn-submit:active { transform: scale(0.97); }

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Modal Bottom Bar */
.modal__bar {
    height: 4px;
    width: 100%;
    background: var(--surface-container-lowest);
    display: flex;
}

.modal__bar-fill {
    height: 100%;
    width: 33.333%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.modal__bar-empty {
    flex: 1;
    height: 100%;
    background: rgba(72, 254, 208, 0.07);
}

/* Feedback message */
.form-response {
    display: none;
    padding: 1rem 1.25rem;
    border-radius: 2px;
    font-family: var(--font-label);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    margin-top: 0.5rem;
}

.form-response.success {
    display: block;
    background: rgba(72, 254, 208, 0.08);
    border: 1px solid rgba(72, 254, 208, 0.3);
    color: var(--primary);
}

.form-response.error {
    display: block;
    background: rgba(147, 0, 10, 0.15);
    border: 1px solid rgba(255, 180, 171, 0.3);
    color: var(--error);
}

/* ============================================
   WHATSAPP FAB
   ============================================ */
.whatsapp-fab {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 200;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: background var(--transition-fast), transform var(--transition-fast);
    text-decoration: none;
}

.whatsapp-fab:hover {
    background: #128C7E;
    transform: scale(1.1);
}

.whatsapp-fab:active { transform: scale(0.97); }

.whatsapp-fab svg {
    width: 30px;
    height: 30px;
    color: #fff;
    fill: currentColor;
}

/* ============================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__cta   { display: none; }
    .nav__hamburger { display: flex; }

    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__graphic { height: 300px; }

    .hero__badge  { display: inline-flex; }
    .hero__desc   { margin: 0 auto 2rem; }
    .hero__actions { justify-content: center; }

    .hero__strip  { display: none; }

    .section-header { flex-direction: column; align-items: flex-start; }
    .section-note   { text-align: left; max-width: 100%; }

    .services__grid { grid-template-columns: 1fr; }

    .pipeline__steps {
        flex-direction: column;
        align-items: center;
    }

    .pipeline__connector { display: none; }

    .pipeline__stats {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__grid { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; align-items: flex-start; }
    .footer__meta { flex-direction: column; gap: 0.5rem; }

    .form-row { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; align-items: stretch; }
    .btn-submit { width: 100%; justify-content: center; }

    .form-tech-info { justify-content: flex-start; }
}

/* ============================================
   SCROLLBAR (webkit)
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface-container-lowest); }
::-webkit-scrollbar-thumb { background: var(--outline-variant); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.anim-up {
    animation: fadeInUp 0.7s ease forwards;
}
@keyframes techSonar {
    0%, 100% { 
        opacity: 0.5; 
        color: var(--text-dim);
    }
    50% { 
        opacity: 1; 
        color: var(--primary);
        text-shadow: 0 0 8px rgba(72, 254, 208, 0.4);
    }
}

.tech-sonar {
    animation: techSonar 3s ease-in-out infinite;
    display: inline-block;
}

.form-tech-col span.tech-sonar:nth-child(2) {
    animation-delay: 1.5s;
}

/* Hero SVG Animations */
.hero-svg-rotate {
    transform-origin: center;
    transform-box: fill-box;
    animation: rotateInner 60s linear infinite;
}

@keyframes rotateInner {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.hero-svg-pulse {
    animation: pulseCircle 4s ease-in-out infinite;
}

@keyframes pulseCircle {
    0%, 100% { opacity: 0.4; r: 58; }
    50%      { opacity: 1; r: 62; }
}

.hero-svg-node {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    transform-origin: center;
    transform-box: fill-box;
}


