/* --- CSS Reset & Variables --- */
:root {
    --brand: #1e137b;
    --compliment: #dc1846;
    --action: #00A4A8;
    --note: #b0a6ff;
    --bg-light: #e9e8f9;
    --white: #ffffff;
    --black-text: #01010c;
    --font-main: 'IBM Plex Sans Condensed', sans-serif;

    /* Layout colors */
    --uvac-input-bg: #f8fafc; /* Matches slate-50 */
    --uvac-border: #e2e8f0;   /* Matches slate-200 */
    --uvac-label: #1e137b;    /* Matches slate-400 */
}

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

body {
    font-family: var(--font-main);
    background-color: var(--white);
    background: radial-gradient(circle at top left, var(--white) 0, var(--bg-light) 70%);
    background-attachment: fixed;
    color: var(--black-text);
    line-height: 1.5;
    overflow-x: hidden;
    letter-spacing: 0.01em;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 { font-size: 3.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 3rem; margin-bottom: 1rem; color: var(--brand); }
h3 { font-size: 2rem; margin-bottom: 1rem; }
p { margin-bottom: 1.5rem; font-size: 1.125rem; }

strong { 
    color: var(--brand);
    font-weight: 700;
}

a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
a:hover { color: var(--compliment); }

.text-compliment { color: var(--compliment); }
.text-action { color: var(--action); }
.text-brand { color: var(--brand); }
.text-note { color: var(--note); }
.text-white { color: var(--white); }
.uppercase { text-transform: uppercase; }
.underline { text-decoration: underline; }
.tracking-wide { letter-spacing: 0.1em; }

.block { display: block; }

.site-title-masthead {
    line-height: 1.1;
}

.site-title {
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0;
}

.site-subtitle {
    font-size: 0.75rem;
    color: var(--note);
    letter-spacing: 0.1em;
    margin: 0;
    text-transform: uppercase;
}

/* --- Layout Utilities --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.article-content a {
    color: var(--compliment);
    text-decoration: underline;
}

.article-content ul,
.article-content ol {
    margin-left: 0;
    margin-bottom: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
}

/* --- Components --- */

/* Navigation */
nav {
    background-color: var(--brand);
    color: var(--white);
    padding: 1rem 0;
    /*position: sticky;*/
    /*top: 0;
    z-index: 1000;*/
    border-bottom: 1px solid rgba(176, 166, 255, 0.1);
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-area img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--action); /* Action color used for hover state on dark bg */
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 2px solid transparent;
}

.btn-action {
    background-color: var(--action);
    color: var(--white);
}

.btn-action:hover {
    background-color: var(--white);
    color: var(--brand);
    border-color: var(--action);
}

.btn-brand {
    background-color: var(--brand);
    color: var(--white);
}

.btn-brand:hover {
    background-color: var(--white);
    color: var(--brand);
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 var(--compliment);
}

.btn-compliment {
    background-color: var(--compliment);
    color: var(--white);
}

.btn-compliment:hover {
    background-color: var(--white);
    color: var(--compliment);
    border-color: var(--compliment);
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 var(--brand);
}

/* Hero Section */
.hero {
    background-color: var(--brand);
    color: var(--white);
    padding-top: 6rem;
    padding-bottom: 10rem;
    position: relative;
    /* Texture from index.html */
    background-image: radial-gradient(circle at 2px 2px, rgba(176, 166, 255, 0.1) 1px, transparent 0);
    background-size: 40px 40px;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    margin-bottom: 2rem;
}

