/* ===================================
   CSS Custom Properties (Variables)
   =================================== */
:root {
    /* Brand Colors */
    --primary-dark: #161728;
    --primary-blue: #21759b;
    --accent-blue: #0195ff;
    --light-gray: #dddfe3;
    --off-white: #ededed;
    --dark-gray: #4c4c4c;
    --white: #ffffff;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Typography */
    --font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    
    /* Spacing */
    --header-height: 64px;
    --section-padding: 40px 0;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition-base: 300ms ease;
    --transition-slow: 800ms ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 2px 8px rgba(22, 23, 40, 0.08);
    --shadow-lg: 0 4px 12px rgba(22, 23, 40, 0.12);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

@media (min-width: 1024px) {
    :root {
        --header-height: 80px;
        --section-padding: 60px 0;
    }
}

/* ===================================
   CSS Reset & Base Styles
   =================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 32px;
    font-weight: 600;
}

h2 {
    font-size: 28px;
    font-weight: 600;
}

h3 {
    font-size: 24px;
    font-weight: 500;
}

h4 {
    font-size: 20px;
    font-weight: 500;
}

@media (min-width: 768px) {
    h1 {
        font-size: 42px;
    }
    h2 {
        font-size: 32px;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 48px;
    }
    h2 {
        font-size: 36px;
    }
    h3 {
        font-size: 28px;
    }
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 48px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 60px;
    }
}

.section {
    padding: var(--section-padding);
}

.section-gray {
    background-color: var(--off-white);
}

.section-title {
    text-align: center;
    margin-bottom: 32px;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--dark-gray);
    margin-bottom: 32px;
}

.section-cta {
    text-align: center;
    margin-top: 32px;
}

/* ===================================
   Grid System
   =================================== */
.grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid {
        gap: 32px;
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border-radius: 6px;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    min-width: 44px;
    min-height: 44px;
}

.btn:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

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

.btn-primary:hover {
    background-color: #1a5f7f;
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

@media (min-width: 768px) {
    .btn-full {
        width: auto;
    }
}

/* ===================================
   Header / Navigation
   =================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--primary-dark);
    height: var(--header-height);
    transition: box-shadow var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.nav-logo a {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
}

.logo-image {
    height: 60px;
    width: auto;
    max-width: 300px;
    transition: opacity var(--transition-base);
    display: block;
}

.logo-image:hover {
    opacity: 0.8;
}

@media (min-width: 1024px) {
    .logo-image {
        height: 70px;
    }
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    z-index: 1001;
}

.hamburger {
    width: 24px;
    height: 2px;
    background-color: var(--white);
    position: relative;
    transition: background-color var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: transform var(--transition-base);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right var(--transition-base);
    z-index: 999;
}

.nav-menu.active {
    right: 0;
}

.nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    color: var(--white);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-base);
    z-index: 1001;
}

.nav-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}

.nav-link {
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    transition: color var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-blue);
}

.nav-cta {
    margin-top: 32px;
}

@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        background-color: transparent;
        gap: 16px;
        margin: 0 20px;
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .nav-close {
        display: none;
    }
    
    .nav-list {
        flex-direction: row;
        gap: 16px;
        flex-wrap: nowrap;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 6px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .nav-cta {
        margin-top: 0;
        margin-left: 0;
        padding: 8px 16px;
        font-size: 14px;
        flex-shrink: 0;
    }
}

@media (min-width: 1200px) {
    .nav-list {
        gap: 32px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .nav-cta {
        margin-left: 0;
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(33, 117, 155, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(1, 149, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--dark-gray);
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-cta {
        flex-direction: row;
        gap: 20px;
    }
}

/* ===================================
   Cards
   =================================== */
.card {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 32px;
    margin-right: 12px;
    flex-shrink: 0;
}

.card-title {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.card-description {
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.6;
}

.card-list {
    list-style: none;
    margin: 16px 0;
}

.card-list li {
    font-size: 14px;
    color: var(--dark-gray);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.card-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 600;
}

.card-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--accent-blue);
    font-weight: 500;
    transition: color var(--transition-base);
}

.card-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* ===================================
   Features
   =================================== */
.feature {
    text-align: center;
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.feature-title {
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 600;
}

.feature-description {
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ===================================
   Timeline
   =================================== */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 64px;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .timeline {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        position: relative;
        padding: 0;
    }
    
    .timeline::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 0;
        right: 0;
        height: 2px;
        background-color: var(--light-gray);
        z-index: 0;
    }
}

.timeline-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.timeline-marker {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.timeline-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 3px solid var(--light-gray);
    position: relative;
    z-index: 1;
    transition: all var(--transition-base);
}

.timeline-past .timeline-dot {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.timeline-now .timeline-dot {
    width: 50px;
    height: 50px;
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.timeline-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(1, 149, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(1, 149, 255, 0);
    }
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.timeline-label {
    font-size: 14px;
    color: var(--dark-gray);
}

.timeline-status {
    margin-top: 8px;
    font-size: 20px;
}

/* ===================================
   Statistics
   =================================== */
.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    background-color: var(--white);
    border-left: 4px solid var(--warning);
    padding: 24px;
    border-radius: 6px;
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.stat-description {
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.5;
}

/* ===================================
   Contact Form
   =================================== */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    margin-top: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    background-color: var(--white);
    transition: all var(--transition-base);
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(1, 149, 255, 0.1);
}

.form-input.error {
    border-color: var(--error);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    display: none;
    font-size: 14px;
    color: var(--error);
    margin-top: 6px;
}

.form-error.active {
    display: block;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-required {
    align-items: center;
}

.form-checkbox {
    margin-top: 2px;
    min-width: 18px;
    min-height: 18px;
    cursor: pointer;
}

.privacy-link {
    color: var(--accent-blue);
    text-decoration: underline;
}

.privacy-link:hover {
    color: var(--primary-blue);
}

.form-success {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid var(--success);
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.15);
    animation: successFadeIn 0.6s ease-out;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    font-size: 64px;
    margin-bottom: 24px;
    animation: successBounce 0.8s ease-out 0.3s both;
}

@keyframes successBounce {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.form-success h3 {
    margin-bottom: 16px;
    color: var(--success);
    font-size: 28px;
    font-weight: 600;
}

.success-message {
    color: var(--dark-gray);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.success-details {
    background: white;
    padding: 24px;
    border-radius: 8px;
    margin: 24px 0;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.success-details p {
    margin-bottom: 12px;
    color: var(--primary-dark);
    font-weight: 600;
}

.success-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.success-details li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--dark-gray);
}

.success-details li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.contact-info {
    margin-top: 24px;
    padding: 16px;
    background: var(--primary-blue);
    color: white;
    border-radius: 8px;
    font-weight: 500;
}

.form-success a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.form-success a:hover {
    color: var(--accent-blue);
}

#reset-form-btn {
    margin-top: 24px;
    background: var(--light-gray);
    color: var(--primary-dark);
    border: 2px solid var(--light-gray);
    transition: all 0.3s ease;
}

#reset-form-btn:hover {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 23, 40, 0.2);
}

.contact-alternative {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: var(--dark-gray);
}

.contact-alternative a {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* ===================================
   About Section
   =================================== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 16px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--primary-dark);
    color: var(--light-gray);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--light-gray);
    transition: color var(--transition-base);
}

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

.footer-note {
    font-size: 12px;
    font-style: italic;
    color: #999;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-image {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: opacity var(--transition-base);
}

.footer-logo-image:hover {
    opacity: 1;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
    
    .footer-logo {
        order: -1;
    }
}

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

.social-link {
    color: var(--light-gray);
    transition: color var(--transition-base);
}

.social-link:hover {
    color: var(--accent-blue);
}

/* ===================================
   Modal
   =================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 23, 40, 0.75);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    max-width: 500px;
    width: 100%;
    background-color: var(--white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-xl);
    z-index: 1;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    font-size: 28px;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-base);
}

.modal-close:hover {
    color: var(--primary-dark);
}

.modal-title {
    margin-bottom: 8px;
    font-size: 24px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 24px;
}

.modal-form {
    /* Inherits form styles */
}

.modal-success {
    text-align: center;
    padding: 24px 0;
}

.modal-success .success-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

/* ===================================
   Utilities
   =================================== */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Skip to main content link (for screen readers) */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* Loading state */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

