/* ============================================================
   Pivotfrag LLC — Shared Stylesheet
   Design System: Dark Tech, Silicon Valley Consumer SaaS
   ============================================================ */

:root {
    /* Color Palette */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --bg-elevated: #1e1e2e;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.3);
    --accent-secondary: #00d2ff;
    --accent-tertiary: #f0932b;
    --accent-green: #00b894;
    --accent-red: #e17055;
    --border: #1e1e2e;
    --border-light: #2a2a3e;
    --gradient-hero: linear-gradient(135deg, #6c5ce7 0%, #00d2ff 50%, #f0932b 100%);
    --gradient-card-1: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --gradient-card-2: linear-gradient(135deg, #00b894 0%, #00d2ff 100%);

    /* Spacing & Sizing */
    --max-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-light);
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

em {
    font-style: italic;
    color: var(--text-secondary);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.5px;
}

.nav-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

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

.nav-links a.active::after {
    width: 100%;
}

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

.nav-cta:hover {
    background: #7c6cf0;
    transform: translateY(-1px);
}

.nav-cta::after {
    display: none !important;
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---------- Page Header (for subpages) ---------- */
.page-header {
    padding: 140px 32px 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.page-header .badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(108, 92, 231, 0.12);
    border: 1px solid rgba(108, 92, 231, 0.25);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(34px, 5.5vw, 56px);
    font-weight: 800;
    letter-spacing: -1.5px;
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto 16px;
}

.page-header .subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* ---------- Section ---------- */
.section {
    padding: 100px 32px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-sm {
    padding: 64px 32px;
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.7;
    margin-bottom: 48px;
}

/* ---------- Cards ---------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* ---------- Buttons ---------- */
.btn-primary {
    padding: 14px 32px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.btn-primary:hover {
    background: #7c6cf0;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.35);
    color: #fff;
}

.btn-outline {
    padding: 14px 32px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-large {
    padding: 18px 40px;
    font-size: 17px;
    border-radius: var(--radius-lg);
}

.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---------- Testimonial ---------- */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
}

.testimonial-card .quote-mark {
    font-size: 48px;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
    opacity: 0.6;
}

.testimonial-card .quote-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card .author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
}

.testimonial-card .author-name {
    font-weight: 600;
    font-size: 15px;
}

.testimonial-card .author-role {
    font-size: 13px;
    color: var(--text-muted);
}

/* ---------- Pricing Card ---------- */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(108, 92, 231, 0.15);
}

.pricing-card .popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
}

.pricing-card .plan-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.pricing-card .price {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 4px;
}

.pricing-card .price span.currency {
    font-size: 22px;
    vertical-align: super;
    font-weight: 600;
}

.pricing-card .period {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.pricing-card .feature-list {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.pricing-card .feature-list li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.pricing-card .feature-list li::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-card .feature-list li.disabled {
    opacity: 0.4;
}

.pricing-card .feature-list li.disabled::before {
    content: '—';
    color: var(--text-muted);
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 32px 32px;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand h4 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-col h5 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding: 24px 32px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ---------- Grids ---------- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

/* ---------- Step / How It Works ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    counter-reset: step;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
    transition: var(--transition);
    counter-increment: step;
}

.step-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.step-card .step-number {
    font-size: 48px;
    font-weight: 800;
    color: rgba(108, 92, 231, 0.15);
    position: absolute;
    top: 16px;
    right: 20px;
    line-height: 1;
}

.step-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    padding-right: 48px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ---------- Highlight Box ---------- */
.highlight-box {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-hero);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.highlight-box h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.highlight-box p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ---------- Address Block ---------- */
.address-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    font-style: normal;
}

.address-block .address-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.address-block .address-line {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
}

/* ---------- Legal Content ---------- */
.legal-content {
    max-width: 760px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.legal-content h2:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.legal-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 10px;
    color: var(--text-primary);
}

.legal-content p,
.legal-content li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 12px;
}

.legal-content ul,
.legal-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-content .effective-date {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.legal-content .warning-box {
    background: rgba(225, 112, 85, 0.08);
    border: 1px solid rgba(225, 112, 85, 0.25);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 24px 0;
}

.legal-content .warning-box strong {
    color: var(--accent-red);
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        padding: 24px 32px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .page-header {
        padding: 120px 20px 56px;
    }

    .section {
        padding: 64px 20px;
    }

    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

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