:root {
    --bg-main: #0b0e14;
    --bg-card: rgba(22, 28, 38, 0.7);
    --border-card: rgba(255, 255, 255, 0.08);
    --primary: #f7931a; /* Bitcoin Orange */
    --primary-glow: rgba(247, 147, 26, 0.3);
    --lightning: #7928ca; /* Lightning Purple */
    --accent: #00f2fe;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --success: #10b981;
    --danger: #ef4444;
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Glow Effects */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%);
}

.bg-glow-2 {
    bottom: -150px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(121, 40, 202, 0.2) 0%, rgba(0,0,0,0) 70%);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2.5rem;
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-card);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary));
}

.badge-v2 {
    background: linear-gradient(135deg, var(--primary), var(--lightning));
    color: #fff;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-left: 0.5rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.3rem;
    border-radius: 12px;
    border: 1px solid var(--border-card);
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.nav-btn.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: pulse 2s infinite;
}

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

/* Container & Tab Content */
.container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Glass Cards */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Hero Section */
.hero-card {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(247, 147, 26, 0.15);
    color: var(--primary);
    border: 1px solid rgba(247, 147, 26, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-card h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 750px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.guarantee-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    transition: transform 0.2s ease;
}

.guarantee-item:hover {
    transform: translateY(-4px);
    border-color: rgba(247, 147, 26, 0.3);
}

.guarantee-item .icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.guarantee-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.guarantee-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Pricing Grid (Modello SaaS 1) */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);

}

.pricing-card.featured {
    border-color: var(--primary);
    background: rgba(247, 147, 26, 0.04);
    box-shadow: 0 10px 30px rgba(247, 147, 26, 0.15);
}

.featured-tag {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-header h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-billing {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.2rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.plan-features li {
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    border-radius: 18px;
    padding: 2rem;
    position: relative;
}

.step-num {
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px var(--primary-glow);
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.text-success { color: var(--success); }
.text-lightning { color: #a855f7; }
.text-primary { color: var(--primary); }

.stat-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Forms & Inputs */
.card h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.card-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.provider-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.provider-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    padding: 1.2rem;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.provider-btn:hover {
    border-color: rgba(247, 147, 26, 0.4);
    background: rgba(247, 147, 26, 0.05);
}

.provider-btn.active {
    border-color: var(--primary);
    background: rgba(247, 147, 26, 0.1);
    box-shadow: 0 0 20px rgba(247, 147, 26, 0.15);
}

.provider-name {
    color: var(--text-main);
    font-weight: 600;
}

.provider-tag {
    font-size: 0.75rem;
    color: var(--primary);
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    display: block;
}

input[type="text"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
    border-color: var(--primary);
}

.field-help {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    display: block;
}

.hidden {
    display: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #e67e22);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid var(--border-card);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.input-copy-group {
    display: flex;
    gap: 0.5rem;
}

.input-copy-group input {
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* Feedback Cards */
.feedback-card {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 14px;
}

.feedback-success {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}

.feedback-success h3 {
    color: var(--success);
    margin-bottom: 0.5rem;
}

.feedback-error {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}

.feedback-error h3 {
    color: var(--danger);
    margin-bottom: 0.5rem;
}

.guarantee-text {
    margin-top: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Demo Grid */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.invoice-result-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.qr-placeholder {
    width: 180px;
    height: 180px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.lightning-qr-badge {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

.status-pending {
    font-size: 0.85rem;
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.api-box {
    margin-bottom: 1.5rem;
}

.docs-section h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.code-block {
    background: #080b10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #00f2fe;
    line-height: 1.5;
}

/* How It Works Section Styles */
.how-it-works-box {
    background: rgba(11, 15, 25, 0.6);
    border: 1px solid rgba(247, 147, 26, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.box-title {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.step-card {
    background: rgba(22, 28, 38, 0.8);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.step-num {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--lightning));
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 12px var(--primary-glow);
}

.step-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

