/* ========================================
   MICTON WEB DESIGN — Flagship Stylesheet
   ======================================== */

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

:root {
    /* Brand */
    --primary: #6C3CFF;
    --primary-light: #8B6AFF;
    --primary-glow: rgba(108, 60, 255, 0.4);
    --accent: #00E5A0;
    --accent-glow: rgba(0, 229, 160, 0.4);
    --blue: #3B82F6;

    /* Surface */
    --bg: #050507;
    --bg-1: #0A0A0F;
    --bg-2: #111118;
    --bg-3: #1A1A24;
    --bg-4: #22222E;

    /* Border */
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);

    /* Text */
    --white: #F5F5F7;
    --text-1: #E5E5EA;
    --text-2: #A1A1AA;
    --text-3: #71717A;

    /* Misc */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-1);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
}

@media (pointer: fine) {
    body { cursor: none; }
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
button { font-family: inherit; -webkit-tap-highlight-color: transparent; }

/* Touch active states */
@media (hover: none) {
    .project-card:active { transform: scale(0.98); }
    .service-row:active { background: rgba(108,60,255,0.03); }
    .contact__detail:active { transform: translateX(3px); }
    .contact__social:active { background: rgba(255,255,255,0.06); }
    .btn:active { transform: scale(0.97); }
}

/* --- Noise Overlay --- */
.noise {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* --- Custom Cursor --- */
.cursor { display: none; }
@media (pointer: fine) {
    .cursor {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10000;
        pointer-events: none;
        mix-blend-mode: difference;
    }
    .cursor__dot {
        position: absolute;
        width: 6px;
        height: 6px;
        background: var(--white);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.2s var(--ease), height 0.2s var(--ease), opacity 0.2s;
    }
    .cursor__ring {
        position: absolute;
        width: 40px;
        height: 40px;
        border: 1.5px solid var(--white);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s;
        opacity: 0.5;
    }
    .cursor--hover .cursor__dot {
        width: 10px;
        height: 10px;
        opacity: 0.5;
    }
    .cursor--hover .cursor__ring {
        width: 60px;
        height: 60px;
        border-color: var(--primary-light);
        opacity: 0.3;
    }
}

/* --- Loader --- */
.loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader__content {
    text-align: center;
}

.loader__logo {
    width: 140px;
    margin: 0 auto 32px;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.96); }
    50% { opacity: 1; transform: scale(1); }
}

.loader__bar {
    width: 200px;
    height: 2px;
    background: var(--bg-3);
    border-radius: 2px;
    overflow: hidden;
}

.loader__progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    animation: loaderFill 1.8s var(--ease) forwards;
}

@keyframes loaderFill {
    0% { width: 0%; }
    60% { width: 80%; }
    100% { width: 100%; }
}

/* --- Utility --- */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    max-width: 700px;
    margin-bottom: 72px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: rgba(108, 60, 255, 0.08);
    border: 1px solid rgba(108, 60, 255, 0.15);
    border-radius: 100px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

.pulse-dot--green { background: var(--accent); }
.pulse-dot--green::after { border-color: var(--accent); }

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--primary-glow);
}

.btn--glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 200%;
    animation: glowRotate 3s linear infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.btn--glow:hover::before { opacity: 1; }

.btn--glow::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--primary);
    border-radius: inherit;
    z-index: -1;
    transition: background 0.4s;
}

.btn--glow:hover::after { background: var(--primary-light); }

@keyframes glowRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn__shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s var(--ease);
    pointer-events: none;
}

.btn:hover .btn__shine { left: 150%; }

.btn--ghost {
    background: transparent;
    color: var(--text-1);
    border: 1px solid var(--border-hover);
}

.btn--ghost:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.04);
    transform: translateY(-2px);
}

.btn--large { padding: 20px 44px; font-size: 1rem; }
.btn--full { width: 100%; }

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-group .reveal { transition-delay: calc(var(--i, 0) * 0.1s); }

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    padding-top: max(20px, env(safe-area-inset-top));
    transition: all 0.5s var(--ease);
}

.nav--scrolled {
    padding: 12px 0;
    background: rgba(5, 5, 7, 0.75);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border-bottom: 1px solid var(--border);
}

.nav__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo-img {
    height: 28px;
    width: auto;
    transition: opacity 0.3s;
}

.nav__logo-img:hover { opacity: 0.8; }

.nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__link {
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-2);
    border-radius: 100px;
    transition: all 0.3s var(--ease);
}

.nav__link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.06);
}

