/* ============================================================
   RoukoApps — White + Green Theme v29
   ROKOCORE (SMC-Private) Limited
   Clean white background with light green accents
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --text: #111827;
    --text-2: #4b5563;
    --text-3: #9ca3af;
    --bg: #ffffff;
    --bg-2: #f8fafa;
    --bg-3: #f0f5f2;
    --border: rgba(0, 0, 0, .07);
    --radius: 20px;
    --header-h: 64px;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);
    --accent: #10b981;
    --accent-2: #059669;
    --accent-3: #34d399;
    --accent-light: rgba(16, 185, 129, .08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

/* ── Ocean Canvas ── */
.ocean-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.ocean-canvas canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── CSS Fish — subtle SVG silhouettes ── */
.fish-layer {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.fish-svg {
    position: absolute;
    fill: rgba(16, 185, 129, .08);
}

.fish-svg--1 {
    top: 28%;
    width: 50px;
    animation: swimR 20s linear infinite;
}

.fish-svg--2 {
    top: 45%;
    width: 35px;
    animation: swimL 24s linear infinite 4s;
    fill: rgba(5, 150, 105, .06);
}

.fish-svg--3 {
    top: 62%;
    width: 60px;
    animation: swimR 18s linear infinite 8s;
    fill: rgba(52, 211, 153, .06);
}

.fish-svg--4 {
    top: 78%;
    width: 40px;
    animation: swimL 22s linear infinite 12s;
    fill: rgba(16, 185, 129, .05);
}

@keyframes swimR {
    0% {
        left: -80px;
        transform: translateY(0);
    }

    25% {
        transform: translateY(-12px);
    }

    50% {
        transform: translateY(8px);
    }

    75% {
        transform: translateY(-6px);
    }

    100% {
        left: 105%;
        transform: translateY(0);
    }
}

@keyframes swimL {
    0% {
        right: -80px;
        left: auto;
        transform: scaleX(-1) translateY(0);
    }

    25% {
        transform: scaleX(-1) translateY(10px);
    }

    50% {
        transform: scaleX(-1) translateY(-8px);
    }

    75% {
        transform: scaleX(-1) translateY(6px);
    }

    100% {
        right: 105%;
        left: auto;
        transform: scaleX(-1) translateY(0);
    }
}

/* ── Header ── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 100;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    transition: all .4s var(--ease);
}

.header.scrolled {
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 1px 20px rgba(0, 0, 0, .05);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    transition: opacity .3s;
}

.brand:hover {
    opacity: .7
}

.brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px
}

.nav__link {
    padding: 8px 16px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-2);
    border-radius: 10px;
    transition: all .25s;
}

.nav__link:hover {
    color: var(--text);
    background: rgba(0, 0, 0, .04)
}

.nav__cta {
    margin-left: 8px;
    padding: 9px 20px;
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    border-radius: 10px;
    transition: all .3s var(--ease);
    border: none;
    cursor: pointer;
}

.nav__cta:hover {
    background: var(--accent-2);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, .25);
}

/* ── Sections ── */
.sec {
    width: 100%;
    padding: 120px 40px;
    position: relative;
    z-index: 2;
}

.sec__inner {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.sec--hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-h) + 60px);
    overflow: hidden;
    background: var(--bg);
}

/* ── Hero ── */
.hero {
    position: relative;
    z-index: 3;
    max-width: 1100px
}

.hero--center {
    text-align: center;
    margin: 0 auto;
}

.hero--center .hero__desc {
    margin-left: auto;
    margin-right: auto;
}

.hero--center .hero__btns {
    justify-content: center;
}

.hero--center .stats {
    justify-content: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 10px;
    border-radius: 50px;
    margin-bottom: 28px;
    background: var(--accent-light);
    border: 1px solid rgba(16, 185, 129, .15);
    font-size: .78rem;
    font-weight: 600;
    color: var(--accent-2);
    animation: fadeUp .8s var(--ease) both;
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    animation: blink 2s ease infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .3
    }
}

