/* ============================================================
   AiStore – Premium Corporate CSS
   Design philosophy: Clean, trustworthy, enterprise-grade.
   No neon / sci-fi gimmicks. Think: Bloomberg, Stripe, Linear.
   ============================================================ */

/* ── Design Tokens ── */
:root {
    --navy-900: #0f1e3d;
    --navy-800: #1a2d5a;
    --navy-700: #1e3a6e;
    --navy-600: #234080;
    --blue-500: #2563eb;
    --blue-400: #3b82f6;
    --blue-100: #dbeafe;
    --blue-50:  #eff6ff;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50:  #f8fafc;
    --white:     #ffffff;
    --gold:      #c9a84c;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 16px rgba(15,30,61,.08), 0 1px 4px rgba(15,30,61,.04);
    --shadow-lg: 0 12px 40px rgba(15,30,61,.12), 0 4px 12px rgba(15,30,61,.06);
    --shadow-xl: 0 24px 64px rgba(15,30,61,.16), 0 8px 24px rgba(15,30,61,.08);

    --transition: all 0.22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background-color: var(--white);
    color: var(--slate-700);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

/* ── Navigation ── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    padding: 14px 0;
    transition: var(--transition);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--navy-800);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy-800);
    letter-spacing: -0.3px;
}

.nav-tagline {
    font-size: 13px;
    color: var(--slate-500);
    font-weight: 400;
}

/* ── Hero Section ── */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 50%, #162550 100%);
    padding: 96px 0 100px;
    min-height: 620px;
    display: flex;
    align-items: center;
}

/* Subtle background geometric shapes */
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
    background: var(--white);
}
.shape-1 { width: 600px; height: 600px; top: -200px; right: -100px; }
.shape-2 { width: 300px; height: 300px; bottom: -80px; left: -60px; }
.shape-3 { width: 160px; height: 160px; top: 60px; left: 42%; opacity: 0.03; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.85);
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}
.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.12;
    color: var(--white);
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}
.text-accent { color: #7eb3ff; }

.hero-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,.65);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 36px;
    font-weight: 400;
}

/* Hero stats bar */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 36px;
}
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
    line-height: 1;
}
.stat-label {
    font-size: 12px;
    color: rgba(255,255,255,.5);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,.15);
}

/* ── Buttons ── */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-500);
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: var(--font-sans);
    letter-spacing: -0.1px;
    position: relative;
    overflow: hidden;
}
.btn-primary-custom::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.08);
    opacity: 0;
    transition: opacity .2s;
}
.btn-primary-custom:hover {
    background: #1d4ed8;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(37,99,235,.4);
}
.btn-primary-custom:hover::before { opacity: 1; }
.btn-primary-custom:active { transform: translateY(0); }

.btn-hero {
    font-size: 15px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
}

/* ── Lead Form Card ── */
.form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255,255,255,.2);
    position: relative;
    animation: card-enter .5s cubic-bezier(.4,0,.2,1) both;
}
@keyframes card-enter {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.form-card-header { margin-bottom: 28px; text-align: center; }
.form-card-icon-video {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    margin: 0 auto 16px;
    box-shadow: 0 4px 20px rgba(37,99,235,.2);
}
.form-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy-800);
    letter-spacing: -0.4px;
    margin: 0 0 6px;
}
.form-card-subtitle {
    font-size: 14px;
    color: var(--slate-500);
    margin: 0;
}

