
:root {
    --primary-color: #0f172a;
    --primary-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --glow-blue: 0 0 25px rgba(59, 130, 246, 0.4);
    --hero-form-gradient: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.96) 100%);
    --soft-white: rgba(255,255,255,0.95);
}

* { box-sizing: border-box; }

body {
    background: var(--light-bg);
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ---------------- HERO SECTION ---------------- */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--primary-gradient);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 25s linear infinite;
}

.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
}

.shape {
    position: absolute;
    border-radius: 50%;
    animation: float 18s infinite ease-in-out;
}

.shape.primary {
    background: rgba(59,130,246,0.12);
    box-shadow: var(--glow-blue);
}

.shape.secondary {
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(255,255,255,0.12);
}

.shape:nth-child(1) { width: 100px; height: 100px; left: 10%; animation-delay: 0s;  animation-duration: 20s; }
.shape:nth-child(2) { width: 140px; height: 140px; left: 20%; animation-delay: -4s; animation-duration: 24s; }
.shape:nth-child(3) { width: 80px;  height: 80px;  left: 70%; animation-delay: -9s; animation-duration: 18s; }
.shape:nth-child(4) { width: 110px; height: 110px; left: 85%; animation-delay: -2s; animation-duration: 22s; }
.shape:nth-child(5) { width: 70px;  height: 70px;  left: 5%;  animation-delay: -7s; animation-duration: 16s; }
.shape:nth-child(6) { width: 90px;  height: 90px;  left: 60%; animation-delay: -11s;animation-duration: 21s; }

@keyframes float {
    0%, 100% { transform: translateY(100vh) scale(0) rotate(0deg); opacity: 0; }
    10%      { opacity: 1; }
    50%      { transform: translateY(50vh) scale(1.2) rotate(180deg); }
    90%      { opacity: 1; }
}

@keyframes gridMove {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    background: linear-gradient(45deg,#ffffff,#e2e8f0,#f1f5f9);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 1.2s ease-out, gradientShift 3s ease infinite;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 32px rgba(0,0,0,0.35);
    letter-spacing: -0.03em;
}

.hero-content .subtitle {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: rgba(248,250,252,0.97);
    font-weight: 400;
    animation: slideInUp 1.2s ease-out 0.2s both;
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-image { animation: bounceIn 1.5s ease-out 0.5s both; }

/* HERO FORM – SOFT COLOR COMBO */

.form-mockup {
    width: 100%;
    max-width: 480px;
    height: clamp(380px, 45vw, 420px);
    background: var(--soft-white);
    border-radius: 24px;
    position: relative;
    box-shadow: 0 35px 75px rgba(15,23,42,0.18);
    overflow: hidden;
    animation: floatDevice 7s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,0.45);
}

.form-demo {
    position: absolute;
    top: 55px;
    left: 18px;
    right: 18px;
    height: calc(100% - 75px);
    background: var(--hero-form-gradient);
    border-radius: 18px;
    padding: 28px;
    color: var(--text-dark);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}

.form-demo h3 {
    margin: 0 0 22px 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.form-field {
    background: rgba(248,250,252,0.9);
    border: 2px solid rgba(148,163,184,0.5);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    animation: inputPulse 2.5s ease-in-out infinite;
}

.form-field i { color: #3b82f6; }

.form-field:hover {
    border-color: rgba(59,130,246,0.6);
    background: #ffffff;
}

.form-field:nth-child(2) { animation-delay: 0.6s; }
.form-field:nth-child(3) { animation-delay: 1.2s; }

.btn-demo {
    background: var(--secondary-gradient);
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 28px;
    font-weight: 600;
    width: 100%;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(59,130,246,0.45);
    transition: all 0.25s ease;
}

.btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(59,130,246,0.6);
}

.hero-cta-btn {
    background: var(--soft-white);
    color: #1e40af;
    border-radius: 55px;
    padding: 18px 55px;
    border: none;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 20px 45px rgba(255,255,255,0.35);
}

/* ---------------- FEATURES GRID ---------------- */

.features-grid {
    padding: 140px 0;
    background: var(--light-bg);
}

.feature-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 45px 35px;
    text-align: center;
    transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,0.05);
}

