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

:root {
    /* Japanese-inspired Color Palette */
    --primary-indigo: #2E4597;
    --primary-vermillion: #D73527;
    --ink-black: #1A1A1A;
    --washi-white: #F8F6F0;
    
    /* Extended Color System */
    --indigo-light: #4A67B7;
    --indigo-dark: #1E2F6F;
    --vermillion-light: #E85A4A;
    --vermillion-dark: #B82A1E;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    
    /* Typography */
    --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
    
    /* Spacing System (8px grid) */
    --spacing-1: 8px;
    --spacing-2: 16px;
    --spacing-3: 24px;
    --spacing-4: 32px;
    --spacing-5: 40px;
    --spacing-6: 48px;
    --spacing-8: 64px;
    --spacing-10: 80px;
    --spacing-12: 96px;
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.25s ease-in-out;
    --transition-slow: 0.35s ease-in-out;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px 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);
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink-black);
    background-color: var(--washi-white);
    scroll-behavior: smooth;
}

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

.centered-content {
    text-align: center;
}

.centered-content .hero-content,
.centered-content .tech-content {
    text-align: left;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink-black);
    margin-bottom: var(--spacing-2);
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-2);
    line-height: 1.6;
}

/* Header */
.header {
    background-color: var(--washi-white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-2) 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.logo {
    width: 48px;
    height: 48px;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink-black);
    text-decoration: none;
}

.cta-button, .primary-button, .secondary-button {
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all var(--transition-normal);
    display: inline-block;
}

.cta-button, .primary-button {
    background-color: var(--primary-indigo);
    color: var(--washi-white);
}

.cta-button:hover, .primary-button:hover {
    background-color: var(--indigo-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.secondary-button {
    background-color: transparent;
    color: var(--primary-indigo);
    border: 2px solid var(--primary-indigo);
}

.secondary-button:hover {
    background-color: var(--primary-indigo);
    color: var(--washi-white);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--washi-white) 0%, #f9f7f4 100%);
    padding: var(--spacing-12) 0 var(--spacing-10) 0;
    text-align: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-8);
    align-items: center;
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-3);
    color: var(--ink-black);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-5);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-3);
}

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

.hero-placeholder {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-placeholder svg {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* Section Styling */
section {
    padding: var(--spacing-10) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-8);
    font-size: 2.5rem;
    color: var(--ink-black);
}

/* Features Section */
.features {
    background-color: var(--gray-100);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-6);
}

.feature-card {
    background-color: var(--washi-white);
    padding: var(--spacing-5);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-normal);
}

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

.feature-icon {
    margin-bottom: var(--spacing-3);
    display: flex;
    justify-content: center;
}

/* Benefits Section */
.benefits {
    text-align: center;
}

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

.benefit-item {
    display: flex;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-6);
    align-items: flex-start;
}

.benefit-number {
    background-color: var(--primary-indigo);
    color: var(--washi-white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.benefit-text h3 {
    margin-bottom: var(--spacing-1);
    color: var(--ink-black);
}

/* Products Section */
.products {
    background-color: var(--gray-100);
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-6);
}

.product-card {
    background-color: var(--washi-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    margin-bottom: var(--spacing-3);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.product-card h3 {
    padding: 0 var(--spacing-3);
    margin-bottom: var(--spacing-2);
    font-size: 1.25rem;
}

.product-card p {
    padding: 0 var(--spacing-3);
    color: var(--gray-600);
    margin-bottom: var(--spacing-4);
    line-height: 1.6;
}

.product-price {
    padding: 0 var(--spacing-3);
    font-weight: 600;
    color: var(--primary-indigo);
    margin-bottom: var(--spacing-3);
}

.product-button {
    width: 100%;
    padding: var(--spacing-3);
    background-color: var(--primary-vermillion);
    color: var(--washi-white);
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-normal);
    font-size: 1rem;
}

.product-button:hover {
    background-color: var(--vermillion-dark);
}

.product-button.secondary {
    background-color: var(--primary-indigo);
    color: var(--washi-white);
}

.product-button.secondary:hover {
    background-color: var(--indigo-dark);
}

/* How It Works */
.how-it-works {
    text-align: center;
}

.steps {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--spacing-2);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    grid-column: span 1;
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--primary-indigo);
    text-align: center;
    grid-column: span 1;
}

