/* ==========================================================================
   JafriAI - Main Stylesheet
   Base styles, variables, and shared components
   ========================================================================== */

/* CSS Variables / Design Tokens */
:root {
    /* Teal palette */
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    --teal-950: #042f2e;

    /* Sand palette */
    --sand-50: #fafaf9;
    --sand-100: #f5f5f4;
    --sand-200: #e7e5e4;
    --sand-300: #d6d3d1;
    --sand-400: #a8a29e;
    --sand-500: #78716c;
    --sand-600: #57534e;
    --sand-700: #44403c;
    --sand-800: #292524;
    --sand-900: #1c1917;

    /* Typography */
    --font-display: 'Newsreader', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--sand-800);
    background: var(--sand-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(250, 250, 249, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

nav.scrolled {
    border-bottom-color: var(--sand-200);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--sand-900);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--teal-600);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

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

.nav-links a:hover {
    color: var(--sand-900);
}

.nav-cta {
    background: var(--sand-900);
    color: var(--sand-50) !important;
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.nav-cta:hover {
    background: var(--teal-700) !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--teal-600);
    color: white;
    padding: 1rem 1.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--teal-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(13, 148, 136, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--sand-700);
    padding: 1rem 1.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid var(--sand-300);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--sand-400);
    background: var(--sand-100);
}

/* ==========================================================================
   Section Base Styles
   ========================================================================== */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--teal-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--sand-900);
    letter-spacing: -0.02em;
    max-width: 700px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--sand-600);
    max-width: 600px;
    margin-top: 1.5rem;
    line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--sand-900);
    padding: 3rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--sand-100);
}

.footer-logo span {
    color: var(--teal-400);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--sand-400);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--teal-400);
}

.footer-copyright {
    color: var(--sand-500);
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--sand-800);
}

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

/* ==========================================================================
   Responsive - Base
   ========================================================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    section {
        padding: 4rem 1.5rem;
    }
}
