/* =========================================================
   Modol Connect — portfolio website theme
   ========================================================= */

:root {
  --brand: #4f46e5;
  --brand-2: #9333ea;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e6e8f0;
  --bg-soft: #f7f8fc;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, .06);
  --shadow: 0 18px 45px rgba(15, 23, 42, .10);
  --grad: linear-gradient(135deg, var(--brand), var(--brand-2));
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;   /* the hero glow blobs must never create a scrollbar */
}

a { text-decoration: none; }
p { color: #475569; line-height: 1.75; }

.container { width: min(1140px, 92%); margin-inline: auto; }

/* ------------------------------------------------------------- utilities */
.text-grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand);
  background: rgba(79, 70, 229, .09); padding: 7px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section-title { font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.02em; margin-bottom: 14px; }
.section-sub { color: var(--muted); max-width: 640px; margin-inline: auto; }

/* ---------------------------------------------------------------- buttons */
.btn { border-radius: 12px; font-weight: 600; padding: .78rem 1.5rem; border: 0; transition: .2s; }
.btn-brand { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(79, 70, 229, .32); }
.btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(79, 70, 229, .42); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-store {
  display: inline-flex; align-items: center; gap: 12px; background: #0f172a; color: #fff;
  padding: 12px 22px; border-radius: 14px; transition: .2s;
}
.btn-store:hover { color: #fff; transform: translateY(-2px); background: #1e293b; }
.btn-store small { display: block; font-size: .65rem; opacity: .75; line-height: 1; }
.btn-store strong { display: block; font-size: 1.02rem; line-height: 1.25; }

/* ----------------------------------------------------------------- navbar */
.navbar { background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.navbar .navbar-brand { font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1rem; margin-right: 10px;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.navbar .nav-link { font-weight: 500; color: #475569; padding: .5rem .9rem !important; border-radius: 9px; }
.navbar .nav-link:hover { color: var(--brand); background: rgba(79, 70, 229, .07); }
.navbar .nav-link.active { color: var(--brand); font-weight: 600; }

/* ------------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; }
.hero::before {
  content: ''; position: absolute; inset: -30% 45% 30% -20%;
  background: radial-gradient(circle, rgba(79, 70, 229, .16), transparent 62%); z-index: -1;
}
.hero::after {
  content: ''; position: absolute; right: -12%; top: -18%; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(147, 51, 234, .14), transparent 62%); z-index: -1;
}
.hero h1 { font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -.03em; }
.hero .lead { font-size: 1.08rem; color: #475569; max-width: 540px; }

.stat-row { display: flex; gap: 34px; flex-wrap: wrap; }
.stat-row strong { display: block; font-size: 1.5rem; font-weight: 800; }
.stat-row span { font-size: .84rem; color: var(--muted); }

/* --------------------------------------------------------- phone mockups */
.phone {
  --pw: 210px;
  width: var(--pw); aspect-ratio: 9 / 18.5; border-radius: 30px; background: #0f172a;
  padding: 8px; box-shadow: var(--shadow); position: relative; margin-inline: auto; flex: 0 0 auto;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 23px; overflow: hidden; position: relative;
  background: var(--grad); display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #fff; text-align: center; padding: 16px;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone::before {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 16px; background: #0f172a; border-radius: 0 0 11px 11px; z-index: 3;
}
.phone-sm { --pw: 168px; }
.phone-tilt { transform: rotate(-4deg); }

/* hero pair: two phones side by side, second one raised */
.phone-stage { display: flex; align-items: center; justify-content: center; gap: 18px; }
.phone-stage .phone-back { --pw: 186px; margin-top: 46px; opacity: .96; transform: rotate(-5deg); }
.phone-stage .phone-front { --pw: 224px; z-index: 2; }

.placeholder-screen { font-size: .8rem; opacity: .96; }
.placeholder-screen .ph-icon { font-size: 2rem; margin-bottom: 8px; display: block; line-height: 1; }
.placeholder-screen .ph-title { font-weight: 700; font-size: .95rem; }
.placeholder-screen .ph-hint { font-size: .66rem; opacity: .78; margin-top: 7px; line-height: 1.4; }

/* ------------------------------------------------------------------ cards */
.card-soft {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; height: 100%; transition: .25s; box-shadow: var(--shadow-sm);
}
.card-soft:hover { transform: translateY(-5px); border-color: rgba(79, 70, 229, .35); box-shadow: var(--shadow); }
.feature-icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(79, 70, 229, .1); color: var(--brand); font-size: 1.3rem; margin-bottom: 16px;
}
.card-soft h3 { font-size: 1.03rem; font-weight: 700; margin-bottom: 8px; }
.card-soft p { font-size: .92rem; margin: 0; }

/* ------------------------------------------------------------------ steps */
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-no {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px; background: var(--grad);
  color: #fff; display: grid; place-items: center; font-weight: 800; box-shadow: 0 8px 18px rgba(79, 70, 229, .3);
}
.step h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 5px; }
.step p { font-size: .92rem; margin: 0; }

/* ------------------------------------------------------------ screenshots */
.shot-caption { text-align: center; margin-top: 14px; }
.shot-caption strong { display: block; font-size: .96rem; }
.shot-caption span { font-size: .8rem; color: var(--muted); }
.shot-scroll { display: flex; gap: 26px; overflow-x: auto; padding: 10px 4px 26px; scroll-snap-type: x mandatory; max-width: 100%; }
.shot-scroll > div { scroll-snap-align: center; flex: 0 0 auto; }
.shot-scroll::-webkit-scrollbar { height: 8px; }
.shot-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }

/* -------------------------------------------------------------- download */
.download-card {
  background: var(--grad); color: #fff; border-radius: 26px; padding: 46px;
  box-shadow: 0 26px 60px rgba(79, 70, 229, .34);
}
.download-card p { color: rgba(255, 255, 255, .9); }
.qr-box { background: #fff; border-radius: 18px; padding: 14px; display: inline-block; line-height: 0; }
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.spec-list li:last-child { border-bottom: 0; }
.spec-list span:first-child { color: var(--muted); }
.spec-list span:last-child { font-weight: 600; }

/* ------------------------------------------------------------------- misc */
.accordion-button { font-weight: 600; }
.accordion-button:not(.collapsed) { color: var(--brand); background: rgba(79, 70, 229, .07); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--line); }
.accordion-item { border: 1px solid var(--line); border-radius: 14px !important; margin-bottom: 12px; overflow: hidden; }

.page-head { padding: 68px 0 44px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-head h1 { font-weight: 800; letter-spacing: -.02em; }
.breadcrumb-item a { color: var(--brand); }

.legal h2 { font-size: 1.22rem; font-weight: 700; margin: 32px 0 10px; }
.legal ul { color: #475569; line-height: 1.85; }
.legal .toc a { color: #475569; display: block; padding: 6px 0; font-size: .93rem; }
.legal .toc a:hover { color: var(--brand); }

.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-item i { color: var(--brand); font-size: 1.15rem; margin-top: 3px; }
.form-control, .form-select { border-radius: 11px; border: 1.5px solid var(--line); padding: .72rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, .1); }
.form-label { font-weight: 600; font-size: .89rem; }

footer { background: #0b1020; color: #94a3b8; padding: 62px 0 26px; }
footer h5 { color: #fff; font-size: .96rem; font-weight: 700; margin-bottom: 16px; }
footer a { color: #94a3b8; font-size: .92rem; display: inline-block; padding: 4px 0; overflow-wrap: anywhere; }
footer a:hover { color: #fff; }
.social-dot {
  width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .08);
  display: grid; place-items: center; color: #cbd5e1;
}
.social-dot:hover { background: var(--grad); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 22px; font-size: .86rem; }

/* ------------------------------------------------------------------ admin */
.admin-body { background: #f1f3f9; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-side { width: 250px; background: #0b1020; color: #cbd5e1; padding: 24px 16px; flex: 0 0 auto; }
.admin-side a { display: flex; gap: 11px; align-items: center; color: #94a3b8; padding: 11px 14px; border-radius: 10px; font-size: .93rem; }
.admin-side a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-side a.active { background: var(--grad); color: #fff; }
.admin-main { flex: 1; padding: 28px 34px; min-width: 0; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); }
/* keep row action buttons on one line */
.admin-main table td:last-child { white-space: nowrap; }
.admin-main table .btn-sm { padding: .32rem .6rem; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.stat-card .n { font-size: 1.9rem; font-weight: 800; }
.stat-card .l { color: var(--muted); font-size: .86rem; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--grad); padding: 20px; }
.login-card { background: #fff; border-radius: 20px; padding: 38px; width: min(420px, 100%); box-shadow: var(--shadow); }

@media (max-width: 575px) {
  .phone { --pw: 150px; }
  .phone-sm { --pw: 138px; }
}

@media (max-width: 991px) {
  .section { padding: 62px 0; }
  .admin-shell { flex-direction: column; }
  .admin-side { width: 100%; }
  .admin-main { padding: 20px; }
  .download-card { padding: 30px; }
}
