/* ========================================
   Emojical Landing Page — Styles
   Photo → Emoji Art
   ======================================== */

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

:root {
    --c-bg:           #0a0800;
    --c-surface:      #110e00;
    --c-surface-2:    rgba(24, 18, 0, 0.8);
    --c-border:       rgba(255, 255, 255, 0.06);
    --c-text:         #f5efe0;
    --c-text-sub:     #a08c60;
    --c-accent:       #e8a838;
    --c-accent-2:     #d4892a;
    --c-accent-3:     #c06820;
    --c-gradient:     linear-gradient(135deg, #e8a838, #d4892a, #c06820);
    --c-gradient-btn: linear-gradient(135deg, #f0b84a 0%, #e8a838 40%, #c06820 100%);
    --c-glow-gold:    rgba(232, 168, 56, 0.28);
    --c-glow-amber:   rgba(212, 137, 42, 0.22);
    --c-glow-bronze:  rgba(192, 104, 32, 0.18);
    --font-heading:   'Space Grotesk', system-ui, sans-serif;
    --font-body:      'Inter', system-ui, sans-serif;
    --r-card:         20px;
    --r-pill:         100px;
    --max-w:          1200px;
    --nav-h:          72px;
}

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

body {
    font-family: var(--font-body);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

::selection {
    background: var(--c-accent-2);
    color: #fff;
}

/* ---------- NAVBAR ---------- */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 8, 0, 0.75);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid var(--c-border);
    transition: background .3s, box-shadow .3s;
}

#main-nav.scrolled {
    background: rgba(10, 8, 0, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: var(--nav-h);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-logo img { border-radius: 10px; }

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-text-sub);
    transition: color .25s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c-gradient);
    transition: width .3s ease;
}

.nav-links a:hover { color: var(--c-text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--r-pill);
    background: var(--c-gradient-btn);
    color: #0a0800;
    font-weight: 600;
    font-size: 0.88rem;
    transition: transform .25s, box-shadow .25s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--c-glow-gold);
}

/* ---------- HERO ---------- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 40px) 0 80px;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    will-change: transform;
}

.hero-orb--1 {
    width: 600px;
    height: 600px;
    top: -180px;
    left: -120px;
    background: radial-gradient(circle, var(--c-glow-gold), transparent 70%);
    animation: orb-float 14s ease-in-out infinite alternate;
}

.hero-orb--2 {
    width: 500px;
    height: 500px;
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--c-glow-amber), transparent 70%);
    animation: orb-float 18s ease-in-out infinite alternate-reverse;
}

.hero-orb--3 {
    width: 350px;
    height: 350px;
    top: 40%;
    left: 50%;
    background: radial-gradient(circle, var(--c-glow-bronze), transparent 70%);
    animation: orb-float 10s ease-in-out infinite alternate;
}

@keyframes orb-float {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, -40px) scale(1.15); }
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(232, 168, 56, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 168, 56, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 24px;
    width: 100%;
}

/* Hero text */
.hero-text { flex: 1 1 50%; }

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px;
    border-radius: var(--r-pill);
    background: rgba(232, 168, 56, 0.08);
    border: 1px solid rgba(232, 168, 56, 0.25);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--c-accent);
    margin-bottom: 28px;
}

.pill-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-accent);
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 168, 56, 0.5); }
    50%       { box-shadow: 0 0 0 8px rgba(232, 168, 56, 0); }
}

#hero-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

#hero-heading .line { display: block; }

#hero-heading .accent-line {
    background: var(--c-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    margin-top: 24px;
    font-size: 1.12rem;
    color: var(--c-text-sub);
    max-width: 520px;
    line-height: 1.7;
}

.hero-cta-row { margin-top: 36px; }

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 28px;
    border-radius: 16px;
    background: var(--c-gradient-btn);
    color: #0a0800;
    font-weight: 600;
    transition: transform .3s, box-shadow .3s;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity .3s;
}

.cta-btn:hover::before { opacity: 1; }

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--c-glow-gold);
}

.cta-text { display: flex; flex-direction: column; line-height: 1.2; }
.cta-small { font-size: 0.7rem; font-weight: 400; opacity: .85; }
.cta-large { font-size: 1.05rem; font-weight: 700; }

.cta-btn--lg { padding: 18px 36px; border-radius: 20px; }
.cta-btn--lg .cta-large { font-size: 1.15rem; }

.hero-chips {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--r-pill);
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--c-text-sub);
}

.chip-icon { font-size: 1rem; }

/* Hero phones — same pattern as Brainza */
.hero-phones {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-phone {
    border-radius: 28px;
    overflow: hidden;
    transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.hero-phone img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-phone--center {
    width: 260px;
    z-index: 3;
    position: relative;
}

.hero-phone--left {
    width: 210px;
    z-index: 2;
    transform: translateX(55px) scale(0.9) rotate(-6deg);
    opacity: 0.8;
}

.hero-phone--right {
    width: 210px;
    z-index: 2;
    transform: translateX(-55px) scale(0.9) rotate(6deg);
    opacity: 0.8;
}

.hero-phone--center:hover { transform: scale(1.04); }

.hero-phone--left:hover {
    transform: translateX(55px) scale(0.93) rotate(-4deg);
    opacity: 1;
}

.hero-phone--right:hover {
    transform: translateX(-55px) scale(0.93) rotate(4deg);
    opacity: 1;
}

/* ---------- SECTION SHARED ---------- */
.section-head {
    text-align: center;
    margin-bottom: 64px;
}

.tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--r-pill);
    background: rgba(232, 168, 56, 0.08);
    border: 1px solid rgba(232, 168, 56, 0.2);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--c-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.section-head h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.grad-text {
    background: var(--c-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-sub {
    margin-top: 14px;
    color: var(--c-text-sub);
    font-size: 1.05rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(.22, 1, .36, 1), transform 0.7s cubic-bezier(.22, 1, .36, 1);
}

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

/* ---------- FEATURES ---------- */
#features {
    padding: 120px 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.f-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-card);
    padding: 36px 28px;
    transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s, border-color .35s;
    position: relative;
    overflow: hidden;
}

.f-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--c-gradient);
    opacity: 0;
    transition: opacity .35s;
}

