/* CSS Design System for TransTech Hub PM Toolkit Landing Page */

:root {
    --primary-color: #0066cc;
    --primary-hover: #0052a3;
    --primary-glow: rgba(0, 102, 204, 0.3);
    
    --secondary-color: #0f172a;
    --secondary-hover: #1e293b;
    
    --success-color: #10b981;
    --success-hover: #059669;
    --success-glow: rgba(16, 185, 129, 0.3);
    
    --text-main: #334155;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    --bg-main: #fafbfe;
    --bg-card: #ffffff;
    --bg-modal: #ffffff;
    
    --border-color: #e2e8f0;
    --border-focus: #93c5fd;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(250, 251, 254, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    padding: 16px 0;
    transition: all 0.3s ease;
}

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

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

.logo-icon {
    font-size: 24px;
    color: var(--primary-color);
    line-height: 1;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
}

.brand-sub {
    font-size: 12px;
    font-weight: normal;
    color: var(--text-muted);
    margin-left: 4px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.btn-success {
    background-color: var(--success-color);
    color: var(--text-light);
    box-shadow: 0 4px 14px var(--success-glow);
}

.btn-success:hover {
    background-color: var(--success-hover);
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: var(--radius-sm);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 0 20px;
    background: radial-gradient(circle at 80% 20%, #e0f2fe 0%, var(--bg-main) 50%);
}

.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 102, 204, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.sticky-mockup {
    margin-top: 10px;
    margin-left: 20px;
}

.hero-content-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-title {
    font-size: 38px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    white-space: nowrap;
}

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

.hero-subtitle {
    margin-bottom: 24px;
}

.hero-lead {
    color: var(--secondary-color);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

.hero-desc-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.hero-subtitle strong {
    color: var(--secondary-color);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    height: 260px;
    width: 100%;
}

.hero-image-wrapper:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Smart Automation Hub Section */
.hub-section {
    padding: 100px 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.hub-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.hub-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(0, 102, 204, 0.08);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hub-title {
    font-size: 32px;
    line-height: 1.25;
    margin-bottom: 16px;
    white-space: nowrap;
}

.hub-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hub-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hub-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.hub-list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--success-color);
    color: var(--text-light);
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.hub-list-text strong {
    display: block;
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

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

/* Mockup CSS */
.hub-mockup {
    background-color: var(--secondary-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--secondary-hover);
    overflow: hidden;
}

.mockup-header {
    background-color: var(--secondary-hover);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.mockup-header .dot.red { background-color: #ef4444; }
.mockup-header .dot.yellow { background-color: #f59e0b; }
.mockup-header .dot.green { background-color: #10b981; }

.mockup-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-heading);
}

.mockup-body {
    padding: 16px;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    color: #cbd5e1;
}

.mockup-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
}

.mockup-row.header-row {
    font-weight: bold;
    color: #94a3b8;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.mockup-row:last-child {
    border-bottom: none;
}

.mockup-row.warning-row {
    background-color: rgba(245, 158, 11, 0.05);
}

.mockup-row.error-row {
    background-color: rgba(239, 68, 68, 0.05);
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

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

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

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

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    font-size: 32px;
    margin-bottom: 24px;
}

.icon-blue { background-color: rgba(0, 102, 204, 0.08); }
.icon-teal { background-color: rgba(13, 148, 136, 0.08); }
.icon-purple { background-color: rgba(139, 92, 246, 0.08); }
.icon-orange { background-color: rgba(249, 115, 22, 0.08); }
.icon-pink { background-color: rgba(236, 72, 153, 0.08); }
.icon-green { background-color: rgba(16, 185, 129, 0.08); }

.feature-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 15px;
    color: var(--text-muted);
}

/* Installation Section */
.installation-section {
    padding: 60px 0;
    background-color: var(--bg-main);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.step-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px 16px;
    border-radius: var(--radius-md);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 20px;
}

.step-heading {
    font-size: 18px;
    margin-bottom: 10px;
}

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

/* Download Section */
.download-section {
    padding: 60px 0 80px;
    background-color: #ffffff;
}

.download-box {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    color: var(--text-light);
    text-align: center;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.glass-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(0, 102, 204, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.download-content {
    position: relative;
    z-index: 2;
}

.download-title {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 16px;
}

.download-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.price-tag {
    margin-bottom: 40px;
}

.price-val {
    display: block;
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
}

.price-period {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    display: block;
}

.secure-checkout-hint {
    margin-top: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.success-message {
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success-color);
    padding: 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    color: #ffffff;
    font-weight: 600;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--success-color);
    border-radius: 50%;
    font-size: 14px;
}

/* Modal styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-modal);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px 32px;
    z-index: 2;
    overflow: hidden;
}

.btn-close-modal {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.btn-close-modal:hover {
    color: var(--secondary-color);
}

.modal-header {
    margin-bottom: 28px;
}

.modal-header h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

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

.payment-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
}

.payment-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.payment-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

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

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .half {
    flex: 1;
}

/* UPI QR Simulation */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    background-color: var(--bg-main);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
}

.mock-qr {
    position: relative;
    width: 160px;
    height: 160px;
    background-color: #ffffff;
    border: 8px solid #ffffff;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.qr-pattern {
    width: 100%;
    height: 100%;
    /* Standard CSS pattern representing a QR code visually */
    background-image: 
        radial-gradient(circle, #000 20%, transparent 20%), 
        radial-gradient(circle, #000 20%, transparent 20%);
    background-size: 16px 16px;
    background-position: 0 0, 8px 8px;
    opacity: 0.85;
}

/* Corner square patterns of QR */
.mock-qr::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 32px;
    height: 32px;
    border: 8px solid #000;
    background-color: #fff;
}
.mock-qr::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    border: 8px solid #000;
    background-color: #fff;
}

/* Bottom corner square */
.qr-logo {
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 32px;
    height: 32px;
    border: 8px solid #000;
    background-color: #fff;
    font-size: 0; /* hides text, behaves as third alignment pattern */
}

.qr-desc {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    max-width: 280px;
}

/* Payment Loader Overlay */
.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.modal-footer {
    margin-top: 24px;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.4);
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid var(--secondary-hover);
}

/* Animations */
.pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

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

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .hero-content-left {
        align-items: center;
        text-align: center;
    }
    .hero-title { 
        font-size: 32px; 
        white-space: normal;
    }
    .hero-actions { 
        flex-direction: column; 
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .logo-text { font-size: 18px; }
    .sticky-mockup {
        margin-top: 32px;
    }
    .steps-container {
        grid-template-columns: 1fr;
    }
    .features-grid { grid-template-columns: 1fr; }
    .modal-container { padding: 32px 20px; }
}
