:root {
    /* Colors - Midnight Theme */
    --bg-dark: #0B0E17;
    --bg-card: rgba(30, 37, 59, 0.7);
    --bg-card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-primary: #22d3ee;
    /* Brand Cyan */
    --accent-glow: rgba(34, 211, 238, 0.2);

    /* Spacing */
    --container-width: 1200px;
    --section-spacing: 64px;

    /* Font */
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Background Pattern mimic */
    background-image:
        radial-gradient(at 100% 100%, hsla(253, 16%, 15%, 1) 0, transparent 50%),
        radial-gradient(at 0% 0%, hsla(225, 39%, 20%, 1) 0, transparent 50%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20h20v20H20V20zM0 0h20v20H0V0z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: var(--section-spacing) 0;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    padding: 24px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
}

.logo i {
    font-size: 1.75rem;
    color: var(--accent-primary);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-primary);
    color: #0f172a;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-outline {
    border: 1px solid var(--bg-card-border);
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Offset for header */
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-badges {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 99px;
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Glass Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--bg-card-border);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 64px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

/* Ledger Section */
.ledger-section {
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.5), transparent);
}

.ledger-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.ledger-graphic {
    background: #0f172a;
    border-radius: 12px;
    border: 1px solid var(--bg-card-border);
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.ledger-graphic pre {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #a5b4fc;
    line-height: 1.5;
}

/* Footer */
footer {
    border-top: 1px solid var(--bg-card-border);
    padding: 64px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Utilities */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.text-accent {
    color: var(--accent-primary);
}

/* Decorative Elements */
.glow-spot {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    filter: blur(150px);
    opacity: 0.1;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 80px;
    }

    .ledger-layout {
        grid-template-columns: 1fr;
    }

    /* Reorder Unified Checkout specific section to show title first */
    .checkout-section .ledger-layout {
        display: flex;
        flex-direction: column-reverse;
        gap: 40px;
    }
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}