/* Digital Hub – Main Stylesheet */
/* Palette: Sky Blue + Coral + Dark Navy */

:root {
  --blue: #0ea5e9;
  --blue-light: #38bdf8;
  --blue-dark: #0369a1;
  --blue-pale: #e0f2fe;
  --blue-deep: #0c4a6e;
  --coral: #f97316;
  --coral-light: #fb923c;
  --coral-pale: #fff7ed;
  --navy: #0f172a;
  --navy-2: #1e293b;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #f8faff;
  --white: #ffffff;
  --border: #bae6fd;
  --border-light: #e0f2fe;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(14,165,233,0.10);
  --shadow-hover: 0 16px 48px rgba(14,165,233,0.22);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 16px; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== TOPBAR ===== */
.topbar {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue), var(--blue-dark));
  color: rgba(255,255,255,0.92);
  text-align: center;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-display);
  letter-spacing: 0.2px;
}

/* ===== HEADER ===== */
.header {
  background: var(--white);
  border-bottom: 2px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(14,165,233,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.logo strong { color: var(--blue); }
.logo-icon {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  width: 38px; height: 38px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(14,165,233,0.35);
}

.nav-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-muted);
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--blue-pale);
  color: var(--blue-dark);
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.search-form {
  display: flex;
  align-items: center;
  background: var(--blue-pale);
  border: 1.5px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  padding: 5px 5px 5px 16px;
  transition: border-color 0.2s;
}
.search-form:focus-within { border-color: var(--blue); }
.search-form input {
  border: none; background: transparent; outline: none;
  font-family: var(--font-body); font-size: 14px; width: 180px; color: var(--text);
}
.search-form button {
  background: var(--blue); border: none; color: white;
  padding: 7px 13px; border-radius: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.search-form button:hover { background: var(--blue-dark); }

.btn-admin {
  display: flex; align-items: center; gap: 6px;
  background: var(--navy); color: white;
  padding: 9px 18px; border-radius: 30px;
  font-size: 13px; font-weight: 700;
  font-family: var(--font-display);
  transition: all 0.2s; white-space: nowrap;
}
.btn-admin:hover { background: var(--blue-dark); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 50%, #0c2340 100%);
  color: white;
  padding: 90px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}
.s1 {
  width: 500px; height: 500px;
  background: var(--blue);
  top: -150px; right: -100px;
  animation: float 8s ease-in-out infinite;
}
.s2 {
  width: 300px; height: 300px;
  background: var(--coral);
  bottom: -80px; left: 10%;
  animation: float 10s ease-in-out infinite reverse;
}
.s3 {
  width: 200px; height: 200px;
  background: var(--blue-light);
  top: 40%; left: 40%;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14,165,233,0.2);
  border: 1px solid rgba(14,165,233,0.4);
  color: var(--blue-light);
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--blue-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.highlight {
  background: linear-gradient(135deg, var(--blue-light), var(--coral-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 580px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.btn-hero-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  padding: 14px 28px;
  border-radius: 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s;
  box-shadow: 0 6px 24px rgba(14,165,233,0.4);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(14,165,233,0.5); }
.btn-hero-secondary {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.2);
  padding: 14px 28px;
  border-radius: 30px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.14); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: var(--font-display); font-size: 1.8rem; font-weight: 900; color: var(--blue-light); }
.stat span { font-size: 12px; color: #64748b; font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.1); }

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--white);
  border-bottom: 1.5px solid var(--border-light);
  padding: 0;
  box-shadow: var(--shadow);
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--border-light);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  border-right: 1px solid var(--border-light);
  transition: background 0.2s;
}
.trust-item:last-child { border-right: none; }
.trust-item:hover { background: var(--blue-pale); }
.trust-item > span { font-size: 1.8rem; flex-shrink: 0; }
.trust-item div { font-size: 13px; line-height: 1.4; }
.trust-item strong { color: var(--blue-dark); font-weight: 700; font-family: var(--font-display); display: block; }

/* ===== HOW IT WORKS ===== */
.how-section { padding: 70px 0; background: var(--blue-pale); }
.section-title { margin-bottom: 40px; }
.section-tag {
  display: inline-block;
  background: var(--blue);
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.section-title h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--navy);
}

.steps-grid {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.step-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.3s;
}
.step-card:hover { transform: translateY(-4px); }
.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--blue-pale);
  position: absolute;
  top: 10px; right: 16px;
  line-height: 1;
}
.step-icon { font-size: 2.5rem; margin-bottom: 14px; }
.step-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.step-arrow { font-size: 1.8rem; color: var(--blue); font-weight: 700; flex-shrink: 0; }

