/* PowerSign QR – Kenya Power corporate theme
   Primary Green: #009A58
   Accent Yellow: #FACA22
   Dark Blue:     #163366
*/

:root {
  --green: #009A58;
  --green-dark: #007a46;
  --green-light: #e6f7ef;
  --yellow: #FACA22;
  --yellow-dark: #e0b400;
  --blue: #163366;
  --blue-light: #1e447a;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(22, 51, 102, 0.08);
  --shadow-lg: 0 20px 50px rgba(22, 51, 102, 0.12);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

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

/* ========== NAV ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.navbar.scrolled {
  border-bottom-color: var(--slate-200);
  background: rgba(255, 255, 255, 0.95);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  width: min(1120px, 92%);
  margin-inline: auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blue);
}
.logo-mark {
  font-size: 1.4rem;
  color: var(--green);
}
.logo-text span { color: var(--green); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate-600);
}
.nav-links a:hover { color: var(--green); }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.9rem 1.75rem; font-size: 1rem; }
.btn-primary {
  background: var(--green);
  color: white;
  box-shadow: 0 4px 14px rgba(0, 154, 88, 0.35);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 154, 88, 0.4);
}
.btn-outline {
  border: 2px solid var(--green);
  color: var(--green);
  background: transparent;
}
.btn-outline:hover {
  background: var(--green-light);
}
.btn-ghost {
  color: var(--slate-600);
}
.btn-ghost:hover { color: var(--green); }
.btn-yellow {
  background: var(--yellow);
  color: var(--blue);
  box-shadow: 0 4px 14px rgba(250, 202, 34, 0.4);
}
.btn-yellow:hover {
  background: var(--yellow-dark);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--blue);
  color: white;
}
.btn-secondary:hover { background: var(--blue-light); }

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0, 154, 88, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(250, 202, 34, 0.1), transparent),
    linear-gradient(180deg, #f8fafc 0%, #eef7f2 100%);
  z-index: -1;
}
.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.hero h1 .highlight {
  background: linear-gradient(90deg, var(--green), #00b86b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lead {
  font-size: 1.15rem;
  color: var(--slate-600);
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--slate-500);
}
.trust-item { display: flex; align-items: center; gap: 0.4rem; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.dot.green { background: var(--green); }
.dot.yellow { background: var(--yellow); }
.dot.blue { background: var(--blue); }

/* Phone mock */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-mock {
  width: 280px;
  background: var(--blue);
  border-radius: 32px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.1);
}
.phone-screen {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}
.mock-header {
  background: var(--green);
  color: white;
  text-align: center;
  padding: 14px;
  font-weight: 600;
  font-size: 0.95rem;
}
.mock-stamp {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  gap: 1rem;
}
.qr-placeholder {
  width: 140px;
  height: 140px;
  background: var(--slate-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stamp-meta {
  text-align: center;
  font-size: 0.8rem;
  color: var(--slate-500);
}
.stamp-meta strong {
  display: block;
  color: var(--green);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.stamp-user {
  display: block;
  color: var(--blue);
  font-weight: 600;
  margin-top: 0.2rem;
}
.mock-actions {
  display: flex;
  border-top: 1px solid var(--slate-200);
}
.mock-actions span {
  flex: 1;
  text-align: center;
  padding: 12px 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--slate-500);
  border-right: 1px solid var(--slate-200);
}
.mock-actions span:last-child { border-right: none; }

.floating-card {
  position: absolute;
  background: white;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--slate-700);
  animation: float 4s ease-in-out infinite;
}
.floating-card .icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.card-1 {
  top: 12%;
  left: -10%;
  animation-delay: 0s;
}
.card-1 .icon { background: var(--green-light); color: var(--green); }
.card-2 {
  bottom: 18%;
  right: -8%;
  animation-delay: 1.5s;
}
.card-2 .icon { background: #fef9e7; color: var(--yellow-dark); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ========== SECTIONS ========== */
.section {
  padding: 90px 0;
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.section-header p {
  color: var(--slate-500);
  font-size: 1.05rem;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--slate-100);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.feature-icon.green { background: var(--green-light); }
.feature-icon.yellow { background: #fef9e7; }
.feature-icon.blue { background: #eef2ff; }
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--slate-500);
  line-height: 1.55;
}

/* How it works */
.how { background: white; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.step {
  text-align: center;
  padding: 1.5rem 1rem;
}
.step-num {
  width: 48px; height: 48px;
  margin: 0 auto 1.25rem;
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 14px rgba(0, 154, 88, 0.3);
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.step p {
  font-size: 0.9rem;
  color: var(--slate-500);
}

/* Install section */
.install-section {
  background: linear-gradient(135deg, var(--blue) 0%, #0d2248 100%);
  color: white;
}
.install-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.install-text h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.install-text p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}
.install-list {
  margin-bottom: 2rem;
}
.install-list li {
  padding: 0.4rem 0;
  opacity: 0.9;
}
.qr-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--slate-800);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.qr-box {
  width: 200px;
  height: 200px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-caption {
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: 0.25rem;
}
.qr-url {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 500;
}

/* Verify teaser */
.verify-teaser { padding: 60px 0; }
.verify-box {
  background: linear-gradient(90deg, var(--green-light), #fef9e7);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid rgba(0, 154, 88, 0.15);
}
.verify-box h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.4rem;
}
.verify-box p { color: var(--slate-600); }

/* Footer */
.footer {
  background: var(--blue);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 2rem;
}
.footer-inner {
  display: grid;
  gap: 2rem;
}
.footer-brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-brand .logo-mark { color: var(--yellow); margin-right: 0.3rem; }
.footer-brand p {
  font-weight: 400;
  font-size: 0.9rem;
  opacity: 0.7;
  max-width: 320px;
}
.footer-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.footer-links a:hover { color: var(--yellow); }
.copyright {
  font-size: 0.85rem;
  opacity: 0.55;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}

/* ========== APP PAGE ========== */
.app-body {
  background: var(--slate-100);
  min-height: 100vh;
}
.app-header {
  background: white;
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 50;
}
.app-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  width: min(1200px, 94%);
  margin-inline: auto;
}
.app-nav {
  display: flex;
  gap: 0.5rem;
}
.app-nav button, .app-nav a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-600);
  transition: all 0.15s;
}
.app-nav button.active, .app-nav a.active,
.app-nav button:hover, .app-nav a:hover {
  background: var(--green-light);
  color: var(--green-dark);
}
.app-main {
  width: min(1200px, 94%);
  margin: 1.5rem auto 3rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
}
.sidebar {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 80px;
}
.sidebar h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-400);
  margin-bottom: 0.75rem;
}
.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.sidebar-actions button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--slate-700);
  text-align: left;
  transition: background 0.15s;
}
.sidebar-actions button:hover,
.sidebar-actions button.active {
  background: var(--green-light);
  color: var(--green-dark);
}
.sidebar-actions button .ico {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.folder-panel {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.folder-tabs {
  display: flex;
  border-bottom: 1px solid var(--slate-200);
}
.folder-tabs button {
  flex: 1;
  padding: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--slate-500);
  border-bottom: 3px solid transparent;
  transition: all 0.15s;
}
.folder-tabs button.active {
  color: var(--green);
  border-bottom-color: var(--green);
  background: var(--green-light);
}
.file-list {
  padding: 0.5rem;
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
}
.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  cursor: pointer;
}
.file-item:hover { background: var(--slate-50); }
.file-item .name {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.file-item .meta {
  font-size: 0.75rem;
  color: var(--slate-400);
}
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--slate-400);
}
.empty-state .big-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

