/* ============================================
   OWANLY - Award-Winning Glassmorphism
   Premium frosted glass, layered depth, living gradients
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Owanly Brand - Refined palette */
    --emerald: #09543d;
    --emerald-400: #0d6b4d;
    --emerald-dark: #052e22;
    --emerald-deep: #031f16;
    --emerald-glow: rgba(9, 84, 61, 0.5);
    --lime: #a8ff6b;
    --lime-bright: #b8ff80;
    --lime-muted: rgba(168, 255, 107, 0.25);
    --lime-glow: rgba(168, 255, 107, 0.15);
    --cream: #fffdf7;
    --white: #ffffff;
    --white-05: rgba(255, 255, 255, 0.05);
    --white-08: rgba(255, 255, 255, 0.08);
    --white-10: rgba(255, 255, 255, 0.1);
    --white-12: rgba(255, 255, 255, 0.12);
    --white-15: rgba(255, 255, 255, 0.15);
    --white-20: rgba(255, 255, 255, 0.2);
    --white-25: rgba(255, 255, 255, 0.25);
    --white-40: rgba(255, 255, 255, 0.4);
    --white-60: rgba(255, 255, 255, 0.6);
    --white-90: rgba(255, 255, 255, 0.9);
    --black: #0a0a0a;
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-border-strong: rgba(255, 255, 255, 0.3);
    --blur-sm: 12px;
    --blur-md: 24px;
    --blur-lg: 40px;
    --blur-xl: 60px;

    --font-display: 'Syne', sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Space Grotesk', -apple-system, sans-serif;
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--white);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   LIVING GRADIENT MESH - Award-level background
   ============================================ */
.body-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.body-bg__base {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(9, 84, 61, 0.7) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 80% 90%, rgba(5, 46, 34, 0.9) 0%, transparent 50%),
        radial-gradient(ellipse 100% 100% at 50% 50%, var(--emerald-deep) 0%, var(--emerald-dark) 40%, #031a12 100%);
}

/* Floating glass orbs - subtle motion */
.body-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orb-float 20s ease-in-out infinite;
}

.body-bg__orb--1 {
    width: 60vw;
    height: 60vw;
    top: -20%;
    right: -15%;
    background: radial-gradient(circle, var(--lime-muted) 0%, transparent 70%);
    animation-delay: 0s;
}

.body-bg__orb--2 {
    width: 50vw;
    height: 50vw;
    bottom: -25%;
    left: -20%;
    background: radial-gradient(circle, var(--emerald-glow) 0%, transparent 70%);
    animation-delay: -7s;
}

.body-bg__orb--3 {
    width: 35vw;
    height: 35vw;
    top: 40%;
    left: 50%;
    background: radial-gradient(circle, rgba(168, 255, 107, 0.08) 0%, transparent 70%);
    animation-delay: -14s;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(3%, -2%) scale(1.02); }
    66% { transform: translate(-2%, 3%) scale(0.98); }
}

/* Grain overlay - premium texture */
.body-bg__grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }

/* ============================================
   HEADER - Premium frosted glass nav
   ============================================ */
.header {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 4rem);
    max-width: 120rem;
    padding: 1.4rem 2.8rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg));
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: top 0.3s ease, box-shadow 0.3s ease;
}

.header:hover {
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.header__logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.03em;
    color: var(--white);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.header__link {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--white-60);
    padding: 0.6rem 1.2rem;
    border-radius: 1rem;
    transition: color 0.2s, background 0.2s;
}

.header__link:hover {
    color: var(--lime);
    background: var(--white-05);
}

.btn-start {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--emerald-deep);
    background: var(--lime);
    border-radius: 1.2rem;
    box-shadow: 0 4px 20px var(--lime-muted);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--lime-muted);
}

.header__toggle {
    display: none;
    width: 4.4rem;
    height: 4.4rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--white);
    border-radius: 1rem;
}

.header__toggle-bar {
    display: block;
    width: 2.2rem;
    height: 2px;
    background: currentColor;
}

/* ============================================
   HERO - Layered glass content
   ============================================ */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14rem 4rem 10rem;
}

.hero__inner {
    max-width: 132rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.hero__content {
    max-width: 60rem;
}

/* Glass badge above title */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.4rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm));
    border: 1px solid var(--glass-border);
    border-radius: 10rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--lime);
}

.hero__badge .hero__star {
    width: 2rem;
    height: auto;
    filter: drop-shadow(0 0 12px var(--lime-muted));
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(5rem, 8vw, 9rem);
    line-height: 0.92;
    letter-spacing: -0.045em;
    color: var(--white);
    margin-bottom: 2rem;
    text-wrap: balance;
}

.hero__title-line {
    display: block;
}

.hero__tagline {
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--lime);
    margin-bottom: 0.8rem;
}

.hero__subtitle {
    font-size: 1.5rem;
    color: var(--white-60);
    line-height: 1.65;
    max-width: 48rem;
    margin-bottom: 3.2rem;
}

.hero__buttons {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.6rem 2.6rem;
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm));
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--glass-border-strong);
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--emerald-deep);
    background: var(--lime);
    border-color: var(--lime);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--lime-muted);
}

/* ============================================
   PHONE MOCKUP - Premium glass frame
   ============================================ */
