:root {
    --primary-sky: #E1F5FE;
    --primary-blue: #03A9F4;
    --accent-red: #E91E63;
    --text-dark: #2C3E50;
    --text-light: #607D8B;
    --white: #FFFFFF;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
    --radius-lg: 24px;
    --radius-xl: 32px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, #E1F5FE 0%, #F3E5F5 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-weight: 700;
}

/* Fade-in animation for sections */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Background Balloons */
#balloon-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-balloon {
    position: absolute;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    opacity: 0.8;
    bottom: -100px;
    animation: floatUp 15s linear infinite;
    box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 0.1), inset 10px 10px 20px rgba(255, 255, 255, 0.4);
    will-change: transform, opacity;
}

/* Balloon Knot */
.bg-balloon::before {
    content: '';
    position: absolute;
    width: 20%;
    height: 15%;
    background-color: inherit;
    bottom: -12%;
    left: 40%;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
}

/* Balloon String */
.bg-balloon::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100px;
    background: rgba(0, 0, 0, 0.15);
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-120vh) rotate(10deg);
        opacity: 0;
    }
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    gap: 40px;
    position: relative;
}

@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        padding: 100px 5%;
    }

    .hero-content {
        max-width: 50%;
    }

    .hero-visual {
        max-width: 45%;
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* CTA Button Group */
.cta-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

@media (min-width: 768px) {
    .cta-group {
        flex-direction: row;
    }
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--text-dark);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background-color 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
}

.cta-button:not(.disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    background-color: #1a1a2e;
}

.cta-button:not(.disabled):active {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* Disabled CTA State (iOS) */
.cta-button.disabled {
    background-color: rgba(44, 62, 80, 0.08);
    color: var(--text-dark);
    box-shadow: none;
    cursor: default;
    border: 2px dashed rgba(44, 62, 80, 0.25);
    opacity: 0.65;
}

.cta-button.disabled .play-icon {
    opacity: 0.5;
}

.cta-button.disabled .cta-text {
    opacity: 0.7;
}

.play-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.cta-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cta-small {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.cta-large {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

/* Hero Visual Animation */
.hero-balloon-img {
    width: 100%;
    max-width: 400px;
    animation: bob 3s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Features Grid (Bento Box) */
.features {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
    }

    .zen {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }

    .learning {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    .safe {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .themes {
        grid-column: 1 / 3;
        grid-row: 3 / 4;
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, auto);
    }

    .zen {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }

    .learning {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    .safe {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .themes {
        grid-column: 3 / 4;
        grid-row: 1 / 3;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.bento-item {
    background: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.9);
}

.bento-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.bento-item h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.bento-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.theme-icons {
    display: flex;
    gap: 16px;
    font-size: 2rem;
    margin: 16px 0;
}

/* Privacy Section */
.why-privacy {
    padding: 0 5% 100px;
    max-width: 800px;
    margin: 0 auto;
}

.privacy-card {
    background: linear-gradient(135deg, #FFF9C4 0%, #FFFFFF 100%);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 215, 0, 0.25);
}

.privacy-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.privacy-card h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 16px;
    color: var(--text-dark);
}

.privacy-card p {
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Footer */
.footer {
    text-align: center;
    padding: 48px 5%;
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-dark);
}

.separator {
    margin: 0 10px;
    color: var(--text-light);
}

.copyright {
    color: var(--text-light);
    font-size: 0.9rem;
}


.myinnos-link {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.myinnos-link:hover {
    opacity: 0.8;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.social-links a {
    color: var(--text-light);
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
}

.social-links a:hover {
    color: var(--text-dark);
    transform: translateY(-3px);
}

.social-links svg {
    width: 28px;
    height: 28px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 40px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.close-modal:hover,
.close-modal:focus-visible {
    color: #000;
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

.modal h2 {
    margin-bottom: 20px;
    font-size: 1.75rem;
}

.modal-body p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: var(--text-light);
}

.modal-body h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.25rem;
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }

    .hero-balloon-img {
        animation: none;
    }

    .bg-balloon {
        display: none;
    }
}
