/* =========================================================
   Tag Konect — Main Stylesheet
   Light theme, navy accent
   ========================================================= */

:root {
  --accent: #1e3a8a;
  --accent-dark: #16296b;
  --accent-light: #eef2fb;
  --text-main: #1a1d29;
  --text-muted: #6b7280;
  --bg-page: #ffffff;
  --bg-soft: #f7f8fb;
  --border-color: #e5e7eb;
  --success: #059669;
  --radius: 12px;
  --shadow-card: 0 2px 10px rgba(20, 25, 40, 0.06);
  --shadow-card-hover: 0 8px 24px rgba(20, 25, 40, 0.10);
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------------- Header ---------------- */
.site-header {
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

.brand span.accent { color: var(--accent); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
}

.main-nav a:hover { color: var(--accent); }

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

.cart-icon-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-soft);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(180deg, var(--accent-light) 0%, #ffffff 100%);
  padding: 80px 0 64px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 13px;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 800;
}

.hero h1 .accent { color: var(--accent); }

.hero p.lead {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 480px;
}

.hero-ctas { display: flex; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.28);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-secondary {
  background: #fff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-block { width: 100%; }

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Hero mock alert cards */
.hero-visual {
  position: relative;
  min-height: 320px;
}

.alert-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 14px 16px;
  position: absolute;
  width: 250px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.alert-card .icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}

.alert-card .icon.warn { background: #fdeaea; color: #c0392b; }
.alert-card .icon.ok { background: #e7f6ef; color: var(--success); }

.alert-card .title { font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
.alert-card .sub { font-size: 12px; color: var(--text-muted); }

.alert-card .status {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: auto;
  white-space: nowrap;
}
.status.blocked { background: #fdeaea; color: #c0392b; }
.status.clean { background: #e7f6ef; color: var(--success); }

.alert-card.card-1 { top: 0; right: 0; }
.alert-card.card-2 { top: 130px; right: 90px; }
.alert-card.card-3 { top: 250px; right: 10px; }

/* ---------------- Section headings ---------------- */
.section {
  padding: 56px 0;
}

.section-alt { background: var(--bg-soft); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 8px;
}

.section-head h2 {
  font-size: 26px;
  margin: 0;
  font-weight: 800;
}

.section-head p {
  color: var(--text-muted);
  margin: 4px 0 0;
  font-size: 14.5px;
}

/* ---------------- Product grid ---------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.product-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #f59e0b;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.product-image {
  width: 100%;
  height: 140px;
  background: var(--bg-soft);
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-image .placeholder-text {
  color: #b7bcc7;
  font-size: 12.5px;
  text-align: center;
  padding: 0 10px;
}

.product-name {
  font-weight: 700;
  font-size: 16.5px;
  margin: 0 0 2px;
}

.product-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 14px;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.price-now {
  font-size: 26px;
  font-weight: 800;
}

.price-old {
  font-size: 14px;
  color: #a0a4ae;
  text-decoration: line-through;
}

.feature-list {
  margin-bottom: 20px;
  flex-grow: 1;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feature-list li:before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.brand-block { margin-bottom: 48px; }
.brand-block:last-child { margin-bottom: 0; }

.brand-block-head {
  margin-bottom: 18px;
}

.brand-block-head h3 {
  font-size: 20px;
  margin: 0 0 4px;
  font-weight: 800;
}

.brand-block-head p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* ---------------- Why buy / trust section ---------------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
}

.trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.trust-item .icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 17px;
}

.trust-item h4 {
  margin: 0 0 4px;
  font-size: 15.5px;
  font-weight: 700;
}

.trust-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-soft);
  padding: 40px 0 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- Checkout page ---------------- */
.checkout-wrap {
  padding: 48px 0 80px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}

.checkout-panel {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
}

.demo-notice {
  background: #fff8ec;
  border: 1px solid #f3d9a6;
  color: #92600a;
  font-size: 13.5px;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 22px;
}

.form-divider {
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 700;
  margin: 26px 0 18px;
  position: relative;
}

.form-divider:before,
.form-divider:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border-color);
}
.form-divider:before { left: 0; }
.form-divider:after { right: 0; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input,
.form-group select {
  padding: 11px 13px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14.5px;
  background: var(--bg-soft);
  color: var(--text-main);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.form-group input[disabled] { color: #9aa0ab; }

.security-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Order summary card */
.summary-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
}

.summary-card h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 800;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.summary-line .name { font-weight: 600; font-size: 14.5px; }
.summary-line .sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.summary-line .amount { font-weight: 700; font-size: 15px; white-space: nowrap; }

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 800;
}

.empty-cart {
  text-align: center;
  padding: 80px 0;
}

.empty-cart h2 { margin-bottom: 10px; }
.empty-cart p { color: var(--text-muted); margin-bottom: 24px; }

/* ---------------- Processing / result screen ---------------- */
.process-screen {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.process-box {
  text-align: center;
  max-width: 420px;
}

.spinner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 4px solid var(--accent-light);
  border-top-color: var(--accent);
  margin: 0 auto 24px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e7f6ef;
  color: var(--success);
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.process-box h2 { margin: 0 0 10px; font-size: 22px; }
.process-box p { color: var(--text-muted); margin: 0 0 26px; font-size: 14.5px; }

#stage-processing { display: block; }
#stage-done { display: none; }

/* ---------------- Simple page (contact/privacy placeholder) ---------------- */
.simple-page { padding: 56px 0 80px; }
.simple-page h1 { font-size: 32px; margin-bottom: 18px; }
.simple-page p { color: var(--text-muted); line-height: 1.7; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .main-nav { display: none; }
  .hero h1 { font-size: 32px; }
  .product-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
}
