@import url(https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap);
/* 001 */
html {
  font-size: 80%; /* 002 */
}

body {
  font-size: 1rem;
  /* 003 */
  font-family: 'Inter', sans-serif;
}
:root {
    /* 004 */
    --bg-primary: #FDF4F7;
    --bg-dashboard: #FCE7EE;
    --bg-warm: #FFF1F2;
    --bg-white: #FFFFFF;
    
    --text-primary: #1E1B2E;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    
    --accent-gold: #D97706;
    --accent-gold-hover: #B45309;
    --primary-blue: #0284C7;
    --primary-blue-hover: #0369A1;
    --accent-pink: #E11D48;
    --accent-pink-hover: #BE123C;
    
    --border-color: #F3D2E0;
    
    /* 005 */
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 22px;

    /* 006 */
    --shadow-xs: 0 1px 2px rgba(225,29,72,.03);
    --shadow-sm: 0 4px 12px rgba(225,29,72,.05);
    --shadow-md: 0 8px 24px rgba(225,29,72,.08);
    --shadow-lg: 0 14px 32px rgba(225,29,72,.10);
    --shadow-hover: 0 18px 40px rgba(225,29,72,.14);
    
    --container-width: 1280px;

    /* 007 */
    --fs-display: clamp(56px, 7vw, 72px);
    --fs-h1: clamp(42px, 5vw, 52px);
    --fs-h2: clamp(32px, 4vw, 38px);
    --fs-h3: clamp(22px, 3vw, 26px);
    --fs-body: 17px;
    --fs-small: 15px;
    --fs-label: 13px;

    /* 008 */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;
    --space-10: 120px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    min-width: 0;
    font-family: var(--font-ui, 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    letter-spacing: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--space-7);
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 400;
    font-size: var(--fs-body);
    line-height: 1.75;
    overflow-x: hidden;
    padding-top: calc(72px + env(safe-area-inset-top));
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}


/* 009 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(225,29,72,.03) 1px, transparent 1px);
    background-size: 6px 6px;
    opacity: .12;
    z-index: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    overflow-wrap: break-word;
    text-wrap: balance;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

h1 {
    font-size: var(--fs-display);
    line-height: 1.02;
}

h2 {
    font-size: var(--fs-h1);
    line-height: 1.08;
}

h3 {
    font-size: var(--fs-h2);
    line-height: 1.15;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: var(--fs-body);
    line-height: 1.75;
    overflow-wrap: break-word;
    text-wrap: pretty;
}

strong {
    font-weight: 600;
}

button {
    font-weight: 500;
    font-family: inherit;
}

.section-label {
    font-size: var(--fs-label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-blue);
    margin-bottom: var(--space-3);
    display: block;
    text-align: center;
}

:focus-visible {
    outline: 3px solid rgba(225,29,72,.4);
    outline-offset: 3px;
}

::selection {
    background: #E11D48;
    color: white;
}

/* 010 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #FCE7EE;
}
::-webkit-scrollbar-thumb {
    background: #F43F5E;
    border-radius: 16px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E11D48;
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-5);
    position: relative;
    z-index: 1;
}

section {
    padding: 110px 0;
    position: relative;
    background-color: var(--bg-primary);
    contain: layout style paint;
}

section:nth-child(even) {
    background: linear-gradient(180deg, #FFFFFF, #FCE7EE);
}

@media (max-width: 1024px) {
    section { padding: 90px 0; }
}
@media (max-width: 768px) {
    section { padding: 72px 0; }
    .container { padding: 0 var(--space-4); }
}
@media (max-width: 480px) {
    section { padding: 56px 0; }
}

/* 011 */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(160px);
    opacity: .5;
    pointer-events: none;
    z-index: 0;
}
.glow-blue { 
    width: 600px; height: 600px; 
    background: radial-gradient(circle, rgba(2,132,199,0.15) 0%, transparent 70%); 
    top: 10%; left: 5%;
}
.glow-pink { 
    width: 500px; height: 500px; 
    background: radial-gradient(circle, rgba(225,29,72,0.08) 0%, transparent 70%); 
    top: 40%; right: 5%;
}
.glow-gold { 
    width: 450px; height: 450px; 
    background: radial-gradient(circle, rgba(56,189,248,0.15) 0%, transparent 70%); 
    bottom: 10%; left: 20%;
}

