/* ============================================================
   AUDITIK Design System — styles.css
   Tech profesional, light theme
   ============================================================ */

/* ========== VARIABLES ========== */
:root {
    --bg: #FFFFFF;
    --bg-subtle: #F8FAFC;
    --bg-muted: #F1F5F9;
    --text: #0F172A;
    --text-secondary: #334155;
    --text-muted: #475569;
    --text-faint: #64748B;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --primary: #0EA5E9;
    --primary-dark: #0284C7;
    --primary-light: rgba(14, 165, 233, 0.08);
    --accent: #06B6D4;
    --success: #10B981;
    --success-light: rgba(16, 185, 129, 0.08);
    --warning: #F59E0B;
    --warning-light: rgba(245, 158, 11, 0.08);
    --danger: #EF4444;
    --danger-light: rgba(239, 68, 68, 0.08);
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    --container: 1120px;
    --nav-height: 64px;
}

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

/* ========== BASE ========== */
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.mono { font-family: 'JetBrains Mono', monospace; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ========== TYPOGRAPHY ========== */
h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--text);
}
h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
}
h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
}
p { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-center { text-align: center; }

/* ========== NAV ========== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
}
nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.nav-logo-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
}
.nav-logo-text {
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
    letter-spacing: -0.02em;
}
.nav-center {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}
.nav-link:hover { color: var(--text); }
.nav-link-active { color: var(--text); }
.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.2s;
}
.nav-cta:hover { background: var(--primary-dark); }
.nav-cta svg { width: 14px; height: 14px; }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 4px;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-lg {
    height: 52px;
    padding: 0 28px;
    font-size: 16px;
}
.btn-md {
    height: 44px;
    padding: 0 20px;
    font-size: 14px;
}
.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: #CBD5E1; background: var(--bg-subtle); }
.btn-ghost {
    background: transparent;
    color: var(--primary);
    padding: 0;
}
.btn-ghost:hover { color: var(--primary-dark); }

/* ========== SECTIONS ========== */
.section { padding: 96px 0; }
.section-subtle { background: var(--bg-subtle); }
.section-headline {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    text-align: center;
    margin-bottom: 12px;
}
.section-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.65;
}

/* ========== PILL / BADGE ========== */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 20px;
}
.pill svg { flex-shrink: 0; width: 16px; height: 16px; }

/* ========== CARDS ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
    box-shadow: var(--shadow);
    border-color: #CBD5E1;
}
.card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon-primary { background: var(--primary-light); color: var(--primary); }
.card-icon-accent { background: rgba(6, 182, 212, 0.08); color: var(--accent); }
.card-icon-success { background: var(--success-light); color: var(--success); }
.card-icon-warning { background: var(--warning-light); color: var(--warning); }
.card-icon-danger { background: var(--danger-light); color: var(--danger); }
.card h3 { margin-bottom: 8px; }
.card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========== FORM ========== */
.form-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: var(--text-faint); }
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}
.form-note {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

/* ========== PRICING ========== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.pricing-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
}
.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}
.popular-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 14px;
    border-radius: 100px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.pricing-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.pricing-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 36px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}
.pricing-price span { font-size: 16px; color: var(--text-faint); }
.pricing-period {
    font-size: 13px;
    color: var(--text-faint);
    margin-bottom: 24px;
}
.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    flex: 1;
}
.pricing-features li {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}
.pricing-features li svg { flex-shrink: 0; margin-top: 2px; color: var(--success); width: 16px; height: 16px; }

/* ========== FAQ ========== */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    line-height: 1.4;
}
.faq-question svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.2s;
}
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-answer-inner {
    padding: 0 0 20px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========== STEPS ========== */
.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 640px;
    margin: 0 auto;
}
.step {
    display: flex;
    gap: 24px;
    position: relative;
}
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.step-line {
    width: 2px;
    flex: 1;
    background: var(--border);
    margin: 4px 0;
}
.step:last-child .step-line { display: none; }
.step-content {
    padding: 6px 0 48px;
}
.step:last-child .step-content { padding-bottom: 0; }
.step-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.step-content p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========== FOOTER ========== */
footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
    background: var(--bg);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 36px;
}
.footer-brand-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-brand-name svg { width: 20px; height: 20px; color: var(--primary); }
.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}
.footer-email {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-email:hover { color: var(--primary); }
.footer-col-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== ANIMATIONS ========== */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== ACCESSIBILITY ========== */
.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;
}

/* ========== STICKY CTA ========== */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 12px 24px;
    z-index: 99;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.sticky-cta.visible {
    transform: translateY(0);
}
.sticky-cta-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.sticky-cta .btn {
    flex-shrink: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    :root { --nav-height: 56px; }

    h1 { font-size: 30px; }
    h2 { font-size: 26px; }
    .section { padding: 64px 0; }
    .section-headline { font-size: 26px; }
    .section-subtitle { font-size: 15px; }

    /* Nav mobile */
    .nav-center { display: none; }
    .nav-cta-desktop { display: none; }
    .nav-toggle { display: block; }
    nav.open .nav-center {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
    }
    nav.open .nav-link-active::after { display: none; }

    /* Grids */
    .cards-grid { grid-template-columns: 1fr; gap: 16px; }
    .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    /* Steps */
    .step { gap: 16px; }
    .step-content { padding-bottom: 32px; }

    /* Sticky CTA */
    .sticky-cta-text { font-size: 12px; }
    .sticky-cta { padding: 10px 16px; gap: 8px; }
}

@media (max-width: 480px) {
    h1 { font-size: 26px; }
    .container { padding: 0 16px; }
}
