body {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    line-height: 1.7;
}

.inline-code {
    font-family: 'Roboto Mono', monospace;
    background-color: #282c34;
    color: #61dafb;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    white-space: pre-wrap;
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0f2027, #203a43, #2c5364);
    z-index: -1;
}

.hero-content {
    z-index: 2; /* Increased z-index */
    position: relative;
}

.lang-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.2);
    padding: 5px 10px;
    border-radius: 15px;
    z-index: 10; /* Ensure it's on top */
}

.lang-switcher button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    transition: color 0.3s ease;
}

.lang-switcher button.active {
    color: #4a90e2;
    font-weight: bold;
}

.lang-switcher span {
    color: #555;
}

.main-title {
    font-size: 6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.main-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) scale(0.5) rotateZ(-45deg);
}

.subtitle {
    font-size: 1.5rem;
    font-family: 'Roboto Mono', monospace;
    color: #b0c4de;
    margin-top: 1.5rem;
    opacity: 0;
}

main {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    color: #4a90e2;
    position: relative;
    overflow: hidden;
    padding-bottom: 10px;
}

.section-title span {
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #4a90e2;
    transform-origin: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    overflow-x: hidden; /* Initially hide overflow */
}

.feature-card {
    background: #1e1e1e;
    border-radius: 15px;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.1), transparent 40%);
    transform: scale(0);
    transition: transform 0.5s ease;
    z-index: 0;
}

.feature-card:hover::before {
    transform: scale(1);
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-header {
    display: flex;
    align-items: center;
    padding: 2.5rem; /* Moved padding here */
    margin-bottom: 0; /* Removed margin-bottom */
}

.feature-icon {
    font-size: 3.5rem;
    margin-right: 1rem;
}

.feature-card h3 {
    font-size: 1.7rem;
    margin: 0;
    flex-grow: 1;
    color: #b0c4de;
}

.expand-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card.active .expand-icon {
    transform: rotate(45deg);
}

.feature-content {
    max-height: 0; /* Initial height for the main paragraph */
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    padding: 0 2.5rem; /* Horizontal padding */
}

.feature-card.active .feature-content {
    max-height: 500px; /* Adjust as needed to show all content */
    padding-bottom: 2.5rem; /* Add bottom padding when active */
}

.feature-detail {
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card.active .feature-detail {
    opacity: 1;
}

.how-to-use {
    padding: 5rem 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: #333;
}

.timeline-item {
    padding: 1rem 2rem;
    position: relative;
    width: 50%;
}

.timeline-item {
    padding: 1rem 2rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-left: 0;
    padding-right: 4.5rem; /* Adjusted padding */
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-right: 0;
    padding-left: 4.5rem; /* Adjusted padding */
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #121212;
    border: 4px solid #4a90e2;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -14px; /* Adjusted to center circle on the line */
}

.timeline-item:nth-child(even)::after {
    left: -14px; /* Adjusted to center circle on the line */
}

.timeline-content {
    padding: 1.5rem;
    background: #1e1e1e;
    border-radius: 10px;
    border: 1px solid #333;
}

.demo {
    padding: 5rem 0;
}

.cli-window {
    max-width: 800px;
    margin: 0 auto;
    background-color: #0d1117;
    border-radius: 8px;
    border: 1px solid #30363d;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cli-header {
    background-color: #161b22;
    padding: 0.75rem;
    border-bottom: 1px solid #30363d;
    display: flex;
    align-items: center;
}

.dot { height: 12px; width: 12px; border-radius: 50%; margin-right: 8px; }
.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.cli-body {
    padding: 1.5rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    min-height: 300px;
    overflow: auto;
}

.cli-line {
    margin-bottom: 0.5rem;
}

.prompt {
    color: #4a90e2;
    font-weight: 700;
}

.cli-output {
    white-space: pre-wrap;
    color: #a5d6ff;
}

.faq {
    padding: 5rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #1e1e1e;
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid #333;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.2rem;
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-answer p {
    margin: 0;
    padding: 0 1.5rem 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 150px; /* Adjust as needed */
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.cta {
    text-align: center;
    padding: 5rem 0;
}

.cta-button {
    display: inline-block;
    background: #4a90e2;
    color: #ffffff;
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    font-size: 1.3rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.5);
}

footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #333;
}