/* ============================================
   Premier App, Inc. — 2026 Website Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
    --color-primary: #4f46e5;
    --color-primary-light: #6366f1;
    --color-primary-dark: #3730a3;
    --color-accent: #06b6d4;
    --color-accent-light: #22d3ee;

    --gradient-primary: linear-gradient(135deg, #4f46e5, #06b6d4);
    --gradient-hero: linear-gradient(135deg, #0f0c29, #1a1a4e, #1b2a5e);
    --gradient-dark: linear-gradient(180deg, #0f172a, #1e293b);

    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-dark: #0f172a;
    --color-bg-dark-alt: #1e293b;

    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-text-light: #e2e8f0;
    --color-text-light-muted: #94a3b8;

    --color-border: #e2e8f0;
    --color-border-dark: #334155;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.15);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--color-primary-light);
}

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

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    background: rgba(79, 70, 229, 0.08);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-top: 12px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

.btn-full {
    width: 100%;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 1px 20px rgba(0,0,0,0.15);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.nav-cta {
    background: var(--gradient-primary) !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-md) !important;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
    background: var(--gradient-primary) !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 600px at 20% 50%, rgba(79, 70, 229, 0.15), transparent),
        radial-gradient(ellipse 500px 500px at 80% 30%, rgba(6, 182, 212, 0.1), transparent);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 0 80px;
}

.hero h1 {
    color: #fff;
    margin-bottom: 24px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent-light);
    border: 1px solid rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.08);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light-muted);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 72px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-light-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.15);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-scroll a {
    color: rgba(255,255,255,0.4);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* --- Hero Mockups --- */
.hero-mockups {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1100px;
    height: 750px;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.mockup {
    position: absolute;
    border-radius: var(--radius-lg);
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.mockup-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mockup-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.mockup-dot.dot-r { background: rgba(239,68,68,0.5); }
.mockup-dot.dot-y { background: rgba(234,179,8,0.5); }
.mockup-dot.dot-g { background: rgba(34,197,94,0.5); }

.mockup-url { margin-left: 10px; height: 5px; width: 100px; background: rgba(255,255,255,0.07); border-radius: 3px; }

.mockup-screen { padding: 12px; }
.mockup-notch { width: 50px; height: 5px; background: rgba(0,0,0,0.5); border-radius: 3px; margin: 6px auto 0; }

/* === 1. Desktop Dashboard === */
.mockup-desktop {
    width: 380px;
    right: -60px;
    top: -40px;
    animation: floatA 9s ease-in-out infinite;
    opacity: 0.5;
}

.mock-dash-top { display: flex; gap: 10px; }

.mock-dash-sidebar {
    width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-sm);
}

.mock-avatar { width: 22px; height: 22px; border-radius: 50%; background: rgba(99,102,241,0.3); margin-bottom: 4px; }
.mock-nav-item { width: 20px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.08); }
.mock-nav-item.active { background: rgba(99,102,241,0.5); width: 24px; }

.mock-dash-main { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.mock-stat-row { display: flex; gap: 6px; }
.mock-stat-box { flex: 1; padding: 8px; background: rgba(255,255,255,0.04); border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.05); }
.mock-stat-box.accent { border-color: rgba(99,102,241,0.2); background: rgba(99,102,241,0.06); }
.mock-stat-num { height: 8px; width: 40%; background: rgba(255,255,255,0.12); border-radius: 4px; margin-bottom: 4px; }
.mock-stat-lbl { height: 4px; width: 65%; background: rgba(255,255,255,0.05); border-radius: 2px; }

.mock-chart-area { height: 50px; background: rgba(255,255,255,0.02); border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.04); overflow: hidden; }
.mock-line-chart { width: 100%; height: 100%; }

.mock-table { display: flex; flex-direction: column; gap: 3px; }
.mock-table-row { height: 6px; background: rgba(255,255,255,0.04); border-radius: 2px; }
.mock-table-row.head { background: rgba(255,255,255,0.07); height: 7px; }

