/* ===================================
   ZAMAZ Landing Page — style.css
   =================================== */

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

:root {
    --orange: #F97316;
    --orange-light: #FDBA74;
    --orange-dark: #EA580C;
    --purple: #667eea;
    --purple-light: #8a9df0;
    --bg-dark: #0a0a1a;
    --bg-surface: rgba(255,255,255,0.04);
    --bg-surface-hover: rgba(255,255,255,0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.6);
    --border-glass: rgba(255,255,255,0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 16px;
    --radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border-glass);
    padding: 0.6rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.nav-logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width var(--transition);
    border-radius: 1px;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    padding: 0.4rem 0.85rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
}

.lang-toggle:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.15);
}

.lang-flag {
    font-size: 1rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, transparent 70%);
    top: 10%;
    left: 20%;
    filter: blur(80px);
    animation: floatGlow 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-bg-glow--secondary {
    background: radial-gradient(circle, rgba(102,126,234,0.12) 0%, transparent 70%);
    top: 40%;
    left: 60%;
    width: 500px;
    height: 500px;
    animation-delay: -4s;
    animation-duration: 10s;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--orange-light);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title-gradient {
    background: linear-gradient(135deg, var(--orange), var(--orange-light), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    border-radius: 14px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.btn-text small {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.8;
}

.btn-text strong {
    font-size: 1.05rem;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: white;
    box-shadow: 0 4px 20px rgba(249,115,22,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(249,115,22,0.4);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
}

.btn-lg .btn-text strong {
    font-size: 1.15rem;
}

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

.hero-phone-frame {
    width: 260px;
    height: 520px;
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 36px;
    padding: 12px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

.hero-phone-notch {
    width: 100px;
    height: 28px;
    background: var(--bg-dark);
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a1040 0%, #0a0a1a 100%);
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-logo-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Floating Cards */
.hero-floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.1rem;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    animation: cardFloat 4s ease-in-out infinite;
}

.floating-icon {
    font-size: 1.2rem;
}

.hero-floating-card--1 {
    top: 10%;
    right: -5%;
    animation-delay: 0s;
}

.hero-floating-card--2 {
    bottom: 25%;
    left: -10%;
    animation-delay: -1.3s;
}

.hero-floating-card--3 {
    bottom: 10%;
    right: -10%;
    animation-delay: -2.6s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---------- SECTIONS ---------- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--orange-light);
    margin-bottom: 1.25rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ---------- FEATURES ---------- */
.features {
    padding: 6rem 0;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

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

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--orange), var(--purple));
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

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

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(249,115,22,0.1);
    border: 1px solid rgba(249,115,22,0.15);
    margin-bottom: 1.25rem;
}

.feature-icon {
    font-size: 1.6rem;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

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

/* ---------- HOW IT WORKS ---------- */
.how-it-works {
    padding: 6rem 0;
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    flex: 0 0 280px;
    transition: all var(--transition);
}

.step-card:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-4px);
}

.step-number {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 4px 15px rgba(249,115,22,0.3);
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.step-connector {
    width: 80px;
    flex-shrink: 0;
    opacity: 0.5;
}

/* ---------- CTA ---------- */
.cta-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(80px);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    backdrop-filter: blur(20px);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 3rem 0 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.footer-col a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--orange-light);
}

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

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger for feature cards */
.feature-card.reveal { transition-delay: calc(var(--delay, 0) * 0.1s); }
.step-card.reveal { transition-delay: calc(var(--delay, 0) * 0.15s); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-container {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 26, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hero {
        padding: 7rem 1.5rem 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-phone-frame {
        width: 200px;
        height: 400px;
    }

    .hero-logo-img {
        width: 100px;
        height: 100px;
    }

    .hero-floating-card--1 {
        right: 5%;
        top: 5%;
    }

    .hero-floating-card--2 {
        left: 0%;
        bottom: 30%;
    }

    .hero-floating-card--3 {
        right: 0%;
        bottom: 5%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .step-connector {
        transform: rotate(90deg);
        width: 60px;
    }

    .step-card {
        flex: none;
        width: 100%;
        max-width: 340px;
    }

    .cta-content {
        padding: 3rem 1.5rem;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        gap: 3rem;
    }

    .footer-col {
        align-items: center;
    }
}

@media (max-width: 420px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}
