/* CSS Variables for Light Theme */
:root {
    /* Colors */
    --ink: #1a1a1a;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #ffffff;
    --accent: #667eea;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 3rem;
    --space-4xl: 4rem;
    --space-5xl: 6rem;
    --space-6xl: 8rem;
    
    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--ink);
    background-color: #f5f3f0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
}

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

a:hover {
    color: var(--ink);
}

/* Hero Section */
.hero {
    min-height: 60vh;
    box-sizing: border-box;
    padding: var(--space-2xl) var(--space-lg);
    background: #f5f3f0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.hero-frame {
    max-width: 1600px;
    width: 100%;
    height: auto;
    min-height: 500px;
    background: transparent;
    position: relative;
}

.hero-nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    background: transparent;
    z-index: 10;
    width: 100%;
}

.hero-logo .logo-img {
    height: 40px;
    filter: none;
}

.logo-link {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
}

.logo-link:focus,
.logo-link:active,
.logo-link:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.hero-nav-links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
    margin-left: var(--space-lg);
}

.hero-nav .nav-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: opacity var(--transition-base);
    position: relative;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
    font-size: var(--font-size-base);
}

.nav-link:focus,
.nav-link:active,
.nav-link:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-link.active {
    color: #1a1a1a;
    font-weight: 500;
}

.nav-link::after {
    display: none;
}

/* About Content */
.about-content {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.about-mission {
    padding: var(--space-2xl) var(--space-3xl);
    text-align: left;
    margin-top: var(--space-xl);
}

.about-label {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xl);
    display: inline-block;
}

.about-content h1 {
    font-size: var(--font-size-5xl);
    font-weight: 400;
    color: white;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Values Section */
.values {
    padding: var(--space-3xl) var(--space-xl);
    background: #f5f3f0;
    position: relative;
}

.values::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 1px;
    background: #e0ddd8;
}

.values-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.values-header {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
    align-items: center;
    margin-bottom: var(--space-5xl);
    padding: var(--space-3xl);
    position: relative;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 24px;
    overflow: hidden;
}

.values-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1) 50%, transparent),
        linear-gradient(180deg, transparent, rgba(118, 75, 162, 0.1) 50%, transparent);
    opacity: 0.5;
    pointer-events: none;
}

.values-title h2 {
    font-size: var(--font-size-6xl);
    font-weight: 200;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-align: left;
    letter-spacing: -0.02em;
    line-height: 1.1;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.values-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.values-subtitle p {
    font-size: var(--font-size-xl);
    color: #4a4a4a;
    text-align: left;
    margin: 0;
    line-height: 1.7;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4xl);
    margin-top: var(--space-5xl);
}

.value-item {
    text-align: left;
    position: relative;
    transition: transform var(--transition-base);
    padding: 0 var(--space-lg);
}

.value-icon {
    margin-bottom: var(--space-xl);
    height: 80px;
    display: flex;
    align-items: flex-start;
}

.value-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.value-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
    display: block;
    filter: grayscale(0.2);
}

.value-item h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.value-item p {
    font-size: var(--font-size-base);
    color: #4a4a4a;
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta-band {
    padding: var(--space-6xl) var(--space-xl);
    background: #f5f3f0;
    position: relative;
}

.cta-panel {
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(90deg, #f8f4ff 0%, #e6f3ff 100%);
    border-radius: 24px;
    border: 1px solid #e0ddd8;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.cta-container {
    padding: var(--space-5xl) var(--space-3xl);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.cta-content {
    max-width: 1000px;
    z-index: 2;
    position: relative;
    text-align: center;
}

.cta-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: var(--font-size-xl);
    color: #4a4a4a;
    margin-bottom: var(--space-2xl);
    line-height: 1.4;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white !important;
}

.cta-frame-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.frame-line {
    position: absolute;
    background: #e0ddd8;
    opacity: 0.6;
}

.left-line {
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
}

.left-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 4px,
        #e0ddd8 4px,
        #e0ddd8 8px
    );
}

.right-line {
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
}

.right-line::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 4px,
        #e0ddd8 4px,
        #e0ddd8 8px
    );
}

.corner-mark {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid #e0ddd8;
    opacity: 0.6;
}

