/* 
  File: styles.css
  Project: Kiskveh (Installment Management Platform)
  Purpose: Theme and component styles for the landing page. Color palette matches admin look:
           Deep Blue (sidebar), Teal (icons), Warm Yellow (alerts), Soft Gray backgrounds.
*/

/* ------------------------------------
   Root & Base
-------------------------------------*/
:root{
  --primary:#2B3E70;       /* Deep blue */
  --primary-700:#24355e;
  --primary-50:#EEF3FF;
  --accent:#27C2AE;        /* Teal */
  --warning:#F5C043;       /* Warm yellow */
  --muted:#f6f8fb;
  --text:#0f2038;
  --card-shadow: 0 8px 24px rgba(16,35,73,.08);
}

*{ box-sizing:border-box; }

html, body{
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  /* Seatbelt: prevent horizontal scroll due to decorative overflows */
  overflow-x: hidden;
}

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

.fw-extrabold{ font-weight:800; }

/* ------------------------------------
   Navbar
-------------------------------------*/
.navbar .logo-mark{
  width: 36px; height: 36px;
  background: var(--primary);
  color: #fff;
}
.brand-text{ color: var(--primary-700); letter-spacing: .5px; }
.navbar .btn{ border-radius: 12px; }
.btn-primary{ background: var(--primary); border-color: var(--primary); }
.btn-primary:hover{ background: var(--primary-700); border-color: var(--primary-700); }
.btn-outline-primary{ color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover{ background: var(--primary); color:#fff; }
.btn-primary-soft{ background: var(--primary-50); color: var(--primary-700); border: 1px solid rgba(43,62,112,.15); }

/* ------------------------------------
   Hero
-------------------------------------*/
.hero{
  background: radial-gradient(80% 80% at 100% 0%, rgba(39,194,174,.15) 0%, rgba(39,194,174,0) 60%),
              radial-gradient(90% 70% at 0% 0%, rgba(43,62,112,.12) 0%, rgba(43,62,112,0) 60%);
  position: relative;       /* contain absolute glow */
  overflow: hidden;         /* prevent horizontal scroll */
}

.hero .eyebrow{
  background: rgba(39,194,174,.12);
  color: var(--primary-700);
  border: 1px solid rgba(39,194,174,.25);
}
.hero .screenshot-card img{ display:block; }
.hero .screenshot-card{
  border: 1px solid #e8ecf5;
  background: #fff;
  box-shadow: var(--card-shadow);
}

/* Adjusted to avoid overflow: keep within section width */
.hero-bg-glow{
  position:absolute;
  left: 0;
  right: 0;
  bottom: -30%;
  height: 240px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(39,194,174,.18), rgba(39,194,174,0));
  filter: blur(32px);
  z-index:0; opacity:.8;
}

/* ------------------------------------
   KPI
-------------------------------------*/
.bg-soft{ background: var(--muted); }
.kpi{
  background:#fff; border:1px solid #e9edf5; border-radius:18px;
  padding: 20px; box-shadow: var(--card-shadow);
}
.kpi-value{ font-size: 28px; font-weight: 800; color: var(--primary); }
.kpi-label{ color:#6c7a96; font-weight:600; letter-spacing:.2px; }

/* ------------------------------------
   Sections
-------------------------------------*/
.py-6{ padding-top: 4.5rem; padding-bottom: 4.5rem; }

/* ------------------------------------
   Feature Cards
-------------------------------------*/
.feature-card{
  background:#fff; border:1px solid #e9edf5; border-radius:18px; padding:24px;
  box-shadow: var(--card-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover{ transform: translateY(-4px); box-shadow: 0 14px 40px rgba(17,35,73,.12); }
.feature-card h5{ margin:10px 0 6px; font-weight:700; }
.feature-card p{ color:#6b7b95; }
.feature-icon{
  width:46px;height:46px;border-radius:12px;
  background: linear-gradient(135deg, var(--primary-50), #fff);
  color: var(--primary); display:flex; align-items:center; justify-content:center; font-size:22px;
  border:1px solid #e8ecf5;
}

/* ------------------------------------
   Analytics
-------------------------------------*/
#analytics{
  position: relative;   /* contain absolute swoosh */
  overflow: hidden;     /* prevent horizontal scroll */
}

.device-frame{
  border: 1px solid #e8ecf5; background:#fff;
}

/* Adjusted to avoid overflow: keep within section width */
.bg-swoosh{
  position:absolute;
  left: 0;
  right: 0;
  bottom: -10%;
  height:200px;
  background: radial-gradient(70% 70% at 50% 0%, rgba(43,62,112,.12), rgba(43,62,112,0));
  filter: blur(30px);
}

/* ------------------------------------
   Steps
-------------------------------------*/
.step-card{
  background:#fff; border:1px solid #e9edf5; border-radius:18px; padding:24px;
  box-shadow: var(--card-shadow);
}
.step-number{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:10px; background: var(--accent); color:#08332d;
  font-weight:800;
}

/* ------------------------------------
   Pricing
-------------------------------------*/
.price-card{
  background:#fff;border:1px solid #e9edf5;border-radius:22px;padding:26px;box-shadow:var(--card-shadow);
  position:relative;
}
.price-card .plan-name{ font-size:16px; font-weight:700; color: var(--primary-700); }
.price-card .plan-price{ font-weight:700; font-size:18px; margin:8px 0 14px; }
.price-card .plan-price span{ font-size:38px; }
.price-card .plan-list{ list-style:none; padding:0; margin:0 0 18px 0; color:#64738f; }
.price-card .plan-list li{ margin:8px 0; }
.price-card.featured{ border-color: var(--primary); box-shadow: 0 16px 48px rgba(43,62,112,.16); }
.price-card .ribbon{
  position:absolute; top:14px; right:14px; background: var(--warning); color:#492a00;
  font-size:12px; font-weight:700; padding:6px 10px; border-radius:999px;
}

/* ------------------------------------
   CTA
-------------------------------------*/
.cta{
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
}

/* ------------------------------------
   Footer
-------------------------------------*/
footer .nav-link{ padding: 0 .75rem; }

/* ------------------------------------
   Utilities
-------------------------------------*/
.badge.bg-primary-subtle{
  background: var(--primary-50) !important; 
  border:1px solid rgba(43,62,112,.15);
}
.text-primary{ color: var(--primary)!important; }
.bg-white{ background:#fff!important; }