/* 012 */
#marketingPage { display: block; }
#appContent { display: none; width: 100%; }

/* 013 */
header, .marketing-header {
  display: flex !important;
}

body.pwa-mode #appContent:not([style*="display: none"]) header,
body.pwa-mode #appContent:not([style*="display: none"]) .marketing-header {
  display: none !important;
}

.login-page-wrapper { 
  width: 100vw; 
  height: 100vh;
  margin: 0; 
  padding: 24px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--bg-primary);
  z-index: 1000;
}

.login-card {
  background: var(--bg-white, #fff); 
  border-radius: var(--radius-lg, 20px);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.login-card h2 { 
    margin-top: 0 !important; 
    margin-bottom: 24px !important;
    text-align: center; 
    color: var(--text-primary); 
    font-size: 1.25rem !important; 
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em;
}

.role-selector label,
.login-card label { 
    display: block; 
    margin-top: 16px; 
    font-weight: 600; 
    color: var(--text-secondary); 
    font-size: var(--fs-label);
    letter-spacing: -0.01em;
}

.login-card input, 
.login-card select {
  width: 100%; 
  padding: 12px 16px; 
  margin-top: 6px;
  border-radius: var(--radius-sm, 12px); 
  border: 1px solid #cbd5e1;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  background: var(--bg-primary);
  transition: all 0.2s ease;
}

.login-card input:focus, 
.login-card select:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: var(--bg-white, #fff);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.button {
  background: var(--primary-blue); 
  color: #fff; 
  border: none;
  padding: 14px 20px; 
  border-radius: var(--radius-sm, 12px);
  font-weight: 600; 
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease; 
  margin-top: 24px; 
  width: 100%;
  font-size: 15px;
  font-family: inherit;
}

.button:hover { 
  background: var(--primary-blue-hover); 
}

.button:active {
  transform: translateY(1px);
}

.error { 
  margin-top: 16px; 
  color: var(--accent-pink); 
  font-size: 13px; 
  text-align: center;
  font-weight: 500;
}
    
    /* 014 */
.section-title {
    font-size: var(--fs-h1);
    text-align: center;
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-8) auto;
    font-weight: 400;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .section-subtitle { 
        margin-bottom: var(--space-6); 
    }
}
/* 015 */
@media all and (display-mode: standalone), (display-mode: window-controls-overlay) {
  header, .marketing-header {
    display: none !important;
  }
}
/* 016 */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(160px);
    opacity: .5;
    pointer-events: none;
    z-index: 0;
}
.glow-blue { 
    width: 600px; height: 600px; 
    background: radial-gradient(circle, rgba(2,132,199,0.15) 0%, transparent 70%); 
    top: 10%; left: 5%;
}
.glow-pink { 
    width: 500px; height: 500px; 
    background: radial-gradient(circle, rgba(225,29,72,0.08) 0%, transparent 70%); 
    top: 40%; right: 5%;
}
.glow-gold { 
    width: 450px; height: 450px; 
    background: radial-gradient(circle, rgba(56,189,248,0.15) 0%, transparent 70%); 
    bottom: 10%; left: 20%;
}

/* 017 */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    overflow-wrap: break-word;
    text-wrap: balance;
}

h1 {
    font-size: var(--fs-display);
    line-height: 1.02;
}

h2 {
    font-size: var(--fs-h1);
    line-height: 1.08;
}

h3 {
    font-size: var(--fs-h2);
    line-height: 1.15;
}

p {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: var(--fs-body);
    line-height: 1.75;
    overflow-wrap: break-word;
    text-wrap: pretty;
}

