:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-primary: #6366f1;
    --accent-secondary: #a855f7;
    --accent-tertiary: #ec4899;
    --gradient-main: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-text: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    --border-light: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --spacing-container: 1200px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.08) 0%, transparent 25%);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: 4rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Layout */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

section {
    padding: 4rem 0;
    position: relative;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 10px 20px -10px rgba(99, 102, 241, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

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

/* Hero */
.hero {
    padding-top: 8rem;
    padding-bottom: 8rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-subtitle {
    max-width: 600px;
    margin-bottom: 3rem;
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

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

/* Score Meter */
.score-meter-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 2.5rem;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
    position: relative;
    max-width: 450px;
    margin: 0 auto;
}

.meter-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.gauge-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.gauge {
    width: 100%;
    height: auto;
    overflow: visible;
}

.needle-group {
    transform-origin: 100px 100px;
    transform: rotate(49deg);
    /* Accurate rotation for 764 score */
    animation: needleMove 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes needleMove {
    0% {
        transform: rotate(-90deg);
    }

    100% {
        transform: rotate(49deg);
    }
}

.score-display {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: -1rem;
    position: relative;
    z-index: 10;
}

.score-label {
    color: #4ade80;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.meter-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.meter-footer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

.meter-footer strong {
    color: var(--accent-primary);
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

/* Cards & Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Compact metadata grid for document headers */
.metadata-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.metadata-grid article h4,
.metadata-grid h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.metadata-grid article p,
.metadata-grid p {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0;
}

/* Cards containing metadata get tighter padding */
.card:has(.metadata-grid) {
    padding: 1.5rem 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-glow);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 2rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.step:hover .step-number {
    background: var(--gradient-main);
    color: white;
    border-color: transparent;
}

/* Verification Block */
.verification-block {
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    padding: 3rem;
    max-width: 700px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
}

.verification-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.status {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(39, 245, 155, 0.1);
    color: #27f59b;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.verification-score {
    font-size: 5rem;
    font-weight: 800;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.verification-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.verification-row:last-child {
    border-bottom: none;
}

.verification-row dt {
    color: var(--text-secondary);
    font-weight: 500;
}

.verification-row dd {
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

/* Two Column */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .two-col {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 3rem;
    }

    .nav {
        display: none;
    }
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-light);
    padding: 5rem 0 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    max-width: 600px;
}

/* Gradient Text Utility */
.text-gradient {
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Blockchain Chain Styles */
.blockchain-chain {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    position: relative;
    padding: 2rem 0;
}

.blockchain-block {
    position: relative;
    width: 320px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.blockchain-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-main);
    opacity: 0.8;
}

.blockchain-block::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -32px;
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: translateY(-50%);
    z-index: 10;
}

.blockchain-block:nth-child(3n)::after,
.blockchain-block:last-child::after {
    display: none;
}

@media (max-width: 1100px) {
    .blockchain-block::after {
        display: none;
    }
}

.blockchain-block:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow:
        0 20px 40px -20px rgba(99, 102, 241, 0.4),
        0 0 60px -30px rgba(168, 85, 247, 0.3),
        inset 0 0 30px rgba(99, 102, 241, 0.05);
}

.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.block-number {
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.block-hash {
    font-family: var(--font-mono, monospace);
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.block-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 20px -8px rgba(99, 102, 241, 0.5);
}

.block-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

.blockchain-block h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.blockchain-block p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

.chain-connector {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            transparent,
            rgba(99, 102, 241, 0.3) 10%,
            rgba(168, 85, 247, 0.3) 50%,
            rgba(99, 102, 241, 0.3) 90%,
            transparent);
    z-index: 0;
    display: none;
}

@media (min-width: 1100px) {
    .chain-connector {
        display: block;
    }
}

/* Animated pulse on chain */
@keyframes chainPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

.blockchain-block:nth-child(1) {
    animation: fadeSlideUp 0.6s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.blockchain-block:nth-child(2) {
    animation: fadeSlideUp 0.6s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.blockchain-block:nth-child(3) {
    animation: fadeSlideUp 0.6s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.blockchain-block:nth-child(4) {
    animation: fadeSlideUp 0.6s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.blockchain-block:nth-child(5) {
    animation: fadeSlideUp 0.6s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.blockchain-block:nth-child(6) {
    animation: fadeSlideUp 0.6s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

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

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

/* Score Table */
.score-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.score-table th {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.score-table td {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1rem;
}

.score-table tr:last-child td {
    border-bottom: none;
}