/* ============================================
   COCORO Studio — Tropical & Vivid
   ============================================ */

/* --- Fonts --- */
@font-face {
    font-family: 'FairSquare';
    src: url('fair-square-font/fairsquare-regular.woff2') format('woff2'),
         url('fair-square-font/fairsquare-regular.otf') format('opentype'),
         url('fair-square-font/fairsquare-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FairSquare';
    src: url('fair-square-font/fairsquare-italic.woff2') format('woff2'),
         url('fair-square-font/fairsquare-italic.otf') format('opentype'),
         url('fair-square-font/fairsquare-italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

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

:root {
    --sky: #87CEEB;
    --sky-light: #d4eef9;
    --sky-pale: #eaf6fc;
    --white: #FFFDF9;
    --cream: #FFF8F0;
    --orange: #FF7A3D;
    --rose: #FF5C8A;
    --peach: #FFAA7B;
    --yellow: #FFD166;
    --green-dark: #2D6A4F;
    --green: #52B788;
    --green-light: #95D5B2;
    --black: #1A1A2E;
    --text: #2B2B3D;
    --text-light: #6B7280;
    --gradient-sunset: linear-gradient(135deg, #FFD166 0%, #FF7A3D 40%, #FF5C8A 100%);
    --gradient-sky: linear-gradient(180deg, #87CEEB 0%, #d4eef9 50%, #FFFDF9 100%);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Palanquin', -apple-system, 'Helvetica Neue', sans-serif;
    background: var(--white);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1.5rem 3rem;
    background: none;
    pointer-events: none;
}

/* Prevent flash — nav links always right-aligned */

.nav-links {
    display: flex;
    gap: 2.5rem;
    pointer-events: auto;
}

.nav-links a {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--orange);
}

/* --- Hero logo (shrinks on scroll) --- */
.hero-logo {
    position: fixed;
    z-index: 101;
    font-family: 'FairSquare', sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orange);
    pointer-events: none;
    cursor: default;
    white-space: nowrap;
    will-change: transform;
    /* Initial state: big & centered via CSS */
    font-size: clamp(4rem, 12vw, 9rem);
    top: 15vh;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gradient-sky);
    overflow: hidden;
    padding-top: 18vh;
}

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

.hero-tag {
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--green-dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-title {
    font-family: 'Palanquin Dark', sans-serif;
    font-size: clamp(3.5rem, 10vw, 9rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.hero-title-outline {
    color: var(--black);
}

.hero-title-fill {
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 500;
}

/* --- Tropical leaves (CSS only) --- */
.leaf {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.leaf--1 {
    top: -20px;
    left: -40px;
    width: 220px;
    height: 350px;
    background: var(--green);
    border-radius: 0 80% 0 80%;
    transform: rotate(-25deg);
    opacity: 0.35;
    filter: blur(1px);
}

.leaf--2 {
    top: -10px;
    left: 30px;
    width: 180px;
    height: 300px;
    background: var(--green-dark);
    border-radius: 0 80% 0 80%;
    transform: rotate(-40deg);
    opacity: 0.25;
    filter: blur(1px);
}

.leaf--3 {
    top: -30px;
    right: -30px;
    width: 200px;
    height: 320px;
    background: var(--green);
    border-radius: 80% 0 80% 0;
    transform: rotate(20deg);
    opacity: 0.3;
    filter: blur(1px);
}

.leaf--4 {
    top: 0;
    right: 40px;
    width: 160px;
    height: 280px;
    background: var(--green-light);
    border-radius: 80% 0 80% 0;
    transform: rotate(35deg);
    opacity: 0.25;
    filter: blur(1px);
}

.leaf--5 {
    bottom: 10%;
    left: -20px;
    width: 140px;
    height: 250px;
    background: var(--green-light);
    border-radius: 0 80% 0 80%;
    transform: rotate(-15deg);
    opacity: 0.2;
    filter: blur(2px);
}

.leaf--6 {
    bottom: 5%;
    right: -10px;
    width: 130px;
    height: 240px;
    background: var(--green);
    border-radius: 80% 0 80% 0;
    transform: rotate(10deg);
    opacity: 0.2;
    filter: blur(2px);
}

/* Sun glow */
.sun {
    position: absolute;
    top: 8%;
    right: 12%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--yellow) 0%, rgba(255, 209, 102, 0.3) 50%, transparent 70%);
    opacity: 0.8;
    z-index: 1;
    animation: pulse-sun 4s ease-in-out infinite;
}

@keyframes pulse-sun {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Cloud shapes */
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50px;
    z-index: 1;
    animation: drift 20s ease-in-out infinite;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.cloud--1 {
    width: 140px;
    height: 40px;
    top: 18%;
    left: 10%;
}

.cloud--1::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 20px;
}

.cloud--1::after {
    width: 45px;
    height: 45px;
    top: -20px;
    left: 60px;
}

.cloud--2 {
    width: 120px;
    height: 35px;
    top: 25%;
    right: 20%;
    animation-delay: -8s;
    animation-duration: 25s;
}

.cloud--2::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 15px;
}

.cloud--2::after {
    width: 40px;
    height: 40px;
    top: -18px;
    left: 55px;
}

.cloud--3 {
    width: 100px;
    height: 30px;
    top: 15%;
    left: 50%;
    animation-delay: -14s;
    animation-duration: 30s;
    opacity: 0.5;
}

.cloud--3::before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 15px;
}

.cloud--3::after {
    width: 35px;
    height: 35px;
    top: -15px;
    left: 45px;
}

@keyframes drift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(30px); }
}

/* --- Section shared --- */
.section-title {
    font-family: 'Palanquin Dark', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.01em;
    margin-bottom: 3rem;
    color: var(--black);
}

/* --- Apps --- */
.apps {
    padding: 8rem 3rem;
    text-align: center;
    background: var(--white);
    position: relative;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.app-card {
    position: relative;
    background: var(--cream);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.app-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(255, 122, 61, 0.12);
}

.app-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 1.2rem;
    background: var(--gradient-sunset);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
}

.app-card h3 {
    font-family: 'Palanquin Dark', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.app-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.app-badge {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    background: var(--sky-pale);
    border-radius: 2rem;
    color: var(--green-dark);
    font-weight: 600;
}

/* --- Studio --- */
.studio {
    padding: 8rem 3rem;
    display: flex;
    justify-content: center;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.studio::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--green-light) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.studio::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--peach) 0%, transparent 70%);
    opacity: 0.2;
    pointer-events: none;
}

.studio-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.studio-text {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 4rem;
}

.studio-values {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.value {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.value-number {
    font-size: 0.75rem;
    color: var(--orange);
    letter-spacing: 0.1em;
    font-weight: 600;
}

.value-label {
    font-family: 'Palanquin Dark', sans-serif;
    font-size: 1.3rem;
    color: var(--black);
}

/* --- Contact --- */
.contact {
    padding: 10rem 3rem;
    text-align: center;
    position: relative;
    background: var(--white);
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--yellow) 0%, transparent 60%);
    opacity: 0.1;
    pointer-events: none;
}

.contact-title {
    font-family: 'Palanquin Dark', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-email {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-light);
    letter-spacing: 0.08em;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.3rem;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-email:hover {
    color: var(--orange);
    border-color: var(--orange);
}

/* --- Footer --- */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--cream);
}

.footer-logo {
    font-family: 'FairSquare', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--orange);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* --- Reveal animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .leaf { display: none; }

    .apps,
    .studio {
        padding: 5rem 1.5rem;
    }

    .contact {
        padding: 6rem 1.5rem;
    }

    .studio-values {
        gap: 2rem;
    }

    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