/* === 2. iPhone Scanner App === */
.mockup-iphone {
    width: 170px;
    left: -40px;
    top: 20px;
    border-radius: 24px;
    animation: floatB 7.5s ease-in-out infinite;
    animation-delay: -1.5s;
    opacity: 0.5;
}

.iphone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    font-size: 0;
}

.iphone-time { width: 24px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; }
.iphone-icons { display: flex; gap: 3px; }
.iphone-icons span { width: 8px; height: 4px; background: rgba(255,255,255,0.15); border-radius: 2px; }

.iphone-header { padding: 6px 8px 4px; }
.iphone-title { height: 7px; width: 50%; background: rgba(255,255,255,0.12); border-radius: 3px; }

.iphone-scanner-viewfinder {
    margin: 8px 14px;
    height: 100px;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.scanner-corners { position: absolute; inset: 6px; }
.corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: rgba(6,182,212,0.6);
    border-style: solid;
    border-width: 0;
}
.corner.tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; border-radius: 3px 0 0 0; }
.corner.tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; border-radius: 0 3px 0 0; }
.corner.bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; border-radius: 0 0 0 3px; }
.corner.br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; border-radius: 0 0 3px 0; }

.scanner-line {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: rgba(6,182,212,0.6);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(6,182,212,0.4);
    animation: scanLine 2.5s ease-in-out infinite;
}

@keyframes scanLine {
    0%, 100% { top: 10px; }
    50% { top: calc(100% - 10px); }
}

.iphone-scan-result {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 12px;
    padding: 6px 8px;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: var(--radius-sm);
}

.scan-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(34,197,94,0.3);
    flex-shrink: 0;
}

.scan-text div {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-bottom: 3px;
}

.scan-text div:first-child { width: 60px; }
.scan-text div:last-child { width: 40px; }

.iphone-bottom-bar {
    display: flex;
    justify-content: space-around;
    padding: 8px 12px 6px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 4px;
}

.tab-icon {
    width: 16px;
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
}

.tab-icon.active {
    background: rgba(99,102,241,0.5);
}

/* === 2b. iPhone General App (right) === */
.mockup-iphone2 {
    width: 170px;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 24px;
    animation: floatH 8s ease-in-out infinite;
    animation-delay: -3s;
    opacity: 0.5;
}

.app-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 8px;
}

.app-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(6,182,212,0.3));
    flex-shrink: 0;
}

.app-profile-info { flex: 1; }
.app-profile-name { height: 6px; width: 60%; background: rgba(255,255,255,0.12); border-radius: 3px; margin-bottom: 4px; }
.app-profile-sub { height: 4px; width: 40%; background: rgba(255,255,255,0.06); border-radius: 2px; }

.app-stats-row {
    display: flex;
    gap: 4px;
    padding: 0 14px;
    margin-bottom: 10px;
}

.app-mini-stat {
    flex: 1;
    padding: 6px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.ams-num { height: 7px; width: 50%; background: rgba(255,255,255,0.14); border-radius: 3px; margin: 0 auto 3px; }
.ams-lbl { height: 3px; width: 70%; background: rgba(255,255,255,0.06); border-radius: 2px; margin: 0 auto; }

.app-feed {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 14px;
    margin-bottom: 6px;
}

.app-feed-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
}

.feed-thumb {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(99,102,241,0.15);
    flex-shrink: 0;
}

.feed-thumb.accent { background: rgba(6,182,212,0.15); }
.feed-thumb.green { background: rgba(34,197,94,0.15); }

.feed-lines { flex: 1; }
.feed-lines div { height: 4px; background: rgba(255,255,255,0.07); border-radius: 2px; margin-bottom: 3px; }
.feed-lines div:last-child { width: 55%; }

@keyframes floatH {
    0%, 100% { transform: translateY(-50%) rotate(2deg); }
    50% { transform: translateY(calc(-50% - 14px)) rotate(0.5deg); }
}

/* === 3. Handheld Scanner === */
.mockup-scanner {
    width: 140px;
    left: -10px;
    bottom: 30px;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    animation: floatC 8s ease-in-out infinite;
    animation-delay: -3s;
    opacity: 0.45;
}

.scanner-device {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px 10px 6px 6px;
    overflow: hidden;
}

