@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── Reset & Variables ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0a0a;
    --text: #f0ece4;
    --accent: #c9ff57;
    --gray: #888;
    --card-bg: #141414;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    cursor: default;
}

/* ── RTL support ── */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .step { flex-direction: row-reverse; }
[dir="rtl"] .faq-question { text-align: right; }

/* ── Cursor glow ── */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,255,87,0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

/* ── Nav ── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(10,10,10,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 24px; align-items: center; }

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--text); }

/* ── Language picker ── */
.lang-picker {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.lang-current:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
}

.lang-current .arrow {
    font-size: 0.6rem;
    transition: transform 0.3s;
}

.lang-picker.open .arrow { transform: rotate(180deg); }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 6px;
    min-width: 160px;
    max-height: 320px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 200;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.lang-picker.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--gray);
    transition: all 0.2s;
}

.lang-option:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text);
}

.lang-option.active {
    color: var(--accent);
    background: rgba(201,255,87,0.08);
}

/* ── Buttons ── */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--accent);
    color: #0a0a0a;
    border: none;
    border-radius: 100px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(201,255,87,0.3);
}

.cta-btn svg { width: 18px; height: 18px; }

.cta-secondary {
    padding: 12px 28px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text);
    border-radius: 100px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.cta-secondary:hover {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.05);
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(201,255,87,0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.8rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent), #57ffc9, var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}

.hero > p {
    margin-top: 24px;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray);
    max-width: 540px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    padding: 0 16px;
}

.hero-cta {
    margin-top: 48px;
    display: flex;
    gap: 16px;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    flex-wrap: wrap;
    justify-content: center;
}

/* ── Floating elements ── */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.float-el {
    position: absolute;
    font-size: 2rem;
    opacity: 0.08;
    animation: float 20s infinite ease-in-out;
}

.float-el:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.float-el:nth-child(2) { top: 25%; right: 15%; animation-delay: -4s; font-size: 3rem; }
.float-el:nth-child(3) { bottom: 30%; left: 20%; animation-delay: -8s; }
.float-el:nth-child(4) { bottom: 20%; right: 10%; animation-delay: -12s; font-size: 2.5rem; }
.float-el:nth-child(5) { top: 50%; left: 5%; animation-delay: -6s; }
.float-el:nth-child(6) { top: 40%; right: 8%; animation-delay: -10s; }

/* ── Grid background ── */
.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* ── Showcase ── */
.showcase {
    padding: 120px 40px;
    position: relative;
}

.showcase-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 620px;
    background: linear-gradient(145deg, #1a1a1a, #111);
    border-radius: 40px;
    border: 2px solid rgba(255,255,255,0.1);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 60px rgba(201,255,87,0.05);
}

