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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #8b66ea 0%, #b74fc3 100%);
    min-height: 100vh;
}

body.guide-page {
    scroll-snap-type: y mandatory;
    scroll-padding-top: 2rem;
}

/* Matches the Flutter app's own title convention — same rule as the main
   app's tokens.css: every heading rendered all-lowercase. */
h1,
h2,
h3 {
    text-transform: lowercase;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.container.guide-container {
    max-width: 1600px;
    padding-left: clamp(1.5rem, 4vw, 4rem);
    padding-right: clamp(1.5rem, 4vw, 2rem);
}

/* Footer styles */
footer {
    background: rgb(39, 41, 66);
    color: white;
    padding: 3rem 2rem 2rem;
    position: relative;
    min-height: 200px;
}

.footer-flex {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.footer-flex > div:first-child {
    flex: 1 1 0;
    min-width: 0;
}

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

.footer-logo-absolute {
    position: absolute;
    right: 1rem;
    top: 2rem;
    z-index: 2;
}

.footer-logo-absolute img {
    height: 120px;
    width: auto;
    display: block;
}

.footer-copyright {
    color: rgba(255,255,255,0.6);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-logo-grid {
    display: none;
    text-align: left;
    align-self: start;
    margin: 0;
    padding: 0;
}

.footer-logo-grid h4 {
    margin-bottom: 1rem;
    color: #10b981;
    font-size: 1rem;
    font-weight: 600;
}

.footer-logo-grid img {
    height: 60px;
    width: auto;
    display: block;
    margin: 0 0 0 4px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo-grid img:hover {
    opacity: 1;
}

@media (max-width: 1250px) {
    .footer-logo-absolute {
        display: none;
    }
    
    .footer-logo-grid {
        display: block;
    }
}

/* About.html specific and shared styles */
.header {
    text-align: center;
    padding: 3rem 0;
    color: white;
}

.logo {
    width: 100px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

/* Hero section logo variant */
.hero-content .logo {
    width: 120px;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.content-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin: 3rem 0;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Index page variant */
.features-grid.index {
    gap: 2rem;
    margin-top: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* About page masonry variant */
.content-section .features-grid {
    column-count: 2;
    column-gap: 3rem;
}

@media (max-width: 768px) {
    .content-section .features-grid {
        column-count: 1;
    }
}

.feature-item {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(59, 43, 99, 0.1), rgba(86, 38, 92, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(139, 102, 234, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    break-inside: avoid;
    margin-bottom: 3rem;
    display: inline-block;
    width: 100%;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(139, 102, 234, 0.2);
}

/* Game feature styles */
.game-feature .feature-title {
    margin-bottom: 1.5rem;
}

.game-description {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
    min-height: 70px; /* Ensure enough height for avatar */
}

.game-description:last-child {
    margin-bottom: 0;
}

.game-avatar {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    background-color: rgba(39, 41, 66, 0.9) !important; /* Strong fallback for debugging */
    border: 2px solid #b74fc3; /* Debug border */
    overflow: hidden; /* Prevent image overflow */
}

.exercise-avatars {
    display: flex;
    gap: 1rem;
    justify-content: justify-content;
    margin-bottom: 1rem;
}

.exercise-avatars .game-avatar {
    width: 70px;
    height: 50px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    border: 1.5px solid #b74fc3;
}

.game-description h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e2dff8;
    margin-bottom: 0.25rem;
}

.game-description p {
    font-size: 1.1rem !important;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.game-preview-image {
    width: 100%;
    max-width: 460px;
    border-radius: 12px;
    margin-top: 0.8rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: block;
}

.font-orbitron {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.font-creepster {
    font-family: 'Creepster', cursive;
    font-weight: 400; /* Creepster only has a regular weight */
}

.feature-number {
    position: absolute;
    top: -15px;
    left: 2rem;
    background: #dd0ec9;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1rem 0;
    color: #2d1b69;
}

/* Index page variant */
.feature-card .feature-title {
    margin-bottom: 1rem;
}

/* Guide page variant */
.guide-grid .feature-title {
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.feature-description {
    color: #f1f1f1;
    line-height: 1.7;
}

/* Index page variant */
.feature-card .feature-description {
    opacity: 0.9;
    line-height: 1.6;
}

/* Guide page variant */
.guide-grid .feature-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.feature-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

/* Guide page variant */
.guide-grid .feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin: 0.8rem 0;
    color: #e4e3e3;
    font-size: 1.1rem;
}

/* Guide page variant */
.guide-grid .feature-list li {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border-left: 3px solid #10b981;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.download-section {
    background: linear-gradient(135deg, rgba(46, 179, 34, 0.9), rgba(11, 176, 124, 0.8));
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    text-align: center;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.download-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f7f8f9;
}

.download-subtitle {
    font-size: 1.1rem;
    color: #e6e9ed;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.app-stores {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

/* Index page variant */
.app-stores.index {
    margin-top: 2rem;
}

.store-button {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

.store-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

.store-button img {
    height: 70px;
    width: auto;
    display: block;
}

/* Index page store button variant */
.store-button.index img {
    height: 60px;
}

.web-app-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: clamp(2.2rem, 2.7vw, 3.2rem);
    margin: 2rem 0;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.web-app-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.web-app-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.origin-story {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 102, 234, 0.1);
}

.origin-story h3 {
    font-weight: 600;
    font-size: 1.8rem;
}

.origin-story p {
    color: #4a5568;
    font-size: 1.05rem;
}

.hover-image-section {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.hover-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.4s ease;
}

.hover-image.default-image {
    position: relative;
    z-index: 1;
}

.hover-image.hover-reveal {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
}

.hover-image-section:hover .hover-reveal {
    opacity: 1;
}

/* Paired hover images - stacked vertically */
.hover-image-pair {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    cursor: pointer;
}

.hover-image-pair .hover-image-section {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    position: relative;
}

.hover-image-pair .hover-image-section .hover-image.default-image {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
}

.hover-image-pair .hover-image-section .hover-image.hover-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Synchronized hover - when hovering anywhere on the pair, both toggle */
.hover-image-pair:hover .hover-image-section .hover-reveal {
    opacity: 1;
}

.tech-stack-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin: 5rem 0 1rem;
}

.tech-stack-section {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem 2rem;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    flex: 1;
    min-width: 190px;
    max-width: 225px;
}

.tech-item:has(img[src*="icons8-google-cloud"]),
.tech-item:has(img[src*="OpenAI"]) {
    gap: 0.0rem;
}

.tech-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.tech-item img {
    max-width: 100%;
    max-height: 91px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.tech-item img[src*="icons8-google-cloud"],
.tech-item img[src*="OpenAI"]{
    max-height: 75px; /* 3/4 of 100px */
}

.tech-item img[src*="lockup_flutter"] {
    max-height: 91px; /* 3/4 of 100px */
}

.tech-item img[src*="Primary_Vertical"] {
    max-height: 89px; /* 3/4 of 100px */
}

.tech-item img:hover {
    transform: scale(1.05);
}

.tech-name {
    font-size: 1.22rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-weight: 500;
}

@media (max-width: 768px) {
    .tech-stack-section {
        flex-direction: column;
        align-items: center;
    }

    .tech-item {
        max-width: 225px;
    }
}

/* Index.html specific styles */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    color: white;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 0.2rem;
    background: linear-gradient(45deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 200;
    margin-bottom: 4rem;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-text {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    text-align: left;
    font-weight: 600;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.8rem;
}

.cta-section {
    margin-top: 5rem;
    margin-bottom: 2.5rem;
}

.web-button {
    margin-top: 4.5rem;
    margin-bottom: 4rem;
}

.web-app-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    text-decoration: none;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    border: 2px solid transparent;
}

.web-app-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.web-app-cta::before {
    content: '🚀';
    font-size: 1.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.feature-kicker {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

/* Guide page variant */
.guide-grid .feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    break-inside: avoid;
    margin-bottom: 2rem;
    display: inline-block;
    width: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Guide page hover effects */
.guide-grid .feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.guide-grid .feature-card:hover .feature-title {
    color: #1f2937;
}

.guide-grid .feature-card:hover .feature-description {
    color: #374151;
}

.guide-grid .feature-card:hover .action-step p {
    color: #374151;
}

.guide-grid .feature-card:hover .action-title {
    color: #047857;
}

.guide-grid .feature-card:hover .feature-list li {
    color: #374151;
}

.guide-grid .feature-card:hover .game-description h4 {
    color: #1f2937;
}

.guide-grid .feature-card:hover .game-description p {
    color: #374151;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-icon-image {
    width: auto;
    height: 64px;
    object-fit: contain;
    margin-bottom: 0.2rem;
    border-radius: 12px;
}

.feature-icon-row {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.feature-icon-row img {
    width: 72px;
    height: 55px;
    object-fit: contain;
    background: #152a45;
    border-radius: 8px;
    padding: 0.5rem;
}

.language-switch-button {
    display: flex;
    border-radius: 25px;
    overflow: hidden;
    margin-bottom: 1rem;
    width: fit-content;
}

.language-side {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    min-width: 120px;
}

.language-side.left {
    background: linear-gradient(135deg, #4a5fd9, #3d4fc7);
    justify-content: flex-start;
}

.language-side.right {
    background: linear-gradient(135deg, #8b5cb8, #7a4ba3);
    justify-content: flex-end;
}

.language-text {
    display: flex;
    flex-direction: column;
}

.language-side.left .language-text {
    align-items: flex-start;
}

.language-side.right .language-text {
    align-items: flex-end;
}

.language-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    line-height: 1.2;
}

.language-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.2;
}

.mic-icon {
    width: 24px;
    height: 24px;
    color: white;
    opacity: 0.9;
}

.chat-bubbles {
    display: inline-flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0.1rem;
    align-items: stretch;
}

.chat-bubble {
    padding: 0.6rem 0.8rem;
    white-space: nowrap;
}

.chat-bubble.primary {
    background: rgba(191, 190, 190, 0.3);
    border-radius: 0 14px 0 0;
}

.chat-bubble.secondary {
    background: rgba(161, 160, 161, 0.2);
    border-radius: 0 0 14px 14px;
}

.bubble-text {
    color: white;
    font-size: 0.72rem;
    line-height: 1.12;
}

.bubble-text.main {
    font-weight: 500;
}

.bubble-text.translation {
    opacity: 0.95;
}

.bubble-text .highlight {
    background: rgba(139, 195, 74, 0.8);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-weight: 600;
}

.bubble-text .highlight-grey {
    background: rgba(44, 44, 44, 0.7);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Guide page variant */
.guide-grid .feature-icon {
    display: block;
}

.demo-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Classroom section */
.classroom-section {
    margin-top: 4.5rem;
}

.classroom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.classroom-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.classroom-grid img:hover {
    transform: scale(1.03);
}

@media (max-width: 480px) {
    .classroom-grid {
        grid-template-columns: 1fr;
    }
}

/* Main language section */
.mainlanguage-section {
    margin-top: 4.5rem;
}

.mainlanguage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.mainlanguage-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.mainlanguage-grid img:hover {
    transform: scale(1.03);
}

@media (max-width: 480px) {
    .mainlanguage-grid {
        grid-template-columns: 1fr;
    }
}

/* Section navigation arrows */
.section-nav {
    position: fixed;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    z-index: 90;
    transition: opacity 0.3s ease;
}

.section-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: rgba(30, 10, 60, 0.55);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s, transform 0.15s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.section-nav-btn:hover {
    background: rgba(139, 102, 234, 0.7);
    transform: scale(1.1);
}

.section-nav-dots {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

.section-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.section-nav-dot.active {
    background: #10b981;
    transform: scale(1.35);
}

.section-nav-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 600px) {
    .section-nav {
        right: 0.5rem;
    }
    .section-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }
    .section-nav-dot {
        width: 6px;
        height: 6px;
    }
}

/* Packages section */
.packages-section {
    margin-top: 5rem;
    text-align: center;
}

.packages-heading {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.packages-subheading {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: left;
}

.package-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(139, 102, 234, 0.2);
}

.package-badge {
    display: inline-block;
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
}

.package-badge-alt {
    background: linear-gradient(45deg, #8b66ea, #b74fc3);
}

.package-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.package-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-features li {
    padding: 0.7rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border-left: 3px solid #10b981;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

.packages-contact {
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

#packages-contact {
    scroll-margin-top: 1.5rem;
}

.packages-contact h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.packages-contact > p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.packages-form-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

.packages-form-field label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.packages-form-field input,
.packages-form-field select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.packages-form-field input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.packages-form-field input:focus,
.packages-form-field select:focus {
    outline: none;
    border-color: #10b981;
}

.packages-form-field select option {
    background: #2d1b69;
    color: white;
}

.packages-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.packages-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    background: linear-gradient(45deg, #059669, #047857);
}

@media (max-width: 1024px) {
    .packages-form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: 1fr;
    }

    .packages-form-row {
        grid-template-columns: 1fr;
    }
}

/* Demo carousel */
.demo-carousel {
    position: relative;
    margin-top: 2rem;
    padding: 0 2rem;
}

.demo-carousel-viewport {
    overflow: hidden;
}

.demo-carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.45s ease;
}

.demo-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
    flex: 0 0 auto;
}

.demo-image-swap {
    position: relative;
    cursor: pointer;
    border-radius: inherit;
    overflow: hidden;
}

.demo-image-swap .img-default,
.demo-image-swap .img-hover {
    width: 100%;
    height: auto;
    display: block;
    border-radius: inherit;
    transition: opacity 0.3s ease;
}

.demo-image-swap .img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.demo-image-swap:hover .img-default,
.demo-image-swap.touch-active .img-default {
    opacity: 0;
}

.demo-image-swap:hover .img-hover,
.demo-image-swap.touch-active .img-hover {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-btn-left {
    left: -10px;
}

.carousel-btn-right {
    right: -10px;
}

.demo-text {
    padding: 0.8rem;
}

@media (max-width: 768px) {
    .demo-section {
        padding: 2rem 1.5rem;
    }
}

/* Language sections - 5 columns at full width, responsive down to 3, 2, then 1 */
.languages-section .language-category > div {
    grid-template-columns: repeat(5, 1fr) !important;
}

@media (max-width: 1024px) {
    .languages-section .language-category > div {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .languages-section .language-category > div {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .languages-section .language-category > div {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

.demo-text h2 {
    padding-bottom: 0.3rem;
}

/* Guide.html specific styles */
.content-section.guide {
    background: rgba(255, 255, 255, 0.95);
}
.guide-grid {
    column-count: 3;
    column-gap: 2rem;
    margin: 2rem 0;
}
@media (min-width: 1200px) {
    .guide-grid {
        column-count: 3;
        max-width: 1200px;
        margin: 2rem auto;
    }
}
@media (max-width: 1199px) and (min-width: 769px) {
    .guide-grid {
        column-count: 2;
    }
}
.feature-image {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    margin: 1.25rem 0;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.inline-img {
    height: 24px;
    vertical-align: middle;
    margin: 0 0.25rem;
    filter: invert(1) sepia(1) saturate(5) hue-rotate(240deg) brightness(0.5);
}
.action-step {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: clamp(1.1rem, 1.8vw, 1.6rem);
    margin: 1rem 0;
    border-left: 4px solid #10b981;
}
.action-step p {
    color: rgba(255, 255, 255, 0.95);
    transition: color 0.3s ease;
    font-size: clamp(1.05rem, 1.2vw, 1.25rem);
    line-height: 1.75;
}
.action-title {
    font-weight: 600;
    color: #10b981;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    font-size: clamp(1rem, 1.1vw, 1.2rem);
    letter-spacing: 0.01em;
}
@media (max-width: 768px) {
    .guide-grid {
        column-count: 1;
        column-gap: 0;
    }
}

/* New Guide Layout - Navigation Corridor + Sections */
.guide-layout {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .guide-layout {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: clamp(2rem, 4vw, 4rem);
        align-items: flex-start;
        max-width: calc(1200px + 320px);
        margin-left: auto;
        margin-right: auto;
        padding: 0;
    }
}

/* Navigation Corridor - Sticky */
.guide-nav {
    background: rgba(22, 24, 46, 0.95);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.25rem;
    box-shadow: 0 20px 40px rgba(6, 8, 24, 0.35);
}

.guide-nav-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(4, 6, 18, 0.85);
    color: #fafdff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.guide-nav-toggle:hover,
.guide-nav-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

.guide-nav.is-desktop .guide-nav-toggle {
    display: none;
}

.hamburger-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 0.3rem;
    justify-content: center;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.guide-nav-panel {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1rem;
}

.guide-nav-panel[hidden] {
    display: none;
}

/* Shorter side ad below the Quick Jump menu — a modest fixed height (not a
   full-height rail) so it reads as a normal medium-rectangle-ish unit
   inside the 280px sticky nav column, matching AdSlot.svelte's own
   uppercase "Advertisement"/"Sponsored" label convention above the ad
   body. */
.guide-nav-ad {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.guide-nav-ad-label {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
}

.guide-nav-ad ins.adsbygoogle {
    min-height: 250px;
}

.guide-nav.is-enhanced .guide-nav-panel {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.guide-nav.is-enhanced.is-open .guide-nav-panel {
    opacity: 1;
}

.guide-nav.is-enhanced:not(.is-open) .guide-nav-panel {
    opacity: 0;
}

.guide-nav-accordion {
    background: rgba(7, 9, 28, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.guide-nav-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.2rem;
    background: transparent;
    color: #f5f6ff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.accordion-caret {
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.guide-nav-accordion-content {
    padding: 0.75rem 1.2rem 1.25rem;
    transition: max-height 0.25s ease, opacity 0.25s ease, padding 0.25s ease;
    max-height: 1000px;
    overflow: hidden;
}

.guide-nav-accordion[data-open="false"] .guide-nav-accordion-content {
    max-height: 0;
    opacity: 0;
    padding-bottom: 0;
    padding-top: 0;
    overflow: hidden;
}

.guide-nav-accordion[data-open="false"] .accordion-caret {
    transform: rotate(-135deg);
}

.guide-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.guide-nav-link {
    display: block;
    padding: 0.6rem 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.25s ease, color 0.25s ease;
    font-size: 0.92rem;
}

.guide-nav-link:hover,
.guide-nav-link:focus-visible,
.guide-nav-link.active {
    color: #0d1328;
    background: rgba(16, 185, 129, 0.75);
}

.guide-nav-link.active {
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

@media (min-width: 992px) {
    .guide-nav {
        position: sticky;
        top: 2rem;
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
    }

    .guide-nav.is-enhanced .guide-nav-panel {
        overflow: visible;
        transition: none;
    }

    .guide-nav-panel {
        margin-top: 0;
        border-top: none;
        padding-top: 0;
    }

    .guide-nav-accordion {
        background: transparent;
        border: none;
    }

    .guide-nav-accordion-trigger {
        display: none;
    }

    .guide-nav-accordion-content {
        padding: 0;
    }
}

/* Sections Container with Scroll-Snap */
.guide-sections {
    flex: 1;
    scroll-snap-type: y mandatory;
    scroll-padding-top: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding-inline: clamp(1rem, 2vw, 2rem);
}

.guide-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 2.5rem 0;
    display: flex;
    justify-content: center;
}

.guide-section .feature-card {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(2rem, 2.4vw, 3rem);
}

.dashboard-card {
    padding: clamp(2.5rem, 3vw, 4rem);
    background: linear-gradient(135deg, rgba(34, 38, 86, 0.7), rgba(25, 115, 140, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.dashboard-card-content {
    display: flex;
    gap: clamp(2rem, 4vw, 5rem);
    align-items: center;
    flex-wrap: wrap;
}

.dashboard-card-copy {
    flex: 1 1 280px;
}

.dashboard-hero-frame {
    flex: 1 1 340px;
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(5, 8, 30, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(9, 12, 28, 0.95);
    padding: clamp(0.65rem, 1.5vw, 1rem);
}

.dashboard-hero-frame::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.dashboard-hero-image {
    width: 100%;
    display: block;
    border-radius: 14px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .dashboard-card-content {
        flex-direction: column;
    }

    .dashboard-card {
        padding-inline-end: 1.5rem;
    }
}

.guide-section .feature-title {
    font-size: clamp(1.7rem, 2.2vw, 2rem);
}

.guide-section .feature-description {
    font-size: clamp(1.1rem, 1.25vw, 1.3rem);
    line-height: 1.85;
    color: rgba(249, 252, 255, 0.97);
    text-shadow: 0 4px 18px rgba(10, 6, 40, 0.45);
    letter-spacing: 0.01em;
}

.guide-section .feature-description strong {
    color: #ffffff;
}

/* Policy.html and Terms.html specific styles */
.policy-container {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 1rem;
}

.content-section.policy, .content-section.terms {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}
.section {
    margin-bottom: 2.5rem;
}
.section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #363637;
    border-bottom: 1px solid #e7defd;
    padding-bottom: 0.5rem;
}
.section p {
    color: #e7e4e4;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}
.section li {
    color: #e7e4e4;
    margin: 0.5rem 0;
}
.section a {
    color: #8b66ea;
    text-decoration: none;
}
.section a:hover {
    text-decoration: underline;
}
.white-card {
    background: white;
    border-radius: 15px;
    width: 280px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.white-card h2 {
    color: #333;
}
.white-card p {
    color: #555;
}
.white-card li {
    color: #555;
}
.white-card a {
    color: #8b66ea;
    font-weight: 500;
}
.black-card {
    background: #333;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.black-card h2 {
    color: white;
}
.black-card p {
    color: white;
}
.black-card a {
    color: #8b66ea;
    font-weight: 500;
}
@media (max-width: 768px) {
    .container.policy, .container.terms {
        padding: 1rem;
    }
    .content-section.policy, .content-section.terms {
        padding: 2rem 1.5rem;
    }
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0;
    margin: 1.5rem 0;
}

.photo-grid .feature-image {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    border: 3px solid #f0eef0;
    background: #fff;
    margin: 0; /* Remove any default margin */
    display: block;
}
