/* CSS Variables */
:root {
    --primary-color: #1a1a1a;
    --bg-color: #ffffff; /* revert white background */
    /* THEME: OUT! gradient */
    --theme-start: #FF592F; /* orange-red */
    --theme-end:   #FDC82A; /* golden yellow */
    --gradient-1: linear-gradient(135deg, var(--theme-start) 0%, var(--theme-end) 100%);
    --gradient-2: linear-gradient(135deg, var(--theme-end) 0%, var(--theme-start) 100%);
    --gradient-3: radial-gradient(1200px 800px at 20% 10%, rgba(253, 200, 42, 0.16), transparent 60%),
                  radial-gradient(900px 700px at 80% 70%, rgba(255, 89, 47, 0.14), transparent 60%);
    --text-gray: #4a4a4a;
    --border-radius: 20px;
    --shadow: 0 20px 40px rgba(255, 89, 47, 0.25);
    --shadow-strong: 0 30px 60px rgba(253, 200, 42, 0.35);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-color);
    line-height: 1.6;
    font-weight: 600; /* thicker base */
}

/* Animated ambient gradient backdrop */
/* Performance: remove heavy full-screen animated backdrop */
body::before { display: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Scrolling Banner */
.scrolling-banner {
    background: var(--gradient-1);
    padding: 15px 0;
    overflow: hidden;
    width: 100%;
}

.scrolling-text {
    white-space: nowrap;
    display: inline-block;
    overflow: hidden;
    animation: scroll 15s linear infinite;
    
}

.scrolling-text p {
    display: inline-block;
    
    font-weight: 700;
    font-size: 18px;
    color: white;
}

@keyframes scroll {
    0% { transform: translate3d(0,0,0); }
    100% { transform: translate3d(-50%, 0,0); }
}

/* Header */
.header {
    padding: 30px 0;
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
}

.header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-tabs {
    display: flex;
    gap: 20px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Mobile Navigation Tabs */
.mobile-nav-tabs {
    display: none;
    justify-content: flex-end;
    gap: 0px;
    padding: 5px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

/* Mobile responsive navigation */
@media (max-width: 768px) {
    .mobile-nav-tabs {
        display: flex;
    }
    
    .nav-tabs {
        display: none;
    }
    
    .header .container {
        justify-content: center;
    }
}

.nav-tab {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    z-index: 101;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo-img {
    height: 180px;
    filter: drop-shadow(0 6px 14px rgba(255, 89, 47, 0.35));
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    position: relative;
    /* revert to subtle radial background */
    background: radial-gradient(circle at 30% 20%, rgba(255, 154, 86, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Floating theme blobs */
/* Performance: remove heavy floating blobs */
.hero::before, .hero::after { display: none; }

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    position: relative;
}

.title-line {
    display: block;
    margin: 5px 0;
}

.highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    overflow: visible;
}

/* Sheen highlight pass */
/* Performance: remove sheen pass */
.highlight::after { display: none; }

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    font-weight: 600;
}

.app-store-btn {
    display: inline-block;
    transition: var(--transition);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(255, 89, 47, 0.35), 0 6px 12px rgba(253, 200, 42, 0.25);
    width: fit-content;
    text-decoration: none;
}

.app-store-badge {
    height: 60px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.app-store-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 89, 47, 0.45);
}

.app-store-btn:hover .app-store-badge {
    filter: brightness(1.1);
}

/* Hero Video */
.hero-video {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 250px;
    height: 550px;
    background: transparent;
    border-radius: 40px;
    padding: 0px;
    /* Revert to old shadow color */
    box-shadow: 0 30px 60px rgba(255, 107, 53, 0.3);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--transition);
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

.demo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
    background: #fff;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.float-element {
    position: absolute;
    font-size: 26px;
    animation: float 4s ease-in-out infinite;
    opacity: 0.9;
}

.float-element:nth-child(1) {
    top: -12px;
    left: -12px;
    font-size: 28px;
    animation-delay: 0s;
}

.float-element:nth-child(2) {
    top: 25px;
    right: -15px;
    font-size: 32px;
    animation-delay: 1s;
}

.float-element:nth-child(3) {
    bottom: -12px;
    right: -10px;
    font-size: 26px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Footer */
.footer {
    padding: 30px 0;
    background: var(--bg-color);
    text-align: center;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    position: relative;
}

/* Performance: remove animated footer bar */
.footer::before { display: none; }

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

.footer-logo img {
    height: 120px;
    opacity: 0.8;
}

.footer p {
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text {
        order: 1;
        align-items: center;
    }
    
    .hero-video {
        order: 2;
    }
    
    .phone-mockup {
        transform: none;
        width: 240px;
        height: 480px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .app-store-btn {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .logo-img{
      margin-top: 20px;
    }
    .header {
        top: 40px;
        padding: 50px 0;
    }
    
    .hero {
        padding: 140px 0 40px;
        min-height: auto;
    }
    
    .hero-content {
        gap: 30px;
    }
    
    .hero-title {
        margin-top: 20px;
        font-size: 34px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .scrolling-text {
        font-size: 16px;
    }
    
    .phone-mockup {
        width: 260px;
        height: 520px;
    }
    
    .app-store-btn {
        margin: 0 auto;
    }
    
    .app-store-badge {
        height: 50px;
    }
    
    /* Tweaked emojis for mobile */
    .float-element { font-size: 18px; }
    .float-element:nth-child(1) { top: -6px; left: -6px; font-size: 20px; }
    .float-element:nth-child(2) { top: 18px; right: -6px; font-size: 22px; }
    .float-element:nth-child(3) { bottom: -6px; right: 0; font-size: 18px; }
    
    /* Hide phone mock-up on mobile */
    .hero-video { display: none; }
    
    /* Center text block */
    .hero-text { align-items: center; text-align: center; }

    .hero-text {
        gap: 20px;
    }
}

@media (max-width: 480px) {
  
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .phone-mockup {
        width: 220px;
        height: 440px;
    }
    
    .scrolling-text {
        font-size: 14px;
    }
    
    .hero-content {
        gap: 20px;
        padding: 0 5px;
    }

    .hero {
        padding: 120px 0 30px;
        min-height: auto;
    }

    .hero-text {
        gap: 15px;
    }

    .header {
        top: 32px;
    }
}

/* Animation Improvements */
@media (prefers-reduced-motion: no-preference) {
    .hero-title .title-line {
        animation: slideUp 0.8s ease-out forwards;
        opacity: 0;
        transform: translateY(30px);
    }
    
    .hero-title .title-line:nth-child(1) { animation-delay: 0.1s; }
    .hero-title .title-line:nth-child(2) { animation-delay: 0.2s; }
    .hero-title .title-line:nth-child(3) { animation-delay: 0.3s; }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 1200px) {
    .hero-text {
        margin-left: 80px;
    }
}

/* Animation */
@keyframes popOut {
    0%   { opacity: 1; transform: scale(1);   filter: blur(0);   }
    100% { opacity: 0; transform: scale(0.8); filter: blur(4px); }
}

@keyframes popIn {
    0%   { opacity: 0; transform: scale(1.2); filter: blur(4px); }
    100% { opacity: 1; transform: scale(1);   filter: blur(0);   }
}

.rotate-pop-out { animation: popOut 0.15s ease-in forwards; }
.rotate-pop-in  { animation: popIn 0.25s ease-out forwards; }

/* Generic appear animation for on-scroll */
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: 0.6s ease; }
.appear { opacity: 1 !important; transform: translateY(0) !important; }

/* Adjust baseline and custom styles */
#rotating-text {
    display: inline-block;
    line-height: 1.2;
    padding-bottom: 4px; /* prevent descender cut-off */
}

.pre-text,
.post-text {
    font-size: 0.8em;
    font-weight: 700;
    color: var(--primary-color);
}

/* Remove floating emojis */
.floating-elements { display: none; }

/* ---------- Features Section ---------- */
.features {
    padding: 80px 0;
}

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

.feature-step {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.feature-phone {
    width: 250px;
    height: 550px;
    margin: 0 auto;
    padding: 0;
    transform: none;
}

.feature-video {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: none;
    object-fit: cover;
}

.feature-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    position: relative;
}

.feature-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 6px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: var(--gradient-1);
    background-size: 200% 200%;
    animation: gradientMove 10s ease-in-out infinite alternate;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
} 

/* Remove unused heavy keyframes for performance */
@keyframes gradientMove { 0% { } 100% { } }
@keyframes shine { 0% { } 100% { } }
@keyframes blobFloat { 0% { } 100% { } }
@keyframes glowPulse { 0% { } 100% { } }

/* Flying rocket */
.flying-rocket {
    position: fixed;
    left: -40px;
    top: 20vh;
    font-size: clamp(24px, 4vw, 36px);
    z-index: 9999;
    animation: rocketLoop 22s linear infinite;
    will-change: transform;
}

@keyframes rocketLoop {
    0%   { transform: translate(-10vw, 0) rotate(10deg); }
    20%  { transform: translate(110vw, -10vh) rotate(10deg); }
    25%  { transform: translate(110vw, -10vh) rotate(110deg); }
    45%  { transform: translate(50vw, 110vh) rotate(110deg); }
    50%  { transform: translate(50vw, 110vh) rotate(200deg); }
    75%  { transform: translate(-20vw, 30vh) rotate(200deg); }
    80%  { transform: translate(-20vw, 30vh) rotate(300deg); }
    100% { transform: translate(-10vw, 0) rotate(370deg); }
}