.scanner-screen { padding: 10px; }

.scanner-hdr {
    height: 6px;
    width: 55%;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-bottom: 10px;
}

.scanner-barcode {
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    text-align: center;
}

.barcode-lines {
    display: flex;
    justify-content: center;
    gap: 2px;
    height: 28px;
    margin-bottom: 4px;
}

.barcode-lines span {
    display: block;
    width: 2px;
    height: 100%;
    background: rgba(255,255,255,0.25);
    border-radius: 1px;
}

.barcode-lines span:nth-child(odd) { width: 3px; opacity: 0.6; }
.barcode-lines span:nth-child(3n) { width: 1px; opacity: 0.4; }

.barcode-num {
    height: 4px;
    width: 50%;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.scanner-item-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.scanner-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.scanner-dot.ok { background: rgba(34,197,94,0.5); }
.scanner-dot.pending { background: rgba(234,179,8,0.5); }

.scanner-item-line { height: 4px; flex: 1; background: rgba(255,255,255,0.06); border-radius: 2px; }

.scanner-trigger {
    height: 14px;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.04);
    border-radius: 0 0 6px 6px;
    margin: 0 20%;
}

/* === 4. Tablet Inventory === */
.mockup-tablet {
    width: 240px;
    right: -20px;
    bottom: -20px;
    border-radius: 16px;
    animation: floatD 8.5s ease-in-out infinite;
    animation-delay: -5s;
    opacity: 0.45;
}

.tablet-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.tablet-search {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}

.tablet-action-btn {
    width: 20px;
    height: 8px;
    background: rgba(99,102,241,0.3);
    border-radius: 4px;
}

.tablet-grid { display: flex; flex-direction: column; gap: 5px; }

.tablet-inv-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
}

.inv-thumb {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(99,102,241,0.15);
    flex-shrink: 0;
}

.inv-thumb.accent { background: rgba(6,182,212,0.2); }
.inv-thumb.warn { background: rgba(234,179,8,0.2); }

.inv-info { flex: 1; }
.inv-info div { height: 4px; background: rgba(255,255,255,0.07); border-radius: 2px; margin-bottom: 3px; }
.inv-info div:last-child { width: 55%; }

.inv-qty {
    font-family: var(--font-mono);
    font-size: 8px;
    color: rgba(255,255,255,0.3);
    font-weight: 600;
    flex-shrink: 0;
}

/* === 5. Web App / CRM Mockup === */
.mockup-webapp {
    width: 320px;
    left: 50%;
    bottom: -160px;
    transform: translateX(-50%);
    animation: floatE 10s ease-in-out infinite;
    animation-delay: -6s;
    opacity: 0.5;
}

.webapp-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.webapp-logo { width: 18px; height: 18px; border-radius: 4px; background: rgba(99,102,241,0.25); }
.webapp-nav-pills { display: flex; gap: 4px; flex: 1; }
.webapp-nav-pills span { height: 5px; width: 28px; border-radius: 3px; background: rgba(255,255,255,0.06); }
.webapp-nav-pills span.active { background: rgba(99,102,241,0.35); width: 34px; }
.webapp-user { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,0.1); }

.webapp-content { display: flex; flex-direction: column; gap: 10px; }

.webapp-kpi-row { display: flex; gap: 6px; }
.webapp-kpi {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
}

.kpi-icon { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; }
.kpi-icon.blue { background: rgba(99,102,241,0.2); }
.kpi-icon.cyan { background: rgba(6,182,212,0.2); }
.kpi-icon.green { background: rgba(34,197,94,0.2); }

.kpi-data { flex: 1; }
.kpi-val { height: 6px; width: 50%; background: rgba(255,255,255,0.14); border-radius: 3px; margin-bottom: 3px; }
.kpi-lbl { height: 4px; width: 70%; background: rgba(255,255,255,0.06); border-radius: 2px; }

.webapp-chart-row { display: flex; gap: 10px; align-items: center; }

.webapp-donut { width: 55px; height: 55px; flex-shrink: 0; }
.webapp-donut svg { width: 100%; height: 100%; }