.top-left {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.bottom-right {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

/* Footer */
.footer {
    background: #1C1931;
    padding: var(--space-lg) var(--space-2xl);
    position: relative;
    margin-top: var(--space-2xl);
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
}

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

.footer-logo {
    display: block;
}

.footer-logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-nav {
    display: flex;
    gap: var(--space-2xl);
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color var(--transition-base);
    font-weight: 400;
}

.footer-nav a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-weight: 400;
}

/* Handle very small heights */
@media (max-height: 700px) {
    .hero {
        min-height: auto;
        height: auto;
    }

    .hero-frame {
        height: auto;
        min-height: auto;
    }

    .about-content {
        min-height: auto;
    }

    .about-mission {
        margin-top: var(--space-4xl);
        padding: var(--space-xl) var(--space-2xl);
    }

    .values {
        padding-top: var(--space-xl);
    }
}

@media (max-height: 600px) {
    .hero {
        padding-top: calc(56px + var(--space-md));
    }

    .hero-nav {
        height: 56px;
        padding: var(--space-md) var(--space-lg);
    }

    .about-content {
        margin: var(--space-lg) 0;
        padding: var(--space-xl) var(--space-lg);
    }

    .values {
        padding-top: var(--space-lg);
    }

    .values-grid {
        gap: var(--space-2xl);
    }
}

/* Responsive Design */
@media (min-width: 1920px) {
    .hero {
        padding: var(--space-xl) var(--space-lg);
    }
    
    .hero-frame {
        max-width: 1800px;
        min-height: 600px;
    }
}

@media (min-height: 1080px) {
    .hero {
        padding: var(--space-2xl) var(--space-lg);
    }
    
    .hero-frame {
        min-height: 600px;
    }
}

@media (min-height: 1440px) {
    .hero {
        padding: var(--space-xl) var(--space-lg);
    }
    
    .hero-frame {
        min-height: 600px;
    }
}

@media (max-width: 1024px) {
    .hero {
        padding: var(--space-xl) var(--space-lg);
    }
    
    .hero-frame {
        min-height: 400px;
    }
    
    .hero-nav {
        padding: var(--space-lg);
    }
    
    .logo-img {
        height: 32px;
    }
    
    .hero-nav-links {
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 0;
        min-height: auto;
        height: auto;
        padding-top: 72px;
    }
    
    .hero-frame {
        min-height: auto;
        height: auto;
    }
    
    .hero-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 72px;
        padding: var(--space-lg);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: space-between;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .logo-img {
        height: 32px;
    }
    
    .hero-nav-links {
        gap: var(--space-lg);
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .about-content {
        border-radius: 16px;
    }
    
    .about-mission {
        padding: var(--space-xl);
        margin-top: var(--space-lg);
    }
    
    .about-content h1 {
        font-size: var(--font-size-4xl);
    }
    
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3xl);
    }
    
    .value-item {
        padding: 0;
    }
    
    .values-header {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: left;
        padding: var(--space-2xl);
    }
    
    .values-title h2 {
        font-size: var(--font-size-4xl);
        text-align: left;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .values-title h2::after {
        left: 0;
        transform: none;
        width: 60px;
    }
    
    .values-subtitle p {
        font-size: var(--font-size-lg);
        text-align: left;
        max-width: none;
        margin: 0;
    }
    
    .cta-title {
        font-size: var(--font-size-4xl);
    }
    
    .cta-subtitle {
        font-size: var(--font-size-lg);
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 64px;
    }
    
    .hero-frame {
        min-height: auto;
    }
    
    .hero-nav {
        padding: var(--space-md);
        height: 64px;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .hero-nav-links {
        gap: var(--space-md);
        margin-left: var(--space-md);
    }
    
    .about-content {
        border-radius: 12px;
    }
    
    .about-mission {
        padding: var(--space-lg);
        margin-top: var(--space-md);
    }
    
    .about-content h1 {
        font-size: var(--font-size-3xl);
        word-wrap: break-word;
    }
    
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .value-item {
        padding: 0;
    }
    
    .value-icon {
        margin-bottom: var(--space-lg);
    }
    
    .value-icon img {
        width: 48px;
        height: 48px;
    }
    
    .values-title h2 {
        font-size: var(--font-size-3xl);
    }
    
    .values-subtitle p {
        font-size: var(--font-size-lg);
    }
    
    .cta-title {
        font-size: var(--font-size-3xl);
    }
    
    .cta-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .cta-panel {
        margin: 0 var(--space-md);
    }
    
    .cta-container {
        padding: var(--space-3xl) var(--space-lg);
    }
    
    .cta-frame-lines {
        display: none;
    }
    
    .footer {
        padding: var(--space-lg);
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-lg);
        margin-bottom: var(--space-xl);
    }

    .footer-nav {
        gap: var(--space-lg);
    }

    .footer-bottom {
        padding-top: var(--space-lg);
    }
}