.feature-card:hover {
    transform: translateY(-28px) scale(1.025);
    box-shadow: 0 45px 90px rgba(15,23,42,0.18);
    border-color: rgba(59,130,246,0.25);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,transparent,rgba(255,255,255,0.55),transparent);
    transition: left 0.7s;
}

.feature-card:hover::before { left: 100%; }

.feature-icon {
    width: 95px;
    height: 95px;
    background: var(--secondary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    font-size: 2.3rem;
    color: #ffffff;
    transition: all 0.45s cubic-bezier(0.68,-0.55,0.265,1.55);
}

.feature-card:hover .feature-icon {
    transform: scale(1.18) rotate(360deg);
    box-shadow: var(--glow-blue);
    background: var(--accent-gradient);
}

.feature-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.98rem;
}

/* ---------------- FOOTER CTA (HERO STYLE, SOFT) ---------------- */

.footer-cta {
    background: radial-gradient(circle at top, #1f2937 0%, #020617 55%, #020617 100%);
    color: #e5e7eb;
    padding: 140px 0 90px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.footer-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,transparent,rgba(255,255,255,0.6),transparent);
    opacity: 0.7;
}

.cta-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-particles .particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(59,130,246,0.7);
    filter: blur(0.5px);
    opacity: 0.8;
}

.cta-particles .particle:nth-child(1) { top: 10%; left: 20%; }
.cta-particles .particle:nth-child(2) { top: 24%; left: 72%; }
.cta-particles .particle:nth-child(3) { top: 46%; left: 55%; }
.cta-particles .particle:nth-child(4) { top: 62%; left: 30%; }
.cta-particles .particle:nth-child(5) { top: 78%; left: 82%; }

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: clamp(2.8rem,7vw,4.2rem);
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 35px rgba(255,255,255,0.6);
    margin-bottom: 1.6rem;
    letter-spacing: -0.03em;
}

.cta-content .lead {
    font-size: clamp(1.2rem,2.4vw,1.5rem);
    color: #cbd5f5;
    max-width: 520px;
    margin: 0 auto 3.2rem;
    font-weight: 400;
}

.cta-mega-btn {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    background: #f9fafb;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 20px 64px;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(148,163,184,0.5);
    box-shadow: 0 28px 70px rgba(15,23,42,0.7);
    text-decoration: none;
    transition: all 0.35s ease;
}

.cta-mega-btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 90px rgba(15,23,42,0.9);
    background: #ffffff;
}

.cta-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #e5edff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    font-size: 1.1rem;
}

.stats-row {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 70px;
    margin-top: 65px;
    flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-number {
    font-size: clamp(2.2rem,4.2vw,3rem);
    font-weight: 800;
    color: #ffffff;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #a5b4fc;
    margin-top: 4px;
}

/* ---------------- ANIMATIONS ---------------- */

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(60px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
    0%,100% { background-position: 0% 50%; }
    50%     { background-position: 100% 50%; }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100%{ opacity: 1; transform: scale(1); }
}

@keyframes floatDevice {
    0%,100% { transform: translateY(0px) rotateX(0deg); }
    50%     { transform: translateY(-18px) rotateX(2deg); }
}

@keyframes inputPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(148,163,184,0.4); }
    50%     { box-shadow: 0 0 0 10px rgba(148,163,184,0); }
}

@keyframes btnPulse {
    0%,100% { transform: scale(1); }
    50%     { transform: scale(1.04); }
}

@media (max-width: 768px) {
    .features-grid { padding: 100px 0; }
    .stats-row { gap: 32px; }
    .cta-mega-btn { padding: 18px 40px; }
} 