:root {
    --primary-color: #2745a5;
    --primary-hover: #1e3685;
    --secondary-color: #64748b;
    --accent-color: #fca311;
    /* Example accent */
    --background-light: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --font-heading: 'Inter', 'Noto Sans JP', sans-serif;
    --font-body: 'Inter', 'Noto Sans JP', sans-serif;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--background-light);
}

.section {
    padding: 80px 0;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: #f1f5f9;
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: linear-gradient(rgba(39, 69, 165, 0.9), rgba(39, 69, 165, 0.9)), url('assets/hero_bg.jpg') no-repeat center center/cover;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 700px 1fr;
    gap: 20px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #BFDBFE;
    margin-bottom: 20px;
}

.hero-subtext {
    font-size: 1.25rem;
    color: #DBEAFE;
    margin-bottom: 40px;
}

.app-buttons {
    display: flex;
    gap: 15px;
}

.store-btn {
    background-color: #000;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
}

.store-btn:hover {
    background-color: #333;
}

.store-btn i {
    font-size: 1.8rem;
}

.store-btn span {
    display: block;
    line-height: 1.2;
}

.small-text {
    font-size: 0.7rem;
}

.big-text {
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-image {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup {
    /*border-radius: 40px;*/
    /*border: 8px solid #fff;*/
    box-shadow: 0 20px 40px rgba(39, 69, 165, 0.5);
    max-width: 320px;
}

/* Features */
.features {
    background: linear-gradient(142deg, rgba(179, 206, 255, 0.40) 6.69%, rgba(71, 119, 242, 0.40) 71.99%);
}

.features-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.features-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    /* Center content vertically */
}

.features-column.center {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Context for absolute positioning if needed, though flex is better */
}

.features-phone-img {
    max-width: 100%;
    /* 
       To approximate 80% height of the neighbors:
       Since 'stretch' is default for grid align-items, .features-column.center 
       will be the same height as the tallest column.
       Setting max-height to 80% of that parent should work.
    */
    max-height: 80%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    padding: 50px;
}

/* Responsive Features */
@media (max-width: 991px) {
    .features-layout {
        grid-template-columns: 1fr;
    }

    .features-column.center {
        order: -1;
        /* Show image first on mobile/tablet */
        margin-bottom: 30px;
    }
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: left;
    transition: transform 0.3s;
    border: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon title"
        "desc desc";
    column-gap: 20px;
    align-items: center;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.icon-box {
    grid-area: icon;
    width: 60px;
    height: 60px;
    background-color: rgba(39, 69, 165, 0.1);
    color: var(--primary-color);
    border-radius: 16px;
    /* Adjusted to rounded square based on image */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 1.5rem;
}

.feature-card h3 {
    grid-area: title;
    margin-bottom: 0;
    color: var(--text-dark);
}

.feature-card p {
    grid-area: desc;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 15px;
    line-height: 1.6;
}

/* How It Works */
.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    text-align: center;
    min-width: 250px;
}

.step-image {
    margin-bottom: 30px;
}

.step-image img {
    border-radius: var(--border-radius);
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}

.step-content {
    position: relative;
    padding-top: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 15px;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid var(--white);
}

/* Before / After */
.before-after {
    background: url('assets/workflow.jpg') no-repeat center center/cover;
}

.comparison-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.comparison-card {
    flex: 1;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
}

.comparison-card.before {
    background-color: #f8fafc;
    border-left: 5px solid var(--secondary-color);
}

.comparison-card.after {
    background-color: #fff;
    border-left: 5px solid var(--primary-color);
    transform: scale(1.05);
    /* Highlight After */
    z-index: 2;
}

.comparison-desc {
    font-weight: 500;
    margin-bottom: 20px;
    min-height: 50px;
}

.comparison-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comparison-list.fire i {
    color: #ef4444;
}

.comparison-list.check i {
    color: #22c55e;
}

.comparison-arrow {
    font-size: 2rem;
    color: var(--secondary-color);
}

/* Use Cases */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.use-case-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.uc-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--background-light);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
}

.quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Security & Support */
.security-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 400px;
}

.security-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-section p {
    margin-bottom: 40px;
    font-size: 1.2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    border-bottom: 1px solid #334155;
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-logo h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .app-buttons {
        justify-content: center;
    }

    .comparison-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        /* Simple hiding for now, normally would toggle */
    }

    .header-container {
        justify-content: center;
    }

    .comparison-container {
        flex-direction: column;
    }

    .features-column.center {
        display: none;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .comparison-card.after {
        transform: scale(1);
    }
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}