/* Centralys — Shared design system for additive pages
   Mirrors the visual language of index.html without altering it. */

:root {
    --bg-color: #0D0D0D;
    --accent-primary: #D4F7DF;
    --text-secondary: #8FA39A;
    --text-body: #e6e6e6;
    --border-color: rgba(255, 255, 255, 0.15);
    --grid-line: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 130%, rgba(1, 164, 87, 0.35) 0%, rgba(13, 13, 13, 0) 60%),
        linear-gradient(180deg, #1a1a1a 0%, #0D0D0D 100%);
    min-height: 100vh;
    position: relative;
}

/* Noise overlay — same texture as homepage */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.08;
    background-size: 300px 300px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

a:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
}

/* Container & layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

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

.text-mud {
    color: var(--text-secondary);
}

/* Buttons — mint default, mirror of homepage */
.btn {
    display: inline-block;
    background-color: var(--accent-primary);
    color: var(--bg-color);
    padding: 16px 32px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid var(--accent-primary);
    letter-spacing: -0.02em;
    font-family: inherit;
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-primary);
}

.btn-ghost {
    background-color: transparent;
    color: var(--accent-primary);
}

.btn-ghost:hover {
    background-color: var(--accent-primary);
    color: var(--bg-color);
}

/* Navigation — identical look to homepage */
.site-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.logo::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

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

.nav-links a.is-current {
    color: #ffffff;
}

/* Typography */
h1, h2, h3 {
    letter-spacing: -0.03em;
    font-weight: 500;
}

h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 24px;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 12px;
    font-weight: 400;
}

p {
    color: var(--text-body);
    margin-bottom: 16px;
}

p.lede {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--text-body);
    max-width: 640px;
    margin-bottom: 32px;
}

/* Page hero — for additive pages */
.page-hero {
    padding: 120px 0 80px;
    border-bottom: 1px solid var(--border-color);
}

.page-hero .eyebrow {
    display: inline-block;
    font-family: monospace;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

/* Section */
.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.section-label::after {
    content: '';
    height: 1px;
    flex-grow: 1;
    background: var(--border-color);
}

/* Principle / feature grid — matches homepage geometry */
.principle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    border-top: 1px solid var(--border-color);
}

.principle-item {
    padding: 48px 32px;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.principle-item:last-child {
    border-right: none;
}

@media (max-width: 768px) {
    .principle-item {
        border-right: none;
    }
}

.principle-tag {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.principle-item h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

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

/* Inline list with mint markers — homepage style */
.mint-list {
    list-style: none;
    margin-top: 24px;
}

.mint-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.mint-list li::before {
    content: '+';
    color: var(--accent-primary);
    font-weight: 500;
    flex-shrink: 0;
}

/* Definition / fact rows */
.fact-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px 0;
    border-bottom: 1px solid var(--grid-line);
    gap: 24px;
}

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

.fact-label {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.fact-value {
    color: var(--accent-primary);
    font-family: monospace;
    text-align: right;
}

/* Calendly embed frame — masks the white iframe background for cleaner integration */
.calendly-frame {
    margin-top: 32px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 16px;
    box-shadow: 0 0 60px rgba(212, 247, 223, 0.04) inset;
}

.calendly-frame .calendly-inline-widget {
    width: 100%;
    background: transparent;
}

@media (max-width: 768px) {
    .calendly-frame {
        padding: 8px;
    }
}

/* CTA strip */
.cta-strip {
    padding: 100px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.cta-strip .eyebrow {
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.cta-strip h2 {
    max-width: 640px;
    margin: 0 auto 32px;
}

/* Footer — mirrors homepage */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.site-footer .meta {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.site-footer .meta a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

/* Italic emphasis — matches homepage */
em, i {
    font-style: italic;
    color: var(--accent-primary);
}

/* Responsive nav */
@media (max-width: 640px) {
    .nav-links {
        gap: 16px;
        font-size: 0.85rem;
    }
    .page-hero {
        padding: 80px 0 60px;
    }
}