.nav__link--cta {
    background: var(--primary);
    color: var(--white);
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav__link--cta:hover {
    background: var(--primary-light);
    color: var(--white);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav__toggle span {
    width: 24px;
    height: 1.5px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
    transform-origin: center;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 32px 100px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero__orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 60, 255, 0.35), transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.hero__orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 229, 160, 0.2), transparent 70%);
    bottom: -10%;
    left: -10%;
    animation-delay: -3s;
}

.hero__orb--3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    top: 50%;
    left: 40%;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero__grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero__container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 36px;
    padding: 10px 20px;
    background: rgba(0, 229, 160, 0.06);
    border: 1px solid rgba(0, 229, 160, 0.12);
    border-radius: 100px;
}

.hero__eyebrow-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

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

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7.5vw, 6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
}

.hero__title-line {
    display: block;
    overflow: hidden;
}

.hero__title-word {
    display: inline-block;
    color: var(--white);
    margin-right: 0.25em;
}

.hero__title-word--outline {
    -webkit-text-stroke: 1.5px var(--text-3);
    color: transparent;
}

.hero__title-word--gradient {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    color: var(--text-2);
    max-width: 580px;
    line-height: 1.7;
    margin-bottom: 44px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-3);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========================================
   MARQUEE
   ======================================== */
.marquee {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-1);
}

.marquee__track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

.marquee__track:hover { animation-play-state: paused; }

.marquee__content {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-right: 24px;
}

.marquee__item {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-2);
    white-space: nowrap;
    transition: color 0.3s;
}

.marquee__item:hover { color: var(--white); }

.marquee__separator {
    color: var(--primary);
    font-size: 1.2rem;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   STATS
   ======================================== */
.stats {
    padding: 80px 32px;
}

.stats__container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.stats__item {
    text-align: center;
}

.stats__number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.03em;
    line-height: 1;
}

.stats__suffix {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: -0.03em;
    line-height: 1;
}

.stats__label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-3);
    margin-top: 8px;
    font-weight: 500;
}

.stats__divider {
    width: 1px;
    height: 48px;
    background: var(--border-hover);
}

/* ========================================
   WORK / PORTFOLIO
   ======================================== */
.work {
    padding: 120px 32px;
}

.work__container {
    max-width: 1280px;
    margin: 0 auto;
}

/* Featured Project */
.featured-project {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: center;
    padding: 56px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 24px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

.featured-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    opacity: 0.5;
}

.featured-project__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.featured-project__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.featured-project__desc {
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.featured-project__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.featured-project__tech span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-3);
    padding: 5px 12px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.featured-project__metrics {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}

.metric__value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.metric__label {
    font-size: 0.78rem;
    color: var(--text-3);
}

/* Browser Mockup */
.featured-project__visual {
    position: relative;
}

.browser-mockup {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.browser-mockup:hover {
    box-shadow: 0 24px 80px rgba(108, 60, 255, 0.15);
}

.browser-mockup__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
}

.browser-mockup__dots {
    display: flex;
    gap: 6px;
}

