/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-subtle: #eff6ff;
    --text-dark: #0f172a;
    --text-mid: #334155;
    --text-light: #64748b;
    --bg-white: #ffffff;
    --bg-gray: #f8fafc;
    --bg-light: #f1f5f9;
    --border-light: #e2e8f0;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.10);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
}

h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.25rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: var(--primary-subtle);
    padding: 4px 14px;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.highlight {
    color: var(--primary);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    background: none;
    font-family: var(--font);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

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

.btn-secondary:hover {
    background: var(--bg-gray);
    border-color: var(--text-mid);
}

.btn-download {
    background: var(--primary-subtle);
    color: var(--primary);
    border: none;
    font-size: 0.85rem;
    padding: 8px 20px;
}

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

.btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

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

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-dark);
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 600;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--primary-dark);
    color: white !important;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 4px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    padding: 120px 0 80px;
    background: var(--bg-gray);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content .badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: var(--primary-subtle);
    padding: 4px 14px;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.hero-content h1 {
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 480px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.hero-stats label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===== DEVICE MOCKUPS ===== */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.device-mockup {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.device-mockup .screen {
    padding: 16px;
    background: var(--bg-gray);
    min-height: 200px;
}

.laptop {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
}

.laptop .screen {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    height: 100%;
}

.placeholder-grid .grid-item {
    background: var(--border-light);
    border-radius: 8px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    font-size: 1.15rem;
    color: var(--text-light);
}

.floating-phone {
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 140px;
}

.phone {
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

.phone .screen {
    min-height: 180px;
    padding: 12px;
    background: var(--bg-white);
}

.phone-app-icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    height: 100%;
}

.phone-app-icons span {
    background: var(--primary-subtle);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    aspect-ratio: 1;
}

/* ===== SERVICES ===== */
.services {
    padding: 80px 0;
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--bg-gray);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

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

.service-icon {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-mid);
}

.service-features li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

/* ===== PORTFOLIO ===== */
.portfolio {
    padding: 80px 0;
    background: var(--bg-gray);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.portfolio-image {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-bottom: 1px solid var(--border-light);
}

.portfolio-image.placeholder-device {
    background: linear-gradient(135deg, #dbeafe, #93c5fd);
    position: relative;
}

.portfolio-image.placeholder-device::after {
    content: '📱';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.4;
}

.portfolio-info {
    padding: 1.25rem;
}

.portfolio-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    background: var(--primary-subtle);
    padding: 2px 12px;
    border-radius: 100px;
    margin-bottom: 0.5rem;
}

.portfolio-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.portfolio-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== DOWNLOADS ===== */
.downloads {
    padding: 80px 0;
    background: var(--bg-white);
}

.downloads-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.download-card {
    display: flex;
    gap: 1.25rem;
    background: var(--bg-gray);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.download-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.download-icon {
    font-size: 2.4rem;
    flex-shrink: 0;
}

.download-info h3 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.download-meta span {
    background: var(--bg-white);
    padding: 2px 10px;
    border-radius: 100px;
    border: 1px solid var(--border-light);
}

.download-info p {
    font-size: 0.9rem;
    color: var(--text-mid);
    margin-bottom: 0.75rem;
}

.downloads-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===== CONTACT ===== */
.contact {
    padding: 80px 0;
    background: var(--bg-gray);
}

.contact-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 1.25rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font);
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    display: none;
}

.form-status.success {
    display: block;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

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

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

.contact-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.contact-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--primary);
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-response {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.contact-card ul {
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-mid);
}

.contact-card ul li {
    padding: 4px 0;
}

/* ===== FOOTER ===== */
.footer {
    padding: 3rem 0 2rem;
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-brand .logo {
    color: white;
    font-size: 1.2rem;
}

.footer-brand p {
    font-size: 0.9rem;
    max-width: 300px;
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 868px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-visual {
        order: -1;
        min-height: 300px;
    }
    .laptop {
        max-width: 340px;
    }
    .floating-phone {
        width: 100px;
        bottom: -10px;
        right: 10px;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .downloads-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .mobile-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-white);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-light);
        transform: translateY(-120%);
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    .nav-links.open {
        transform: translateY(0);
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .hero-stats {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    .hero-stats div {
        flex-direction: row;
        gap: 0.5rem;
        align-items: baseline;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}