.webapp-bars { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.wbar { height: 6px; border-radius: 3px; background: linear-gradient(90deg, rgba(99,102,241,0.3), rgba(6,182,212,0.2)); }

/* === 6. Cloud / API Diagram === */
.mockup-cloud {
    width: 130px;
    height: 130px;
    left: 80px;
    top: -30px;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    animation: floatF 11s ease-in-out infinite;
    animation-delay: -2s;
    opacity: 0.4;
}

.cloud-nodes { position: relative; width: 100%; height: 100%; }

.cloud-node {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cloud-node.center {
    width: 36px;
    height: 36px;
    left: 50%;
    top: 38%;
    transform: translate(-50%, -50%);
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.25);
    color: rgba(99,102,241,0.6);
}

.cloud-node.n1, .cloud-node.n2, .cloud-node.n3 {
    width: 18px;
    height: 18px;
}

.cloud-node.n1 { left: 15%; top: 5%; background: rgba(6,182,212,0.15); border: 1px solid rgba(6,182,212,0.2); }
.cloud-node.n2 { right: 10%; top: 5%; background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.2); }
.cloud-node.n3 { left: 42%; bottom: 5%; background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.2); }

.cloud-node span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.2); }

.cloud-lines { position: absolute; inset: 0; }

/* === 7. RFID Tag === */
.mockup-rfid {
    width: 60px;
    height: 60px;
    right: 100px;
    top: -20px;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    animation: floatG 7s ease-in-out infinite;
    animation-delay: -4s;
    opacity: 0.4;
}

.rfid-chip {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: rgba(234,179,8,0.3);
    border: 1px solid rgba(234,179,8,0.4);
    border-radius: 3px;
}

.rfid-waves { position: absolute; inset: 0; }

.wave {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    border: 1px solid rgba(234,179,8,0.2);
    animation: rfidPulse 2.5s ease-out infinite;
}

.wave.w1 { width: 24px; height: 24px; margin: -12px 0 0 -12px; animation-delay: 0s; }
.wave.w2 { width: 36px; height: 36px; margin: -18px 0 0 -18px; animation-delay: 0.5s; }
.wave.w3 { width: 48px; height: 48px; margin: -24px 0 0 -24px; animation-delay: 1s; }

@keyframes rfidPulse {
    0% { opacity: 0.6; transform: scale(0.7); }
    100% { opacity: 0; transform: scale(1.3); }
}

/* Floating animations — staggered, varied */
@keyframes floatA {
    0%, 100% { transform: translateY(0) rotate(1.5deg); }
    50% { transform: translateY(-18px) rotate(0.5deg); }
}
@keyframes floatB {
    0%, 100% { transform: translateY(0) rotate(-2.5deg); }
    50% { transform: translateY(-14px) rotate(-0.5deg); }
}
@keyframes floatC {
    0%, 100% { transform: translateY(0) rotate(1deg); }
    50% { transform: translateY(-12px) rotate(-1deg); }
}
@keyframes floatD {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50% { transform: translateY(-16px) rotate(0deg); }
}
@keyframes floatE {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(-0.5deg); }
    50% { transform: translateX(-50%) translateY(-10px) rotate(0.5deg); }
}
@keyframes floatF {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.03); }
}
@keyframes floatG {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes barGrow {
    0% { opacity: 0.2; }
    100% { opacity: 0.5; }
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--color-bg-dark);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: #fff;
}

.section-dark p,
.section-dark .section-header p {
    color: var(--color-text-light-muted);
}

