/* ============================================
   e-factura Landing Page — Vanilla CSS
   Palette: Luxury Noir + Champagne Gold
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
    /* — Luxury Gold Core — */
    --brand: #c9a96e;             /* Champagne gold */
    --brand-dark: #b08d4f;        /* Deep gold */
    --brand-light: #e2cfa4;       /* Soft gold */
    --brand-glow: rgba(201, 169, 110, 0.30);

    /* — Accent Palette — */
    --accent-green: #5fa887;      /* Muted emerald */
    --accent-orange: #c48b5c;     /* Warm bronze */
    --accent-blue: #7a9ab5;       /* Steel blue */

    /* — Backgrounds — */
    --bg-body: #08080c;           /* Near-black with warmth */
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-hover: rgba(201, 169, 110, 0.35);

    /* — Text — */
    --text-white: #f0ece4;        /* Warm ivory */
    --text-muted: #a09889;        /* Warm grey */
    --text-dim: #6e655c;          /* Muted warm */

    /* — Radii — */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    /* — Shadows — */
    --shadow-glow: 0 0 60px rgba(201, 169, 110, 0.12);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);

    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
}

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

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

img {
    max-width: 100%;
    display: block;
}

/* ---- Ambient Background ---- */
.ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.ambient-orb--1 {
    width: 600px;
    height: 600px;
    top: -15%;
    left: -10%;
    background: #c9a96e;          /* Champagne gold */
    animation: orbFloat 18s ease-in-out infinite alternate;
}

.ambient-orb--2 {
    width: 500px;
    height: 500px;
    bottom: -20%;
    right: -5%;
    background: #8b6f3a;          /* Deep antique gold */
    animation: orbFloat 22s ease-in-out infinite alternate-reverse;
}

.ambient-orb--3 {
    width: 350px;
    height: 350px;
    top: 50%;
    left: 50%;
    background: #a0664e;          /* Warm rosewood */
    animation: orbFloat 15s ease-in-out infinite alternate;
    animation-delay: -5s;
}

.ambient-grid {
    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 50% 60% at 50% 30%, black, transparent);
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(6, 6, 18, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.8rem 5%;
    background: rgba(6, 6, 18, 0.85);
}

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

.nav-logo img {
    height: 42px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.05);
}

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

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-sm {
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
}

.btn-md {
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--brand);
    color: white;
    box-shadow: 0 4px 20px var(--brand-glow);
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--brand-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--brand);
    color: #0e0e12;
}

.btn-white:hover {
    background: var(--brand-light);
    transform: translateY(-2px);
}

/* ---- Container ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Hero Section ---- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 5% 4rem;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(123, 97, 255, 0.12);
    color: var(--brand-light);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(123, 97, 255, 0.2);
    margin-bottom: 2rem;
    letter-spacing: 0.03em;
    animation: fadeInUp 0.8s ease forwards;
}

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

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    max-width: 800px;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.text-gradient {
    background: linear-gradient(135deg, #f5e6c8, var(--brand), #a07a3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.45s forwards;
    opacity: 0;
}

/* ---- Dashboard Mockup ---- */
.mockup-wrapper {
    margin-top: 4rem;
    width: 100%;
    max-width: 1060px;
    perspective: 1200px;
    animation: fadeInUp 0.9s ease 0.6s forwards;
    opacity: 0;
}

.mockup-frame {
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-glow), var(--shadow-card);
    position: relative;
    transform: rotateX(2deg);
    transition: transform 0.5s ease;
}

.mockup-frame:hover {
    transform: rotateX(0deg);
}

.mockup-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid var(--glass-border);
}

