/* Evolvewater.ai - Shared Styles */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, 'SF Pro Text', 'Inter', sans-serif;
    background: #FFFFFF;
    color: #374151;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.font-hero { font-size: 56px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.font-h1 { font-size: 48px; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
.font-h2 { font-size: 36px; line-height: 1.17; font-weight: 600; }
.font-h3 { font-size: 28px; line-height: 1.21; font-weight: 600; }
.font-large { font-size: 19px; line-height: 1.6; font-weight: 400; }
.font-body { font-size: 17px; line-height: 1.6; font-weight: 400; }
.font-callout { font-size: 16px; line-height: 1.5; font-weight: 400; }
.font-subhead { font-size: 15px; line-height: 1.47; font-weight: 600; }

/* Color Palette */
:root {
    --color-ocean-deep: #0A4C6D;
    --color-aqua-teal: #14B8A6;
    --color-slate-700: #334155;
    --color-slate-600: #475569;
    --color-slate-500: #64748B;
    --color-slate-400: #94A3B8;
    --color-surface: #FAFAFA;
    --color-elevated: #FFFFFF;
    --color-depth-blue: #F0F9FF;
    --color-accent-coral: #FF6B6B;
    --color-urgent: #DC2626;
    --color-nightshift: #1E293B;
    --color-nightshift-accent: #F59E0B;
}

/* Color utilities */
.text-ocean-deep { color: var(--color-ocean-deep); }
.text-aqua-teal { color: var(--color-aqua-teal); }
.text-slate-700 { color: var(--color-slate-700); }
.text-slate-600 { color: var(--color-slate-600); }
.text-slate-500 { color: var(--color-slate-500); }
.text-pure-white { color: var(--color-elevated); }
.text-urgent { color: var(--color-urgent); }
.text-nightshift-accent { color: var(--color-nightshift-accent); }

.bg-surface { background: var(--color-surface); }
.bg-elevated { background: var(--color-elevated); }
.bg-depth-blue { background: var(--color-depth-blue); }
.bg-ocean-deep { background: var(--color-ocean-deep); }

/* Section backgrounds */
.section-hero { background: var(--color-elevated); }
.section-light { background: var(--color-surface); }
.section-tint { background: var(--color-depth-blue); }
.section-dark { background: var(--color-ocean-deep); }
.section-nightshift { background: var(--color-nightshift); }

.text-highlight { color: var(--color-ocean-deep); font-weight: 700; }
.text-highlight-amber { color: var(--color-nightshift-accent); font-weight: 700; }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
}

.section-padding-lg {
    padding: 160px 0;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(10, 76, 109, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 24px;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-family: -apple-system, 'SF Pro Display', 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--color-slate-700);
    text-decoration: none;
}

.logo .ai {
    color: var(--color-ocean-deep);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--color-slate-600);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-ocean-deep);
}

.nav-links .btn-nav-join {
    background: var(--color-urgent);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-links .btn-nav-join:hover {
    background: #B91C1C;
    color: #FFFFFF;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Cards */
.card {
    background: var(--color-elevated);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(10, 76, 109, 0.08);
    border: 1px solid rgba(10, 76, 109, 0.06);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 20px rgba(10, 76, 109, 0.12);
    border-color: rgba(10, 76, 109, 0.12);
}

.card.selected {
    border: 2px solid var(--color-ocean-deep);
    background: var(--color-depth-blue);
}

.card-dark {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-dark:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.urgent-banner {
    background: #FEF2F2;
    border: 2px solid var(--color-urgent);
    border-left-width: 4px;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 32px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-ocean-deep);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #083C56;
    color: #FFFFFF;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(10, 76, 109, 0.3);
}

.btn-urgent {
    background: var(--color-urgent);
    color: #FFFFFF;
}

.btn-urgent:hover {
    background: #B91C1C;
    color: #FFFFFF;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background: var(--color-elevated);
    color: var(--color-ocean-deep);
    border: 2px solid var(--color-ocean-deep);
}

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

.btn-amber {
    background: var(--color-nightshift-accent);
    color: var(--color-nightshift);
}

.btn-amber:hover {
    background: #D97706;
    transform: scale(1.02);
}

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

/* Form styles */
.input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #F3F4F6;
    border-radius: 8px;
    font-size: 17px;
    background: #F9F9F9;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.input:focus {
    outline: none;
    border-color: #007AFF;
    background: #FFFFFF;
}

.textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #F3F4F6;
    border-radius: 8px;
    font-size: 17px;
    background: #F9F9F9;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.textarea:focus {
    outline: none;
    border-color: #007AFF;
    background: #FFFFFF;
}

