/* ==========================================================================
   Ima Mirai Website Styles
   Visual Spec: Minimal & Modern
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables (Color Palette from Logo)
   -------------------------------------------------------------------------- */
:root {
    /* Primary Colors */
    --color-dark: #1a1d42;
    --color-dark-deeper: #12142e;
    --color-accent-purple: #8B2A6B;
    --color-highlight: #E85D04;
    --color-highlight-hover: #ff6b1a;

    /* Backgrounds */
    --bg-light: #C9C4B8;  /* Kinari - thousand-year-old silk */
    --bg-dark: #1a1d42;

    /* Text */
    --text-on-dark: #FFFFFF;
    --text-on-light: #1A1A2E;
    --text-muted-dark: rgba(255, 255, 255, 0.8);
    --text-muted-light: #4a4a5c;

    /* Typography */
    --font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --line-height: 1.6;

    /* Spacing */
    --section-padding: 6rem;
    --container-max: 1200px;
    --container-padding: 2rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-family);
    font-size: 1.25rem;
    line-height: var(--line-height);
    color: var(--text-on-light);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--color-highlight);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-highlight-hover);
}

ul {
    list-style: none;
}

strong {
    font-weight: 600;
}

em {
    font-style: italic;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding) 0;
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
}

.section-dark a:not(.btn) {
    color: var(--color-highlight);
}

.section-light {
    background-color: var(--bg-light);
    color: var(--text-on-light);
    position: relative;
}

/* Rice paper texture overlay for light sections */
.section-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.section-light > .container {
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Floating Navigation
   -------------------------------------------------------------------------- */
.floating-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(26, 29, 66, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.floating-nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-on-dark);
    font-weight: 600;
    font-size: 1.5rem;
    text-decoration: none;
}

.nav-logo:hover {
    color: var(--text-on-dark);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links li a {
    color: var(--text-muted-dark);
    font-size: 1.125rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    padding: 0.5rem 0;
}

.nav-links li a:hover {
    color: var(--text-on-dark);
}

.nav-cta {
    background-color: var(--color-highlight);
    color: var(--text-on-dark) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 4px;
    transition: background-color var(--transition-fast) !important;
}

.nav-cta:hover {
    background-color: var(--color-highlight-hover) !important;
}

/* Language Selector */
.lang-selector {
    display: flex;
    gap: 0.25rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-muted-dark);
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 3px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--text-on-dark);
}

.lang-btn.active {
    background-color: var(--color-highlight);
    border-color: var(--color-highlight);
    color: var(--text-on-dark);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-on-dark);
    transition: var(--transition-fast);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background-color: var(--color-highlight);
    color: var(--text-on-dark);
}

.btn-primary:hover {
    background-color: var(--color-highlight-hover);
    color: var(--text-on-dark);
    transform: translateY(-2px);
}

/* Subtle outline button for hero */
.btn-subtle {
    background-color: transparent;
    color: var(--text-on-dark);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-subtle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--text-on-dark);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: calc(var(--section-padding) + 90px);
}

.hero-logo {
    width: 180px;
    height: auto;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-highlight);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-muted-dark);
}

.hero .btn {
    margin-bottom: 3rem;
}

.hero-meaning {
    font-size: 1.1rem;
    color: var(--text-muted-dark);
    max-width: 550px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Section Typography
   -------------------------------------------------------------------------- */
.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: clamp(2.25rem, 4vw, 3.25rem);
}

.section-lead {
    font-size: 1.4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2.5rem;
}

.section-dark .section-lead {
    color: var(--text-muted-dark);
}

.section-light .section-lead {
    color: var(--text-muted-light);
}

.section-emphasis {
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
    margin-top: 2.5rem;
}

.section-dark .section-emphasis {
    color: var(--color-highlight);
}

.section-light .section-emphasis {
    color: var(--color-dark);
}

