/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --background: #ffffff;
    --background-alt: #f0f9ff;
    --accent: #06b6d4;
    --max-width: 1200px;
    --max-width-narrow: 800px;
    --header-bg: rgba(255, 255, 255, 0.8);
    --gradient-start: rgba(30, 58, 138, 0.03);
    --gradient-end: rgba(6, 182, 212, 0.03);
}

[data-theme="dark"] {
    --primary-color: #60a5fa;
    --text-dark: #f1f5f9;
    --text-light: #94a3b8;
    --background: #0f172a;
    --background-alt: #1e293b;
    --accent: #06b6d4;
    --header-bg: rgba(15, 23, 42, 0.8);
    --gradient-start: rgba(96, 165, 250, 0.05);
    --gradient-end: rgba(6, 182, 212, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    padding: 1rem 0;
    background: var(--background);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: var(--header-bg);
    transition: background-color 0.3s ease;
}

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

.logo-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-icon {
    width: 50px;
    height: 40px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .logo-icon {
    content: url('../images/logo-dark.svg');
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Dark mode toggle */
.theme-toggle {
    background: none;
    border: 2px solid var(--text-light);
    border-radius: 2rem;
    padding: 0.5rem;
    cursor: pointer;
    width: 3rem;
    height: 2rem;
    position: relative;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.theme-toggle:hover {
    border-color: var(--accent);
}

.theme-toggle .toggle-indicator {
    position: absolute;
    width: 1rem;
    height: 1rem;
    background: var(--text-light);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    left: 0.25rem;
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-toggle .toggle-indicator {
    left: calc(100% - 1.25rem);
    background: var(--accent);
}

.theme-toggle .icon {
    position: absolute;
    width: 0.75rem;
    height: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.3s ease;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle .sun-icon {
    left: 0.375rem;
    opacity: 1;
}

.theme-toggle .moon-icon {
    right: 0.375rem;
    opacity: 0.3;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 0.3;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 1;
}

nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

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

nav a.active {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Main content */
main {
    flex: 1;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    width: 100%;
}

.hero-fullheight {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.quote {
    margin-bottom: 3rem;
}

.quote p {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.quote p::before,
.quote p::after {
    content: '"';
    color: var(--accent);
    opacity: 0.3;
    font-size: 1.2em;
}

.quote cite {
    font-size: 1.25rem;
    color: var(--text-light);
    font-style: normal;
    font-weight: 400;
    display: inline-block;
    padding-left: 2rem;
    position: relative;
}

.quote cite::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 2px;
    background: var(--accent);
}

.tagline {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Quote section */
.quote-section {
    text-align: center;
    padding: 6rem 2rem 4rem;
    min-height: calc(100vh - 8rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
}

.quote-section .quote {
    margin-bottom: 0;
}

/* Page previews section */
.page-previews {
    padding: 6rem 2rem;
    background: var(--background-alt);
}

.preview-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.preview-card {
    background: var(--background);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(100, 116, 139, 0.1);
    opacity: 0;
}

.preview-card p + p {
    margin-top: 1rem;
}

.preview-card[data-animate="left"] {
    transform: translateX(-100px);
}

.preview-card[data-animate="right"] {
    transform: translateX(100px);
}

.preview-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.preview-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.preview-card h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.preview-card p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.preview-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.preview-link:hover {
    gap: 0.75rem;
}

.contact-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

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

/* Vision page */
.vision-page {
    padding: 4rem 0 6rem;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.product-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    text-align: center;
    margin-top: -2.5rem;
    margin-bottom: 3rem;
    color: var(--text-light);
    font-style: italic;
}

.vision-section {
    margin-bottom: 3rem;
}

.vision-section h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: -0.01em;
    position: relative;
    padding-left: 1rem;
}

.vision-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
}

.vision-section p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.375rem;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 3rem;
    color: var(--primary-color);
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
}

.vision-list {
    list-style: none;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.vision-list li {
    font-size: 1.125rem;
    line-height: 1.8;
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.vision-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.vision-closing {
    text-align: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e2e8f0;
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Enhanced Footer */
.footer-enhanced {
    background: var(--background-alt);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--text-light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-section ul li a.active {
    color: var(--primary-color);
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(100, 116, 139, 0.2);
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Responsive design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .logo-container {
        gap: 1.125rem;
    }
    
    .logo-icon {
        width: 42px;
        height: 34px;
        transition: all 0.3s ease;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .container,
    .container-narrow {
        padding: 0 1.5rem;
    }
    
    nav {
        gap: 1.5rem;
    }
    
    .theme-toggle {
        margin-left: 0.75rem;
    }
    
    .hero {
        padding: 3rem 1.5rem;
    }

    .hero-fullheight {
        min-height: 80vh;
    }

    .quote p {
        font-size: 2rem;
    }

    .quote cite {
        font-size: 1.125rem;
    }

    .tagline {
        font-size: 1.125rem;
    }

    .quote-section {
        padding: 4rem 1.5rem 3rem;
        min-height: calc(100vh - 6rem);
    }

    .page-previews {
        padding: 0;
    }

    .preview-container {
        gap: 3rem;
    }

    .preview-card {
        padding: 2rem;
    }

    .preview-card[data-animate="left"],
    .preview-card[data-animate="right"] {
        transform: translateX(-50px);
    }
    
    .page-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .vision-section h3 {
        font-size: 1.5rem;
    }
    
    .vision-section p,
    .vision-list li {
        font-size: 1rem;
    }
    
    .lead {
        font-size: 1.25rem;
    }
}

/* Subtle gradient background option */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    pointer-events: none;
    z-index: -1;
    transition: background 0.3s ease;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Selection colors */
::selection {
    background: var(--accent);
    color: white;
}

::-moz-selection {
    background: var(--accent);
    color: white;
}

/* Print styles */
@media print {
    header,
    footer {
        display: none;
    }
    
    main {
        padding: 0;
    }
}