:root {
  --bg-pure: #000000;
  --bg-main: #030711;
  --bg-surface: #091122;
  --bg-surface-hover: #0e1a32;
  --bg-elevated: #11203d;
  --border-subtle: rgba(56, 189, 248, 0.14);
  --border-strong: rgba(37, 99, 235, 0.48);
  --blue-primary: #1d7afc;
  --blue-bright: #38bdf8;
  --blue-deep: #0052cc;
  --silver: #cbd5e1;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --green-install: #10b981;
  --green-install-hover: #059669;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-glow: 0 20px 55px -15px rgba(29, 122, 252, 0.3);
  --shadow-card: 0 12px 32px -10px rgba(0, 0, 0, 0.72);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-pure);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 102, 255, 0.14) 0%, rgba(0, 0, 0, 0) 50%),
    linear-gradient(180deg, #000000 0%, #030711 35%, #050b19 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ======================== TOP NAVBAR ======================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(2, 6, 15, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mini-logo {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid rgba(56, 189, 248, 0.32);
  background: #000;
}

.brand-mini-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-mini-title {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mini-title span {
  color: var(--blue-primary);
}

.brand-mini-sub {
  font-size: 0.69rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--silver);
  transition: color 0.18s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-apps-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1d7afc 0%, #0052cc 100%);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(29, 122, 252, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-apps-nav:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 10px 26px rgba(29, 122, 252, 0.5);
}

.btn-help {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(29, 122, 252, 0.12);
  border: 1px solid rgba(29, 122, 252, 0.35);
  color: #93c5fd;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-help:hover {
  background: rgba(29, 122, 252, 0.24);
  color: #fff;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(236, 72, 153, 0.35);
  color: #f8fafc;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-instagram svg {
  color: #f472b6;
  transition: color 0.2s ease;
}

.btn-instagram:hover {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
  border-color: transparent;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(221, 42, 123, 0.35);
}

.btn-instagram:hover svg {
  color: #ffffff;
}

.ig-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(221, 42, 123, 0.12), rgba(129, 52, 175, 0.1));
  border: 1px solid rgba(236, 72, 153, 0.32);
  transition: all 0.2s ease;
}

.ig-contact-card:hover {
  border-color: rgba(244, 114, 182, 0.65);
  background: linear-gradient(135deg, rgba(221, 42, 123, 0.2), rgba(129, 52, 175, 0.18));
  transform: translateY(-2px);
}

/* ======================== PORTFOLIO HERO ======================== */
.hero-portfolio {
  position: relative;
  background: #000000;
  padding: 64px 0 56px;
  border-bottom: 1px solid rgba(29, 122, 252, 0.2);
  overflow: hidden;
}

.hero-portfolio::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 40%, rgba(29, 122, 252, 0.18), transparent 52%),
    radial-gradient(circle at 20% 70%, rgba(56, 189, 248, 0.08), transparent 48%);
  pointer-events: none;
}

.hero-portfolio-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(29, 122, 252, 0.13);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.hero-headline span {
  background: linear-gradient(90deg, #38bdf8 0%, #1d7afc 52%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.68;
  max-width: 610px;
  margin-bottom: 30px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.btn-primary-xl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #1d7afc 0%, #0052cc 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(29, 122, 252, 0.4);
  transition: all 0.2s ease;
}

.btn-primary-xl:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(29, 122, 252, 0.55);
  filter: brightness(1.08);
}

.btn-outline-xl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-xl:hover {
  background: var(--green-install);
  color: #ffffff;
  border-color: var(--green-install);
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.35);
}

.hero-brand-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle, rgba(29, 122, 252, 0.16) 0%, rgba(0, 0, 0, 0) 70%);
  padding: 20px;
  border-radius: 28px;
}

.hero-brand-img {
  width: 100%;
  max-width: 390px;
  height: auto;
  display: block;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 16px 40px rgba(0, 119, 255, 0.3));
}

/* ======================== METRICS BAR ======================== */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -26px;
  position: relative;
  z-index: 10;
}

.metric-card {
  background: rgba(10, 19, 38, 0.94);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.metric-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.metric-value span {
  color: var(--blue-bright);
}

.metric-label {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ======================== PORTFOLIO SECTIONS ======================== */
.section-block {
  padding: 84px 0;
}

.section-block.alt-bg {
  background: rgba(7, 14, 29, 0.72);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-bright);
  margin-bottom: 10px;
}

.section-heading {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.62;
}

/* 3 SERVICES PILLARS */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  box-shadow: var(--shadow-card);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(29, 122, 252, 0.22), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--blue-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.service-bullets {
  list-style: none;
  display: grid;
  gap: 8px;
}

.service-bullets li {
  font-size: 0.85rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-bullets li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
  flex-shrink: 0;
}

/* PORTFOLIO SHOWCASE CASES */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

.case-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: all 0.22s ease;
  box-shadow: var(--shadow-card);
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-surface-hover);
}

.case-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.case-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.case-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--blue-bright);
}

.case-title {
  font-size: 1.12rem;
  font-weight: 700;
  margin-top: 3px;
}

.case-desc {
  font-size: 0.91rem;
  color: #cbd5e1;
  line-height: 1.58;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tech-tag {
  font-size: 0.73rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(29, 122, 252, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.18);
  color: #93c5fd;
}

.case-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #34d399;
  font-weight: 700;
  transition: gap 0.18s ease;
}