/* Center standalone paragraphs in sections */
.section > .container > p:not(.section-lead):not(.section-emphasis) {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Left-aligned content blocks */
.content-left {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Challenge Section
   -------------------------------------------------------------------------- */
.challenge-list {
    max-width: 800px;
    margin: 2rem auto 2.5rem;
    text-align: left;
}

.challenge-list li {
    padding: 0.5rem 0 0.5rem 2.5rem;
    position: relative;
    font-size: 1.2rem;
}

.challenge-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--color-highlight);
    border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Approach Section
   -------------------------------------------------------------------------- */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.approach-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.approach-card h3 {
    color: var(--color-highlight);
    margin-bottom: 1rem;
}

.approach-card p {
    color: var(--text-muted-dark);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   ADEPT Section
   -------------------------------------------------------------------------- */
.adept-intro {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 3.5rem;
}

.adept-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.adept-item {
    text-align: center;
    padding: 2rem 1rem;
}

.adept-letter {
    display: block;
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--color-highlight);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.adept-word {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.adept-desc {
    font-size: 1.1rem;
    color: var(--text-muted-light);
    margin-bottom: 0;
}

.adept-benefits {
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 3rem;
    border-radius: 8px;
    margin-top: 3rem;
}

.adept-benefits h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-on-dark);
}

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

.benefit h4 {
    color: var(--color-highlight);
    margin-bottom: 0.75rem;
}

.benefit p {
    color: var(--text-muted-dark);
    margin-bottom: 0;
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Outcomes Section
   -------------------------------------------------------------------------- */
.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.outcome-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.outcome-card h3 {
    color: var(--text-on-dark);
    margin-bottom: 0.75rem;
}

.outcome-frameworks {
    font-size: 0.9rem;
    color: var(--color-highlight);
    margin-bottom: 1rem;
    font-weight: 500;
}

.outcome-card p:last-child {
    color: var(--text-muted-dark);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Clients Section
   -------------------------------------------------------------------------- */
.clients-list {
    max-width: 700px;
    margin: 2rem auto;
}

.clients-list li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    border-bottom: 1px solid rgba(26, 26, 46, 0.1);
}

.clients-list li:last-child {
    border-bottom: none;
}

.clients-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--color-highlight);
    border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact {
    text-align: center;
    padding: 8rem 0;
}

.contact .section-lead {
    margin-bottom: 3rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--color-dark-deeper);
    color: var(--text-muted-dark);
    padding: 3rem 0;
    text-align: center;
}

.footer-company {
    font-weight: 600;
    color: var(--text-on-dark);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--text-muted-dark);
}

.footer-link:hover {
    color: var(--text-on-dark);
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 968px) {
    :root {
        --section-padding: 4rem;
    }

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

    .adept-grid .adept-item:nth-child(4),
    .adept-grid .adept-item:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem;
        --container-padding: 1.5rem;
    }

    body {
        font-size: 1.1rem;
    }

    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--bg-dark);
        padding: 1rem 0;
        gap: 0;
        display: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 1rem var(--container-padding);
        text-align: center;
    }

    .nav-cta {
        margin: 1rem var(--container-padding);
        text-align: center;
    }

    .lang-selector {
        margin: 1rem 0 0 0;
        padding: 1rem 0 0 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        justify-content: center;
        width: 100%;
    }

    /* ADEPT Grid Mobile */
    .adept-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .adept-item {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        text-align: left;
        gap: 0.25rem 1rem;
        padding: 1rem;
        background-color: rgba(50, 55, 117, 0.05);
        border-radius: 8px;
    }

    .adept-letter {
        font-size: 2.5rem;
        grid-row: span 2;
        align-self: center;
    }

    .adept-word {
        margin-bottom: 0;
        align-self: end;
    }

    .adept-desc {
        align-self: start;
    }

    .adept-benefits {
        padding: 2rem 1.5rem;
    }

    /* Grids */
    .approach-grid,
    .outcomes-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    /* Hero adjustments */
    .hero {
        min-height: auto;
        padding-top: calc(var(--section-padding) + 110px);
        padding-bottom: var(--section-padding);
    }

    .hero-logo {
        width: 140px;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        width: 100%;
    }

    .btn-large {
        padding: 1rem 2rem;
    }
}

/* --------------------------------------------------------------------------
   Animations & Transitions
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .section {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease forwards;
    }

    .section:nth-child(1) { animation-delay: 0s; }
    .section:nth-child(2) { animation-delay: 0.1s; }
    .section:nth-child(3) { animation-delay: 0.1s; }
    .section:nth-child(4) { animation-delay: 0.1s; }
    .section:nth-child(5) { animation-delay: 0.1s; }
    .section:nth-child(6) { animation-delay: 0.1s; }
    .section:nth-child(7) { animation-delay: 0.1s; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle hover effects */
.approach-card,
.outcome-card {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.approach-card:hover,
.outcome-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
