/**
 * Landing Page - style.css
 * Mobile First dizainas su puikiu vaizdu telefone
 */

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

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #10b981;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --border: #e2e8f0;
    --error: #ef4444;
    --success: #10b981;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION - MOBILE FIRST
   ============================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}

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

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Paslėpti paprastus linkus mobiliuose */
.nav-links a:not(.btn-demo):not(.btn-login) {
    display: none;
}

.btn-demo {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 0.8rem;
    white-space: nowrap;
}

.btn-demo:hover,
.btn-demo:active {
    background: var(--primary);
    color: white;
}

.btn-login {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 0.8rem;
    white-space: nowrap;
}

.btn-login:hover,
.btn-login:active {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ============================================
   HERO SECTION - MOBILE FIRST
   ============================================ */
.hero {
    margin-top: 60px;
    padding: 2rem 0 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
    opacity: 0.3;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.hero-visual {
    margin-bottom: 2rem;
}

.mockup {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    max-width: 400px;
    margin: 0 auto;
}

.mockup-header {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f57;
}

.dot:nth-child(2) { background: #ffbd2e; }
.dot:nth-child(3) { background: #28ca42; }

.mockup-content {
    color: var(--dark);
}

.mockup-content h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.invoice-demo {
    background: var(--light);
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
}

.invoice-row:last-child {
    border: none;
    font-size: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 2px solid var(--border);
}

.hero-content h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    min-width: 80px;
}

.stat-label {
    opacity: 0.95;
    font-size: 0.9rem;
    flex: 1;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 0.9rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-align: center;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover,
.btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover,
.btn-secondary:active {
    background: white;
    color: var(--primary);
}

/* ============================================
   SECTIONS - MOBILE FIRST
   ============================================ */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--dark);
    line-height: 1.3;
}

/* ============================================
   PROBLEM SOLUTION - MOBILE
   ============================================ */
.problem-solution {
    padding: 3rem 0;
    background: var(--light);
}

.comparison {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comparison-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.comparison-card.bad {
    border: 2px solid #ef4444;
}

.comparison-card.good {
    border: 2px solid var(--secondary);
}

.comparison-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.bad .icon {
    background: #fee2e2;
}

.good .icon {
    background: #d1fae5;
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    padding: 0.6rem 0 0.6rem 1.8rem;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.5;
}

.comparison-list li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: bold;
    font-size: 1.1rem;
}

.good .comparison-list li::before {
    content: '✓';
    color: var(--secondary);
}

/* ============================================
   FEATURES - MOBILE
   ============================================ */
.features {
    padding: 3rem 0;
    background: white;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s;
    background: white;
}

.feature-card:active {
    border-color: var(--primary);
    transform: scale(0.98);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.feature-title {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: var(--dark);
    font-weight: 700;
}

.feature-description {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* ============================================
   ABOUT SECTION - MOBILE
   ============================================ */
.about-section {
    padding: 3rem 0;
    background: var(--light);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-block {
    margin-bottom: 2rem;
}

.about-block h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.about-block p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--dark);
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    padding: 0.6rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.about-list.simple li {
    padding-left: 1.3rem;
    position: relative;
}

.about-list.simple li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.3rem;
}

.about-block.mission {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    border-radius: 12px;
    color: white;
}

.about-block.mission h3 {
    color: white;
}

.about-block.mission p {
    color: white;
    font-size: 1rem;
}

.about-block.seo-text {
    background: white;
    padding: 1.2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.about-block.seo-text p {
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
}

/* ============================================
   CTA SECTION - MOBILE
   ============================================ */
.cta-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.cta-section p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

/* ============================================
   FOOTER - MOBILE
   ============================================ */
footer {
    background: var(--dark);
    color: white;
    padding: 2rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

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

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
    transition: color 0.3s;
    font-size: 0.9rem;
}

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

.footer-section p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

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

/* ============================================
   MODAL - MOBILE
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 2rem auto;
    padding: 1.5rem;
    border-radius: 12px;
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: var(--gray);
    float: right;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--dark);
}

.modal-content h2 {
    margin-bottom: 0.3rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.modal-subtitle {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.modal-footer {
    text-align: center;
    margin-top: 1rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.modal-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* ============================================
   FORM - MOBILE
   ============================================ */
.form-group {
    margin-bottom: 1.2rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.7rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    color: var(--gray);
    font-size: 0.8rem;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.85rem;
    line-height: 1.4;
}

.form-group.checkbox input[type="checkbox"] {
    width: auto;
    cursor: pointer;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.form-group.checkbox a {
    color: var(--primary);
    text-decoration: none;
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 0.9rem;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    padding: 0.9rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
    font-size: 0.9rem;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    display: block;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    display: block;
}

/* ============================================
   TABLET AND DESKTOP (768px+)
   ============================================ */
@media (min-width: 768px) {
    /* Navigation */
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-container {
        padding: 1rem 2rem;
    }
    
    .nav-links {
        gap: 2rem;
    }
    
    /* Rodyti visus linkus desktop */
    .nav-links a:not(.btn-demo):not(.btn-login) {
        display: block;
        text-decoration: none;
        color: var(--dark);
        font-weight: 500;
        transition: color 0.3s;
    }
    
    .nav-links a:not(.btn-demo):not(.btn-login):hover {
        color: var(--primary);
    }
    
    .btn-demo {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-login {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
    }
    
    /* Hero Section */
    .hero {
        margin-top: 80px;
        min-height: 90vh;
        display: flex;
        align-items: center;
    }
    
    .hero-container {
        padding: 4rem 2rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
    
    .hero-visual {
        order: 2;
        animation: float 3s ease-in-out infinite;
        margin-bottom: 0;
    }
    
    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-20px); }
    }
    
    .mockup {
        padding: 2rem;
        max-width: none;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 3rem;
        margin: 2rem 0;
    }
    
    .stat {
        text-align: center;
        flex-direction: column;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        flex-direction: row;
        width: auto;
    }
    
    .btn-primary,
    .btn-secondary {
        width: auto;
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
    
    /* Sections */
    .section-container {
        padding: 0 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    
    /* Problem Solution */
    .problem-solution {
        padding: 6rem 2rem;
    }
    
    .comparison {
        flex-direction: row;
        gap: 2rem;
    }
    
    .comparison-card {
        padding: 2rem;
        flex: 1;
    }
    
    /* Features */
    .features {
        padding: 6rem 2rem;
    }
    
    .features-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .feature-card {
        padding: 2rem;
        cursor: pointer;
    }
    
    .feature-card:hover {
        border-color: var(--primary);
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
    }
    
    .feature-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .feature-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .feature-description {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    /* About Section */
    .about-section {
        padding: 6rem 2rem;
    }
    
    .about-block {
        margin-bottom: 3rem;
    }
    
    .about-block h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .about-block p {
        font-size: 1.1rem;
        line-height: 1.8;
    }
    
    .about-list li {
        font-size: 1.05rem;
        padding: 0.75rem 0;
        line-height: 1.7;
    }
    
    .about-block.mission {
        padding: 2rem;
    }
    
    .about-block.mission p {
        font-size: 1.2rem;
    }
    
    .about-block.seo-text {
        padding: 1.5rem;
    }
    
    .about-block.seo-text p {
        font-size: 1rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 6rem 2rem;
    }
    
    .cta-section h2 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-section p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    /* Footer */
    footer {
        padding: 3rem 2rem 1rem;
    }
    
    .footer-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .footer-section {
        text-align: left;
    }
    
    /* Modal */
    .modal-content {
        margin: 3% auto;
        padding: 2.5rem;
        max-width: 600px;
    }
    
    .modal-content h2 {
        font-size: 1.8rem;
    }
    
    .modal-subtitle {
        font-size: 1rem;
    }
    
    /* Form */
    .form-row {
        flex-direction: row;
        gap: 1rem;
    }
    
    .form-row .form-group {
        flex: 1;
    }
    
    .form-group label {
        font-size: 1rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"] {
        padding: 0.75rem;
    }
    
    .btn-submit {
        padding: 1rem;
        font-size: 1.1rem;
    }
}