
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --dark: #172033;
    --text: #475569;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

/* Navbar */

.navbar {
    width: 100%;
    min-height: 75px;
    padding: 15px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 27px;
    font-weight: 800;
    color: var(--dark);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links .nav-button {
    background: var(--primary);
    color: white;
    padding: 11px 20px;
    border-radius: 8px;
}

.nav-links .nav-button:hover {
    background: var(--primary-dark);
    color: white;
}

/* Buttons */

.btn {
    display: inline-block;
    padding: 13px 23px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Hero */

.hero {
    min-height: 570px;
    padding: 80px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    background: linear-gradient(120deg, #eff6ff, #ffffff);
}

.hero-content {
    max-width: 580px;
}

.tag {
    display: inline-block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(40px, 5vw, 62px);
    line-height: 1.12;
    margin: 18px 0;
    font-weight: 800;
    letter-spacing: -2px;
}

.hero-content p {
    color: var(--text);
    font-size: 16px;
    max-width: 500px;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.qr-card {
    width: 260px;
    padding: 28px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.13);
    text-align: center;
    transform: rotate(3deg);
}

.qr-logo {
    color: var(--primary);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
}

.qr-placeholder {
    width: 160px;
    height: 160px;
    margin: auto;
    display: grid;
    place-items: center;
    background:
        repeating-conic-gradient(#172033 0% 25%, white 0% 50%) 50% / 18px 18px;
    border: 8px solid white;
    outline: 1px solid var(--border);
    color: transparent;
}

.qr-card h3 {
    margin-top: 20px;
}

.qr-card p {
    color: var(--text);
    font-size: 13px;
}

/* Section headings */

.section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.section-heading h2 {
    font-size: 32px;
    margin: 10px 0;
}

.section-heading p {
    color: var(--text);
    font-size: 15px;
}

/* Features and Demo Profiles */

.features,
.demo-section {
    padding: 85px 8%;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.feature-card {
    padding: 30px 25px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    transition: 0.25s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
}

.feature-icon {
    font-size: 35px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text);
    font-size: 14px;
}

.demo-section {
    background: var(--light);
}

#names-list .feature-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

#names-list .feature-card .btn {
    display: inline-block;
    margin-top: 18px;
    padding: 9px 17px;
    color: white;
    background: var(--primary);
    border-radius: 7px;
    font-size: 13px;
}

/* Call to action */

.cta-section {
    padding: 75px 8%;
    text-align: center;
    background: #172033;
    color: white;
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.cta-section p {
    color: #cbd5e1;
    margin-bottom: 25px;
}

/* Footer */

.footer {
    padding: 35px 8%;
    text-align: center;
    background: #0f172a;
    color: white;
}

.footer h3 {
    font-size: 23px;
    margin-bottom: 8px;
}

.footer p {
    color: #cbd5e1;
    font-size: 13px;
}

.footer .copyright {
    margin-top: 15px;
}

/* Forms */

.page-container {
    min-height: 75vh;
    padding: 55px 8%;
    background: var(--light);
}

.page-heading {
    text-align: center;
    margin-bottom: 30px;
}

.page-heading h1 {
    font-size: 35px;
    margin-bottom: 10px;
}

.page-heading p {
    color: var(--text);
}

.form-card {
    max-width: 700px;
    margin: auto;
    padding: 35px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    background: white;
    color: var(--dark);
    font-size: 14px;
}

.form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-card button {
    width: 100%;
}

.form-message {
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

/* QR Result */

.qr-result {
    max-width: 700px;
    margin: 30px auto 0;
    padding: 30px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
}

#qrcode {
    display: flex;
    justify-content: center;
    margin: 20px auto;
}

#qrcode img,
#qrcode canvas {
    max-width: 100%;
    height: auto;
}

#profileLink {
    display: block;
    margin: 15px 0;
    color: var(--primary);
    overflow-wrap: anywhere;
}

/* Profile Page */

.profile-card {
    max-width: 650px;
    margin: 40px auto;
    padding: 35px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    text-align: center;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
    border-radius: 50%;
    object-fit: cover;
    background: #dbeafe;
}

.profile-card h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.profile-card h3 {
    color: var(--primary);
    font-size: 15px;
    margin-bottom: 15px;
}

.profile-card p {
    color: var(--text);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.contact-links a {
    display: inline-block;
    padding: 11px 18px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s;
}

.contact-links a:hover {
    background: var(--primary);
    color: white;
}

/* Responsive */

@media (max-width: 850px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 15px 5%;
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 60px 6%;
    }

    .hero h1 {
        font-size: 40px;
    }

    .features,
    .demo-section,
    .page-container {
        padding: 55px 6%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2,
    .cta-section h2 {
        font-size: 26px;
    }

    .form-card,
    .profile-card {
        padding: 22px;
    }
}
