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

:root {
    --primary-color: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --secondary-color: #8B5CF6;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    --border-color: #E5E7EB;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    width: 100%;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    overflow-x: hidden;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.step-title,
.feature-title,
.admin-feature-title,
.cta-title {
    font-family: 'Dosis', sans-serif;
    font-weight: 700;
}

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

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

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

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px 0 rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px 0 rgba(99, 102, 241, 0.3);
}

/* Hero Section */
.hero {
    padding: 80px 0 120px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
}

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

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}

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

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-buttons .btn {
    min-width: 180px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        min-width: unset;
    }
}

.btn {
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary,
a.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white !important;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px 0 rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px 0 rgba(99, 102, 241, 0.15);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px 0 rgba(99, 102, 241, 0.3);
    border-color: transparent;
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
    border-radius: 14px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Dashboard Preview */
.dashboard-preview {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.dashboard-header {
    background: var(--bg-secondary);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-dots {
    display: flex;
    gap: 6px;
}

.dashboard-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-light);
}

.dashboard-dots span:nth-child(1) {
    background: var(--error-color);
}

.dashboard-dots span:nth-child(2) {
    background: var(--warning-color);
}

.dashboard-dots span:nth-child(3) {
    background: var(--success-color);
}

.dashboard-title {
    font-weight: 600;
    color: var(--text-primary);
}

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

.metric-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.metric-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.metric-change {
    font-size: 12px;
    font-weight: 600;
}

.metric-change.positive {
    color: var(--success-color);
}

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

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-description {
    font-size: 20px;
    color: var(--text-secondary);
}

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

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

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

.feature-icon {
    margin-bottom: 24px;
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 120px 0;
    background: var(--bg-secondary);
    overflow-x: hidden;
    width: 100%;
}

.workflow {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
    box-sizing: border-box;
}

.workflow-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.step-visual {
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.step-visual > * {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.step-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.step-visual {
    margin-top: 24px;
}

.code-block {
    background: #1F2937;
    color: #F9FAFB;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
}

.code-keyword {
    color: #60A5FA;
}

.code-string {
    color: #34D399;
}

.code-property {
    color: #FBBF24;
}

.ui-preview {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.ui-select {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.ui-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 80px;
    flex-shrink: 0;
}

.ui-dropdown {
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366F1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.tray-preview {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.tray-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--success-color);
}

.tray-icon.active {
    background: var(--success-color);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.tray-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
    animation: pulse 2s infinite;
}

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

.tracking-list {
    list-style: none;
    margin-top: 16px;
}

.tracking-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

.tracking-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
}

.activity-feed {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.activity-time {
    font-size: 12px;
    color: var(--text-light);
    font-family: monospace;
}

.activity-app {
    font-weight: 600;
    color: var(--text-primary);
}

.sync-indicator {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.sync-icon {
    width: 24px;
    height: 24px;
    border: 3px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Admin Tracking Section */
.admin-tracking {
    padding: 120px 0;
    background: var(--bg-primary);
}

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

.admin-feature-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.admin-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.admin-feature-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-feature-icon {
    flex-shrink: 0;
}

.admin-feature-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-feature-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.admin-feature-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.detail-label {
    color: var(--success-color);
    font-weight: 700;
}

/* Dashboard Preview Section */
.dashboard-preview-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.dashboard-mockup {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.mockup-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mockup-tabs::-webkit-scrollbar {
    display: none;
}

.mockup-tab {
    padding: 16px 24px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-tap-highlight-color: rgba(99, 102, 241, 0.1);
    user-select: none;
}

.mockup-tab:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.mockup-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.mockup-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 500px;
}

.mockup-sidebar {
    background: var(--bg-tertiary);
    padding: 24px;
    border-right: 1px solid var(--border-color);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.sidebar-item.active {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-icon {
    font-size: 20px;
}

.mockup-main {
    padding: 32px;
    position: relative;
}

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

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

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

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.mockup-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.date-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.mockup-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.mockup-metric {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.mockup-metric-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.mockup-metric-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.mockup-table {
    overflow-x: auto;
}

.mockup-table table {
    width: 100%;
    border-collapse: collapse;
}

.mockup-table th {
    text-align: left;
    padding: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.mockup-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

.status-badge.online {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-badge.offline {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-secondary);
}

/* CTA Section */
.cta {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 24px;
}

.cta-description {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta .btn-primary {
    background: white;
    color: var(--primary-color) !important;
    box-shadow: 0 6px 20px 0 rgba(255, 255, 255, 0.3);
}

.cta .btn-primary::before {
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
}

.cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px 0 rgba(255, 255, 255, 0.4);
    color: var(--primary-dark) !important;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .admin-features {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

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

    .mockup-sidebar {
        display: none;
    }
    
    .mockup-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .mockup-tab {
        padding: 12px 16px;
        font-size: 14px;
        flex-shrink: 0;
    }
    
    .mockup-main {
        padding: 24px;
    }
    
    .mockup-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .mockup-header h3 {
        font-size: 20px;
    }
    
    .mockup-metrics {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .mockup-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .mockup-table table {
        min-width: 600px;
    }
    
    .hero {
        padding: 60px 0 80px;
    }
    
    .features,
    .how-it-works,
    .admin-tracking,
    .dashboard-preview-section {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        align-items: flex-start;
        max-height: calc(100vh - 73px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        width: 100%;
        -webkit-tap-highlight-color: rgba(99, 102, 241, 0.1);
    }
    
    .nav-links a.btn-primary {
        text-align: center;
        margin-top: 8px;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-description {
        font-size: 18px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .workflow-step {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin: 0 auto;
    }

    .step-content {
        padding: 24px;
        width: 100%;
        margin: 0;
    }
    
    .step-visual {
        margin-top: 16px;
    }
    
    .ui-preview {
        padding: 16px;
    }
    
    .ui-select {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .ui-label {
        min-width: unset;
        width: 100%;
    }
    
    .ui-dropdown {
        width: 100%;
    }

    .hero-stats {
        flex-direction: row;
        gap: 24px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .stat {
        flex: 1;
        min-width: 100px;
    }

    .stat-number {
        font-size: 28px;
    }

    .dashboard-content {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .mockup-metrics {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cta {
        padding: 80px 0;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-description {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 40px 0 60px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 16px;
        line-height: 1.6;
    }

    .section-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .section-description {
        font-size: 16px;
    }

    .features,
    .how-it-works,
    .admin-tracking,
    .dashboard-preview-section {
        padding: 60px 0;
    }

    .feature-card,
    .admin-feature-card {
        padding: 24px;
    }

    .feature-title,
    .admin-feature-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .step-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .hero-stats {
        flex-direction: row;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .stat {
        flex: 1;
        min-width: calc(50% - 10px);
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    .workflow {
        gap: 32px;
    }

    .cta-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .btn {
        padding: 12px 24px;
        font-size: 15px;
        -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
    }

    .btn-large {
        padding: 16px 28px;
        font-size: 16px;
    }
    
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 24px;
        line-height: 1.2;
    }

    .section-title {
        font-size: 24px;
        line-height: 1.2;
    }

    .navbar {
        padding: 12px 0;
    }

    .logo {
        font-size: 18px;
    }

    .logo svg {
        width: 28px;
        height: 28px;
    }
    
    .nav-links {
        top: 60px;
        padding: 20px 16px;
    }
    
    .hero-buttons {
        gap: 12px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat {
        width: 100%;
        min-width: unset;
    }
    
    .feature-card,
    .admin-feature-card {
        padding: 20px;
    }
    
    .step-content {
        padding: 20px;
        width: 100%;
    }
    
    .ui-preview {
        padding: 12px;
        gap: 12px;
    }
    
    .code-block {
        padding: 16px;
        font-size: 12px;
        overflow-x: auto;
    }
    
    .step-title {
        font-size: 22px;
    }
    
    .step-description {
        font-size: 14px;
    }
    
    .dashboard-content {
        padding: 12px;
    }
    
    .mockup-main {
        padding: 20px;
    }
    
    .mockup-tabs {
        overflow-x: auto;
    }
    
    .mockup-tab {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .mockup-header h3 {
        font-size: 18px;
    }
    
    .date-filter {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .mockup-metric-value {
        font-size: 24px;
    }
    
    .mockup-table table {
        font-size: 13px;
        min-width: 500px;
    }
    
    .mockup-table th,
    .mockup-table td {
        padding: 8px;
    }
}

/* iPhone specific fixes */
@media (max-width: 414px) {
    .hero-title {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .hero-description,
    .section-description {
        font-size: 15px;
    }
}

/* iPhone SE and smaller */
@media (max-width: 375px) {
    .hero-title {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

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

.feature-card,
.admin-feature-card,
.workflow-step {
    animation: fadeInUp 0.6s ease-out;
}

