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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background: linear-gradient(135deg, #1d1d1f 0%, #007aff 100%);
    min-height: 100vh;
}

/* Main Content Container */
.main-content {
    background: #fbfbfd;
    margin: 40px auto;
    max-width: 1000px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-radius: 24px 24px 0 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

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

.logo h1 {
    font-size: 20px;
    font-weight: 600;
    color: #007aff; /*#1d1d1f;*/
    
    margin: 0;
}

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

.nav-link {
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #007aff;
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #fbfbfd 0%, #f5f5f7 100%);
}

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

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #1d1d1f 0%, #007aff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: #86868b;
    margin-bottom: 40px;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    background: #007aff;
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
}

.cta-button:hover {
    background: #005ce6;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.4);
}

/* Ad Section */
.ad-section {
    padding: 40px 0;
    background: #f5f5f7;
}

.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Section Styles */
section {
    padding: 80px 0;
}

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

.section-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: #86868b;
    max-width: 600px;
    margin: 0 auto;
}

/* Tutorial Section */
.tutorial {
    background: white;
}

.steps-grid 
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 32px;

    /*grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));*/
}

.step-card {
    background: #fbfbfd;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid #e5e5e7;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007aff, #5ac8fa);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-number {
    width: 48px;
    height: 48px;
    background: #007aff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 20px;
}

.step-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-description {
    color: #86868b;
    line-height: 1.6;
}

/* Demo Section */
.demo {
    background: #f5f5f7;
}

.demo-content {
    display: flex;
    justify-content: center;
}

.demo-container {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 700px;
}

.demo-phone {
    margin-bottom: 32px;
    transition: all 0.6s ease;
}

.demo-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.demo-button {
    padding: 12px 24px;
    border: 2px solid #e5e5e7;
    background: white;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-button.active {
    background: #007aff;
    color: white;
    border-color: #007aff;
}

.demo-button:hover:not(.active) {
    border-color: #007aff;
    color: #007aff;
}

/* Benefits Section */
.benefits {
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.benefit-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: 20px;
    background: #fbfbfd;
    border: 1px solid #e5e5e7;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.benefit-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

.benefit-description {
    color: #86868b;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #1d1d1f;
    color: white;
    padding: 60px 0 40px;
    border-radius: 0 0 24px 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h5 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section h6 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #86868b;
}

.footer-section p {
    color: #86868b;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #86868b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #424245;
}

.footer-bottom p {
    color: #86868b;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        margin: 20px;
        border-radius: 16px;
    }
    
    .header {
        border-radius: 16px 16px 0 0;
    }
    
    .footer {
        border-radius: 0 0 16px 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav {
        gap: 20px;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .demo-button {
        width: 100%;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .main-content {
        margin: 10px;
        border-radius: 12px;
    }
    
    .header {
        border-radius: 12px 12px 0 0;
    }
    
    .footer {
        border-radius: 0 0 12px 12px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .step-card,
    .benefit-card,
    .demo-container {
        padding: 24px;
    }
    
    .hero {
        padding: 40px 0 30px;
    }
    
    section {
        padding: 40px 0;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Liquid Glass HR */
.liquid-glass-hr {
    width: 80%;
    height: 3px;
    position: relative;
    background: linear-gradient(135deg, #1d1d1f 0%, #007aff 100%);
    border-radius: 2px;
    overflow: hidden;
    margin: auto;
}

.liquid-glass-hr::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -100%;
    width: 100%;
    height: 22px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        transparent 100%);
    border-radius: 20px;
    animation: liquidFlow 3s ease-in-out infinite;
    filter: blur(8px);
}

.liquid-glass-hr::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(29, 29, 31, 0.8) 0%, 
        rgba(0, 122, 255, 0.8) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 2px;
}

@keyframes liquidFlow {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}