/* ============================================
   Base Spin — Styles
   Palette: White, Light Grey, Electric Indigo accent
   ============================================ */

:root {
    --white: #ffffff;
    --grey-50: #fafafa;
    --grey-100: #f5f5f5;
    --grey-200: #e5e5e5;
    --grey-300: #d4d4d4;
    --grey-400: #a3a3a3;
    --grey-500: #737373;
    --grey-600: #525252;
    --grey-700: #404040;
    --grey-800: #262626;
    --grey-900: #171717;
    --accent: #4f46e5;
    --accent-light: #6366f1;
    --accent-dark: #3730a3;
    --accent-glow: rgba(79, 70, 229, 0.12);
    --accent-glow-strong: rgba(79, 70, 229, 0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--grey-800);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
    border-bottom-color: var(--grey-200);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    color: var(--grey-900);
}

.logo-icon {
    color: var(--accent);
    font-size: 22px;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--grey-600);
    transition: color var(--transition);
}

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

.nav-cta {
    background: var(--accent);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--grey-700);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 80px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 32px;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--grey-900);
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 18px;
    line-height: 1.7;
    color: var(--grey-500);
    max-width: 520px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-gradient {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    background: var(--accent-dark);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--grey-700);
    border: 1.5px solid var(--grey-200);
}

.btn-ghost:hover {
    border-color: var(--grey-400);
    color: var(--grey-900);
}

.btn-white {
    background: var(--white);
    color: var(--accent);
    font-weight: 600;
}

.btn-white:hover {
    background: var(--grey-50);
    transform: translateY(-2px);
}

/* ---- Sections ---- */
.section {
    padding: 120px 0;
}

.section-grey {
    background: var(--grey-50);
}

.section-accent {
    background: var(--accent);
    color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-grey .section-label,
.section h2 {
    color: var(--grey-900);
}

.section-label {
    color: var(--accent);
}

.section h2 {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--grey-500);
    line-height: 1.7;
}

/* ---- Services Grid ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--grey-100);
    border-radius: var(--radius);
    padding: 36px 32px;
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--grey-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--grey-900);
}

.service-card p {
    font-size: 14px;
    color: var(--grey-500);
    line-height: 1.7;
}

/* ---- About ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
    align-items: center;
}

.about-content .section-label {
    text-align: left;
}

.about-content h2 {
    text-align: left;
    color: var(--grey-900);
}

.about-content p {
    font-size: 16px;
    color: var(--grey-500);
    line-height: 1.8;
    margin-bottom: 16px;
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--grey-200);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 13px;
    color: var(--grey-400);
    font-weight: 500;
}

.about-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.about-card-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.about-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--grey-900);
}

.about-card p {
    font-size: 15px;
    color: var(--grey-500);
    line-height: 1.7;
}

/* ---- Approach ---- */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.approach-step {
    text-align: center;
    padding: 24px 16px;
}

.step-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-glow-strong);
    color: var(--grey-200);
    margin-bottom: 16px;
    letter-spacing: -0.04em;
    line-height: 1;
}

.approach-step h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--grey-900);
}

.approach-step p {
    font-size: 14px;
    color: var(--grey-500);
    line-height: 1.7;
}

/* ---- CTA ---- */
.cta-content {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.section-accent h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 17px;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 32px;
}

.cta-actions {
    margin-bottom: 24px;
}

.cta-details {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

.cta-divider {
    margin: 0 8px;
}

/* ---- Footer ---- */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--grey-100);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
}

.footer-copy {
    font-size: 13px;
    color: var(--grey-400);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--grey-200);
        box-shadow: var(--shadow-md);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }

    .hero-content { padding: 48px 0; }
    .section { padding: 80px 0; }

    .services-grid { grid-template-columns: 1fr; }
    .approach-grid { grid-template-columns: 1fr; }
    .stats-row { flex-direction: column; gap: 20px; }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

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

.hero-badge { animation: fadeUp 0.6s ease-out 0.1s both; }
.hero h1 { animation: fadeUp 0.6s ease-out 0.2s both; }
.hero-sub { animation: fadeUp 0.6s ease-out 0.3s both; }
.hero-actions { animation: fadeUp 0.6s ease-out 0.4s both; }

/* Scroll reveal for sections */
.service-card,
.approach-step,
.about-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-card.visible,
.approach-step.visible,
.about-card.visible {
    opacity: 1;
    transform: translateY(0);
}
