:root {
    --bg-color: #0F0804;
    --bg-darker: #050302;
    --card-bg: rgba(255, 255, 255, 0.03);
    --accent-color: #FF9500;
    --accent-glow: rgba(255, 149, 0, 0.5);
    --accent-gradient: linear-gradient(135deg, #FF9500 0%, #FF5E00 50%, #FF3B30 100%);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --nav-height: 90px;
    --container-width: 1200px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Texture/Noise */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.2;
    pointer-events: none;
    z-index: 10;
    filter: contrast(120%) brightness(100%);
}

/* Glowing Orbs */
.orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    animation: orbFloat 20s infinite alternate;
}

.orb-1 {
    top: -200px;
    left: -100px;
    background: var(--accent-gradient);
}

.orb-2 {
    bottom: -100px;
    right: -100px;
    background: #FF3B30;
    width: 400px;
    height: 400px;
    animation-delay: -5s;
}

@keyframes orbFloat {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, 100px) scale(1.1); }
}

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

/* Navbar */
nav {
    height: var(--nav-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 8, 4, 0.4);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: -1px;
}

.logo img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.lang-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s var(--ease-out-expo);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
    padding-right: 40px;
}

.lang-select:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.lang-select option {
    background: #1a1512;
    color: #fff;
}

/* RTL Support */
body[dir="rtl"] {
    text-align: right;
}

body[dir="rtl"] .logo {
    flex-direction: row-reverse;
}

body[dir="rtl"] .lang-select {
    background-position: left 15px center;
    padding-right: 20px;
    padding-left: 40px;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--nav-height) + 120px);
    padding-bottom: 160px;
    text-align: center;
    position: relative;
}

.hero .badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 149, 0, 0.1);
    color: var(--accent-color);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 149, 0, 0.2);
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    margin-bottom: 32px;
    line-height: 0.95;
    letter-spacing: -3px;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 56px;
    font-weight: 400;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-gradient);
    color: #000;
    font-weight: 800;
    padding: 22px 48px;
    border-radius: 100px;
    font-size: 1.3rem;
    box-shadow: 0 20px 40px rgba(255, 149, 0, 0.2);
    transition: all 0.4s var(--ease-out-expo);
    border: none;
    cursor: pointer;
}

.btn-download:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 30px 60px rgba(255, 149, 0, 0.3);
}

.hero-mockup {
    margin-top: 100px;
    perspective: 2000px;
}

.hero-mockup img {
    width: 100%;
    max-width: 1080px;
    border-radius: 24px;
    box-shadow: 
        0 40px 100px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.1);
    transform: rotateX(5deg);
    transition: 0.8s var(--ease-out-expo);
}

.hero-mockup:hover img {
    transform: rotateX(0deg) scale(1.02);
}

/* Features */
.features {
    padding: 160px 0;
    background: var(--bg-darker);
    position: relative;
    z-index: 5;
}

.section-title {
    max-width: 600px;
    margin-bottom: 100px;
}

.section-title h2 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

.feature-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    padding: 60px 48px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: 0.5s;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: rgba(255, 149, 0, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 32px;
    display: block;
}

.feature-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Showcase */
.showcase {
    padding: 160px 0;
}

.screenshot-slider {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    padding: 60px 0;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.screenshot-item {
    flex: 0 0 320px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    transition: 0.5s var(--ease-out-expo);
}

.screenshot-item:hover {
    transform: scale(1.05);
}

.screenshot-item img {
    width: 100%;
    display: block;
}

.ipad-showcase {
    margin-top: 140px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    gap: 80px;
}

.ipad-text h3 {
    font-size: 3rem;
    margin-bottom: 24px;
    font-weight: 800;
}

.ipad-item img {
    width: 100%;
    border-radius: 32px;
    box-shadow: 0 60px 120px rgba(0,0,0,0.6);
}

/* Footer */
footer {
    padding: 120px 0 60px;
    background: #000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 100px;
    gap: 60px;
}

.footer-info {
    max-width: 400px;
}

.footer-info p {
    margin-top: 24px;
    color: var(--text-secondary);
}

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

.link-group h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
}

.link-group a {
    display: block;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.link-group a:hover {
    color: var(--accent-color);
}

.copyright {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
}

/* Reveal System mod */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.2s var(--ease-out-expo);
}

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

/* Stagger indices */
.reveal.s-1 { transition-delay: 0.1s; }
.reveal.s-2 { transition-delay: 0.2s; }
.reveal.s-3 { transition-delay: 0.3s; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .ipad-showcase {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero h1 { letter-spacing: -1px; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; }
}