.phone-notch {
    width: 120px;
    height: 30px;
    background: #0a0a0a;
    border-radius: 0 0 20px 20px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.phone-screen {
    padding: 20px;
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gen-preview {
    flex: 1;
    background: linear-gradient(135deg, #1e1e2e, #2a1a2e, #1a2a1e);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gen-preview .tattoo-svg {
    width: 160px;
    height: 160px;
    opacity: 0.9;
    animation: drawIn 3s ease-in-out infinite alternate;
}

.gen-preview .scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scan 2.5s ease-in-out infinite;
}

.phone-prompt {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-prompt .cursor-blink {
    display: inline-block;
    width: 2px;
    height: 14px;
    background: var(--accent);
    animation: blink 1s infinite;
}

.showcase-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.showcase-text p {
    margin-top: 20px;
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.7;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.feature-tag {
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text);
    transition: all 0.3s;
}

.feature-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(201,255,87,0.1);
}

/* ── Features ── */
.features { padding: 120px 40px; }

.section-label {
    text-align: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 64px;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 40px 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201,255,87,0.15);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(201,255,87,0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── Styles gallery ── */
.styles {
    padding: 120px 40px;
    overflow: hidden;
}

.styles-track {
    display: flex;
    gap: 20px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.style-card {
    width: 280px;
    height: 360px;
    border-radius: 24px;
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.style-card:hover { border-color: rgba(201,255,87,0.2); }

.style-card .style-icon { font-size: 4rem; filter: grayscale(0.3); }

.style-card .style-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
}

.style-card .style-count { font-size: 0.8rem; color: var(--gray); }

/* ── Stats ── */
.stats {
    padding: 80px 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--gray);
}

/* ── How it works ── */
.how-it-works { padding: 120px 40px; }

.steps {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.step {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 40px 0;
    position: relative;
}

.step-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(201,255,87,0.15);
    line-height: 1;
    min-width: 80px;
}

.step-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p { color: var(--gray); line-height: 1.7; }

.step + .step { border-top: 1px solid rgba(255,255,255,0.05); }

/* ── FAQ ── */
.faq { padding: 120px 40px; }

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover { border-color: rgba(255,255,255,0.12); }

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-question .faq-toggle {
    font-size: 1.2rem;
    color: var(--accent);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-toggle { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ── Final CTA ── */
.final-cta {
    padding: 160px 40px;
    text-align: center;
    position: relative;
}

.final-cta .glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,255,87,0.08) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.final-cta h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
}

.final-cta p {
    margin-top: 20px;
    color: var(--gray);
    font-size: 1.15rem;
    position: relative;
}

.final-cta .hero-cta {
    justify-content: center;
    position: relative;
}

/* ── Footer ── */
footer {
    padding: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

footer .footer-text { color: var(--gray); font-size: 0.85rem; }
footer .footer-links { display: flex; gap: 24px; }

footer .footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

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

/* ── Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(5deg); }
    50% { transform: translate(-10px, 20px) rotate(-3deg); }
    75% { transform: translate(15px, 10px) rotate(2deg); }
}

@keyframes scan {
    0%, 100% { top: 10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    50% { top: 85%; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes drawIn {
    0% { opacity: 0.3; filter: blur(2px); transform: scale(0.95); }
    100% { opacity: 0.9; filter: blur(0); transform: scale(1); }
}

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

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-inner { gap: 40px; }
}

@media (max-width: 768px) {
    /* Nav */
    nav { padding: 14px 16px; }
    .nav-links a:not(.cta-btn):not(.lang-picker):not(.lang-picker *) { display: none; }
    .nav-links { gap: 10px; }
    .nav-links .cta-btn { padding: 10px 18px; font-size: 0.85rem; }

    /* Hero */
    .hero { padding: 100px 16px 60px; min-height: auto; }
    .hero h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); }
    .hero > p { font-size: 0.95rem; padding: 0 8px; }
    .hero-cta {
        flex-direction: column;
        width: 100%;
        padding: 0 16px;
    }
    .hero-cta .cta-btn,
    .hero-cta .cta-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Showcase */
    .showcase { padding: 60px 16px; }
    .showcase-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .showcase-text { order: -1; }
    .showcase-text p { font-size: 1rem; }
    .feature-tags { justify-content: center; }
    .phone-mockup { width: 260px; height: 540px; }

    /* Features */
    .features { padding: 80px 16px; }
    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .feature-card { padding: 28px 24px; }
    .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); margin-bottom: 40px; }

    /* Styles */
    .styles { padding: 80px 16px; }
    .style-card { width: 220px; height: 280px; }

    /* Stats */
    .stats { padding: 60px 16px; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }

    /* How it works */
    .how-it-works { padding: 80px 16px; }
    .step { flex-direction: column; gap: 12px; padding: 28px 0; }
    .step-num { font-size: 2.5rem; }
    .step-content h3 { font-size: 1.2rem; }
    [dir="rtl"] .step { flex-direction: column; }

    /* FAQ */
    .faq { padding: 80px 16px; }
    .faq-question { padding: 16px 20px; font-size: 0.95rem; }
    .faq-answer p { padding: 0 20px 16px; font-size: 0.9rem; }

    /* CTA */
    .final-cta { padding: 100px 16px; }
    .final-cta h2 { font-size: clamp(1.8rem, 7vw, 3rem); }
    .final-cta .hero-cta { width: 100%; }
    .final-cta .cta-btn { width: 100%; justify-content: center; }

    /* Footer */
    footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 32px 16px;
    }
}

@media (max-width: 380px) {
    nav { padding: 12px 12px; }
    .logo { font-size: 1.3rem; }
    .hero h1 { font-size: 2rem; }
    .nav-links .cta-btn { padding: 8px 14px; font-size: 0.8rem; }
    .lang-current { padding: 5px 8px; font-size: 0.8rem; }
}