.browser-mockup__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-mockup__dots span:nth-child(1) { background: #FF5F57; }
.browser-mockup__dots span:nth-child(2) { background: #FEBC2E; }
.browser-mockup__dots span:nth-child(3) { background: #28C840; }

.browser-mockup__url {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-3);
    padding: 5px 16px;
    background: var(--bg);
    border-radius: 6px;
}

.browser-mockup__screen {
    padding: 16px;
    min-height: 320px;
}

/* POS UI Mock */
.pos-ui { display: flex; gap: 12px; height: 100%; }

.pos-ui__nav {
    width: 56px;
    background: var(--bg-2);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pos-ui__nav-logo {
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: 6px;
    margin-bottom: 8px;
}

.pos-ui__nav-items { display: flex; flex-direction: column; gap: 8px; width: 100%; }

.pos-ui__nav-item {
    width: 100%;
    height: 28px;
    background: var(--bg-3);
    border-radius: 5px;
    transition: all 0.3s;
}

.pos-ui__nav-item.active {
    background: var(--primary);
    box-shadow: 0 2px 8px var(--primary-glow);
}

.pos-ui__body { flex: 1; display: flex; flex-direction: column; gap: 12px; }

.pos-ui__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pos-ui__header-title {
    width: 120px;
    height: 16px;
    background: var(--bg-3);
    border-radius: 4px;
}

.pos-ui__header-actions { display: flex; gap: 8px; }

.pos-ui__btn {
    width: 60px;
    height: 24px;
    background: var(--bg-3);
    border-radius: 4px;
}

.pos-ui__btn.accent {
    background: var(--primary);
    box-shadow: 0 2px 8px var(--primary-glow);
}

.pos-ui__stats-row { display: flex; gap: 10px; }

.pos-ui__stat-card {
    flex: 1;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pos-ui__stat-label {
    width: 50%;
    height: 8px;
    background: var(--bg-4);
    border-radius: 2px;
}

.pos-ui__stat-value {
    width: 40%;
    height: 16px;
    background: var(--bg-4);
    border-radius: 3px;
}

.pos-ui__stat-value.large { width: 60%; height: 24px; }

.pos-ui__stat-chart {
    height: 30px;
    margin-top: 4px;
}

.pos-ui__stat-chart svg { width: 100%; height: 100%; }

.pos-ui__stat-bar {
    height: 6px;
    background: var(--bg-4);
    border-radius: 3px;
    overflow: hidden;
    margin-top: auto;
}

.pos-ui__stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    animation: barGrow 2s var(--ease) infinite alternate;
}

@keyframes barGrow {
    0% { width: 45%; }
    100% { width: 72%; }
}

.pos-ui__table {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.pos-ui__table-header {
    height: 20px;
    background: var(--bg-3);
    border-radius: 4px;
}

.pos-ui__table-row {
    height: 24px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.3s;
}

.pos-ui__table-row.highlight {
    border-color: rgba(108, 60, 255, 0.3);
    background: rgba(108, 60, 255, 0.05);
}

/* Floating badges */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: float 4s ease-in-out infinite;
    z-index: 2;
}

.floating-badge--1 { top: -16px; right: 24px; animation-delay: 0s; }
.floating-badge--2 { bottom: 24px; left: -16px; animation-delay: -2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Project Cards Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.projects-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.project-card {
    position: relative;
    padding: 40px 32px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.5s var(--ease);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(108,60,255,0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.project-card:hover::before { opacity: 1; }

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.project-card__number {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 24px;
    opacity: 0.5;
}

.project-card__icon {
    width: 48px;
    height: 48px;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.project-card__icon svg { width: 100%; height: 100%; }

.project-card__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.project-card__desc {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: auto;
}

.project-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.project-card__tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-3);
}

.project-card__arrow {
    color: var(--text-3);
    transition: all 0.3s var(--ease);
}

.project-card:hover .project-card__arrow {
    color: var(--primary-light);
    transform: translate(4px, -4px);
}

.project-card--cta {
    background: linear-gradient(135deg, rgba(108, 60, 255, 0.08), rgba(0, 229, 160, 0.05));
    border-color: rgba(108, 60, 255, 0.15);
    justify-content: center;
    text-align: center;
    align-items: center;
}

.project-card__cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 20px;
    transition: gap 0.3s var(--ease);
}

.project-card__cta-link:hover { gap: 14px; }

/* ========================================
   SERVICES
   ======================================== */
.services {
    padding: 120px 32px;
    background: var(--bg-1);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.services__container {
    max-width: 1280px;
    margin: 0 auto;
}

.services__list {
    display: flex;
    flex-direction: column;
}

.service-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.4s var(--ease);
    cursor: default;
}

.service-row:first-child { border-top: 1px solid var(--border); }

.service-row:hover {
    padding-left: 16px;
    background: linear-gradient(90deg, rgba(108,60,255,0.04), transparent 50%);
}

.service-row__number {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    opacity: 0.6;
}

.service-row__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
    transition: color 0.3s;
}

.service-row:hover .service-row__title { color: var(--primary-light); }

.service-row__desc {
    font-size: 0.88rem;
    color: var(--text-3);
    line-height: 1.6;
    max-width: 500px;
}

.service-row__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.service-row__tags span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-3);
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 100px;
    white-space: nowrap;
    transition: all 0.3s var(--ease);
}

.service-row:hover .service-row__tags span {
    border-color: rgba(108,60,255,0.2);
    color: var(--text-2);
}

/* ========================================
   ABOUT
   ======================================== */
.about {
    padding: 120px 32px;
}

.about__container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.about__text p {
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.about__text strong { color: var(--white); font-weight: 600; }

.about__links {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.about__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-2);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.3s var(--ease);
}

.about__link:hover {
    color: var(--white);
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.04);
    transform: translateY(-2px);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, var(--primary), var(--border), var(--accent));
}

.timeline__item {
    position: relative;
    padding: 20px 0 20px 28px;
}

