:root {
  --primary: #ff6a1a;
  --primary-dark: #ea580c;
  --grad-start: #ff6a1a;
  --grad-end: #d1470c;
  --text: #d7dce3;
  --text-muted: #8a93a3;
  --bg: #0b0e13;
  --bg-alt: #10141b;
  --card-bg: #12161e;
  --card-border: #232936;
  --border: #232936;
  --glass-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  --c-blue: #38bdf8;
  --c-teal: #2dd4bf;
  --c-purple: #a855f7;
  --c-pink: #f472b6;
  --c-green: #2ecc71;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Background orbs disabled — solid flat theme now (no glass) */
.bg-orb { display: none; }

/* Header (solid dark nav bar, cPanel-style) */
.site-header {
  background: #0d1017;
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  position: relative;
}
.brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand span { color: var(--primary); }
.brand-logo { display: flex; align-items: center; gap: 8px; }
.brand-icon-img { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; flex-shrink: 0; }
.brand .brand-text, .brand .brand-text .brand-accent { color: #fff; }
.brand .brand-suffix { color: var(--primary); font-weight: 800; }
.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.87rem;
}
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-links a.active { color: var(--primary); }

/* Mobile hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  color: #0b0d12 !important;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.4);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 1.5px solid var(--primary);
  text-decoration: none;
}
.btn-outline:hover { background: rgba(255, 106, 26, 0.08); text-decoration: none; }

/* Hero */
.hero {
  background: var(--bg-alt);
  color: var(--text);
  padding: 56px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--card-border);
}
.hero h1 {
  font-size: 2.1rem;
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
}
.hero h1 .accent { color: var(--primary); }
.hero p {
  font-size: 0.97rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 26px;
}
.hero .cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .btn-outline {
  border-color: var(--primary);
  color: var(--primary) !important;
  background: rgba(249, 115, 22, 0.06);
}
.hero .btn-outline:hover { background: rgba(249, 115, 22, 0.14); }

/* Sections */
section.page-section { padding: 40px 0; }
section.page-section-alt { background: var(--bg-alt); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.section-title {
  text-align: center;
  margin-bottom: 24px;
}
.section-title h2 {
  font-size: 1.3rem;
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
}
.section-title p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.84rem;
}

/* Feature grid — no boxes/containers, just icon + text rows (cPanel-style plain list) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px 20px;
}
.card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
}
.card .icon-badge {
  margin-bottom: 0;
  flex-shrink: 0;
  margin-top: 2px;
}
.card .card-text { min-width: 0; }
.card .icon {
  font-size: 1.1rem;
  margin-bottom: 0;
  display: inline-block;
  flex-shrink: 0;
}
.card h3 {
  margin: 0 0 3px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
}

/* Compact colorful icon badges (cPanel-style flat accent icons) */
.icon-badge {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  margin-bottom: 7px;
}
.icon-badge.c-orange { background: rgba(255, 106, 26, 0.16); border: 1px solid rgba(255, 106, 26, 0.45); }
.icon-badge.c-blue { background: rgba(56, 189, 248, 0.16); border: 1px solid rgba(56, 189, 248, 0.45); }
.icon-badge.c-teal { background: rgba(45, 212, 191, 0.16); border: 1px solid rgba(45, 212, 191, 0.45); }
.icon-badge.c-purple { background: rgba(168, 85, 247, 0.16); border: 1px solid rgba(168, 85, 247, 0.45); }
.icon-badge.c-pink { background: rgba(244, 114, 182, 0.16); border: 1px solid rgba(244, 114, 182, 0.45); }
.icon-badge.c-green { background: rgba(46, 204, 113, 0.16); border: 1px solid rgba(46, 204, 113, 0.45); }

