/* ============================================
   Precision Software — Main Stylesheet
   ============================================ */

:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #dbeafe;
    --color-accent: #0ea5e9;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-dark: #0f172a;
    --color-border: #e2e8f0;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 6px 10px rgba(0,0,0,0.06);
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

/* ---- Typography ---- */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.125rem;
    max-width: 640px;
    margin: 0 auto 48px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    padding: 12px 28px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border-color: var(--color-border);
    color: var(--color-text);
    background: transparent;
}
.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.075rem;
}

.btn-nav {
    background: var(--color-primary);
    color: #fff;
    padding: 10px 24px;
    font-size: 0.9rem;
}
.btn-nav:hover {
    background: var(--color-primary-dark);
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-icon {
    color: var(--color-primary);
    font-size: 1.4rem;
}

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

.nav-links a {
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--color-text-light);
    transition: color var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Hero ---- */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(170deg, var(--color-bg) 0%, var(--color-primary-light) 100%);
}

.hero-content {
    max-width: 720px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--color-text-light);
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-trust {
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.hero-trust p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* ---- Pain Points ---- */
.pain-points {
    padding: 96px 0;
    background: var(--color-bg);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.pain-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.pain-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pain-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.pain-card h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.pain-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ---- How It Works ---- */
.how-it-works {
    padding: 96px 0;
    background: var(--color-bg-alt);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 40px 28px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ---- Benefits ---- */
.benefits {
    padding: 96px 0;
    background: var(--color-bg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.benefit-card {
    padding: 36px 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    color: var(--color-primary);
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ---- Results ---- */
.results {
    padding: 96px 0;
    background: var(--color-bg-alt);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 48px 0 64px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--color-bg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--color-text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 36px;
}

.testimonial-card blockquote p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ---- FAQ ---- */
.faq {
    padding: 96px 0;
    background: var(--color-bg);
}

.faq-list {
    max-width: 720px;
    margin: 48px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
    padding: 20px 0;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text-light);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    padding: 0 0 20px;
    color: var(--color-text-light);
    font-size: 0.975rem;
    line-height: 1.7;
}

/* ---- CTA Section ---- */
.cta-section {
    padding: 96px 0;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #1e3a5f 100%);
    color: #fff;
}

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

.cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 16px;
}

.cta-content p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta-note {
    font-size: 0.875rem !important;
    color: #64748b !important;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
}

/* ---- Footer ---- */
.footer {
    padding: 64px 0 32px;
    background: var(--color-bg-dark);
    color: #94a3b8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    margin-top: 12px;
    font-size: 0.9rem;
}

.footer-brand .logo {
    color: #fff;
}

.footer-links h4 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}

/* ---- Animations ---- */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* stagger children */
.pain-grid .animate-in:nth-child(2),
.steps-grid .animate-in:nth-child(2),
.benefits-grid .animate-in:nth-child(2),
.stats-grid .animate-in:nth-child(2) {
    transition-delay: 0.1s;
}
.pain-grid .animate-in:nth-child(3),
.steps-grid .animate-in:nth-child(3),
.benefits-grid .animate-in:nth-child(3),
.stats-grid .animate-in:nth-child(3) {
    transition-delay: 0.2s;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .pain-grid,
    .steps-grid,
    .benefits-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .testimonials {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hero {
        padding: 120px 0 72px;
    }

    .hero h1 br {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 901px) and (max-width: 1024px) {
    .pain-grid,
    .steps-grid,
    .benefits-grid,
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}
