/* ==========================================================================
   Design Tokens & Variables
   ========================================================================== */
:root {
    --bg-dark: #0B0F19;
    --bg-card: rgba(22, 29, 49, 0.7);
    --bg-card-hover: rgba(29, 38, 64, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 210, 255, 0.3);
    
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    --color-accent: #00D2FF;
    --color-accent-hover: #00B9E0;
    --color-purple: #8B5CF6;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Global Reset & Base Settings
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    position: relative;
    min-height: 100vh;
}

/* ==========================================================================
   Ambient Glow Effects
   ========================================================================== */
.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

.glow-1 {
    top: -10%;
    left: 10%;
    background: var(--color-accent);
}

.glow-2 {
    top: 40%;
    right: -10%;
    background: var(--color-purple);
}

/* ==========================================================================
   Typography & Headers
   ========================================================================== */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

p {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ==========================================================================
   Interactive Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 100;
    background: rgba(11, 15, 25, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px stroke var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, #0099ff 100%);
    color: #0b0f19;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 210, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.btn-tertiary {
    background: transparent;
    color: var(--text-secondary);
    border: none;
}

.btn-tertiary:hover {
    color: var(--text-primary);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 140px 24px 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.badge {
    align-self: flex-start;
    background: rgba(0, 210, 255, 0.1);
    color: var(--color-accent);
    border: 1px solid rgba(0, 210, 255, 0.2);
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: 48px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.hero-specs {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-item strong {
    font-size: 16px;
    color: var(--text-primary);
}

.spec-item span {
    font-size: 13px;
    color: var(--text-muted);
}

.spec-divider {
    width: 1px;
    height: 32px;
    background: var(--border-color);
}

/* ==========================================================================
   Interactive Showcase Demo Components
   ========================================================================== */
.hero-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    max-width: 540px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.demo-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

/* Mac Mockup */
.mac-mockup {
    width: 100%;
    max-width: 400px;
}

.mac-screen {
    background: #1e1e1e;
    border: 8px solid #333;
    border-radius: 12px 12px 0 0;
    aspect-ratio: 16/10;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.mac-window-bar {
    height: 28px;
    background: #2D3139;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

.window-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.window-dot.red { background: #FF5F56; }
.window-dot.yellow { background: #FFBD2E; }
.window-dot.green { background: #27C93F; }

.window-title {
    color: var(--text-secondary);
    font-size: 11px;
    margin-left: 12px;
    font-weight: 500;
}

.mac-content {
    flex-grow: 1;
    background: #18191E;
    padding: 12px;
}

.mock-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    text-align: left;
}

.mock-table th {
    color: var(--text-muted);
    font-weight: 600;
    padding: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mock-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    color: var(--text-secondary);
}

.mock-table tr.active-row {
    background: rgba(0, 210, 255, 0.05);
}

.code-cell {
    font-family: monospace;
    color: var(--color-accent) !important;
    font-weight: 600;
}

.badge-status {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
}

.badge-status.yellow {
    background: rgba(255, 189, 46, 0.1);
    color: #FFBD2E;
}

.badge-status.green {
    background: rgba(39, 201, 63, 0.1);
    color: #27C93F;
}

.mac-stand {
    width: 60px;
    height: 30px;
    background: #4B515D;
    margin: 0 auto;
}

.mac-base {
    width: 120px;
    height: 6px;
    background: #6B7280;
    margin: 0 auto;
    border-radius: 0 0 4px 4px;
}

/* Bonjour connection link indicator */
.connection-line {
    position: absolute;
    width: 2px;
    height: 60px;
    background: rgba(0, 210, 255, 0.2);
    top: 245px;
    z-index: 5;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    position: absolute;
    left: -3px;
    top: 0;
    animation: slideDown 2s infinite linear;
    box-shadow: 0 0 8px var(--color-accent);
}

@keyframes slideDown {
    0% { top: 0%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Phone Mockup */
.phone-mockup {
    width: 180px;
    height: 360px;
    background: #111;
    border: 6px solid #222;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
    border-color: #2A2E35;
}

.phone-speaker {
    width: 50px;
    height: 14px;
    background: #000;
    border-radius: 0 0 8px 8px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 14px;
    background: #0A0D14;
}

.phone-header {
    display: flex;
    justify-content: space-between;
    padding: 4px 16px;
    font-size: 8px;
    color: var(--text-muted);
}

.phone-app {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.scanner-view {
    flex-grow: 1;
    position: relative;
    background: #05070A;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.scanner-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.scanner-target {
    width: 110px;
    height: 80px;
    position: relative;
}

.corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid var(--color-accent);
}

.top-left { top: 0; left: 0; border-right: none; border-bottom: none; }
.top-right { top: 0; right: 0; border-left: none; border-bottom: none; }
.bottom-left { bottom: 0; left: 0; border-right: none; border-top: none; }
.bottom-right { bottom: 0; right: 0; border-left: none; border-top: none; }

.laser-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #ff3b30;
    top: 50%;
    box-shadow: 0 0 8px #ff3b30;
    animation: laserScan 2s infinite ease-in-out;
}

@keyframes laserScan {
    0% { top: 10%; }
    50% { top: 90%; }
    100% { top: 10%; }
}

.barcode-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.8;
}

.barcode-lines {
    width: 80px;
    height: 40px;
    background: repeating-linear-gradient(
        90deg,
        #fff,
        #fff 2px,
        #000 2px,
        #000 6px,
        #fff 6px,
        #fff 8px,
        #000 8px,
        #000 10px
    );
}

.barcode-preview.scanned .barcode-lines {
    filter: brightness(1.2) sepia(1) hue-rotate(140deg) saturate(3); /* Turns neon blue/green */
    transition: filter 0.2s ease;
}

.barcode-number {
    font-family: monospace;
    font-size: 8px;
    color: var(--text-muted);
}

.scanner-controls {
    height: 70px;
    background: #111521;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px;
}

.btn-scan {
    background: var(--color-accent);
    color: #0b0f19;
    border: none;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-scan:hover {
    transform: scale(1.05);
}

.scanner-tip {
    font-size: 8px;
    color: var(--text-muted);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    padding: 100px 24px;
    background: rgba(22, 29, 49, 0.3);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-header h2 {
    font-size: 36px;
}

.section-header p {
    font-size: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 210, 255, 0.1);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 20px;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing {
    padding: 100px 24px;
}

.pricing-card-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    transition: var(--transition-smooth);
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pro-card {
    border-color: var(--color-accent);
    box-shadow: 0 12px 32px rgba(0, 210, 255, 0.08);
}

.pro-tag {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--color-accent);
    color: #0b0f19;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 99px;
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-header h3 {
    font-size: 22px;
}

.card-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.price {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    margin-top: 12px;
}

.price span {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.check-icon {
    color: var(--text-muted);
    font-weight: bold;
}

.check-icon.pro {
    color: var(--color-accent);
}

/* ==========================================================================
   Waitlist Signup Form
   ========================================================================== */
.signup-section {
    padding: 100px 24px;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.05) 100%);
}

.signup-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    backdrop-filter: blur(12px);
}

.signup-box h2 {
    font-size: 32px;
    text-align: center;
}

.signup-box p {
    text-align: center;
    margin-bottom: 12px;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input, 
.form-group textarea {
    background: rgba(11, 15, 25, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.1);
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    animation: fadeIn 0.4s ease;
}

.success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(39, 201, 63, 0.1);
    color: #27C93F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.hidden {
    display: none !important;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
    background: #080A10;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .badge {
        align-self: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-specs {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 60px;
    }
    .nav-links, .nav-cta {
        display: none;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .pricing-card-wrapper {
        grid-template-columns: 1fr;
    }
    
    .signup-box {
        padding: 32px 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ==========================================================================
   Supported Formats Grid Styles
   ========================================================================== */
.symbologies-section {
    padding: 100px 24px;
    background: rgba(11, 15, 25, 0.4);
    border-bottom: 1px solid var(--border-color);
}

.symbologies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.symbology-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition-smooth);
}

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

.symbology-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.symbology-card-header h3 {
    font-size: 18px;
    color: var(--text-primary);
}

.badge-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.badge-tag.free {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.badge-tag.pro {
    background: rgba(0, 210, 255, 0.15);
    color: var(--color-accent);
}

.badge-tag.roadmap {
    background: rgba(139, 92, 246, 0.15);
    color: var(--color-purple);
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.barcode-badge {
    background: rgba(11, 15, 25, 0.4);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.barcode-badge.highlight {
    border-color: rgba(0, 210, 255, 0.3);
    color: var(--color-accent);
    background: rgba(0, 210, 255, 0.03);
}

.barcode-badge.planned {
    border-style: dashed;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .symbologies-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Language Selector Styles
   ========================================================================== */
body.en .lang-pl {
    display: none !important;
}
body.pl .lang-en {
    display: none !important;
}

.lang-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 2px;
    border-radius: 6px;
    gap: 2px;
}

.btn-lang {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-lang:hover {
    color: var(--text-primary);
}

.btn-lang.active {
    background: var(--color-accent);
    color: #0b0f19;
}