.timeline__dot {
    position: absolute;
    left: -32px;
    top: 24px;
    width: 10px;
    height: 10px;
    background: var(--bg-3);
    border: 2px solid var(--text-3);
    border-radius: 50%;
    transform: translateX(-50%);
    transition: all 0.4s var(--ease);
    margin-left: 0.5px;
}

.timeline__item--active .timeline__dot {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
}

.timeline__year {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 6px;
}

.timeline__content h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.timeline__content p {
    font-size: 0.85rem;
    color: var(--text-3);
    line-height: 1.5;
}

.timeline__item--active .timeline__content h4 { color: var(--accent); }

/* ========================================
   CTA
   ======================================== */
.cta {
    padding: 140px 32px;
    position: relative;
    overflow: hidden;
}

.cta__bg {
    position: absolute;
    inset: 0;
}

.cta__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.cta__orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 60, 255, 0.2), transparent 70%);
    top: -20%;
    left: 20%;
}

.cta__orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 229, 160, 0.12), transparent 70%);
    bottom: -20%;
    right: 20%;
}

.cta__content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.cta__text {
    font-size: 1.1rem;
    color: var(--text-2);
    margin-bottom: 36px;
    line-height: 1.7;
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
    padding: 120px 32px;
    background: var(--bg-1);
    border-top: 1px solid var(--border);
}

.contact__container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.contact__desc {
    color: var(--text-2);
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 16px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.contact__detail {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease);
}

a.contact__detail:hover {
    border-color: var(--border-hover);
    background: var(--bg-3);
    transform: translateX(4px);
}

.contact__detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 60, 255, 0.08);
    border-radius: var(--radius-xs);
    color: var(--primary-light);
    flex-shrink: 0;
}

.contact__detail-label {
    font-size: 0.75rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 2px;
}

.contact__detail-value {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-1);
    display: block;
}

.contact__socials {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.contact__social {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-2);
    transition: all 0.3s var(--ease);
}

.contact__social:hover {
    color: var(--white);
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.04);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}

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

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

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

.form-group .optional {
    font-weight: 400;
    color: var(--text-3);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--text-1);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    outline: none;
    transition: all 0.3s var(--ease);
    -webkit-appearance: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 60, 255, 0.12);
}

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

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2371717A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 60px 32px 32px;
    border-top: 1px solid var(--border);
}

.footer__container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 40px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.footer__tagline {
    color: var(--text-3);
    font-size: 0.88rem;
    margin-top: 16px;
}

.footer__cols {
    display: flex;
    gap: 56px;
}

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

.footer__col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.footer__col a,
.footer__col span {
    font-size: 0.88rem;
    color: var(--text-2);
    transition: color 0.3s;
}

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

.footer__bottom {
    display: flex;
    justify-content: center;
}

.footer__bottom p {
    font-size: 0.78rem;
    color: var(--text-3);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .featured-project { grid-template-columns: 1fr; padding: 36px; }
    .projects-grid, .projects-grid--4 { grid-template-columns: 1fr 1fr; }
    .service-row { grid-template-columns: 60px 1fr; }
    .service-row__tags { grid-column: 1 / -1; justify-content: flex-start; }
    .about__container { grid-template-columns: 1fr; gap: 56px; }
    .contact__container { grid-template-columns: 1fr; gap: 48px; }
    .stats__container { gap: 32px; }
    .floating-badge--2 { left: 8px; }
}