.mockup-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.mockup-dot--red { background: #ff5f57; }
.mockup-dot--yellow { background: #ffbd2e; }
.mockup-dot--green { background: #28c840; }

.mockup-bar-url {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-pill);
    padding: 0.35rem 1rem;
    margin: 0 3rem;
}

.mockup-body {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    min-height: 320px;
}

/* Stat mini-cards inside mockup */
.mock-stat {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mock-stat__label {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mock-stat__value {
    font-size: 1.5rem;
    font-weight: 800;
}

.mock-stat__value--purple { color: var(--brand-light); }
.mock-stat__value--green  { color: var(--accent-green); }
.mock-stat__value--orange { color: var(--accent-orange); }
.mock-stat__value--blue   { color: var(--accent-blue); }

.mock-stat__bar {
    height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    overflow: hidden;
    margin-top: auto;
}

.mock-stat__bar-fill {
    height: 100%;
    border-radius: 4px;
    animation: barGrow 1.5s ease 1s forwards;
    width: 0;
}

.mock-stat__bar-fill--purple { background: var(--brand); }
.mock-stat__bar-fill--green  { background: var(--accent-green); }
.mock-stat__bar-fill--orange { background: var(--accent-orange); }
.mock-stat__bar-fill--blue   { background: var(--accent-blue); }

/* Mock invoice rows */
.mock-table {
    grid-column: 1 / -1;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.mock-table__header {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr 0.6fr 0.8fr;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--glass-border);
}

.mock-table__row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr 0.6fr 0.8fr;
    gap: 1rem;
    padding: 0.7rem 1.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.2s;
}

.mock-table__row:last-child {
    border-bottom: none;
}

.mock-table__row:hover {
    background: rgba(123, 97, 255, 0.05);
}

.mock-table__row .invoice-num {
    color: var(--brand-light);
    font-weight: 600;
}

.mock-badge {
    display: inline-flex;
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.6rem;
    font-weight: 700;
}

.mock-badge--paid {
    background: rgba(56, 178, 153, 0.15);
    color: var(--accent-green);
}

.mock-badge--pending {
    background: rgba(123, 97, 255, 0.15);
    color: var(--brand-light);
}

.mock-badge--draft {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
}

/* ---- Section Shared ---- */
.section {
    padding: 6rem 0;
}

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

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-light);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
}

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

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

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

.feature-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-glow);
}

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

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-icon--purple {
    background: rgba(201, 169, 110, 0.12);
    color: var(--brand-light);
}

.feature-icon--green {
    background: rgba(95, 168, 135, 0.12);
    color: var(--accent-green);
}

.feature-icon--orange {
    background: rgba(196, 139, 92, 0.12);
    color: var(--accent-orange);
}

.feature-icon--blue {
    background: rgba(122, 154, 181, 0.12);
    color: var(--accent-blue);
}

.feature-icon--pink {
    background: rgba(180, 120, 90, 0.12);
    color: #c48b5c;
}

.feature-icon--teal {
    background: rgba(95, 168, 135, 0.12);
    color: #5fa887;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-3deg);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---- Why e-factura ---- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.why-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    transition: var(--transition);
    position: relative;
}

.why-card::after {
    content: '';
    position: absolute;
    top: 20%;
    bottom: 20%;
    left: 0;
    width: 3px;
    border-radius: 3px;
    background: var(--brand);
    opacity: 0;
    transition: opacity 0.4s, top 0.4s, bottom 0.4s;
}

.why-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--glass-border-hover);
    transform: translateX(4px);
}

.why-card:hover::after {
    opacity: 1;
    top: 15%;
    bottom: 15%;
}

.why-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(201, 169, 110, 0.1);
    color: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.why-card:hover .why-icon {
    background: var(--brand);
    color: #0e0e12;
    transform: scale(1.08);
}

.why-content {
    flex: 1;
    min-width: 0;
}

.why-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.why-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- How It Works ---- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--glass-border), var(--brand), var(--glass-border), transparent);
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 30px var(--brand-glow);
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 280px;
    margin: 0 auto;
}

/* ---- Social Proof / Stats Row ---- */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-white), var(--brand-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ---- CTA Section ---- */
.cta-section {
    padding: 6rem 0;
}

.cta-card {
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.10), rgba(201, 169, 110, 0.03));
    border: 1px solid rgba(201, 169, 110, 0.18);
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 100%, rgba(201, 169, 110, 0.06), transparent 60%);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    position: relative;
}

.cta-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto 2rem;
    position: relative;
}

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

/* ---- Footer ---- */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.footer-copy a {
    color: var(--brand-light);
    font-weight: 600;
}

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

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

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

/* ---- Mobile Nav Toggle ---- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

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

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

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

@keyframes barGrow {
    to { width: var(--fill); }
}

/* Scroll-triggered animation (JS adds .visible) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mockup-body {
        grid-template-columns: repeat(2, 1fr);
    }

    .mock-table {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(8, 8, 12, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
    }

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

    .nav-cta {
        display: none;
    }

    .nav-cta.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 120px);
        left: 0;
        right: 0;
        padding: 0 1.5rem 1.5rem;
        background: rgba(8, 8, 12, 0.95);
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 7rem 5% 3rem;
    }

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

    .steps-grid::before {
        display: none;
    }

    .mockup-body {
        grid-template-columns: 1fr 1fr;
    }

    .mock-table__header,
    .mock-table__row {
        grid-template-columns: 1.2fr 1fr 0.8fr;
    }

    .mock-table__header > *:nth-child(4),
    .mock-table__header > *:nth-child(5),
    .mock-table__row > *:nth-child(4),
    .mock-table__row > *:nth-child(5) {
        display: none;
    }

    .stats-bar {
        gap: 2rem;
    }

    .stat-value {
        font-size: 2rem;
    }

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

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

@media (max-width: 480px) {
    .mockup-body {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}