.select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #F3F4F6;
    border-radius: 8px;
    font-size: 17px;
    background: #F9F9F9;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.select:focus {
    outline: none;
    border-color: #007AFF;
    background: #FFFFFF;
}

/* Grid */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Interest tags */
.interest-tag {
    padding: 10px 20px;
    background: var(--color-surface);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-slate-700);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid rgba(10, 76, 109, 0.1);
    display: inline-block;
    margin: 6px;
}

.interest-tag:hover {
    border-color: var(--color-ocean-deep);
    background: var(--color-elevated);
}

.interest-tag.selected {
    background: var(--color-ocean-deep);
    color: #FFFFFF;
    border-color: var(--color-ocean-deep);
}

/* Role cards */
.role-card {
    background: var(--color-elevated);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    border: 2px solid rgba(10, 76, 109, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.role-card:hover {
    box-shadow: 0 4px 12px rgba(10, 76, 109, 0.12);
    border-color: var(--color-ocean-deep);
}

.role-card.selected {
    border-color: var(--color-ocean-deep);
    background: var(--color-depth-blue);
}

.role-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #007AFF, #34D399);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.role-icon.mars {
    background: linear-gradient(135deg, #FF6B6B, #8B5CF6);
}

/* Loading spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #F3F4F6;
    border-top: 2px solid #007AFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animation */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Quote block */
.quote-block {
    border-left: 4px solid var(--color-nightshift-accent);
    padding-left: 24px;
    margin: 24px 0;
    font-style: italic;
}

.quote-attribution {
    font-style: normal;
    font-weight: 600;
    margin-top: 12px;
    color: var(--color-slate-500);
}

/* Error message */
.error-message {
    color: #DC2626;
    font-size: 14px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-ocean-deep);
    color: #FFFFFF;
    padding: 8px 16px;
    z-index: 1000;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: 24px;
    color: var(--color-slate-700);
    z-index: 101;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: var(--color-surface);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--color-ocean-deep);
    outline-offset: 2px;
}

.mobile-menu-toggle.active {
    background: var(--color-ocean-deep);
    color: #FFFFFF;
}

.mobile-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-elevated);
    box-shadow: 0 4px 20px rgba(10, 76, 109, 0.15);
    padding: 24px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav a {
    display: block;
    padding: 16px 0;
    color: var(--color-slate-700);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid rgba(10, 76, 109, 0.1);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover {
    color: var(--color-ocean-deep);
}

.mobile-nav .btn-nav-join {
    display: inline-block;
    margin-top: 16px;
    background: var(--color-urgent);
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
}

/* Responsive */

/* Large tablets and small desktops - reduce navigation spacing */
@media (max-width: 1024px) {
    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 15px;
    }

    .nav-links .btn-nav-join {
        padding: 8px 16px;
        font-size: 15px;
    }

    .header {
        padding: 0 16px;
    }
}

/* Tablets - switch to mobile menu */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .mobile-menu-toggle { display: block; }
}

/* Mobile phones */
@media (max-width: 768px) {
    .font-hero { font-size: 40px; }
    .font-h1 { font-size: 36px; }
    .font-h2 { font-size: 30px; }
    .container { padding: 0 20px; }
    .container-narrow { padding: 0 20px; }
    .section-padding { padding: 80px 0; }
    .section-padding-lg { padding: 100px 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .btn { width: 100%; margin: 8px 0; }
    .card { padding: 28px; }
}

/* Very small phones */
@media (max-width: 375px) {
    .header {
        padding: 0 12px;
    }

    .logo {
        font-size: 20px;
    }
}

/* Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.hidden { display: none !important; }