/* Portfolio / product showcase cards */
.portfolio-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease;
}
.portfolio-card:hover { border-color: var(--accent-green, var(--c-green)); }
.portfolio-card .tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--c-green);
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
  width: fit-content;
}
.portfolio-card h3 { margin: 0; font-size: 0.88rem; color: #fff; }
.portfolio-card p { margin: 0; font-size: 0.76rem; color: var(--text-muted); flex-grow: 1; }
.portfolio-card a.visit-link { font-size: 0.76rem; font-weight: 700; color: var(--c-green); }

/* Real uploaded product image (replaces the illustrative mockup when set) */
.portfolio-image {
  border-radius: 6px;
  border: 1px solid var(--card-border);
  overflow: hidden;
  height: 110px;
}
.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Client / partner logo strip */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  padding: 14px;
}
.client-logo-item img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.client-logo-item:hover img {
  transform: scale(1.15);
}
.client-logo-item .client-name-fallback {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
}

/* Dashboard preview mockup (CSS-drawn browser window, no real screenshot needed) */
.mockup-preview {
  border-radius: 6px;
  border: 1px solid var(--card-border);
  background: #0b0e13;
  overflow: hidden;
  margin-bottom: 2px;
}
.mockup-preview .mockup-bar {
  display: flex;
  gap: 4px;
  padding: 5px 7px;
  background: #0d1017;
  border-bottom: 1px solid var(--card-border);
}
.mockup-preview .mockup-bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #333c4a;
}
.mockup-preview .mockup-body {
  display: flex;
  gap: 6px;
  padding: 8px;
  height: 58px;
}
.mockup-preview .mockup-side {
  width: 18%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
}
.mockup-preview .mockup-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mockup-preview .mockup-line {
  height: 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}
.mockup-preview .mockup-line.short { width: 40%; }
.mockup-preview .mockup-chart {
  flex: 1;
  border-radius: 3px;
  opacity: 0.55;
}
.mockup-preview.c-orange .mockup-chart { background: linear-gradient(135deg, rgba(255,106,26,0.5), rgba(255,106,26,0.05)); }
.mockup-preview.c-purple .mockup-chart { background: linear-gradient(135deg, rgba(168,85,247,0.5), rgba(168,85,247,0.05)); }
.mockup-preview.c-teal .mockup-chart { background: linear-gradient(135deg, rgba(45,212,191,0.5), rgba(45,212,191,0.05)); }
.mockup-preview.c-green .mockup-chart { background: linear-gradient(135deg, rgba(46,204,113,0.5), rgba(46,204,113,0.05)); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  align-items: stretch;
  max-width: 860px;
  margin: 0 auto;
}
.price-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--glass-shadow);
}
.price-card.featured {
  border: 1.5px solid var(--primary);
  position: relative;
}
.price-card.featured::before {
  content: "Paling Populer";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  color: #0b0d12;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
}
.price-card h3 { margin: 0 0 3px; font-size: 0.95rem; font-weight: 700; color: #ffffff; }
.price-card .tagline { color: var(--text-muted); font-size: 0.72rem; margin-bottom: 10px; }
.price-card .price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}
.price-card .price small { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  flex-grow: 1;
}
.price-card ul li {
  padding: 5px 0;
  border-bottom: 1px dashed var(--card-border);
  font-size: 0.74rem;
}
.price-card ul li::before { content: "✓ "; color: var(--c-green); font-weight: 700; }
.price-card ul li.note {
  color: var(--text-muted);
  font-style: italic;
}
.price-card ul li.note::before { content: "\26A0\FE0F "; color: var(--primary); }