/* Workspace / Stamp panel */
.workspace {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  min-height: 480px;
}
.workspace h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.35rem;
}
.workspace .sub {
  color: var(--slate-500);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--slate-600);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s;
  background: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 154, 88, 0.15);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stamp-preview {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--slate-50);
  border-radius: var(--radius);
  border: 1px dashed var(--slate-300);
}
.stamp-preview .qr-live {
  width: 160px;
  height: 160px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.stamp-info {
  flex: 1;
}
.stamp-info h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
  margin-bottom: 0.5rem;
}
.stamp-info p {
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-bottom: 0.3rem;
}
.stamp-info strong { color: var(--blue); }
.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-200);
}

/* Verify page */
.verify-page {
  max-width: 640px;
  margin: 3rem auto;
  padding: 0 1rem;
}
.verify-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  text-align: center;
}
.verify-card h1 {
  font-size: 1.75rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.verify-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 1.5rem 0;
}
.verify-status.valid {
  background: var(--green-light);
  color: var(--green-dark);
}
.verify-status.invalid {
  background: #fef2f2;
  color: #b91c1c;
}
.verify-details {
  text-align: left;
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 1.5rem;
}
.verify-details dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-400);
  margin-top: 0.85rem;
}
.verify-details dt:first-child { margin-top: 0; }
.verify-details dd {
  font-weight: 600;
  color: var(--slate-800);
  margin-top: 0.15rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--blue);
  color: white;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 200;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success { background: var(--green); }

/* Responsive */
@media (max-width: 960px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 1; }
  .hero-visual { order: 2; margin-top: 2rem; }
  .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .trust-row { justify-content: center; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .install-grid { grid-template-columns: 1fr; text-align: center; }
  .install-list { text-align: left; display: inline-block; }
  .verify-box { flex-direction: column; text-align: center; }
  .app-main { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .floating-card { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stamp-preview { flex-direction: column; align-items: center; }
  .phone-mock { width: 240px; }
}