.hero__title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.04em;
    margin-bottom: 24px;
    color: var(--text);
    animation: fadeUp .8s var(--ease) .1s both;
}

.hero__gradient {
    background: linear-gradient(135deg, #10b981, #059669, #34d399, #10b981);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.hero__desc {
    font-size: 1.2rem;
    color: var(--text-2);
    line-height: 1.75;
    max-width: 560px;
    margin-bottom: 40px;
    animation: fadeUp .8s var(--ease) .2s both;
}

.hero__btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeUp .8s var(--ease) .3s both;
}

/* CTA */
.btn-glow {
    padding: 14px 28px;
    font-size: .95rem;
    font-weight: 700;
    font-family: var(--font);
    color: #fff;
    background: var(--accent);
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .3s var(--ease);
    box-shadow: 0 4px 20px rgba(16, 185, 129, .2);
}

.btn-glow:hover {
    background: var(--accent-2);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(16, 185, 129, .3);
}

.btn-ghost {
    padding: 14px 28px;
    font-size: .95rem;
    font-weight: 600;
    font-family: var(--font);
    color: var(--text-2);
    background: rgba(0, 0, 0, .03);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .3s var(--ease);
}

.btn-ghost:hover {
    color: var(--text);
    background: rgba(0, 0, 0, .05);
    border-color: rgba(0, 0, 0, .12);
    transform: translateY(-1px);
}

/* Stats */
.stats {
    display: flex;
    gap: 48px;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    animation: fadeUp .8s var(--ease) .45s both;
}

.stats__item {
    display: flex;
    flex-direction: column
}

.stats__val {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.03em
}

.stats__val--purple {
    color: var(--accent)
}

.stats__val--green {
    color: var(--accent-2)
}

.stats__val--red {
    color: #f59e0b
}

.stats__val--white {
    color: var(--text)
}

.stats__label {
    font-size: .75rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
    margin-top: 4px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

/* ── Section Headers ── */
.sec-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--accent-2);
    margin-bottom: 12px;
}

.sec-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: 8px;
    color: var(--text);
}

.sec-desc {
    font-size: 1.05rem;
    color: var(--text-2);
    max-width: 500px;
    margin-bottom: 48px;
}

/* ── App Cards ── */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.app-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all .45s var(--ease);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-3));
    opacity: 0;
    transition: opacity .3s;
}

.app-card:hover {
    border-color: rgba(16, 185, 129, .2);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .07);
}

.app-card:hover::before {
    opacity: 1
}

.app-card__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.app-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    transition: transform .4s var(--spring);
}

.app-card:hover .app-card__icon {
    transform: scale(1.08) rotate(-3deg)
}

.app-card__name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text)
}

.app-card__tag {
    font-size: .82rem;
    color: var(--text-3);
    margin-top: 2px
}

.app-card__body {
    font-size: .92rem;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 28px
}

.app-card__hr {
    height: 1px;
    background: var(--border);
    margin-bottom: 20px
}

.app-card__label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-3);
    margin-bottom: 12px;
}

.app-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.link-btn {
    padding: 8px 16px;
    font-size: .8rem;
    font-weight: 600;
    font-family: var(--font);
    color: var(--text-2);
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .25s var(--ease);
    cursor: pointer;
}

.link-btn:hover {
    color: var(--text);
    background: var(--bg-3);
    border-color: rgba(0, 0, 0, .1);
    transform: translateY(-1px);
}

/* ── Features ── */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
}

.feat {
    background: var(--bg);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    transition: background .35s;
}

.feat:hover {
    background: var(--bg-2)
}

.feat::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    transition: width .5s var(--ease);
}

.feat:nth-child(1)::after {
    background: var(--accent)
}

.feat:nth-child(2)::after {
    background: var(--accent-2)
}

.feat:nth-child(3)::after {
    background: #f59e0b
}

.feat:hover::after {
    width: 100%
}

.feat__icon {
    font-size: 2rem;
    margin-bottom: 20px;
    display: block;
    line-height: 1
}

.feat__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text)
}