.case-link:hover {
  gap: 10px;
}

/* SYSTEMS & AI CARDS */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.system-card {
  background: linear-gradient(145deg, rgba(14, 26, 50, 0.9), rgba(8, 15, 30, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* STORE CTA BANNER ON PORTFOLIO */
.store-cta-banner {
  margin-top: 44px;
  background: linear-gradient(135deg, #0b1933 0%, #071224 55%, #06211d 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: 0 20px 50px -15px rgba(16, 185, 129, 0.2);
}

/* PROCESS / METHODOLOGY */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* CONTACT SECTION */
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-glow);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-field label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--silver);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: rgba(4, 9, 20, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 15px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.93rem;
  outline: none;
  transition: border-color 0.18s ease;
}

.form-control:focus {
  border-color: var(--blue-bright);
}

textarea.form-control {
  min-height: 105px;
  resize: vertical;
}

/* ======================== APPS STORE PAGE (apps.html) ======================== */
.search-wrap {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}

.search-input {
  width: 100%;
  background: rgba(15, 27, 51, 0.78);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 11px 38px 11px 42px;
  color: var(--text-main);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--blue-bright);
  background: rgba(17, 30, 56, 0.95);
  box-shadow: 0 0 0 3px rgba(29, 122, 252, 0.2);
}

.store-header-banner {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 0%, rgba(29, 122, 252, 0.15), transparent 65%);
}

.featured-section {
  margin-top: 32px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  background: linear-gradient(135deg, rgba(13, 27, 54, 0.95) 0%, rgba(7, 15, 30, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-glow);
  align-items: center;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.featured-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.featured-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.featured-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.featured-dev {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: #60a5fa;
  margin-top: 4px;
  font-weight: 500;
}

.featured-text {
  color: #cbd5e1;
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.32);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-stat:last-child {
  border-right: none;
  padding-right: 0;
}

.meta-stat strong {
  font-size: 0.9rem;
  color: #fff;
}

.meta-stat span {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-install-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn-install-lg:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.48);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
}

.featured-preview {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  background: #050a14;
  max-height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-section {
  margin-top: 40px;
  padding-bottom: 60px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex-shrink: 0;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-chip:hover {
  color: var(--text-main);
  border-color: rgba(56, 189, 248, 0.4);
}

.filter-chip.active {
  background: linear-gradient(135deg, #1d7afc 0%, #0052cc 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(29, 122, 252, 0.35);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}

.app-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.app-card:hover {
  transform: translateY(-4px);
  background: var(--bg-surface-hover);
  border-color: var(--border-strong);
  box-shadow: 0 18px 36px -12px rgba(0, 102, 255, 0.28);
}

.app-card-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.app-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.app-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-info {
  flex: 1;
  min-width: 0;
}

.app-cat-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-bright);
  margin-bottom: 4px;
}

.app-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 4px;
}

.app-dev {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.verified-dot {
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
}

.app-short-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.app-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.spec-badge {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--silver);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 9px;
  border-radius: 6px;
}

.btn-card-install {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.btn-card-install:hover {
  background: var(--green-install);
  color: #ffffff;
  border-color: var(--green-install);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

.guide-section {
  padding: 52px 0;
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 12, 26, 0.7);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1d7afc, #0052cc);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.58;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #02050b;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a:hover {
  color: #fff;
}

/* MODAL */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.18s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-panel {
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0a1324;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 24px;
  padding: 28px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.modal-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
  padding-right: 36px;
}

.modal-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0f172a;
}

.modal-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.modal-pkg {
  font-family: monospace;
  font-size: 0.77rem;
  color: #64748b;
  margin-top: 4px;
}

.modal-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px 10px;
  margin-bottom: 22px;
  text-align: center;
}

.modal-stat-item strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
}

.modal-stat-item span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.modal-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.modal-cta-row .btn-install-lg {
  flex: 1;
  min-width: 220px;
}

.modal-section-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 20px 0 10px;
  color: #fff;
}

.modal-desc {
  font-size: 0.93rem;
  line-height: 1.65;
  color: #cbd5e1;
}

.highlights-list {
  list-style: none;
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.highlights-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.highlights-list li svg {
  color: var(--green-install);
  flex-shrink: 0;
  margin-top: 2px;
}

.qr-box {
  margin-top: 22px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(29, 122, 252, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  display: flex;
  align-items: center;
  gap: 18px;
}

.qr-box img {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  flex-shrink: 0;
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  background: #0f1f3a;
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  transform: translateY(130%);
  opacity: 0;
  transition: all 0.28s ease;
  max-width: 390px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .hero-portfolio-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }
  .hero-portfolio-grid > div:first-child {
    order: 2;
  }
  .hero-brand-showcase {
    order: 1;
    padding: 0;
  }
  .hero-brand-img {
    max-width: 260px;
  }
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 24px;
  }
  .pillars-grid,
  .systems-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }
  .search-wrap {
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
  }
  .metrics-strip,
  .process-grid {
    grid-template-columns: 1fr;
  }
  .contact-box {
    padding: 24px;
  }
  .apps-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }
  .modal-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .qr-box {
    flex-direction: column;
    text-align: center;
  }
}