.section-label {
    font-size: var(--fs-label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-blue);
    margin-bottom: var(--space-3);
    display: block;
    text-align: center;
}

/* 018 */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 240ms cubic-bezier(0.16, 1, 0.3, 1), transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 019 */
.card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, var(--space-6));
    box-shadow: var(--shadow-sm);
    isolation: isolate;
    transition: all .3s cubic-bezier(.2,.8,.2,1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(2,132,199,0.5);
}

@media (hover: hover) {
    .card::after {
        content: '';
        position: absolute;
        top: var(--mouse-y, -100px);
        left: var(--mouse-x, -100px);
        width: 180px;
        height: 180px;
        background: radial-gradient(circle, rgba(2,132,199,0.12) 0%, transparent 70%);
        transform: translate(-50%, -50%);
        pointer-events: none;
        opacity: 0;
        transition: opacity 180ms ease;
    }
    .card:hover::after {
        opacity: 1;
    }
}

/* 020 */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--space-5); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--space-5); }
.grid-5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--space-4); }

/* 021 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: var(--space-3) clamp(18px, 4vw, var(--space-6));
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--fs-small);
    cursor: pointer;
    touch-action: manipulation;
    transition: all .2s cubic-bezier(.2,.8,.2,1);
    text-decoration: none;
    gap: var(--space-2);
    position: relative;
    overflow: hidden;
}
.btn:active {
    transform: scale(.98);
}

.btn-primary {
    background: linear-gradient(180deg, #38BDF8 0%, #0284C7 40%, #0369A1 100%);
    color: #FFFFFF;
    border: 1px solid #BAE6FD;
    box-shadow: 0 6px 18px rgba(2,132,199,.2), inset 0 2px 3px rgba(255,255,255,0.4), inset 0 -3px 4px rgba(0,0,0,0.1);
}
.btn-primary:hover {
    background: linear-gradient(180deg, #7DD3FC 0%, #0ea5e9 40%, #0284c7 100%);
    box-shadow: 0 12px 30px rgba(2,132,199,0.4), inset 0 2px 4px rgba(255,255,255,0.6), inset 0 -3px 4px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; 
    left: -100%; 
    width: 50%; 
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    animation: shine 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shine {
    0% { left: -100%; }
    25% { left: 200%; }
    100% { left: 200%; }
}

.btn-secondary {
    background: linear-gradient(180deg, #FFFFFF 0%, #E0F2FE 100%);
    border: 1px solid #BAE6FD;
    color: var(--text-primary);
    box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
    background: linear-gradient(180deg, #FFFFFF 0%, #BAE6FD 100%);
    border-color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn .arrow-icon {
    display: inline-flex;
    transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover .arrow-icon {
    transform: translateX(4px);
}

/* 022 */
.icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    background: transparent;
    border: 1px solid var(--border-color);
}
.icon-blue { color: var(--primary-blue); border-color: rgba(2,132,199,0.3); background: linear-gradient(135deg, rgba(2,132,199,0.08), rgba(2,132,199,0.02)); box-shadow: inset 0 1px 2px rgba(255,255,255,1); }
.icon-pink { color: var(--accent-pink); border-color: rgba(225,29,72,0.3); background: linear-gradient(135deg, rgba(225,29,72,0.08), rgba(225,29,72,0.02)); box-shadow: inset 0 1px 2px rgba(255,255,255,1); }
.icon-gold { color: var(--accent-gold); border-color: rgba(2,132,199,0.3); background: linear-gradient(135deg, rgba(2,132,199,0.08), rgba(2,132,199,0.02)); box-shadow: inset 0 1px 2px rgba(255,255,255,1); }

/* 023 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99999;
    /* 024 */
    box-sizing: border-box;
    padding: 12px clamp(16px, 4vw, var(--space-5));
    background: rgba(240, 249, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    transition: background 240ms ease, box-shadow 240ms ease;
}

.nav-wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