@media (max-width: 768px) {
    /* Mobile Nav Overlay */
    .nav__links {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(5, 5, 7, 0.97);
        backdrop-filter: blur(32px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        z-index: 999;
    }

    .nav__links.active { display: flex; }

    .nav__links .nav__link {
        font-size: 1.3rem;
        padding: 16px 32px;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .nav__links .nav__link--cta {
        margin-left: 0;
        margin-top: 8px;
        justify-content: center;
    }

    .nav__toggle { display: flex; }

    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav__toggle.active span:nth-child(2) { opacity: 0; }
    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero */
    .hero { padding: 130px 20px 70px; }
    .hero__title { font-size: clamp(2.2rem, 9vw, 3.2rem); }
    .hero__subtitle { font-size: 1rem; margin-bottom: 32px; }
    .hero__eyebrow { font-size: 0.72rem; padding: 8px 14px; margin-bottom: 24px; }
    .hero__actions { margin-bottom: 0; }

    /* Stats */
    .stats { padding: 48px 20px; }
    .stats__container {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: flex-start;
    }
    .stats__divider { display: none; }
    .stats__item { flex: 1 0 40%; text-align: left; }
    .stats__number, .stats__suffix { font-size: 2rem; }

    /* Work */
    .work { padding: 80px 20px; }
    .section-header { margin-bottom: 48px; }
    .projects-grid { grid-template-columns: 1fr; gap: 16px; }
    .project-card { padding: 28px 22px; }

    .featured-project { padding: 22px; gap: 28px; }
    .featured-project__title { font-size: 1.5rem; }
    .featured-project__desc { font-size: 0.88rem; }
    .featured-project__metrics { gap: 16px; flex-wrap: wrap; }
    .featured-project__tech span { font-size: 0.65rem; padding: 3px 8px; }
    .featured-project__label { font-size: 0.7rem; }

    /* POS Mockup - smaller on mobile */
    .browser-mockup__bar { padding: 10px 12px; }
    .browser-mockup__screen { padding: 10px; min-height: 220px; }
    .pos-ui__nav { width: 36px; padding: 8px 4px; gap: 6px; }
    .pos-ui__nav-logo { width: 20px; height: 20px; }
    .pos-ui__nav-item { height: 22px; }
    .pos-ui__stat-card { padding: 8px; }
    .pos-ui__stats-row { gap: 6px; }
    .pos-ui__table-row { height: 18px; }

    .floating-badge { display: none; }
    .hero__scroll-indicator { display: none; }

    /* Services */
    .services { padding: 80px 20px; }
    .service-row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
    .service-row:hover { padding-left: 0; background: none; }
    .service-row__number { display: none; }
    .service-row__title { font-size: 1.15rem; }
    .service-row__desc { font-size: 0.84rem; max-width: 100%; }
    .service-row__tags { justify-content: flex-start; }
    .service-row__tags span { font-size: 0.68rem; }

    /* About */
    .about { padding: 80px 20px; }
    .about__title { font-size: 2rem; }
    .about__text p { font-size: 0.9rem; }

    .timeline { padding-left: 24px; }
    .timeline__content h4 { font-size: 0.95rem; }

    /* CTA */
    .cta { padding: 80px 20px; }
    .cta__title { font-size: 2rem; }
    .cta__text { font-size: 1rem; }

    /* Contact */
    .contact { padding: 80px 20px; }
    .contact__desc { font-size: 0.9rem; }
    .contact__details { gap: 12px; margin-top: 28px; }
    .contact__detail { padding: 14px 16px; gap: 12px; }
    .contact__detail-icon { width: 38px; height: 38px; }
    .contact__detail-value { font-size: 0.85rem; }
    .contact__socials { gap: 10px; }

    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 22px; border-radius: 14px; }
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 13px 14px;
        font-size: 16px; /* prevents iOS zoom */
    }

    /* Footer */
    .footer { padding: 40px 20px 24px; }
    .footer__top { flex-direction: column; gap: 32px; }
    .footer__cols { flex-direction: column; gap: 24px; }
    .nav__logo-img { height: 24px; }

    /* Buttons: proper touch targets */
    .btn { min-height: 48px; }
    .btn--large { min-height: 52px; }
    .btn--full { font-size: 16px; }

    /* Marquee smaller */
    .marquee { padding: 20px 0; }
    .marquee__item { font-size: 0.95rem; }
}

@media (max-width: 480px) {
    body { font-size: 15px; }
    .hero { padding: 115px 16px 56px; }
    .hero__title { font-size: 2rem; }
    .hero__title-word--outline { -webkit-text-stroke-width: 1px; }
    .section-title { font-size: 1.6rem; }
    .featured-project__title { font-size: 1.35rem; }
    .btn { padding: 13px 22px; font-size: 0.86rem; }
    .btn--large { padding: 15px 28px; }

    .metric__value { font-size: 1.1rem; }
    .stats__number, .stats__suffix { font-size: 1.7rem; }

    .about__title { font-size: 1.7rem; }
    .cta__title { font-size: 1.7rem; }

    .contact__detail-value { font-size: 0.8rem; word-break: break-all; }

    /* Single-column stats */
    .stats__item { flex: 1 0 100%; }
}

@media (max-width: 380px) {
    .hero { padding: 110px 14px 48px; }
    .hero__title { font-size: 1.8rem; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; }
    .featured-project { padding: 18px; }
    .project-card { padding: 22px 18px; }
    .contact-form { padding: 18px; }
    .section-title { font-size: 1.45rem; }
}