/* Custom alerts */
.alert-custom {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    animation: fade-slide-in .3s ease both;
}
@keyframes fade-slide-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.alert-success-custom {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.alert-error-custom {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.alert-icon {
    font-weight: 700;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}
.alert-success-custom .alert-icon { background: #bbf7d0; color: #166534; }
.alert-error-custom   .alert-icon { background: #fecaca; color: #991b1b; }

/* Form inputs */
.form-group-custom { margin-bottom: 20px; }
.form-label-custom {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 7px;
    letter-spacing: -0.1px;
}
.input-wrapper { position: relative; }
.input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: color .2s;
}
.form-input-custom {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: var(--font-sans);
    color: var(--navy-800);
    background: var(--slate-50);
    transition: var(--transition);
    outline: none;
}
.form-input-custom::placeholder { color: var(--slate-400); }
.form-input-custom:focus {
    border-color: var(--blue-500);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-input-custom:focus + .input-icon,
.input-wrapper:focus-within .input-icon { color: var(--blue-500); }

/* Validation messages */
.field-validation-custom {
    display: block;
    font-size: 12.5px;
    color: #dc2626;
    margin-top: 5px;
    font-weight: 500;
    min-height: 18px; /* reserves space so layout doesn't jump */
}
.input-validation-error {
    border-color: #fca5a5 !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,.08) !important;
}
.input-validation-valid {
    border-color: #86efac !important;
    background: #f0fdf4 !important;
}

/* Submit button */
.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 15.5px;
    border-radius: var(--radius-md);
    margin-top: 4px;
    transition: var(--transition), opacity .2s;
}

/* Disabled state – grayed out, not clickable */
.btn-submit:disabled,
.btn-submit[disabled] {
    background: var(--slate-400) !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Button loading spinner */
.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Form disclaimer */
.form-disclaimer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--slate-400);
    text-align: center;
    justify-content: center;
    margin-top: 14px;
    margin-bottom: 0;
}

/* ── Trust Section ── */
.trust-section {
    background: var(--slate-50);
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
    padding: 22px 0;
}
.trust-label {
    text-align: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--slate-400);
    font-weight: 600;
    margin-bottom: 12px;
}
.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.trust-badge {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-500);
}
.trust-divider {
    color: var(--slate-300);
    font-size: 18px;
    line-height: 1;
}

/* ── Features Section ── */
.features-section {
    padding: 96px 0;
    background: var(--white);
}

.section-header { margin-bottom: 56px; }
.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--blue-500);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    color: var(--navy-800);
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin-bottom: 14px;
}
.section-subtitle {
    font-size: 16px;
    color: var(--slate-500);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Feature cards */
.feature-card {
    background: var(--white);
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue-50) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.feature-card:hover {
    border-color: var(--blue-400);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.feature-card:hover::after { opacity: 1; }

.feature-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 18px;
}
.feature-icon-blue   { background: #dbeafe; color: #2563eb; }
.feature-icon-indigo { background: #e0e7ff; color: #4f46e5; }
.feature-icon-slate  { background: #f1f5f9; color: #475569; }
.feature-icon-teal   { background: #ccfbf1; color: #0d9488; }

.feature-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}
.feature-desc {
    font-size: 14px;
    color: var(--slate-500);
    line-height: 1.65;
    margin: 0;
}

/* ── Hero inline steps (inside the dark hero section) ── */
.hero-steps {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-steps-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,.4);
    margin-bottom: 18px;
}

.hero-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.hero-step-num {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #7eb3ff;
    letter-spacing: 0.5px;
}

.hero-step-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 6px;
}

.hero-step-title {
    font-size: 14.5px;
    font-weight: 700;
    color: rgba(255,255,255,.9);
    letter-spacing: -0.1px;
}

.hero-step-desc {
    font-size: 13px;
    color: rgba(255,255,255,.5);
    line-height: 1.55;
}

/* Vertical connector line between steps */
.hero-step-connector {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,.12);
    margin-left: 18px; /* centers under the step number (38px/2 - 1px/2) */
}

/* ── CTA Banner ── */
.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--navy-800);
    border-radius: var(--radius-xl);
    padding: 36px 40px;
    margin-top: 56px;
    flex-wrap: wrap;
}
.cta-content { flex: 1; }
.cta-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
    letter-spacing: -0.4px;
}
.cta-sub {
    font-size: 15px;
    color: rgba(255,255,255,.55);
    margin: 0;
}

/* ── Footer ── */
.site-footer {
    background: var(--navy-900);
    padding: 36px 0;
    border-top: 1px solid rgba(255,255,255,.05);
}
.footer-inner { text-align: center; }
.footer-inner .brand-icon { background: rgba(255,255,255,.1); }
.footer-inner .brand-name { color: rgba(255,255,255,.9); }
.footer-inner .nav-brand { justify-content: center; margin-bottom: 12px; }
.footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,.4);
    margin-bottom: 4px;
}
.footer-sub {
    font-size: 12px;
    color: rgba(255,255,255,.25);
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .hero-section { padding: 64px 0 72px; min-height: auto; }
    .form-card { margin-top: 40px; }
    .cta-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 575px) {
    .hero-stats { gap: 16px; }
    .stat-value  { font-size: 20px; }
    .form-card   { padding: 28px 22px; }
    .hero-title  { letter-spacing: -0.8px; }
    .cta-banner  { padding: 28px 24px; }
    .trust-badges { gap: 8px 14px; }
}