/* ============================================
   BONDESA LANDING PAGE - CRIMSON AESTHETIC
   Mobile-first responsive design
   ============================================ */

/* ============================================
   CSS VARIABLES & ROOT STYLES
   ============================================ */
:root {
    /* Colors - Crimson Palette */
    --crimson-primary: #DC143C;
    --crimson-dark: #C81238;
    --crimson-light: #E63952;
    --crimson-lighter: #F06178;
    --crimson-pale: #FFE8EC;

    /* Neutrals */
    --bg-cream: #fafaf8;
    --bg-white: #ffffff;
    --text-dark: #2d2d2d;
    --text-gray: #6d6d6d;
    --text-light: #9d9d9d;
    --border-light: #e8e8e6;

    /* Typography */
    --font-primary: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Crimson Text', Georgia, serif;
    --font-handwriting: 'Caveat', cursive;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-cream);
    overflow-x: hidden;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--crimson-primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: none;
    list-style: none;
    gap: 2rem;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: color var(--transition-base);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-text {
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: transparent;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn-text:hover {
    color: var(--crimson-primary);
    background: rgba(220, 20, 60, 0.05);
}

.btn-primary {
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: white;
    background: var(--crimson-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

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

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--crimson-primary);
    background: white;
    border: 2px solid var(--crimson-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    background: var(--crimson-primary);
    color: white;
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: 6rem 1.5rem 4rem;
    background: linear-gradient(to bottom, var(--bg-cream), white);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.badge-icon {
    color: var(--crimson-primary);
    font-size: 1.125rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

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

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-stack {
    display: flex;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    border: 2px solid white;
    margin-left: -10px;
}

.avatar:first-child {
    margin-left: 0;
}

.social-proof-text {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.social-proof-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-image-mockup {
    max-width: 400px;
    width: 100%;
}

/* ============================================
   CONTAINER & SECTIONS
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    padding: 12px;
    background: var(--crimson-pale);
    border-radius: var(--radius-md);
    color: var(--crimson-primary);
    margin-bottom: 1.5rem;
    stroke-width: 2;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.feature-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-gray);
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
    background: var(--bg-cream);
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.step-card {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.step-number {
    position: absolute;
    top: -1rem;
    left: 2rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--crimson-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.step-icon {
    width: 56px;
    height: 56px;
    padding: 14px;
    background: var(--crimson-pale);
    border-radius: var(--radius-md);
    color: var(--crimson-primary);
    margin-bottom: 1.5rem;
    stroke-width: 2;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.step-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-gray);
}

.step-arrow {
    display: none;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing {
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    padding: 2.5rem 2rem;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.pricing-card.featured {
    border-color: var(--crimson-primary);
    box-shadow: var(--shadow-lg);
}

.plan-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 1rem;
    background: var(--crimson-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--crimson-primary);
}

.price-period {
    font-size: 1rem;
    color: var(--text-gray);
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 0.95rem;
}

.plan-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

.feature-included::before {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.666 5L7.49935 14.1667L3.33268 10' stroke='%23DC143C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.feature-excluded {
    color: var(--text-light);
}

.feature-excluded::before {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 5L5 15M5 5L15 15' stroke='%23D1D1D1' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.plan-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
}

.plan-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    background: var(--bg-cream);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--crimson-primary), var(--crimson-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--crimson-primary), var(--crimson-light));
    color: white;
    padding: 4rem 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-section .btn-primary {
    background: white;
    color: var(--crimson-primary);
}

.cta-section .btn-primary:hover {
    background: var(--bg-cream);
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

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

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    font-family: var(--font-handwriting);
    font-size: 1.5rem;
    color: var(--crimson-light);
    margin-bottom: 0.5rem;
}

.footer-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-heading {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--crimson-light);
}

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

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

/* ============================================
   AUTH MODAL
   ============================================ */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.auth-container {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    max-height: 90vh;
    overflow-y: auto;
}

.auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--bg-cream);
    color: var(--text-gray);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.auth-close:hover {
    background: var(--crimson-pale);
    color: var(--crimson-primary);
}

.auth-form {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background: white;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.form-group input:focus {
    outline: none;
    border-color: var(--crimson-primary);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.form-group-checkbox {
    margin-bottom: 1.5rem;
}

.form-group-checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-group-checkbox input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.form-group-checkbox span {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.auth-switch a {
    color: var(--crimson-primary);
    font-weight: 500;
    transition: color var(--transition-base);
}

.auth-switch a:hover {
    color: var(--crimson-dark);
}

.auth-loading {
    text-align: center;
    padding: 3rem 0;
}

.spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border: 4px solid var(--border-light);
    border-top-color: var(--crimson-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-loading p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

.auth-message {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.auth-message.success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.auth-message.error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets (768px+) */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .hero {
        padding: 8rem 2rem 5rem;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-ctas {
        flex-direction: row;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .steps-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .step-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        color: var(--crimson-primary);
    }

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

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

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 3rem;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .hero {
        padding: 10rem 2rem 6rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

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

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    section {
        padding: 5rem 0;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .hero-title {
        font-size: 4rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }

    .hide-desktop {
        display: none;
    }
}