.section-dark .section-tag {
    color: var(--color-accent-light);
    background: rgba(6, 182, 212, 0.1);
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content > p {
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.about-highlights {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.highlight-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.08);
    border-radius: var(--radius-md);
    color: var(--color-primary);
}

.highlight strong {
    display: block;
    margin-bottom: 2px;
}

.highlight p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Code Showcase Section */
.code-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.code-showcase-text h2 {
    margin-bottom: 20px;
}

.code-showcase-text > p {
    color: var(--color-text-light-muted);
    margin-bottom: 14px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.code-file-title {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-light-muted);
}

/* Code Window */
.code-window {
    background: #1e293b;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border: 1px solid var(--color-border-dark);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--color-border-dark);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.code-title {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-light-muted);
}

.code-body {
    padding: 24px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    color: #e2e8f0;
}

.code-body code {
    font-family: inherit;
}

.code-keyword { color: #c084fc; }
.code-var { color: #e2e8f0; }
.code-prop { color: #67e8f9; }
.code-string { color: #86efac; }
.code-func { color: #fbbf24; }
.code-param { color: #fb923c; }

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--color-bg-dark-alt);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card p {
    flex: 1;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
    border-color: rgba(79, 70, 229, 0.3);
}

.service-card.featured {
    border-color: rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(6, 182, 212, 0.05));
    position: relative;
}

.service-card.featured::before {
    content: 'Specialized';
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-light);
    background: rgba(6, 182, 212, 0.12);
    padding: 4px 12px;
    border-radius: 100px;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-primary-light);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.service-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.service-tags li {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-light-muted);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--color-border-dark);
    padding: 4px 12px;
    border-radius: 100px;
}


/* --- Process --- */
.process-grid {
    display: flex;
    align-items: flex-start;
    gap: 0;
    justify-content: center;
}

.process-step {
    flex: 1;
    max-width: 260px;
    text-align: center;
    padding: 0 16px;
}

.process-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.process-step h3 {
    margin-bottom: 12px;
}

.process-step p {
    font-size: 0.9rem;
}

.process-connector {
    width: 60px;
    height: 2px;
    background: var(--color-border-dark);
    margin-top: 32px;
    flex-shrink: 0;
    position: relative;
}

.process-connector::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-primary-light);
    border-top: 2px solid var(--color-primary-light);
    transform: rotate(45deg);
}

/* --- Contact --- */
.contact-centered {
    max-width: 640px;
    margin: 0 auto;
}

/* Form */
.contact-form-wrapper {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Captcha */
.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 8px 12px;
}

.captcha-box canvas {
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.captcha-refresh {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    flex-shrink: 0;
}

.captcha-refresh:hover {
    color: var(--color-primary);
    background: rgba(79, 70, 229, 0.08);
}

.captcha-input {
    width: 80px !important;
    text-align: center;
    font-size: 1.1rem !important;
    font-weight: 600;
    padding: 8px 12px !important;
    border: 1.5px solid var(--color-border) !important;
    border-radius: var(--radius-sm) !important;
    background: #fff !important;
}

.captcha-input::-webkit-inner-spin-button,
.captcha-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.captcha-input[type=number] {
    -moz-appearance: textfield;
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 12px;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    color: #22c55e;
    margin-bottom: 16px;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.form-success p {
    color: var(--color-text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* --- Footer --- */
.footer {
    background: var(--color-bg-dark);
    border-top: 1px solid var(--color-border-dark);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}

.footer-brand p {
    color: var(--color-text-light-muted);
    font-size: 0.9rem;
    margin-top: 12px;
    max-width: 300px;
}

.footer-links h4 {
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--color-text-light-muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid var(--color-border-dark);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-light-muted);
    font-size: 0.85rem;
}

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

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

    .process-grid {
        flex-wrap: wrap;
        gap: 24px;
    }

    .process-connector {
        display: none;
    }

    .process-step {
        flex: 0 0 calc(50% - 12px);
        max-width: none;
    }
}

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

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        padding: 16px 24px;
        gap: 4px;
        border-top: 1px solid var(--color-border-dark);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 16px;
        width: 100%;
    }

    .nav-cta {
        text-align: center;
        margin-top: 8px;
    }

    .hero-mockups {
        display: none;
    }

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

    .code-showcase-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .captcha-box {
        flex-wrap: wrap;
        justify-content: center;
    }

    .process-step {
        flex: 0 0 100%;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form-wrapper {
        padding: 28px;
    }

    .section {
        padding: 72px 0;
    }
}

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

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-stats {
        flex-direction: column;
    }
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Accessibility --- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--color-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 9999;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 16px;
    color: #fff;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Selection --- */
::selection {
    background: rgba(79, 70, 229, 0.2);
    color: var(--color-text);
}