.hero__card-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-mockup {
    width: 100%;
    max-width: 34rem;
    padding: 1.6rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
    border: 1px solid var(--glass-border);
    border-radius: 3.6rem;
    box-shadow: 
        0 32px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.phone-mockup__screen {
    background: linear-gradient(180deg, var(--emerald-deep) 0%, var(--emerald-dark) 100%);
    border-radius: 2.8rem;
    overflow: hidden;
    padding: 2.2rem 1.8rem 2.2rem;
    min-height: 58rem;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-mockup__title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--white);
    text-align: center;
    margin-bottom: 1.8rem;
    line-height: 1.35;
}

.phone-mockup__brand {
    color: #e94d8b;
    font-style: italic;
}

.phone-mockup__clans-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34rem;
}

.phone-mockup__woman {
    width: auto;
    height: 30rem;
    max-height: 65%;
    object-fit: contain;
    object-position: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
}

.phone-mockup__woman-placeholder {
    display: none;
    width: 12rem;
    height: 16rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 1.2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--white-60);
    font-size: 1.2rem;
}

.phone-mockup__woman-placeholder.show { display: flex; }
.phone-mockup__woman-placeholder span:first-child { font-size: 3rem; }

.phone-mockup__clans {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: 50% 50%;
    animation: clan-orbit 20s linear infinite;
}

@keyframes clan-orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.phone-mockup__clan {
    position: absolute;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--emerald-deep);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 2rem;
    white-space: nowrap;
    --angle: calc(var(--i) * (360deg / 13));
    --r: 11rem;
    transform: rotate(var(--angle)) translate(var(--r)) rotate(calc(-1 * var(--angle)));
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.phone-mockup__clan.is-active {
    background: linear-gradient(135deg, #e94d8b 0%, #d43d75 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(233, 77, 139, 0.4);
}

.phone-mockup__cta {
    display: block;
    width: 100%;
    padding: 1.4rem 2rem;
    margin-top: auto;
    font-weight: 700;
    font-size: 1.4rem;
    text-align: center;
    color: var(--emerald-deep);
    background: var(--white);
    border-radius: 1.4rem;
    transition: all 0.25s ease;
}

.phone-mockup__cta:hover {
    background: var(--cream);
    transform: scale(1.02);
}

/* ============================================
   STATS BAR - Floating glass trust indicators
   ============================================ */
.hero__stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.hero__stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero__stat-value {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--lime);
}

.hero__stat-label {
    font-size: 1.3rem;
    color: var(--white-60);
}

/* ============================================
   FOOTER - Dark green, 3 columns + Get the App
   ============================================ */
.footer {
    position: relative;
    z-index: 1;
    padding: 4rem;
    margin: 0 2rem 2rem;
    background: var(--emerald-deep);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
}

.footer__inner {
    max-width: 100rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem 3rem;
}

.footer__columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    flex: 1;
    min-width: 280px;
}

.footer__app {
    min-width: 180px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__heading {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f97316;
    margin: 0 0 0.4rem 0;
}

.footer__col a {
    font-size: 1.4rem;
    color: var(--white-90);
    transition: color 0.2s;
}

.footer__col a:hover {
    color: var(--lime);
}

.footer__app {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.footer__app .footer__heading {
    margin-bottom: 0.2rem;
}

.footer__btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    transition: background 0.2s, border-color 0.2s;
}

.footer__btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.footer__btn-icon {
    display: block;
    width: 1.8rem;
    height: 1.8rem;
    border: 2px solid var(--white);
    border-radius: 0.4rem;
}

.footer__copy {
    width: 100%;
    font-size: 1.3rem;
    color: var(--white-60);
    margin: 2rem 0 0 0;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .hero__content { max-width: none; }
    .hero__subtitle { margin-left: auto; margin-right: auto; }
    .hero__buttons { justify-content: center; }
    .hero__stats { justify-content: center; }
    .hero__card-wrap { order: -1; }

    .phone-mockup {
        max-width: 30rem;
        margin: 0 auto;
    }

    .phone-mockup__clan {
        --r: 9.5rem;
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }

    .phone-mockup__woman { height: 24rem; }
}

@media (max-width: 900px) {
    .header {
        top: 1.2rem;
        width: calc(100% - 2.4rem);
        padding: 1.2rem 1.8rem;
    }

    .header__nav { display: none; }
    .header__toggle { display: flex; }

    .header__nav.is-open {
        display: flex;
        position: absolute;
        top: calc(100% + 1rem);
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(5, 46, 34, 0.9);
        backdrop-filter: blur(var(--blur-lg));
        border: 1px solid var(--glass-border);
        border-radius: 1.6rem;
        padding: 1.6rem;
        gap: 0.4rem;
    }

    .hero { padding: 12rem 2.4rem 6rem; }
}

@media (max-width: 600px) {
    .hero__title { font-size: clamp(4rem, 12vw, 6rem); }
    .hero__buttons { flex-direction: column; }
    .btn-glass, .btn-primary { width: 100%; justify-content: center; }
    .hero__stats { gap: 2rem; }
    .footer { margin: 0 1.2rem 1.2rem; padding: 2rem; }
    .footer__inner { flex-direction: column; }
}