.hero p {
    color: var(--white);
    font-size: 1.5rem;
    max-width: 65ch;
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-accent {
    color: var(--note);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
    border-left: 4px solid var(--note);
    padding-left: 1rem;
}

/* Pillars Section */
.pillar-card {
    background: var(--white);
    padding: 3rem;
    border: 1px solid rgba(30, 19, 123, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.pillar-card:hover {
    transform: translateY(-10px);
    border-color: var(--action);
    box-shadow: 16px 16px 0px var(--action); /* Action color used for shadow effect */
}

.pillar-icon {
    margin-bottom: 1.5rem;
    color: var(--compliment);
    display: flex;
    align-items: center;
}

/* SVG Sizing for Icons */
.pillar-icon svg, 
.metric-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
}

.pillar-number {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 4rem;
    font-weight: 700;
    color: var(--brand);
    line-height: 1;
}

    .pillar-card__title,
    .roles-group__title {
    color: var(--brand);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Roles Section */
.roles-section {
    background-image: 
        linear-gradient(to right, rgba(30, 19, 123, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(30, 19, 123, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.role-group {
    background: var(--white);
    padding: 2.5rem;
    border-left: 5px solid var(--brand);
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.role-group h3 {
    color: var(--brand);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.role-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.role-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--compliment);
    font-weight: bold;
}

/* Lifecycle */
.lifecycle-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style-type: none;
    counter-reset: step;
}

.step-item {
    flex: 1 1 250px;
    padding: 3rem 2rem;
    background: var(--brand);
    color: var(--white);
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.step-item:nth-child(even) {
    background: #150d5e; /* Slightly darker shade for contrast pattern */
}

.step-item::before {
    counter-increment: step;
    content: "0" counter(step);
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--action);
    margin-bottom: 1rem;
    opacity: 0.8;
    line-height: 1;
}

.step-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step-item p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin-bottom: 0;
}

/* Metrics */
.metrics-section {
    background-color: var(--white);
    border-top: 10px solid var(--action);
}

.metric-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.metric-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 1rem;
}

.metric-icon {
    margin-bottom: 1rem;
    display: inline-block;
    color: var(--compliment);
}

/* Footer */
footer {
    background-color: var(--brand);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

footer a {
    color: var(--note);
    text-decoration: underline;
}

footer p {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    .hero { clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%); padding-bottom: 6rem; }
    .nav-links { display: none; } /* Simple hiding for static example */
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.cta-container {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Form Container */
.uvac-form {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1rem; /* space-y-4 */
    justify-content: center;
    font-family: var(--font-stack);
}

/* Field Groups */
.uvac-form-group {
    width: 70%;
}

/* Labels */
.uvac-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--uvac-label);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

/* Focus Interaction: Label changes color when input is focused */
.uvac-form-group:focus-within .uvac-label {
    color: var(--uvac-brand);
}

/* Inputs */
.uvac-input {
    width: 100%;
    background-color: var(--uvac-input-bg);
    border: none;
    border-bottom: 2px solid var(--uvac-border);
    padding: 1rem 0; /* py-4 */
    font-size: 1.25rem; /* text-xl */
    color: var(--uvac-brand);
    font-weight: 700;
    letter-spacing: 0.1em; /* tracking-widest */
    outline: none;
    transition: all 0.3s ease;
}

.uvac-input:focus {
    border-color: var(--uvac-brand);
}

/* Submit Button */
.uvac-button {
    margin-top: 2rem; /* mt-8 */
    width: 100%;
    background-color: var(--action);
    color: var(--white);
    padding: 1.5rem 0; /* py-6 */
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.uvac-button:hover {
    background-color: var(--compliment);
    color: var(--white);
}

.uvac-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Status Messages */
.uvac-message {
    display: none; /* Hidden by default */
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.5rem 0;
    margin-top: 1rem;
}

.uvac-message.success {
    display: block;
    color: var(--uvac-action);
}

.uvac-message.error {
    display: block;
    color: var(--uvac-compliment);
}

/* Modal Overlay (Backdrop) */
.uvac-modal {
    position: fixed;
    inset: 0; /* top: 0, right: 0, bottom: 0, left: 0 */
    z-index: 100;
    display: none; /* Hidden by default */
    height: 100%;
}

.uvac-modal.is-open {
    display: block;
}

/* The dark blurred background */
.uvac-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(30, 19, 123, 0.9); /* Brand color with opacity */
    backdrop-filter: blur(4px); /* blur-sm */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Wrapper to center the modal */
.uvac-modal-container {
    position: fixed;
    inset: 0;
    z-index: 101;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* The actual white box */
.uvac-modal-panel {
    position: relative;
    background-color: white;
    text-align: left;
    
    /* The specific UVAC styling */
    border: 2px solid var(--action);
    box-shadow: 20px 20px 0px var(--uvac-action); /* The hard teal shadow */
    padding: 3rem; /* p-12 */
    width: 100%;
    max-width: 32rem; /* max-w-lg */
    
    /* Animation start state */
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Animation end state (Triggered by JS) */
.uvac-modal.is-visible .uvac-modal-backdrop {
    opacity: 1;
}

.uvac-modal.is-visible .uvac-modal-panel {
    opacity: 1;
    transform: scale(1);
}

/* Modal Content Styling */
.uvac-modal-accent {
    width: 3rem;
    height: 0.25rem;
    background-color: var(--uvac-compliment);
    margin-bottom: 1.5rem;
}

.uvac-modal-title {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--uvac-brand);
    margin-bottom: 1rem;
}

.uvac-text-action {
    color: var(--uvac-action);
}

.uvac-modal-text {
    font-size: 1.25rem; /* text-xl */
    color: #4b5563; /* text-black-600 */
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Modal specific button (slightly smaller padding than form button) */
.uvac-modal-btn {
    width: 100%;
    background-color: var(--uvac-brand);
    color: white;
    padding: 1rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.uvac-modal-btn:hover {
    background-color: var(--uvac-action);
    color: var(--uvac-brand);
}

/* Responsive */
@media (max-width: 768px) {
    .site-title { font-size: 0.875rem; }
    .site-subtitle { font-size: 0.625rem; }
    .hero { padding-top: 3rem; }
}