/*
    ConnecStar
    Main stylesheet
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Nunito", "Inter", "Segoe UI", Arial, sans-serif;
    background: #fff8f3;
    color: #3f3f46;
    line-height: 1.6;
    min-height: 100vh;
}

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

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

button,
input,
textarea,
select {
    font-family: inherit;
}

:root {
    --primary: #8b5cf6;
    --primary-dark: #6d3fe0;
    --secondary: #6bcf8b;
    --accent: #c4b5fd;

    --background: #fff8f3;
    --surface: #ffffff;
    --surface-soft: #f3e8ff;

    --text: #3f3f46;
    --text-soft: #71717a;

    --border: #eadff8;

    --shadow: 0 10px 35px rgba(90, 50, 150, 0.08);
    --shadow-hover: 0 18px 45px rgba(90, 50, 150, 0.14);

    --radius-small: 12px;
    --radius: 20px;
    --radius-large: 32px;

    --container: 1200px;
}

/* Container */

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

/* Header */

header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255, 248, 243, 0.9);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;

    min-height: 80px;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;

    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    color: var(--text-soft);
    font-weight: 700;

    transition: color .2s ease;
}

nav a:hover {
    color: var(--primary);
}

/* Buttons */

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    padding: 14px 32px;

    border-radius: 999px;

    background: var(--primary);
    color: white;

    font-weight: 800;

    border: none;
    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;

    box-shadow:
        0 8px 20px rgba(139, 92, 246, .25);
}

.button:hover {
    background: var(--primary-dark);

    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(139, 92, 246, .35);
}

.button.secondary {
    background: var(--secondary);
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;

    padding: 100px 0 80px;
}

.hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    background: #e9d5ff;

    border-radius: 50%;

    top: -250px;
    right: -200px;

    z-index: -1;
}

.hero::after {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    background: #d9f7e4;

    border-radius: 50%;

    bottom: -150px;
    left: -100px;

    z-index: -1;
}

.hero-content {
    max-width: 850px;

    margin: auto;

    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.8rem);

    line-height: 1.1;

    letter-spacing: -2px;

    margin: 0 0 30px;

    font-weight: 900;
}

.hero h1 strong {
    color: var(--primary);
}

.hero p {
    max-width: 700px;

    margin: 0 auto 40px;

    font-size: 1.25rem;

    color: var(--text-soft);
}

/* Features */

.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;

    max-width: 700px;

    margin: 0 auto 50px;
}

.section-title h2 {
    font-size: 2.5rem;

    margin: 0 0 15px;
}

.section-title p {
    color: var(--text-soft);
}

.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 30px;
}

.card {
    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 35px;

    box-shadow: var(--shadow);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-8px);

    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 60px;
    height: 60px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.8rem;

    background: var(--surface-soft);

    margin-bottom: 20px;
}

.card h3 {
    margin: 0 0 12px;

    font-size: 1.4rem;
}

.card p {
    color: var(--text-soft);
}

/* Stats */

.stats {
    padding: 70px 0;

    background: var(--surface);
}

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(200px, 1fr));

    gap: 30px;

    text-align: center;
}

.stat-number {
    font-size: 3rem;

    font-weight: 900;

    color: var(--primary);
}

.stat-text {
    color: var(--text-soft);
}

/* Call to action */

.cta {
    margin: 80px auto;

    padding: 60px 30px;

    background:
        linear-gradient(
            135deg,
            #f3e8ff,
            #eaf9ef
        );

    border-radius: var(--radius-large);

    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;

    margin: 0 0 20px;
}

.cta p {
    max-width: 650px;

    margin: 0 auto 35px;

    color: var(--text-soft);
}

/* Footer */

footer {
    padding: 40px 0;

    text-align: center;

    color: var(--text-soft);

    border-top: 1px solid var(--border);
}

/* Forms */

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;

    margin-bottom: 8px;

    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;

    padding: 14px 18px;

    border: 1px solid var(--border);

    border-radius: var(--radius-small);

    background: white;

    font-size: 1rem;

    outline: none;

    transition:
        border .2s ease,
        box-shadow .2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(139, 92, 246, .15);
}

/* Mobile */

@media(max-width:800px) {

    .container {
        width: min(100% - 30px, var(--container));
    }

    .header-inner {
        flex-direction: column;

        padding: 20px 0;

        gap: 20px;
    }

    nav {
        gap: 18px;

        flex-wrap: wrap;

        justify-content: center;
    }

    .hero {
        padding: 70px 0;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cta h2 {
        font-size: 2rem;
    }
}

/* Animations */

@keyframes fadeUp {
    from {
        opacity: 0;

        transform: translateY(20px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp .6s ease forwards;
}