/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    font-weight: 300;
    color: #6e6e73;
    margin-left: 2px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #007aff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 122, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #1d1d1f;
    border: 1.5px solid #1d1d1f;
}

.btn-secondary:hover {
    background: #1d1d1f;
    color: #ffffff;
}

.btn-white {
    background: #ffffff;
    color: #1d1d1f;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Hero */
.hero {
    padding: 120px 0 140px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 22px);
    color: #6e6e73;
    max-width: 640px;
    margin: 0 auto 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-alt {
    background: #f5f5f7;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    text-align: center;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: #6e6e73;
    font-size: 19px;
    margin-bottom: 64px;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* 2x2 grid variant — used by Services so 4 cards form a clean 2-by-2 on desktop */
.cards-2col {
    grid-template-columns: repeat(2, 1fr);
    max-width: 880px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .cards-2col {
        grid-template-columns: 1fr;
    }
}

.card {
    background: #ffffff;
    padding: 40px 32px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-icon {
    font-size: 44px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.card p {
    color: #6e6e73;
    font-size: 16px;
    line-height: 1.6;
}

/* About */
.about-text {
    max-width: 720px;
    margin: 0 auto 64px;
    text-align: center;
    font-size: 19px;
    color: #424245;
    line-height: 1.7;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 56px;
    font-weight: 700;
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1.5px;
}

.stat-label {
    color: #6e6e73;
    font-size: 16px;
    font-weight: 500;
}

/* App Cards */
.app-card {
    background: #ffffff;
    padding: 40px 32px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: all 0.3s ease;
}

.app-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    margin: 0 auto 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.app-icon-1 {
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
}

.app-icon-2 {
    background: linear-gradient(135deg, #ff2d55 0%, #ff9500 100%);
}

.app-icon-3 {
    background: linear-gradient(135deg, #34c759 0%, #00c7be 100%);
}

.app-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.app-card p {
    color: #6e6e73;
    font-size: 15px;
}

/* CTA */
.cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, #1d1d1f 0%, #0a1628 100%);
    color: #ffffff;
}

.cta h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.cta p {
    font-size: 20px;
    color: #a1a1a6;
    margin-bottom: 40px;
}

/* Footer */
.footer {
    background: #f5f5f7;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-content {
    text-align: center;
    margin-bottom: 40px;
}

.footer-tagline {
    color: #6e6e73;
    font-size: 14px;
    margin-top: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: #86868b;
    font-size: 13px;
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Tighten navbar padding so logo + CTA fit comfortably on narrow screens */
    .nav-container {
        padding: 12px 16px;
        gap: 12px;
    }

    .hero {
        padding: 80px 0 100px;
    }

    .section {
        padding: 70px 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Full-width buttons only inside the hero/CTA sections — not in the navbar */
    .hero-buttons .btn,
    .cta .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* Keep the navbar CTA compact on mobile */
    .navbar .btn {
        padding: 10px 18px;
        font-size: 14px;
        white-space: nowrap;
    }
}

/* Contact Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: modal-fade 0.2s ease-out;
}

.modal-overlay[hidden] {
    display: none;
}

.modal {
    background: #ffffff;
    color: #1d1d1f;
    border-radius: 20px;
    padding: 40px 32px 32px;
    width: 100%;
    max-width: 440px;
    position: relative;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: modal-pop 0.25s ease-out;
}

.modal h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-sub {
    color: #6e6e73;
    font-size: 15px;
    margin-bottom: 16px;
}

.modal-email {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 17px;
    background: #f5f5f7;
    padding: 14px 16px;
    border-radius: 12px;
    word-break: break-all;
    user-select: all;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-status {
    margin-top: 16px;
    min-height: 20px;
    font-size: 14px;
    color: #1d8a4b;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #6e6e73;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #1d1d1f;
}

@keyframes modal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes modal-pop {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}