.f-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(232, 168, 56, 0.08);
    border-color: rgba(232, 168, 56, 0.2);
}

.f-card:hover::before { opacity: 1; }

.f-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--icon-bg);
    color: var(--icon-color);
    margin-bottom: 20px;
}

.f-card h3 {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.f-card p {
    font-size: 0.92rem;
    color: var(--c-text-sub);
    line-height: 1.65;
}

/* ---------- SHOWCASE ---------- */
#showcase { padding: 120px 0; }

.showcase-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.showcase-row:last-child { margin-bottom: 0; }

.showcase-row--reverse { flex-direction: row-reverse; }

.showcase-text { flex: 1 1 50%; }

.showcase-text h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.showcase-text > p {
    font-size: 1rem;
    color: var(--c-text-sub);
    line-height: 1.7;
    margin-bottom: 24px;
}

.showcase-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.showcase-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--c-text-sub);
}

.showcase-list li::before {
    content: '';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border-radius: 50%;
    background: rgba(232, 168, 56, 0.12);
    border: 2px solid var(--c-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23e8a838' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.showcase-visual {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.showcase-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.showcase-glow--gold   { background: var(--c-glow-gold); }
.showcase-glow--amber  { background: var(--c-glow-amber); }
.showcase-glow--bronze { background: var(--c-glow-bronze); }

.showcase-mockup {
    position: relative;
    z-index: 1;
    width: 280px;
    border-radius: 32px;
    transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.showcase-mockup:hover {
    transform: scale(1.04) rotate(1deg);
}

/* ---------- GALLERY / CAROUSEL ---------- */
#gallery {
    padding: 100px 0;
    overflow: hidden;
}

.carousel-wrap {
    position: relative;
    margin-top: -20px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.carousel {
    overflow: hidden;
    padding: 40px 0;
}

.carousel-track {
    display: flex;
    gap: 28px;
    animation: scroll-gallery 50s linear infinite;
    width: max-content;
}

.carousel-img {
    width: 240px;
    flex-shrink: 0;
    border-radius: 28px;
    transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}

.carousel-img:hover {
    transform: scale(1.06) translateY(-8px);
}

@keyframes scroll-gallery {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- DOWNLOAD CTA ---------- */
#download {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.dl-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.dl-orb--1 {
    width: 500px;
    height: 500px;
    top: -120px;
    left: -100px;
    background: var(--c-glow-gold);
    animation: orb-float 16s ease-in-out infinite alternate;
}

.dl-orb--2 {
    width: 450px;
    height: 450px;
    bottom: -100px;
    right: -80px;
    background: var(--c-glow-amber);
    animation: orb-float 20s ease-in-out infinite alternate-reverse;
}

.dl-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dl-icon {
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(232, 168, 56, 0.3);
    margin-bottom: 32px;
    animation: icon-glow 3s ease-in-out infinite alternate;
}

@keyframes icon-glow {
    0%   { box-shadow: 0 12px 40px rgba(232, 168, 56, 0.3); }
    100% { box-shadow: 0 16px 60px rgba(212, 137, 42, 0.5); }
}

#dl-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.dl-sub {
    color: var(--c-text-sub);
    font-size: 1.08rem;
    margin-bottom: 36px;
}

/* ---------- FOOTER ---------- */
#footer {
    border-top: 1px solid var(--c-border);
    padding: 48px 0 32px;
    background: var(--c-surface);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.footer-brand { max-width: 300px; }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.footer-logo img { border-radius: 8px; }

.footer-brand p {
    color: var(--c-text-sub);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: var(--c-text-sub);
    font-size: 0.9rem;
    transition: color 0.25s;
}

.footer-links a:hover { color: var(--c-accent); }

.footer-bottom {
    border-top: 1px solid var(--c-border);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p { color: var(--c-text-sub); font-size: 0.82rem; }

.footer-bottom a {
    color: var(--c-accent);
    transition: opacity 0.25s;
}

.footer-bottom a:hover { opacity: 0.75; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-inner { flex-direction: column; text-align: center; gap: 48px; }
    .hero-text { flex: none; max-width: 100%; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-chips { justify-content: center; }
    .hero-phones { flex: none; width: 100%; }

    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-row { flex-direction: column; gap: 40px; }
    .showcase-row--reverse { flex-direction: column; }
    .showcase-visual { order: -1; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    #hero-heading { font-size: 2.4rem; }

    .hero-phone--center { width: 210px; }
    .hero-phone--left  { width: 170px; }
    .hero-phone--right { width: 170px; }

    .features-grid { grid-template-columns: 1fr; }
    .footer-top { flex-direction: column; gap: 24px; }
    .footer-links { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    #hero-heading { font-size: 2rem; }
    .hero-phone--center { width: 170px; }
    .hero-phone--left  { width: 140px; transform: translateX(45px) scale(0.9) rotate(-6deg); }
    .hero-phone--right { width: 140px; transform: translateX(-45px) scale(0.9) rotate(6deg); }
    .cta-btn { padding: 12px 24px; }
    .chip { font-size: 0.75rem; padding: 6px 12px; }
}
