:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --accent: #ed8936;
    --accent-hover: #dd6b20;
    --text: #1a202c;
    --text-muted: #718096;
    --bg: #fffaf5;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --success: #38a169;
    --warning: #d69e2e;
    --gradient-1: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #3182ce 100%);
    --gradient-2: linear-gradient(135deg, #ed8936 0%, #f6ad55 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    line-height: 1.2;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 250, 245, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.navbar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Instrument Serif', serif;
    font-size: 1.75rem;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(26, 54, 93, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-accent {
    background: var(--gradient-2);
    color: white;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(237, 137, 54, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: -20%;
    width: 70%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.03) 0%, rgba(49, 130, 206, 0.05) 100%);
    border-radius: 0 0 0 50%;
    z-index: -1;
}

.hero-pattern {
    position: absolute;
    top: 20%;
    right: 5%;
    width: 400px;
    height: 400px;
    background-image: radial-gradient(circle, var(--primary) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    z-index: -1;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(237, 137, 54, 0.1);
    color: var(--accent-hover);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-badge::before {
    content: '✨';
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero h1 span {
    color: var(--accent);
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(237, 137, 54, 0.2);
    z-index: -1;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 540px;
}

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

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: left;
}

.stat-value {
    font-family: 'Instrument Serif', serif;
    font-size: 2.5rem;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-dashboard {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-dashboard:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.dashboard-title {
    font-weight: 600;
    color: var(--primary);
}

.dashboard-dots {
    display: flex;
    gap: 6px;
}

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

.dot-red {
    background: #fc5c65;
}

.dot-yellow {
    background: #fed330;
}

.dot-green {
    background: #26de81;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mini-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.mini-card-value {
    font-family: 'Instrument Serif', serif;
    font-size: 1.75rem;
    color: var(--primary);
}

.mini-card-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-chart {
    height: 120px;
    background: linear-gradient(180deg, rgba(49, 130, 206, 0.1) 0%, transparent 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    bottom: 20px;
    left: 10%;
    width: 80%;
    height: 60px;
    border-bottom: 3px solid var(--primary);
    border-left: 3px solid transparent;
    clip-path: polygon(0 100%, 15% 60%, 30% 80%, 45% 30%, 60% 50%, 75% 20%, 90% 40%, 100% 10%, 100% 100%);
    background: linear-gradient(180deg, rgba(49, 130, 206, 0.3) 0%, rgba(49, 130, 206, 0.05) 100%);
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    animation: float 6s ease-in-out infinite;
}

.floating-card-1 {
    top: -20px;
    right: -30px;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 60px;
    left: -40px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.floating-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.icon-green {
    background: rgba(56, 161, 105, 0.1);
}

.icon-orange {
    background: rgba(237, 137, 54, 0.1);
}

.floating-card-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.floating-card-value {
    font-weight: 700;
    color: var(--text);
}

/* Trusted By Section */
.trusted {
    padding: 4rem 2rem;
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trusted-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.trusted-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.6;
}

.trusted-logo {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* Role-Based Section */
.roles {
    padding: 6rem 2rem;
    background: var(--bg);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.roles-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.role-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.role-card:hover::before {
    transform: scaleX(1);
}

.role-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.role-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.role-icon.admin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.role-icon.partner {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.role-icon.staff {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.role-icon.client {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.role-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.role-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.role-features {
    list-style: none;
}

.role-features li {
    padding: 0.5rem 0;
    color: var(--text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.role-features li::before {
    content: '✓';
    width: 20px;
    height: 20px;
    background: rgba(56, 161, 105, 0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Hierarchy Section */
.hierarchy {
    padding: 6rem 2rem;
    background: var(--primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.hierarchy-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hierarchy-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hierarchy .section-label {
    color: var(--accent);
}

.hierarchy .section-title {
    color: white;
}

.hierarchy .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.hierarchy-visual {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hierarchy-level {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hierarchy-node {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 150px;
}

.hierarchy-node:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.hierarchy-node.highlight {
    background: var(--accent);
    border-color: var(--accent);
}

.hierarchy-node-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.hierarchy-node-desc {
    font-size: 0.75rem;
    opacity: 0.8;
}

.hierarchy-connector {
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
}

.hierarchy-branches {
    display: flex;
    gap: 2rem;
    position: relative;
}

.hierarchy-branches::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 25%;
    width: 50%;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: white;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.feature-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Workflow Section */
.workflow {
    padding: 6rem 2rem;
    background: var(--bg);
}

.workflow-content {
    max-width: 1000px;
    margin: 0 auto;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.workflow-step {
    display: flex;
    gap: 2rem;
    position: relative;
}

.workflow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 70px;
    width: 2px;
    height: calc(100% - 30px);
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.step-content {
    padding-bottom: 3rem;
}

.step-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.step-desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
}

/* Pricing Section */
.pricing {
    padding: 6rem 2rem;
    background: white;
}

.pricing-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.pricing-card {
    background: var(--bg);
    border-radius: 24px;
    padding: 3rem;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.featured {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.02);
}

.pricing-card.featured .pricing-price,
.pricing-card.featured .pricing-title {
    color: white;
}

.pricing-card.featured .pricing-desc,
.pricing-card.featured .pricing-features li {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 30px;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pricing-price {
    font-family: 'Instrument Serif', serif;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.pricing-price span {
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.pricing-card.featured .pricing-features li {
    border-color: rgba(255, 255, 255, 0.1);
}

.pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
}

.pricing-card.featured .pricing-features li::before {
    color: var(--accent);
}

/* CTA Section */
.cta {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(237, 137, 54, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: white;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.cta .btn-secondary {
    border-color: white;
    color: white;
}

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

/* Footer */
.footer {
    padding: 4rem 2rem 2rem;
    background: #0f172a;
    color: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--accent);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero p {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

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

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

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

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

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

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

    .pricing-card.featured {
        transform: none;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animations on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}