:root {
    --ms-blue: #5e5e62;
    --ms-blue-hover: #2d2d2f;
    --bg-light: #f5f5f7;
    --hero-light: #ececep;
    --text-main: #1d1d1f;
    --font-stack: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-stack), sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
}

body.theme-seika {
    --ms-blue: #D13438;
    --ms-blue-hover: #A4262C;
    --hero-light: #fdf0f1;
}

body.theme-tag {
    --ms-blue: #107C10;
    --ms-blue-hover: #0B5A0B;
    --hero-light: #f1f9f1;
}

body.theme-kordana {
    --ms-blue: #5C2D91;
    --ms-blue-hover: #3A1D5E;
    --hero-light: #f6f2fb;
}

body.theme-leyvigente {
    --ms-blue: #6D4C41;
    --ms-blue-hover: #4E342E;
    --hero-light: #f8f4f2;
}

.enterprise-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #fff;
}

.nav-brand {
    font-weight: 600;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cloud Soft', var(--font-stack), sans-serif;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.nav-brand .tachibana {
    color: #5e5e62;
}

.nav-brand .labs {
    color: #a3a3a3;
}

.nav-brand .brand-divider {
    margin: 0 10px;
    color: #d2d2d2;
    font-weight: 300;
    font-family: var(--font-stack), sans-serif;
}

.nav-brand .nav-product-name {
    color: var(--ms-blue);
    font-family: var(--font-stack), sans-serif;
    font-weight: 600;
}

.brand-icon {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.nav-links a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
}

.hero-section {
    height: 70vh;
    background-color: var(--bg-light);
    background-image: url('../assets/index-seika-hero-1920x1080-web.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 1.0) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.center-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 8rem 5% 4rem 5%;
    background: linear-gradient(to bottom, var(--hero-light), #ffffff);
}

.center-hero h1 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.center-hero p {
    font-size: 1.25rem;
    color: #444;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.5;
}

.hero-pre-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    font-family: var(--font-stack), sans-serif;
    background: linear-gradient(135deg, var(--ms-blue-hover) 0%, var(--ms-blue) 60%, #ff8787 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0px 4px 12px rgba(209, 52, 56, 0.2));
}

.btn-primary {
    display: inline-block;
    background-color: var(--ms-blue);
    color: #fff;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 2px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: var(--ms-blue-hover);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 2px;
}

.product-grid-container {
    padding: 4rem 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.product-grid-container h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

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

.product-card {
    background: #fff;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--bg-light);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-body p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.enterprise-footer {
    background-color: #f2f2f2;
    padding: 3rem 5% 1rem 5%;
    font-size: 0.85rem;
    color: #616161;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: #616161;
    text-decoration: none;
    margin-bottom: 0.8rem;
}

.footer-column a:hover {
    text-decoration: underline;
    color: var(--text-main);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #d2d2d2;
}

.footer-locale {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-locale .location {
    color: #888;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-legal a {
    color: #616161;
    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}

.minimal-footer {
    padding: 2rem 5%;
    background-color: transparent;
    border-top: 1px solid #e0e0e0;
    font-size: 0.85rem;
    color: #616161;
}

.minimal-footer .footer-bottom {
    border-top: none;
    padding-top: 0;
}

.minimal-footer.dark-footer {
    background-color: #1a1a1a;
    border-top: 1px solid #333;
    color: #999;
}

.minimal-footer.dark-footer a {
    color: #999;
}

.minimal-footer.dark-footer a:hover {
    color: #fff;
}

.minimal-footer.dark-footer .location {
    color: #666;
}

@media (max-width: 768px) {
    .enterprise-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links a {
        margin: 0 0.5rem;
    }

    .hero-section {
        height: auto;
        padding: 6rem 5%;
        text-align: center;
    }

    .hero-section::before,
    .center-hero::before {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 40%, rgba(255, 255, 255, 0.4) 100%);
    }

    .center-hero h1 {
        font-size: 2.2rem;
    }

    .center-hero p {
        font-size: 1rem;
    }

    .two-col-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    h1[style*="font-size: 8rem"] {
        font-size: 5rem !important;
    }
}