/*
  TrueScan SDK - Stylesheet
  
  Dark theme with blue-to-green gradient accents
  Mobile-first responsive design
  
  Color palette (from logo):
  - Primary: #2563EB (blue)
  - Secondary: #10B981 (emerald green)
  - Accent: #00E5FF (cyan - scan line)
  - Background: #030308 (near-black)
  - Card BG: #0A0A18
  - Text: #f0f4f8 (white)
  - Muted: #8899aa (gray-blue)
*/

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

:root {
    --primary: #0055AA;
    --primary-light: #1a6fcc;
    --secondary: #1E9747;
    --secondary-light: #2ab152;
    --accent: #00E5FF;
    --bg: #030308;
    --bg-light: #0A0A18;
    --bg-card: #0D0D1F;
    --text: #f0f4f8;
    --text-muted: #8899aa;
    --border: rgba(255, 255, 255, 0.08);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    --glow-blue: rgba(0, 85, 170, 0.5);
    --glow-green: rgba(30, 151, 71, 0.4);
    --glow-cyan: rgba(0, 229, 255, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text) !important;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, span, a, button, input, div {
    color: inherit;
}

.hero-title {
    color: #f0f4f8 !important;
}

.section-title, .video-message h2 {
    background: linear-gradient(135deg, #0055AA 0%, #00bbcc 50%, #1E9747 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.hero-subtitle, .section-subtitle, .feature-card p, .video-message p {
    color: #8899aa !important;
}

.feature-card h3, .stat-label {
    color: #f0f4f8 !important;
}

.logo-text, .copyright, .form-note {
    color: #f0f4f8 !important;
}

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

/* Floating Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(3, 3, 8, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header-logo .logo-icon {
    width: 90px;
    height: 90px;
}

.header-logo .logo-name {
    height: 24px;
}

.lang-switcher {
    display: flex;
    gap: 6px;
    background: rgba(13, 13, 31, 0.7);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

.lang-btn.active {
    background: linear-gradient(135deg, #0055AA 0%, #1E9747 100%);
    color: white;
    box-shadow: 0 2px 8px var(--glow-blue);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-logo {
    width: 350px;
}

.hero-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 60% 50% at 25% 50%, rgba(0, 85, 170, 0.25), transparent),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(30, 151, 71, 0.2), transparent),
        radial-gradient(ellipse 40% 30% at 20% 60%, rgba(0, 229, 255, 0.12), transparent);
    pointer-events: none;
}

.hero-content {
    text-align: left;
}

.logo-icon {
    width: 120px;
    height: 120px;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-icon.small {
    width: 48px;
    height: 48px;
}

.logo-name {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo-name.small {
    height: 24px;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #6ba3d6 50%, #5cc88a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 0 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #0055AA 0%, #0088bb 50%, #1E9747 100%);
    color: white;
    box-shadow: 0 4px 20px var(--glow-blue), 0 2px 10px var(--glow-cyan);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--glow-blue), 0 6px 20px var(--glow-cyan), 0 4px 15px var(--glow-green);
    background: linear-gradient(135deg, #1a6fcc 0%, #00b8d4 50%, #2ab152 100%);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid rgba(0, 85, 170, 0.35);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--glow-cyan);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Video Showcase Section */
.video-showcase {
    padding: 80px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.video-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    margin-top: 50px;
    align-items: center;
}

.video-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 9/16;
    max-height: 480px;
    margin: 0 auto;
}

.video-container video,
.video-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-placeholder {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-light) 100%);
    border: 2px dashed rgba(0, 85, 170, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder-content {
    text-align: center;
    color: var(--text-muted);
}

.video-placeholder-content svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.video-placeholder-content span {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.video-placeholder-content p {
    font-size: 14px;
}

/* QR Scanner Frame with Corner Lines */
.qr-scanner {
    position: relative;
}

.scanner-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--accent);
    border-style: solid;
    box-shadow: 0 0 12px var(--glow-cyan);
}

.corner-tl {
    top: 0;
    left: 0;
    border-width: 4px 0 0 4px;
    border-top-left-radius: 8px;
}

.corner-tr {
    top: 0;
    right: 0;
    border-width: 4px 4px 0 0;
    border-top-right-radius: 8px;
}

.corner-bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 4px 4px;
    border-bottom-left-radius: 8px;
}

.corner-br {
    bottom: 0;
    right: 0;
    border-width: 0 4px 4px 0;
    border-bottom-right-radius: 8px;
}

.video-message h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.video-message p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .video-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .video-message {
        text-align: center;
    }
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--bg-light);
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 60px;
    font-size: 18px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 85, 170, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-blue);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0055AA 0%, #0088bb 50%, #1E9747 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    box-shadow: 0 4px 12px var(--glow-blue);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* Example Apps Section */
.apps-section {
    padding: 120px 0;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    text-align: center;
    transition: all 0.3s ease;
}

.app-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 85, 170, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-blue);
}

.app-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 18px;
    overflow: hidden;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.app-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.store-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-badge {
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.store-badge svg {
    height: 56px;
    width: auto;
    display: block;
}

.store-badge:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* Subscribe Section */
.subscribe {
    padding: 120px 0;
    background: var(--bg-light);
}

.subscribe-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.subscribe-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
}

.subscribe-box h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #0055AA 0%, #00bbcc 50%, #1E9747 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subscribe-box > p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.subscribe-form {
    max-width: 500px;
    margin: 0 auto 24px;
}

.form-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-group input {
    flex: 1;
    min-width: 200px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px var(--glow-blue);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 12px;
}

.subscribe-success p {
    font-size: 18px;
    color: var(--secondary);
    padding: 20px;
    border-radius: 12px;
    background: rgba(30, 151, 71, 0.1);
    border: 1px solid rgba(30, 151, 71, 0.3);
}

.alternative-contact {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.alternative-contact p {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.email-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo .logo-icon.small {
    width: 40px;
    height: 40px;
}

.footer-logo .logo-name.small {
    height: 20px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 12px 0;
    }

    .header-logo .logo-icon {
        width: 60px;
        height: 60px;
    }

    .header-logo .logo-name {
        height: 18px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .hero-logo {
        width: 180px;
        margin: 0 auto;
    }

    .hero-content {
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

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

    .hero-stats {
        gap: 30px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .subscribe-box {
        padding: 40px 24px;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group .btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
