/* ============ CSS Variables ============ */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #dbeafe;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border: #e2e8f0;
    --success: #22c55e;
    --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.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

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

a:hover {
    text-decoration: underline;
}

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

/* ============ Typography ============ */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

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

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ============ Header ============ */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.logo:hover {
    text-decoration: none;
}

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

.nav a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
}

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

.nav-cta {
    margin-left: 16px;
}

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

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

/* ============ Hero ============ */
.hero {
    padding: 80px 0 40px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 24px;
}

.brand-switch {
    position: relative;
    display: inline-block;
}

.brand-switch::before {
    content: 's';
    position: absolute;
    top: -0.6em;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8em;
    color: var(--primary);
    font-weight: 600;
}

.brand-switch::after {
    content: '';
    position: absolute;
    left: -2px;
    top: 45%;
    width: 120%;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 40 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2,4 Q8,2 14,5 T26,3 T38,4' stroke='%23ef4444' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
    pointer-events: none;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.trust-signals {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.trust-signals .dot {
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
}

/* ============ Demo Section ============ */
.demo {
    padding: 40px 0 80px;
}

.demo-window {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border);
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.demo-dots {
    display: flex;
    gap: 6px;
}

.demo-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}

.demo-dots span:nth-child(1) { background: #ef4444; }
.demo-dots span:nth-child(2) { background: #f59e0b; }
.demo-dots span:nth-child(3) { background: #22c55e; }

.demo-title {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.demo-placeholder {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.demo-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-content {
    text-align: center;
    color: var(--text-muted);
}

.placeholder-content svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.placeholder-content p {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.placeholder-content span {
    font-size: 0.875rem;
}

.demo-caption {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* ============ The Problem ============ */
.problem {
    padding: 80px 0;
    background: var(--bg);
    text-align: center;
}

.problem h2 {
    margin-bottom: 48px;
}

.problem-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
    gap: 20px;
    justify-content: center;
    margin-bottom: 48px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.problem-example {
    position: relative;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text);
    padding: 28px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    text-align: left;
}

/* Top gradient accent bar */
.problem-example::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--success) 0%,
        var(--success) 40%,
        var(--primary) 60%,
        var(--primary-dark) 100%
    );
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Warning badge on hover */
.problem-example::after {
    content: '💰';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    opacity: 0;
    transform: scale(0.8) rotate(-12deg);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover state for cards */
.problem-example:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.problem-example:hover::after {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.problem-example strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

/* Icon indicator for service name */
.problem-example strong::before {
    content: '▶';
    display: inline-block;
    margin-right: 8px;
    color: var(--primary);
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.problem-example:hover strong::before {
    transform: translateX(4px);
}

.problem-statement {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

/* Underline effect for problem statement */
.problem-statement::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: 2px;
}

.problem-solution {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding: 8px 0;
}

/* Highlight effect for solution */
.problem-solution::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    right: -8px;
    bottom: 0;
    background: var(--primary-light);
    border-radius: var(--radius);
    z-index: -1;
    opacity: 0.5;
}

/* ============ How It Works ============ */
.how-it-works {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
}

.step-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 8px;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.step-arrow {
    display: flex;
    align-items: center;
    padding-top: 20px;
    color: var(--text-muted);
}

/* ============ Features ============ */
.features {
    padding: 80px 0;
}

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

.feature-card {
    background: var(--bg);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

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

.feature-card h3 {
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ============ Pricing ============ */
.pricing {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-xl);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 4px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.pricing-header h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.pricing-header p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.pricing-features li svg {
    flex-shrink: 0;
    color: var(--success);
}

/* ============ Comparison Table ============ */
.compare {
    padding: 80px 0;
}

.compare-table-wrapper {
    overflow-x: auto;
    margin: 0 -24px;
    padding: 0 24px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    min-width: 700px;
}

.compare-table th,
.compare-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.compare-table thead th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text);
}

.compare-table th.highlight,
.compare-table td.highlight {
    background: var(--primary-light);
}

.compare-table thead th.highlight {
    background: var(--primary);
    color: #fff;
}

.compare-table tbody tr:hover {
    background: var(--bg-secondary);
}

.compare-table td:first-child {
    font-weight: 500;
    color: var(--text);
}

.check,
.cross {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: relative;
}

.check {
    background: #dcfce7;
}

.check::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 4px;
    width: 5px;
    height: 9px;
    border: solid #22c55e;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cross {
    background: #fee2e2;
}

.cross::after,
.cross::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 5px;
    width: 2px;
    height: 10px;
    background: #ef4444;
}

.cross::after {
    transform: rotate(45deg);
}

.cross::before {
    transform: rotate(-45deg);
}

/* ============ FAQ ============ */
.faq {
    padding: 80px 0;
    background: var(--bg-secondary);
}

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

.faq-item {
    background: var(--bg);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

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

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

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

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

.faq-item p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
}

/* ============ Roadmap ============ */
.roadmap {
    padding: 80px 0;
    background: var(--bg);
    text-align: center;
}

.roadmap h2 {
    margin-bottom: 48px;
}

.roadmap-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.roadmap-item {
    background: var(--bg-secondary);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.roadmap-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.roadmap-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.roadmap-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.roadmap-item p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ============ Final CTA ============ */
.final-cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.final-cta h2 {
    color: #fff;
    margin-bottom: 16px;
}

.final-cta p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.final-cta .btn-primary {
    background: #fff;
    color: var(--primary);
}

.final-cta .btn-primary:hover {
    background: var(--bg-secondary);
}

.cta-note {
    margin-top: 16px;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ============ Footer ============ */
.footer {
    padding: 60px 0 24px;
    background: var(--text);
    color: #fff;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    color: #fff;
    display: block;
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-column h4 {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-column a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
}

/* ============ Legal Pages ============ */
.legal-page {
    padding: 60px 0 80px;
}

.legal-page .container {
    max-width: 800px;
}

.legal-page h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    text-align: left;
}

.legal-page .last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 48px;
}

.legal-page section {
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.25rem;
    text-align: left;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.legal-page h3 {
    font-size: 1rem;
    margin: 20px 0 12px;
}

.legal-page p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.legal-page ul {
    color: var(--text-secondary);
    margin-left: 24px;
    margin-bottom: 12px;
}

.legal-page li {
    margin-bottom: 8px;
}

.legal-page a {
    color: var(--primary);
}

/* ============ Mobile Responsive ============ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav a {
        font-size: 1rem;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 60px 0 32px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .trust-signals {
        flex-wrap: wrap;
        gap: 8px;
    }

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

    .step-arrow {
        transform: rotate(90deg);
        padding: 8px 0;
    }

    .step {
        max-width: 100%;
    }

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

    .pricing-cards {
        grid-template-columns: 1fr;
    }

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

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .problem-examples {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 8px;
    }

    .problem-example {
        padding: 24px 20px;
    }

    .problem-statement {
        font-size: 1.25rem;
    }

    .problem-solution {
        font-size: 1.375rem;
    }
}

@media (max-width: 480px) {
    .btn-lg {
        padding: 14px 24px;
        font-size: 0.9375rem;
    }

    .pricing-card {
        padding: 28px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .compare-table th,
    .compare-table td {
        padding: 12px 16px;
        font-size: 0.875rem;
    }

    .problem-example {
        font-size: 1rem;
    }

    .problem-example strong {
        font-size: 0.875rem;
    }
}
