:root {
    --bg: #F8FAFC;
    --panel: #FFFFFF;
    --ink: #0F172A;
    --muted: #475569;
    --line: #E2E8F0;
    
    /* Dukaan Ledger Primary brand blue */
    --brand: #134B9E;
    --brand-light: #1E66D4;
    --brand-dark: #0B2C5C;
    --brand-gradient: linear-gradient(135deg, #134B9E 0%, #1E66D4 100%);
    
    /* Support / Accent Colors */
    --brand-2: #10B981;
    --brand-2-light: #34D399;
    --soft: #EFF6FF;
    --soft-2: #ECFDF5;
    --soft-warn: #FFFBEB;
    --border-warn: #FDE68A;
    --warn-text: #B45309;
    --warn: #FEF3C7;
    --danger: #EF4444;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 48px rgba(19, 75, 158, 0.12);
    
    /* Typography */
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    margin: 0;
    background-color: var(--bg);
    background-image: 
        radial-gradient(at 0% 0%, rgba(30, 102, 212, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.02) 0px, transparent 50%);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Glassmorphic Topbar */
.topbar {
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.js-ready .topbar {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--brand-gradient);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(19, 75, 158, 0.25);
    letter-spacing: -0.5px;
    transform-origin: center;
}

.brand:hover .badge {
    transform: rotate(-6deg) scale(1.05);
}

.brand-copy strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.brand-copy span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    margin-top: 3px;
}

/* Menu items */
.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.menu a {
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.menu a:hover {
    color: var(--brand);
    border-color: var(--brand-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 75, 158, 0.08);
}

.menu a.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #FFFFFF;
    box-shadow: 0 8px 16px rgba(19, 75, 158, 0.2);
}

.menu a.active:hover {
    background: var(--brand-light);
    border-color: var(--brand-light);
    transform: translateY(-2px);
}

/* Mobile Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--ink);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section */
.hero {
    padding: 24px 0 16px;
}

.hero-card {
    background: radial-gradient(circle at 100% 0%, rgba(30, 102, 212, 0.15) 0%, transparent 40%), var(--brand-dark);
    background-image: 
        radial-gradient(circle at 100% 0%, rgba(30, 102, 212, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #0B2C5C 0%, #134B9E 70%, #1E66D4 100%);
    color: #FFFFFF;
    border-radius: 32px;
    padding: 60px 48px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02' fill-rule='evenodd'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2v2h-2V0zm0 4h2v2h-2V4zM4 40h2v2H4v-2zm0 4h2v2H4v-2z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.8;
    pointer-events: none;
}

.eyebrow {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #93C5FD;
    margin-bottom: 20px;
}

.hero-card h1 {
    margin: 0 0 18px;
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    max-width: 900px;
}

.hero-card p {
    margin: 0;
    color: rgba(248, 250, 252, 0.9);
    font-size: 18px;
    line-height: 1.6;
    max-width: 780px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

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

.btn-primary {
    background: #FFFFFF;
    color: var(--brand);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: var(--soft);
    color: var(--brand-dark);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Sections & Grid Layouts */
.section {
    padding: 48px 0;
}

.section h2 {
    margin: 0 0 16px;
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.8px;
    color: var(--ink);
}

.sub {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
    max-width: 820px;
    margin-bottom: 32px;
}

.grid {
    display: grid;
    gap: 24px;
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.split {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 24px;
}

/* Cards Design */
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: background 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(30, 102, 212, 0.2);
}

.card:hover::before {
    background: var(--brand-gradient);
}

.card h3 {
    margin: 16px 0 12px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.4px;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: 1px solid rgba(30, 102, 212, 0.1);
}

.list {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.list li {
    position: relative;
    padding-left: 28px;
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 12px;
}

.list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--brand-2);
    font-weight: 800;
    font-size: 18px;
}

/* Modifiers / Informational Panels */
.tone-info {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--soft) 100%);
    border-color: rgba(30, 102, 212, 0.15);
}

.tone-success {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--soft-2) 100%);
    border-color: rgba(16, 185, 129, 0.15);
}

.tone-warn {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--soft-warn) 100%);
    border-color: var(--border-warn);
}

.tone-warn h2 {
    color: var(--warn-text);
}

/* Legal Documents */
.legal h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.legal section {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px;
    margin-top: 24px;
    box-shadow: var(--shadow-sm);
}

.legal h3 {
    margin: 0 0 14px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}

.legal p, .legal li {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

/* Footer Section */
.footer {
    padding: 36px 0 54px;
    margin-top: 48px;
}

.footer-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--line);
    padding-top: 32px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    text-decoration: none;
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--brand);
    transform: translateY(-1px);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .grid.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .grid.three, .grid.two, .split {
        grid-template-columns: 1fr;
    }
    
    .hero-card h1 {
        font-size: 40px;
    }
    
    .hero-card {
        padding: 48px 36px;
    }
}

@media (max-width: 768px) {
    /* Responsive Header & Navigation */
    .topbar {
        background: rgba(248, 250, 252, 0.95) !important;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--panel);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        padding: 24px;
        gap: 12px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        box-shadow: var(--shadow-md);
        pointer-events: none;
    }
    
    .menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .menu a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px;
        border-radius: 12px;
    }
    
    /* Hamburger Menu Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero-card h1 {
        font-size: 34px;
    }
    
    .hero-card {
        padding: 36px 24px;
    }
    
    .section h2 {
        font-size: 30px;
    }
    
    .card {
        padding: 24px;
    }
    
    .footer-card {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .wrap {
        padding: 0 16px;
    }
    
    .topbar {
        padding: 16px 0;
    }
    
    .badge {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 18px;
    }
    
    .brand-copy strong {
        font-size: 20px;
    }
    
    .brand-copy span {
        font-size: 11px;
    }
    
    .hero-card {
        padding: 32px 18px;
        border-radius: 24px;
    }
    
    .hero-card h1 {
        font-size: 28px;
    }
    
    .hero-card p {
        font-size: 15px;
    }
    
    .btn {
        width: 100%;
        padding: 12px 20px;
    }
    
    .section {
        padding: 32px 0;
    }
    
    .section h2 {
        font-size: 26px;
    }
    
    .sub {
        font-size: 15px;
        margin-bottom: 24px;
    }
}
