/* ===== CSS RESET & BASE STYLES ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Fira Code', monospace;
    font-weight: 400;
    line-height: 1.6;
    color: #000000;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== FONT CLASSES ===== */
.agdasima-regular {
    font-family: "Agdasima", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.agdasima-bold {
    font-family: "Agdasima", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.fira-code-light {
    font-family: "Fira Code", monospace;
    font-weight: 300;
    font-style: normal;
}

.fira-code-regular {
    font-family: "Fira Code", monospace;
    font-weight: 400;
    font-style: normal;
}

.fira-code-medium {
    font-family: "Fira Code", monospace;
    font-weight: 500;
    font-style: normal;
}

.fira-code-semibold {
    font-family: "Fira Code", monospace;
    font-weight: 600;
    font-style: normal;
}

.fira-code-bold {
    font-family: "Fira Code", monospace;
    font-weight: 700;
    font-style: normal;
}

/* ===== SKIP TO CONTENT (ACCESSIBILITY) ===== */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000000;
    color: #ffffff;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 6px;
    outline: 2px solid #00B35A;
    outline-offset: 2px;
}

/* ===== HEADER STYLES ===== */
.header {
    padding: 40px 0 34px 0;
    position: relative;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logo {
    display: block;
    height: 57px;
    width: auto;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
    flex-shrink: 0;
}

/* ===== MAIN CONTENT ===== */
.main {
    padding: 45px 0 40px 0;
    flex: 1;
}

.hero {
    max-width: 720px;
    margin: 0 auto;
}

.hero__content {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

.hero__paragraph {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
    max-width: 100%;
    color: #333333;
}

.hero__paragraph:last-child {
    margin-bottom: 0;
}

/* Special styling for emphasis paragraph */
.hero__paragraph:nth-child(3) {
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    margin: 32px 0;
    text-align: center;
    font-style: italic;
}

/* ===== FOOTER STYLES ===== */
.footer {
    padding: 40px 0 48px 0;
}

.footer .container {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.cta {
    display: inline-block;
    color: #000000;
    text-decoration: underline;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.2s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.6s forwards;
}

.cta:hover,
.cta:focus {
    color: #00B35A;
    text-decoration: underline;
    outline: none;
}

.cta:focus {
    outline: 2px solid #00B35A;
    outline-offset: 2px;
    border-radius: 2px;
}

.cta:active {
    transform: translateY(1px);
}

/* ===== COPYRIGHT FOOTER STYLES ===== */
.copyright-footer {
    padding: 32px 0;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.copyright {
    text-align: center;
    font-size: 16px;
    line-height: 1.4;
    color: #666666;
    margin: 0;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.8s forwards;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 16px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.9s forwards;
}

.footer-link {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-link:hover,
.footer-link:focus {
    color: #00B35A;
    text-decoration: underline;
}

.footer-link:focus {
    outline: 2px solid #00B35A;
    outline-offset: 2px;
    border-radius: 2px;
}

.footer-separator {
    color: #666666;
    font-size: 14px;
    user-select: none;
}

.copyright-year {
    font-weight: 700;
}

.copyright-symbol {
    font-size: 20px;
    vertical-align: baseline;
    position: relative;
    top: 3px;
    right: -4px;
}

/* ===== LEGAL PAGE HEADER STYLES ===== */
.header--legal {
    padding: 24px 0 16px 0; /* Reduced bottom padding */
}

.header--legal .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.logo--legal {
    height: 28px; /* Half of the original 57px */
}

/* ===== LEGAL PAGE STYLES ===== */
.legal-page {
    max-width: 720px;
    margin: 0 auto;
}

.header--legal + .main {
    padding-top: 20px; /* Reduced from default 45px */
}

.legal-page__content {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

.legal-page__title {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.2;
}

.legal-page__effective-date {
    font-size: 14px;
    color: #666666;
    text-align: center;
    margin-bottom: 32px;
    font-style: italic;
}

.legal-page__intro {
    margin-bottom: 40px;
}

.legal-page__intro p {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    text-align: center;
}

.legal-section {
    margin-bottom: 32px;
}

.legal-section__title {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
    line-height: 1.3;
}

.legal-section__text {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 0;
}

.legal-section__list {
    margin: 0;
    padding-left: 24px;
}

.legal-section__list li {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 8px;
}

.legal-section__list li:last-child {
    margin-bottom: 0;
}

.legal-link {
    color: #000000;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.legal-link:hover,
.legal-link:focus {
    color: #00B35A;
    text-decoration: underline;
}

.legal-link:focus {
    outline: 2px solid #00B35A;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== TABLET BREAKPOINT (768px+) ===== */
@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }
    
    .header {
        padding: 48px 0 40px 0;
    }
    
    .header .container {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .logo {
        height: 62px;
    }
    
    .main {
        padding: 55px 0 48px 0;
    }
    
    .hero__paragraph {
        font-size: 17px;
        line-height: 1.6;
        margin-bottom: 24px;
    }
    
    .hero__paragraph:nth-child(3) {
        font-size: 20px;
        margin: 40px 0;
    }
    
    .cta {
        font-size: 17px;
    }
    
    .copyright-footer {
        padding: 24px 0;
    }
    
    .footer-links {
        gap: 32px;
    }
    
    .footer-link {
        font-size: 15px;
    }
    
    .footer-separator {
        font-size: 15px;
    }
    
    .copyright {
        gap: 20px;
    }
    
    .footer-links {
        gap: 20px;
    }
    
    /* Legal page tablet styles */
    .legal-page__title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .legal-page__effective-date {
        font-size: 15px;
        margin-bottom: 36px;
    }
    
    .legal-page__intro {
        margin-bottom: 44px;
    }
    
    .legal-page__intro p {
        font-size: 17px;
    }
    
    .legal-section {
        margin-bottom: 36px;
    }
    
    .legal-section__title {
        font-size: 22px;
        margin-bottom: 14px;
    }
    
    .legal-section__text {
        font-size: 17px;
    }
    
    .legal-section__list li {
        font-size: 17px;
        margin-bottom: 10px;
    }
    
    /* Legal page header tablet styles */
    .header--legal {
        padding: 32px 0 20px 0; /* Adjusted for tablet */
    }
    
    .logo--legal {
        height: 31px; /* Half of the original 62px */
    }
    
    .header--legal + .main {
        padding-top: 24px; /* Adjusted for tablet */
    }
}

/* ===== DESKTOP BREAKPOINT (1024px+) ===== */
@media (min-width: 1024px) {
    .container {
        padding: 0 64px;
    }
    
    .header {
        padding: 56px 0 49px 0;
    }
    
    .header .container {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .logo {
        height: 67px;
    }
    
    .main {
        padding: 68px 0 60px 0;
    }
    
    .hero {
        max-width: 800px;
    }
    
    .hero__paragraph {
        font-size: 18px;
        line-height: 1.6;
        margin-bottom: 28px;
    }
    
    .hero__paragraph:nth-child(3) {
        font-size: 22px;
        margin: 48px 0;
    }
    
    .footer {
        padding: 40px 0 48px 0;
    }
    
    .footer .container {
        max-width: 800px;
        text-align: center;
    }
    
    .cta {
        font-size: 18px;
    }
    
    .copyright-footer {
        padding: 40px 0;
    }
    
    .footer-link {
        font-size: 16px;
    }
    
    .footer-separator {
        font-size: 16px;
    }
    
    .copyright {
        gap: 24px;
    }
    
    .footer-links {
        gap: 24px;
    }
    
    /* Legal page desktop styles */
    .legal-page {
        max-width: 800px;
    }
    
    .legal-page__title {
        font-size: 36px;
        margin-bottom: 24px;
    }
    
    .legal-page__effective-date {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .legal-page__intro {
        margin-bottom: 48px;
    }
    
    .legal-page__intro p {
        font-size: 18px;
    }
    
    .legal-section {
        margin-bottom: 40px;
    }
    
    .legal-section__title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .legal-section__text {
        font-size: 18px;
    }
    
    .legal-section__list li {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    /* Legal page header desktop styles */
    .header--legal {
        padding: 40px 0 24px 0; /* Adjusted for desktop */
    }
    
    .logo--legal {
        height: 33px; /* Half of the original 67px */
    }
    
    .header--legal + .main {
        padding-top: 28px; /* Adjusted for desktop */
    }
}

/* ===== LARGE DESKTOP BREAKPOINT (1280px+) ===== */
@media (min-width: 1280px) {
    .container {
        padding: 0 80px;
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .skip-to-content {
        display: none;
    }
    
    .cta {
        color: #000000 !important;
        text-decoration: underline;
    }
    
    .cta::after {
        content: " (mailto:founders@gatrilabs.com)";
        font-size: 0.9em;
        color: #666666;
    }
}

/* ===== REDUCED MOTION ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== DARK MODE PREFERENCE ===== */
@media (prefers-color-scheme: dark) {
    /* Keep light mode for brand consistency - comment out if dark mode needed */
    /*
    body {
        background-color: #000000;
        color: #ffffff;
    }
    
    .cta:hover,
    .cta:focus {
        color: #00B35A;
    }
    
    .skip-to-content {
        background: #ffffff;
        color: #000000;
    }
    
    .logo text {
        fill: #ffffff;
    }
    */
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .cta:focus {
        outline: 3px solid #00B35A;
        outline-offset: 3px;
    }
    
    .skip-to-content:focus {
        outline: 3px solid #00B35A;
        outline-offset: 3px;
    }
} 