header.scrolled {
    background: rgba(240, 249, 255, 0.95);
    box-shadow: 0 4px 20px -2px rgba(2,132,199,0.08);
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.logo-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-symbol svg {
    width: 100%;
    height: 100%;
    display: block;
}

.nav-links {
    display: flex;
    gap: var(--space-5);
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: var(--fs-small);
    font-weight: 500;
    transition: color 180ms ease;
}
.nav-links a:hover { 
    color: var(--text-primary); 
}

@media(max-width: 900px) {
    .nav-links { display: none; }
}

/* 025 */
/* 026 */
body.pwa-mode header,
body.pwa-mode .marketing-header {
    display: none !important;
}

/* 027 */
.device-footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 48px;
    padding: 8px 16px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-label);
    font-weight: 500;
    z-index: 99999;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
    gap: 8px 16px;
    box-sizing: border-box;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.device-badge-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.device-badge-pill:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pwa-install-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: var(--radius-xs);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 180ms ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    white-space: nowrap;
}

.pwa-install-btn:hover {
    background: var(--primary-blue-hover);
}

@media (max-width: 480px) {
    .device-footer-bar {
        flex-direction: column;
        gap: 6px;
        padding: 6px 10px;
        font-size: 11px;
        text-align: center;
    }

    .footer-actions {
        gap: 6px;
    }

    .device-badge-pill, .pwa-install-btn {
        font-size: 11px;
        padding: 3px 8px;
    }
}

    /* 028 */
    .hero {
        padding: clamp(90px, 12vw, 150px) 0 clamp(60px, 8vw, var(--space-8));
        text-align: center;
        position: relative;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(248,250,252,0.9));
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    @media (max-height: 500px) {
        .hero {
            min-height: auto;
            padding: var(--space-8) 0;
        }
    }
    @media (orientation: landscape) and (max-height: 500px) {
        header {
            position: sticky;
        }
        .hero {
            padding-top: var(--space-7);
            padding-bottom: var(--space-6);
        }
    }
    .hero-badge {
        display: inline-flex;
        align-items: center;
        background: rgba(225, 29, 72, 0.08);
        border: 1px solid rgba(225, 29, 72, 0.2);
        padding: 4px var(--space-3);
        border-radius: 999px;
        font-size: 11px;
        font-weight: 600;
        color: var(--accent-pink);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-bottom: var(--space-5);
        box-shadow: inset 0 1px 2px rgba(255,255,255,1);
    }
    .hero h1 {
        font-size: var(--fs-display);
        font-weight: 650;
        max-width: 920px;
        margin: 0 auto var(--space-4) auto;
        line-height: 1.02;
    }
    .hero h1 span.pink { color: var(--accent-pink); }
    .hero h1 span.gold { color: var(--accent-gold); }
    .hero p {
        font-size: var(--fs-body);
        color: var(--text-secondary);
        max-width: 580px;
        margin: 0 auto var(--space-8) auto;
        line-height: 1.75;
    }
    .hero-cta-group {
        display: flex;
        justify-content: center;
        gap: var(--space-3);
        margin-bottom: var(--space-8);
        flex-wrap: wrap;
    }

    .hero-illustration {
        width: 100%;
        max-width: 920px;
        margin: 0 auto;
        background: radial-gradient(circle at top, rgba(2,132,199,.1), transparent 70%), #FFFFFF;
        border: 1px solid #E8EDF5;
        border-radius: var(--radius-xl);
        padding: var(--space-6);
        box-shadow: var(--shadow-sm);
        position: relative;
        overflow: hidden;
    }
    .node-tree {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-4);
        position: relative;
        z-index: 2;
    }
    .node-owner {
        background: linear-gradient(135deg, #FFFFFF 0%, #FEF3C7 100%);
        border: 2px solid var(--accent-gold);
        padding: var(--space-2) var(--space-5);
        border-radius: var(--radius-sm);
        font-weight: 700;
        font-size: var(--fs-small);
        box-shadow: 0 6px 16px rgba(217,119,6,0.25), inset 0 2px 4px rgba(255,255,255,1);
    }
    .node-branches-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
        gap: var(--space-4);
        width: 100%;
        max-width: 600px;
    }
    @media(max-width: 600px) {
        .hero-illustration { padding: var(--space-4); }
    }
    .node-project-card {
        background: #fff;
        border: 1px solid #E8EDF5;
        border-radius: var(--radius-sm);
        padding: var(--space-3);
        text-align: center;
        transition: all 180ms ease;
        box-shadow: var(--shadow-xs);
    }
    .node-project-card:hover {
        border-color: var(--primary-blue);
        transform: translateY(-1px);
        box-shadow: var(--shadow-sm);
    }
    .node-project-title {
        font-weight: 600;
        font-size: var(--fs-label);
        margin-bottom: var(--space-1);
        color: var(--text-primary);
    }
    .node-project-sub {
        font-size: 11px;
        color: var(--text-muted);
    }

