/* ── Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fbbf24;
    color: #78350f;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.875rem 1.75rem;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(251,191,36,0.4);
    text-decoration: none;
}
.btn-primary:hover {
    background: #fcd34d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251,191,36,0.5);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.875rem 1.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.25);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
    backdrop-blur: 4px;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}
.btn-contact {
    display: inline-flex;
    align-items: center;
    background: #fbbf24;
    color: #78350f;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(251,191,36,0.3);
}
.btn-contact:hover {
    background: #fcd34d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251,191,36,0.4);
}

/* ── Inputs ──────────────────────────────────────────── */
.input-field {
    background: #fff;
    border: 1.5px solid #e9d5ff;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #581c87;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}
.input-field::placeholder { color: #c084fc; }
.input-field:focus {
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147,51,234,0.12);
}

/* ── Nav link underline on scroll ────────────────────── */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    border-radius: 1px;
    transition: width 0.25s;
}
.nav-link:hover::after { width: 100%; }

/* ── Floating cards ──────────────────────────────────── */
.floating-card {
    animation: float 4s ease-in-out infinite;
}
.card-float-1 { animation-delay: 0s; }
.card-float-2 { animation-delay: 1.3s; }
.card-float-3 { animation-delay: 2.6s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ── Decorative shapes ───────────────────────────────── */
.shape-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.shape-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(233,213,255,0.3), transparent 70%);
    top: 10%; right: -100px;
    animation: drift 8s ease-in-out infinite;
}
.shape-2 {
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(251,191,36,0.2), transparent 70%);
    bottom: 20%; left: -50px;
    animation: drift 10s ease-in-out infinite reverse;
}
.shape-3 {
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(192,132,252,0.15), transparent 70%);
    top: 40%; left: 30%;
    animation: drift 6s ease-in-out infinite;
}
.shape-tri {
    position: absolute;
    width: 0; height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(251,191,36,0.08);
    pointer-events: none;
    top: 60%; right: 15%;
    animation: spin 14s linear infinite;
}
.shape-square {
    position: absolute;
    width: 80px; height: 80px;
    background: rgba(147,51,234,0.06);
    border-radius: 16px;
    top: 25%; left: 10%;
    animation: spin 18s linear infinite reverse;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -15px) scale(1.03); }
    66% { transform: translate(-10px, 10px) scale(0.97); }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ── Scroll reveal ───────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Product card hover ──────────────────────────────── */
.product-card { cursor: default; }

/* ── Feature card hover ──────────────────────────────── */
.feature-card { cursor: default; }

/* ── Header scroll state ─────────────────────────────── */
#site-header.scrolled {
    background: rgba(250,245,255,0.92);
    backdrop-blur: 12px;
    box-shadow: 0 1px 0 rgba(126,34,206,0.08), 0 4px 20px rgba(126,34,206,0.06);
}

/* ── Mobile menu transition ──────────────────────────── */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive tweaks ───────────────────────────────── */
@media (max-width: 640px) {
    .floating-card { display: none; }
    .shape-tri, .shape-square { display: none; }
}
