/* ═══════════════════════════════════════════════════════════════
   Kamii — Index / Landing page styles
   ═══════════════════════════════════════════════════════════════ */

/* ── Section base ─────────────────────────────────────────────── */
section {
    padding: 80px 20px;
    text-align: center;
}

section > * + * { margin-top: 20px; }

/* ── CTA button ───────────────────────────────────────────────── */
.cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 15px;
    transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s, border-radius 0.15s;
    box-shadow: 0 4px 24px rgba(255,46,99,0.3);
}

.cta:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255,46,99,0.4);
    border-radius: 15px;
}

/* ── Feature grid ─────────────────────────────────────────────── */
.features { padding: 80px 20px; }

.feature-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 28px 24px;
    border-radius: var(--radius);
    width: 240px;
    text-align: left;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,110,199,0.25);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.card p {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.5;
}

/* ── About ────────────────────────────────────────────────────── */
.about { background: var(--surface); }

.about p {
    max-width: 540px;
    margin: 20px auto 0;
    color: var(--text2);
    font-size: 15px;
}

/* ── Functions section ────────────────────────────────────────── */
.functions {
    background: var(--surface);
    padding: 80px 0;
}

.functions h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    background: linear-gradient(120deg, var(--text) 40%, var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 60px;
}

.functions .feature-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.functions .feature-grid > div {
    width: 78%;
    padding: 32px 36px;
    background: var(--surface2);
    position: relative;
    border: 1px solid var(--border);
    transition: border-color 0.2s, background 0.2s;
}

.functions .feature-grid > div:hover {
    background: rgba(255,255,255,0.03);
    border-color: var(--border2);
}

.functions .feature-grid > div:nth-child(odd) {
    align-self: flex-start;
    border-radius: 0 var(--radius) var(--radius) 0;
    border-left: none;
    text-align: left;
}

.functions .feature-grid > div:nth-child(even) {
    align-self: flex-end;
    border-radius: var(--radius) 0 0 var(--radius);
    border-right: none;
    text-align: right;
}

.functions .feature-grid > div::before {
    content: '';
    position: absolute;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: linear-gradient(var(--accent), var(--accent2));
    border-radius: 2px;
}

.functions .feature-grid > div:nth-child(odd)::before  { left: 0; }
.functions .feature-grid > div:nth-child(even)::before { right: 0; }

.functions h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.functions p {
    color: var(--text2);
    font-size: 14px;
    line-height: 1.65;
    margin-top: 0;
    font-weight: 300;
}

.functions p i { color: var(--text); font-style: normal; font-weight: 500; }

@media (max-width: 900px) {
    .functions .feature-grid > div {
        width: 94%;
        padding: 24px 28px;
        text-align: left !important;
        border-radius: var(--radius) !important;
        border: 1px solid var(--border) !important;
    }

    .functions .feature-grid > div::before { display: none; }
}

/* ── Invite ───────────────────────────────────────────────────── */
#invite .stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