.step-number {
    background-color: var(--primary-vermillion);
    color: var(--washi-white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    margin: 0 auto var(--spacing-2) auto;
}

.step h3 {
    margin-bottom: var(--spacing-2);
    font-size: 1.125rem;
}

.step p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Technology Section */
.technology {
    background-color: var(--gray-100);
    text-align: center;
}

.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-8);
    align-items: center;
    text-align: left;
}

.tech-description ul {
    margin-top: var(--spacing-3);
    padding-left: var(--spacing-3);
}

.tech-description li {
    margin-bottom: var(--spacing-1);
    color: var(--gray-600);
}

.tech-placeholder {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.tech-placeholder svg {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* Pricing Section */
.pricing {
    text-align: center;
}

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

.pricing-card {
    background-color: var(--washi-white);
    padding: var(--spacing-6);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary-vermillion);
    transform: scale(1.05);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-3);
}

.price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-indigo);
    margin-bottom: var(--spacing-4);
}

.pricing-card ul {
    text-align: left;
    list-style: none;
    margin-bottom: var(--spacing-5);
}

.pricing-card li {
    padding: var(--spacing-1) 0;
    color: var(--gray-600);
    position: relative;
    padding-left: var(--spacing-3);
}

.pricing-card li::before {
    content: "✓";
    color: var(--primary-vermillion);
    font-weight: 600;
    position: absolute;
    left: 0;
}

.pricing-button {
    width: 100%;
    padding: var(--spacing-3);
    background-color: var(--primary-indigo);
    color: var(--washi-white);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-normal);
    font-size: 1rem;
}

.pricing-button:hover {
    background-color: var(--indigo-dark);
}

/* Testimonials */
.testimonials {
    background-color: var(--gray-100);
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-6);
}

.testimonial-card {
    background-color: var(--washi-white);
    padding: var(--spacing-5);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: var(--spacing-3);
    color: var(--gray-700);
}

.testimonial-author strong {
    color: var(--ink-black);
    display: block;
}

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

/* Contact Section */
.contact {
    text-align: center;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-8);
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.contact-info {
    display: grid;
    gap: var(--spacing-5);
}

.contact-item h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-2);
    color: var(--ink-black);
}

.contact-item p {
    color: var(--gray-600);
    margin-bottom: var(--spacing-1);
}

.contact-item small {
    color: var(--gray-500);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.contact-button {
    padding: var(--spacing-3);
    background-color: var(--primary-indigo);
    color: var(--washi-white);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-normal);
    font-size: 1rem;
}

.contact-button:hover {
    background-color: var(--indigo-dark);
}

.contact-button.secondary {
    background-color: transparent;
    color: var(--primary-indigo);
    border: 2px solid var(--primary-indigo);
}

.contact-button.secondary:hover {
    background-color: var(--primary-indigo);
    color: var(--washi-white);
}

/* Footer */
.footer {
    background-color: var(--ink-black);
    color: var(--washi-white);
    padding: var(--spacing-8) 0 var(--spacing-4) 0;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: var(--spacing-5);
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: var(--spacing-3);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.footer-logo {
    width: 32px;
    height: 32px;
}

.footer-brand span {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-description {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-top: var(--spacing-1);
}

.footer-section h4 {
    color: var(--washi-white);
    margin-bottom: var(--spacing-2);
    font-size: 1rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
}

.footer-nav a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-nav a:hover {
    color: var(--washi-white);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
}

.footer-contact p {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-4);
    border-top: 1px solid var(--gray-700);
}

.footer-bottom p {
    color: var(--gray-500);
    margin: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--washi-white);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-4);
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    margin: 0;
    color: var(--ink-black);
}

.close {
    color: var(--gray-500);
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--ink-black);
}

.modal-body {
    padding: var(--spacing-4);
}

.form-group {
    margin-bottom: var(--spacing-3);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-1);
    color: var(--ink-black);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-2);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-indigo);
    box-shadow: 0 0 0 2px rgba(46, 69, 151, 0.1);
}

.form-submit {
    width: 100%;
    padding: var(--spacing-3);
    background-color: var(--primary-indigo);
    color: var(--washi-white);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-normal);
    font-size: 1rem;
}

.form-submit:hover {
    background-color: var(--indigo-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-6);
    }
    
    .tech-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: var(--spacing-4);
    }
    
    .step-arrow {
        display: none;
    }
    
    .hero-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-2);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .footer-section {
        gap: var(--spacing-4);
        text-align: center;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modal-content {
        margin: 2% auto;
        width: 95%;
    }
    
    .hero-image {
        height: 200px;
    }
}