/* CTA band */
.cta-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--card-border);
  color: var(--text);
  text-align: center;
  padding: 44px 0;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { margin: 0 0 12px; font-size: 1.5rem; font-weight: 800; color: #ffffff; }
.cta-band p { opacity: 0.85; margin-bottom: 22px; font-size: 0.92rem; }

/* Simple pages (about/contact/legal) */
.simple-page {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
  padding: 28px;
  margin: 28px auto;
}
.simple-page h1 { font-size: 1.65rem; margin-bottom: 16px; font-weight: 800; color: #ffffff; }
.simple-page h2 { font-size: 1.1rem; margin-top: 26px; font-weight: 700; color: var(--primary); }
.simple-page p, .simple-page li { color: var(--text-muted); font-size: 0.92rem; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.contact-card {
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 18px;
}
.contact-card .icon { font-size: 1.35rem; margin-bottom: 6px; }
.contact-card strong { color: #ffffff; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--card-border);
  background: var(--bg-alt);
  color: var(--text);
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 12px;
  font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.15);
}
.contact-form label { font-weight: 600; font-size: 0.85rem; display: block; margin-bottom: 5px; }

/* Footer */
.site-footer {
  background: #080a0e;
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 40px 0 20px;
  margin-top: 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-grid h4 { color: #fff; margin: 0 0 12px; font-size: 0.88rem; }
.footer-grid a { color: var(--text-muted); display: block; margin-bottom: 7px; font-size: 0.85rem; }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 16px;
  font-size: 0.78rem;
  color: #6b7280;
  text-align: center;
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}
.badge {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.35);
  color: var(--c-green);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}

/* Responsive / mobile */
@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: #0d1017;
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    padding: 10px 20px 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
  }
  .nav-links.open {
    max-height: 420px;
    opacity: 1;
    padding: 14px 20px 20px;
  }
  .nav-links a {
    padding: 9px 0;
    width: 100%;
  }
  .nav-links .btn-primary {
    margin-top: 8px;
  }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .hero { padding: 44px 0 50px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.9rem; }
  section.page-section { padding: 38px 0; }
  .section-title h2 { font-size: 1.3rem; }
  .simple-page { padding: 20px 16px; margin: 20px auto; border-radius: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .bg-orb { filter: blur(60px); opacity: 0.15; }
}

/* WhatsApp chat widget (dark theme, matches ADF System branding) */
.adf-chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.adf-chat-fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.35), 0 0 0 3px rgba(37, 211, 102, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}
.adf-chat-fab:hover {
  transform: scale(1.15) translateY(-3px);
  box-shadow: 0 18px 36px rgba(37, 211, 102, 0.5), 0 0 0 4px rgba(37, 211, 102, 0.3);
}
.adf-chat-fab-icon { width: 32px; height: 32px; }
.adf-chat-panel {
  width: 320px;
  max-width: calc(100vw - 40px);
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  transform: translateY(12px);
  transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
}
.adf-chat-widget.adf-open .adf-chat-panel {
  max-height: 420px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.adf-chat-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.adf-chat-header-info { display: flex; align-items: center; gap: 10px; }
.adf-chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.adf-chat-title { font-weight: 700; font-size: 14px; }
.adf-chat-status { font-size: 11.5px; opacity: 0.9; }
.adf-chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}
.adf-chat-close:hover { opacity: 1; }
.adf-chat-body {
  flex: 1;
  min-height: 180px;
  max-height: 260px;
  overflow-y: auto;
  padding: 14px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.adf-chat-bubble {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  word-wrap: break-word;
}
.adf-chat-bubble-in {
  align-self: flex-start;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--card-border);
  border-bottom-left-radius: 3px;
}
.adf-chat-bubble-out {
  align-self: flex-end;
  background: rgba(46, 204, 113, 0.18);
  color: var(--text);
  border-bottom-right-radius: 3px;
}
.adf-chat-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--card-border);
  flex-shrink: 0;
}
.adf-chat-input {
  flex: 1;
  border: 1px solid var(--card-border);
  background: var(--bg);
  color: var(--text);
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 13.5px;
  outline: none;
}
.adf-chat-input:focus { border-color: var(--primary); }
.adf-chat-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adf-chat-send:hover { background: var(--primary-dark); }
@media (max-width: 480px) {
  .adf-chat-panel { width: calc(100vw - 40px); }
}
