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

:root {
    /* Colors - Blue palette */
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;

    /* Slate palette */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Legacy mappings */
    --primary: var(--blue-600);
    --primary-dark: var(--blue-700);
    --secondary: var(--slate-800);
    --secondary-dark: var(--slate-900);
    --accent: var(--blue-100);
    --text: var(--slate-800);
    --text-light: var(--slate-500);
    --bg: #ffffff;
    --bg-light: var(--slate-50);
    --border: var(--slate-200);

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 96px 0;
    --radius: 12px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Noto Sans JP', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

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

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.2s;
}

.nav.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.nav-logo img {
    height: 28px;
    width: auto;
}

.nav-logo-badge {
    background: var(--blue-100);
    color: #162f4c;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

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

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

.btn-primary {
    background: var(--primary);
    color: white !important;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary-hero {
    background: white;
    color: var(--primary) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-weight: 700;
}

.btn-primary-hero:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

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

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hero-note {
    font-size: 14px;
    opacity: 0.8;
}

.phone-mockup {
    width: 280px;
    background: var(--secondary-dark);
    border-radius: 38px;
    padding: 10px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Section Styles */
section {
    padding: var(--section-padding);
}

.section-title {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 60px;
}

/* Badge */
.badge {
    display: inline-block;
    background: var(--blue-50);
    color: var(--blue-600);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

/* Features Section */
.features {
    background: var(--bg-light);
}

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

.feature-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--primary);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* How It Works Section */
.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.step-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
}

/* Pricing Section */
.pricing {
    background: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s;
}

.pricing-card-featured {
    border: 2px solid var(--primary);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.pricing-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.pricing-price {
    margin-bottom: 24px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
}

.price-period {
    font-size: 18px;
    color: var(--text-light);
}

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

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-item details {
    cursor: pointer;
}

.faq-item summary {
    padding: 24px 32px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

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

.faq-item summary::after {
    content: '▼';
    font-size: 12px;
    color: var(--text-light);
    transition: transform 0.3s;
}

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

.faq-answer {
    padding: 0 32px 24px 32px;
    color: var(--text-light);
    line-height: 1.7;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
    color: white;
    text-align: center;
    padding: 96px 0;
}

.cta-title {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta .btn-primary {
    background: white;
    color: var(--primary) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: var(--slate-900);
    color: white;
    padding: 60px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    height: 20px;
    width: auto;
}

.footer-badge {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.footer-section {
    display: flex;
    align-items: center;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    font-size: 14px;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 14px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --section-padding: 64px 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-image {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

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

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

    .pricing-card-featured {
        transform: none;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .nav-links {
        display: none;
    }

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

    .phone-mockup {
        width: 240px;
        height: 480px;
    }
}

/* Legal Pages */
.legal-page {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 24px;
}

.legal-page h1 {
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: 16px;
}

.legal-page .updated {
    color: var(--text-light);
    margin-bottom: 48px;
}

.legal-page h2 {
    font-size: 24px;
    margin-top: 48px;
    margin-bottom: 16px;
}

.legal-page h3 {
    font-size: 20px;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-page p,
.legal-page li {
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--text-light);
}

.legal-page ul {
    padding-left: 24px;
}

.privacy-highlight {
    background: var(--accent);
    padding: 24px;
    border-radius: var(--radius);
    margin: 32px 0;
}

.privacy-highlight p {
    color: var(--text);
    font-weight: 600;
    margin: 0;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}