/* 029 */
    .erp-dashboard {
        background: linear-gradient(135deg, rgba(241,245,249,0.9), rgba(226,232,240,0.95));
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: var(--radius-xl);
        border: 1px solid #E8EDF5;
        padding: var(--space-6);
        box-shadow: var(--shadow-sm);
        text-align: left;
        width: 100%;
        box-sizing: border-box;
    }
    @media(max-width: 768px) {
        .erp-dashboard { padding: var(--space-3); }
    }
    .erp-header-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--space-6);
        padding-bottom: var(--space-4);
        border-bottom: 1px solid var(--border-color);
        flex-wrap: wrap;
        gap: var(--space-3);
    }
    .erp-brand-meta {
        display: flex;
        align-items: center;
        gap: var(--space-3);
    }
    .erp-avatar-stack {
        display: flex;
        align-items: center;
    }
    .erp-avatar {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 2px solid white;
        background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-hover));
        color: white;
        font-size: 10px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: -8px;
        box-shadow: inset 0 1px 2px rgba(255,255,255,0.6);
    }
    .erp-avatar:first-child { margin-left: 0; }
    .erp-live-badge {
        display: inline-flex;
        align-items: center;
        gap: var(--space-2);
        background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
        color: #059669;
        padding: 4px var(--space-3);
        border-radius: 999px;
        font-size: 11px;
        font-weight: 600;
        border: 1px solid rgba(5,150,105,0.2);
        box-shadow: inset 0 1px 2px rgba(255,255,255,1);
    }
    .erp-live-dot {
        width: 6px;
        height: 6px;
        background: #059669;
        border-radius: 50%;
        box-shadow: 0 0 6px #059669;
    }

    .erp-grid {
        display: grid;
        grid-template-columns: 240px minmax(0, 1fr);
        gap: var(--space-6);
        min-height: 400px;
        width: 100%;
    }
    .erp-sidebar {
        border-right: 1px solid var(--border-color);
        padding-right: var(--space-5);
        display: flex;
        flex-direction: column;
        gap: var(--space-1);
        scrollbar-width: none;
        -ms-overflow-style: none;
        min-width: 0;
    }
    .erp-sidebar::-webkit-scrollbar {
        display: none;
    }
    .erp-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--space-2) var(--space-3);
        border-radius: var(--radius-xs);
        font-size: var(--fs-label);
        font-weight: 500;
        color: var(--text-secondary);
        cursor: pointer;
        transition: all 180ms ease;
        text-decoration: none;
        gap: 8px;
    }
    .erp-link:hover {
        background: rgba(2,132,199,0.06);
        color: var(--primary-blue);
    }
    .erp-link.active {
        background: linear-gradient(135deg, rgba(2,132,199,0.12), rgba(2,132,199,0.04));
        color: var(--primary-blue);
        font-weight: 600;
        box-shadow: inset 0 1px 2px rgba(255,255,255,1);
        border: 1px solid rgba(2,132,199,0.2);
    }
    .erp-counter {
        background: var(--border-color);
        color: var(--text-secondary);
        padding: 1px var(--space-2);
        border-radius: 999px;
        font-size: 10px;
        font-weight: 600;
    }
    .erp-link.active .erp-counter {
        background: var(--primary-blue);
        color: white;
    }

    .erp-body {
        display: flex;
        flex-direction: column;
        gap: var(--space-4);
        min-width: 0;
        width: 100%;
        overflow: hidden;
    }
    .erp-kpi-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-3);
        width: 100%;
    }
    @media(max-width: 600px) {
        .erp-kpi-row {
            grid-template-columns: 1fr;
        }
    }
    .erp-kpi-card {
        background: #fff;
        border: 1px solid #E8EDF5;
        border-left: 4px solid var(--primary-blue);
        border-radius: var(--radius-sm);
        padding: var(--space-4);
        box-shadow: var(--shadow-xs);
        min-width: 0;
        overflow: hidden;
    }
    .erp-kpi-title {
        font-size: 11px;
        color: var(--text-muted);
        text-transform: uppercase;
        font-weight: 600;
        margin-bottom: var(--space-1);
    }
    .erp-kpi-value {
        font-size: var(--fs-h3);
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: var(--space-2);
        word-break: break-word;
    }

    /* 030 */
    .erp-charts-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-4);
        width: 100%;
    }
    @media(max-width: 850px) {
        .erp-charts-grid {
            grid-template-columns: 1fr;
        }
    }

    .erp-chart-card {
        background: var(--bg-white);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        padding: var(--space-4);
        box-shadow: var(--shadow-xs);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-width: 0;
        overflow: hidden;
        width: 100%;
    }

    .erp-progress-bar {
        width: 100%;
        height: 4px;
        background: var(--border-color);
        border-radius: 999px;
        overflow: hidden;
    }
    .erp-progress-fill {
        height: 100%;
        background: linear-gradient(90deg, var(--primary-blue), #38BDF8);
        border-radius: 999px;
    }

    .erp-table-box {
        background: #fff;
        border: 1px solid #E8EDF5;
        border-radius: var(--radius-sm);
        padding: var(--space-4);
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: var(--shadow-xs);
        box-sizing: border-box;
    }

    .erp-row {
        display: flex;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
        font-size: var(--fs-small);
        color: var(--text-secondary);
        align-items: center;
        gap: 12px;
        min-width: 320px;
    }
    .erp-row > * {
        min-width: 0;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    .erp-row > *:nth-child(1) { flex: 2; }
    .erp-row > *:nth-child(2) { flex: 1.5; }
    .erp-row > *:nth-child(3) { flex: 1; text-align: right; }
    .erp-row:last-child { border-bottom: none; }

    /* 031 */
    .status-pill {
        display: inline-flex;
        align-items: center;
        padding: 2px 8px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: -0.01em;
        border: 1px solid rgba(255,255,255,0.6);
        box-shadow: inset 0 1px 2px rgba(255,255,255,1);
    }
    .status-pill.pending { background: linear-gradient(135deg, #FEF3C7, #FDE68A); color: #D97706; border-color: rgba(217,119,6,0.3); }
    .status-pill.paid { background: linear-gradient(135deg, #ECFDF5, #D1FAE5); color: #059669; border-color: rgba(5,150,105,0.3); }
    .status-pill.overdue { background: linear-gradient(135deg, #FEF2F2, #FECACA); color: #DC2626; border-color: rgba(220,38,38,0.3); }

    @media(max-width: 900px) {
        .erp-grid { grid-template-columns: 1fr; gap: var(--space-4); }
        .erp-sidebar { 
            border-right: none; 
            border-bottom: 1px solid var(--border-color); 
            padding-bottom: var(--space-3); 
            padding-right: 0;
            flex-direction: row; 
            overflow-x: auto; 
            -webkit-overflow-scrolling: touch; 
            gap: var(--space-2);
        }
        .erp-link { white-space: nowrap; flex-shrink: 0; }
    }
    /* 032 */
    .industry-card {
        background: #fff;
        border: 1px solid #E8EDF5;
        border-radius: var(--radius-lg);
        padding: var(--space-6);
        box-shadow: var(--shadow-sm);
        cursor: pointer;
        transition: all .2s cubic-bezier(.2,.8,.2,1);
        position: relative;
        overflow: hidden;
    }
    .industry-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
        border-color: var(--primary-blue);
    }
    .industry-modules-list {
        margin-top: var(--space-3);
        display: flex;
        flex-direction: column;
        gap: var(--space-1);
        max-height: 200px;
        opacity: 1;
        overflow: hidden;
        transition: all 240ms cubic-bezier(0.16, 1, 0.3, 1);
    }
    .industry-card:not(:hover) .industry-modules-list {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
    }
    .industry-module-item {
        font-size: var(--fs-small);
        color: var(--primary-blue);
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: var(--space-2);
    }

    .comparison-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
        gap: var(--space-5);
    }
    .comparison-card {
        background: #fff;
        border-radius: var(--radius-lg);
        border: 1px solid #E8EDF5;
        padding: 40px;
        box-shadow: var(--shadow-sm);
    }
    .comparison-card.sran {
        border-color: var(--accent-gold);
        position: relative;
    }
    .comparison-card.sran::before {
        content: 'Standard System';
        position: absolute;
        top: -12px; right: 32px;
        background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
        color: #FFFFFF;
        font-size: 11px;
        font-weight: 600;
        padding: 2px 10px;
        border-radius: 999px;
        letter-spacing: 0.02em;
        border: 1px solid rgba(255,255,255,0.6);
        box-shadow: inset 0 1px 2px rgba(255,255,255,0.6), 0 4px 10px rgba(217,119,6,0.3);
    }
    .comparison-list {
        list-style: none;
        margin-top: var(--space-5);
    }
    .comparison-list li {
        padding: var(--space-3) 0;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        gap: var(--space-3);
        font-size: var(--fs-small);
        color: var(--text-secondary);
    }

    /* 033 */
    footer {
        background: var(--bg-primary);
        padding: var(--space-10) 0 var(--space-8) 0;
        border-top: 1px solid var(--border-color);
    }
    .footer-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
        gap: var(--space-6);
        margin-bottom: var(--space-8);
    }
    .footer-col h4 { font-size: var(--fs-label); font-weight: 650; margin-bottom: var(--space-4); }
    .footer-col ul { list-style: none; }
    .footer-col ul li { margin-bottom: var(--space-3); }
    .footer-col ul li a { color: var(--text-secondary); text-decoration: none; font-size: var(--fs-small); transition: color 180ms ease; }
    .footer-col ul li a:hover { color: var(--text-primary); }
    .footer-bottom {
        padding-top: var(--space-5);
        border-top: 1px solid var(--border-color);
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: var(--text-muted);
        font-size: var(--fs-small);
        flex-wrap: wrap;
        gap: var(--space-4);
    }
    
    /* 034 */
    @media (max-width: 768px) {
        body {
            overflow-x: hidden;
        }

        h1, h2, h3, h4, p, span, a {
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
    }

    @media (max-width: 480px) {
        .container {
            padding: 0 var(--space-3);
        }
        .hero h1 {
            font-size: 34px;
        }
        .hero p {
            font-size: 15px;
        }
        .btn {
            width: 100%;
        }
        .hero-cta-group {
            flex-direction: column;
        }
        .card {
            padding: var(--space-4);
        }
        .section-title {
            font-size: 30px;
        }
    }

/* 035 */

    /* 036 */
    @media (min-width: 1024px) {
        .grid-5 {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 16px;
        }
    }
    @media (max-width: 1023px) and (min-width: 640px) {
        .grid-5 {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 16px;
        }
    }
    @media (max-width: 639px) {
        .grid-5 {
            display: grid;
            grid-template-columns: repeat(1, minmax(0, 1fr));
            gap: 12px;
        }
    }
@media all and (display-mode: standalone) {
  #marketingPage {
    display: none !important;
  }
  #appContent {
    display: block !important;
  }
}