.feat__desc {
    font-size: .9rem;
    color: var(--text-2);
    line-height: 1.7
}

.feat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-top: 1px;
    background: var(--border);
}

.feat-grid .feat {
    background: var(--bg);
}

/* ── Contact ── */
.contact-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}

.contact-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), #f59e0b);
}

.contact__title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text)
}

.contact__sub {
    font-size: .82rem;
    color: var(--text-3);
    display: block;
    margin-bottom: 32px
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.c-item--full {
    grid-column: 1 / -1
}

.c-item {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    transition: all .3s var(--ease);
}

.c-item:hover {
    background: var(--bg-3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
}

.c-item__label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-3);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.c-item__val {
    font-size: .92rem;
    color: var(--text);
    font-weight: 500
}

.c-item__val a {
    color: var(--accent-2);
    transition: color .2s
}

.c-item__val a:hover {
    color: var(--accent)
}

/* ── Ocean Floor ── */
.ocean-floor {
    position: relative;
    z-index: 2;
    padding: 60px 40px 0;
    background: linear-gradient(180deg, transparent, var(--bg-2));
}

.ocean-floor__inner {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.treasure-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 40px 0;
    flex-wrap: wrap;
}

.treasure-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: gentleFloat 5s ease-in-out infinite;
}

.treasure-item:nth-child(2) {
    animation-delay: 1.2s;
}

.treasure-item:nth-child(3) {
    animation-delay: 2.4s;
}

.treasure-item:nth-child(4) {
    animation-delay: 3.6s;
}

.treasure-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.treasure-icon--gold {
    background: rgba(245, 158, 11, .08);
    border: 1px solid rgba(245, 158, 11, .15);
    color: #f59e0b;
}

.treasure-icon--teal {
    background: var(--accent-light);
    border: 1px solid rgba(16, 185, 129, .15);
    color: var(--accent);
}

.treasure-label {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-3);
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.sand-bar {
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, .15), rgba(16, 185, 129, .2), rgba(16, 185, 129, .15), transparent);
    margin-top: 40px;
}

/* ── Footer ── */
.footer {
    padding: 32px 40px;
    position: relative;
    z-index: 3;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
    color: var(--text-3);
}

.footer__inner a {
    color: var(--text-2);
    transition: color .2s
}

.footer__inner a:hover {
    color: var(--accent)
}

/* ── Reveal ── */
[data-r] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .7s var(--ease), transform .7s var(--ease)
}

[data-r].v {
    opacity: 1;
    transform: none
}

[data-r="1"] {
    transition-delay: .06s
}

[data-r="2"] {
    transition-delay: .14s
}

[data-r="3"] {
    transition-delay: .22s
}

[data-r="4"] {
    transition-delay: .3s
}

/* ── Responsive ── */
@media(max-width:900px) {
    .sec {
        padding: 80px 24px
    }

    .grid-2 {
        grid-template-columns: 1fr
    }

    .features {
        grid-template-columns: 1fr
    }

    .feat-grid {
        grid-template-columns: 1fr
    }

    .contact-grid {
        grid-template-columns: 1fr
    }

    .stats {
        gap: 24px;
        flex-wrap: wrap
    }

    .hero__title {
        font-size: 2.6rem
    }

    .header__inner {
        padding: 0 20px
    }

    .treasure-bar {
        gap: 24px;
    }
}

@media(max-width:600px) {
    .sec {
        padding: 60px 16px
    }

    .hero__title {
        font-size: 2.2rem
    }

    .hero__desc {
        font-size: 1.05rem
    }

    .stats {
        gap: 16px
    }

    .stats__val {
        font-size: 1.5rem
    }

    .nav .nav__link {
        display: none
    }

    .contact-box {
        padding: 28px
    }

    .footer {
        padding: 24px 16px
    }

    .footer__inner {
        flex-direction: column;
        gap: 8px;
        text-align: center
    }

    .app-card {
        padding: 28px
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, .2);
    border-radius: 4px
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, .35)
}

::selection {
    background: rgba(16, 185, 129, .15)
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px
}