/* ===== PRODUCTS SECTION ===== */
.main { padding: 60px 24px; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.product-count {
  font-size: 14px; color: var(--text-muted);
  background: var(--blue-pale);
  border: 1px solid var(--border);
  padding: 5px 14px; border-radius: 20px;
  font-weight: 600;
}

/* ===== PRODUCT GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .products-grid { grid-template-columns: 1fr; } }

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--blue);
}

.badge-featured {
  position: absolute; top: 12px; left: 12px;
  background: var(--coral); color: white;
  padding: 4px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  font-family: var(--font-display);
  z-index: 2; letter-spacing: 0.3px;
  box-shadow: 0 3px 10px rgba(249,115,22,0.4);
}

.card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--blue-pale);
}
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .card-image img { transform: scale(1.06); }

.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,74,110,0.75) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 16px;
  opacity: 0; transition: opacity 0.3s;
}
.product-card:hover .card-overlay { opacity: 1; }
.card-overlay span { color: white; font-size: 14px; font-weight: 700; font-family: var(--font-display); }

.card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-category {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--blue); font-family: var(--font-display);
}
.card-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.card-short { font-size: 13px; color: var(--text-muted); line-height: 1.4; flex: 1; }

.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-light); }
.card-price { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--blue-dark); }
.btn-details {
  background: var(--blue);
  color: white;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px; font-weight: 700;
  font-family: var(--font-display);
  transition: all 0.2s;
}
.btn-details:hover { background: var(--blue-dark); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }
.btn-primary {
  display: inline-block;
  background: var(--blue); color: white;
  padding: 12px 28px; border-radius: 30px;
  font-weight: 700; font-family: var(--font-display);
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--blue-dark); }

/* ===== FOOTER ===== */
.footer { background: var(--navy); color: #64748b; margin-top: 80px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 24px 44px;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand .logo { color: white; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.footer-socials a {
  background: rgba(255,255,255,0.08);
  color: #94a3b8;
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  transition: all 0.2s;
}
.footer-socials a:hover { background: var(--blue); color: white; }

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4, .footer-contact h4 {
  font-family: var(--font-display);
  color: white; font-size: 14px; font-weight: 700;
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.footer-links a { font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--blue-light); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact p { font-size: 14px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  padding: 18px 24px;
  font-size: 13px; color: #334155;
  font-family: var(--font-display);
}

/* ===== PRODUCT DETAIL ===== */
.product-detail { padding: 32px 24px 70px; }

.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 36px; flex-wrap: wrap;
  font-family: var(--font-display); font-weight: 500;
}
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--text); font-weight: 600; }

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  align-items: start;
}
@media (max-width: 768px) { .detail-hero { grid-template-columns: 1fr; } }

.main-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
  aspect-ratio: 4/3;
  background: var(--blue-pale);
}
.main-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.main-image-wrap:hover img { transform: scale(1.03); }

.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  cursor: pointer; transition: border-color 0.2s;
}
.thumb.active, .thumb:hover { border-color: var(--blue); }

.detail-category { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--blue); margin-bottom: 10px; font-family: var(--font-display); }
.detail-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; color: var(--navy); line-height: 1.2; margin-bottom: 12px; }
.detail-short-desc { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; line-height: 1.6; }

.detail-price-block {
  background: linear-gradient(135deg, var(--blue-pale), #dbeafe);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.detail-price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 900; color: var(--blue-dark); }
.price-note { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.detail-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.detail-badges span {
  background: var(--white); border: 1.5px solid var(--border);
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  font-family: var(--font-display);
}

.snap-container { background: var(--navy); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.snap-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: white; margin-bottom: 14px; }
.snap-placeholder p { color: #64748b; font-size: 14px; }

.how-it-works { background: var(--blue-pale); border-radius: var(--radius); padding: 20px 24px; }
.how-it-works h4 { font-family: var(--font-display); font-weight: 700; margin-bottom: 12px; color: var(--blue-dark); }
.how-it-works ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.how-it-works li { font-size: 14px; color: var(--text-muted); }
.how-it-works strong { color: var(--blue-dark); }

/* TABS */
.detail-tabs { margin-bottom: 56px; }
.tabs-header { display: flex; gap: 4px; border-bottom: 2px solid var(--border-light); margin-bottom: 28px; }
.tab-btn {
  padding: 12px 24px;
  background: none; border: none;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover { color: var(--blue); border-bottom-color: var(--blue); }
.tab-content { display: none; }
.tab-content.active { display: block; }

.rich-description { font-size: 16px; line-height: 1.8; color: var(--text); }
.rich-description img { max-width: 100%; border-radius: var(--radius); margin: 20px 0; border: 1.5px solid var(--border); }
.rich-description h1,.rich-description h2,.rich-description h3 { font-family: var(--font-display); margin: 24px 0 12px; color: var(--navy); }
.rich-description ul,.rich-description ol { margin: 12px 0 12px 24px; }
.rich-description li { margin-bottom: 6px; }
.rich-description strong { color: var(--blue-dark); }
.rich-description p { margin-bottom: 14px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: white; border: 1.5px solid var(--border-light); border-radius: var(--radius-sm); overflow: hidden; transition: border-color 0.2s; }
.faq-item.open { border-color: var(--blue); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 18px 20px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--navy); text-align: left; gap: 12px;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--blue-pale); }
.faq-item.open .faq-question { background: var(--blue-pale); color: var(--blue-dark); }
.faq-icon { flex-shrink: 0; transition: transform 0.3s; color: var(--text-muted); }
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--blue); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner { padding: 0 20px 18px; font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.related-section h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; margin-bottom: 24px; color: var(--navy); }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .header-inner { padding: 10px 16px; }
  .nav-links { display: none; }
  .search-form input { width: 120px; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 14px 16px; }
  .step-arrow { display: none; }
  .hero-stats { gap: 16px; }
  .stat-divider { display: none; }
  .hero-cta { flex-direction: column; }
}
@media (max-width: 480px) {
  .trust-inner { grid-template-columns: 1fr; }
}
