/* AbexSoft New Site - Modern Responsive Design */
:root {
  --brand: #0d9488;
  --brand-dark: #115e59;
  --brand2: #0e7490;
  --text: #1f2937;
  --muted: #6b7280;
  --light: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.05), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.05);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); background: var(--light);
  line-height: 1.65; font-size: 16px;
}
a { color: var(--brand2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo a { display: flex; align-items: center; gap: 10px; }
.logo img, .logo svg { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav li { position: relative; }
.nav > ul > li > a {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm);
  color: var(--text); font-weight: 600; font-size: 14px;
}
.nav > ul > li > a:hover, .nav > ul > li > a.active {
  background: #f1f5f9; color: var(--brand); text-decoration: none;
}
.nav li ul {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); list-style: none; padding: 8px 0; min-width: 220px;
}
.nav li:hover > ul { display: block; }
.nav li ul li a { display: block; padding: 8px 18px; color: var(--text); font-size: 14px; }
.nav li ul li a:hover { background: #f8fafc; color: var(--brand); text-decoration: none; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
  color: #fff; padding: 64px 0 72px;
}
.hero h1 { margin: 0 0 14px; font-size: 42px; font-weight: 800; letter-spacing: -1px; }
.hero p { margin: 0 0 28px; font-size: 18px; opacity: .92; max-width: 680px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 24px; border-radius: 999px; font-weight: 700;
  border: none; cursor: pointer; font-size: 15px; transition: .2s;
}
.btn-primary { background: #fff; color: var(--brand2); }
.btn-primary:hover { background: #f0fdfa; text-decoration: none; }
.btn-secondary { background: rgba(255,255,255,.18); color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,.28); text-decoration: none; }

/* Sections */
.section { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { margin: 0 0 8px; font-size: 30px; }
.section-title p { margin: 0; color: var(--muted); font-size: 17px; }

/* Cards */
.card-grid { display: grid; gap: 22px; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid > .card { height: 100%; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 32px; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.card-meta { font-size: 13px; color: var(--muted); }

/* Products */
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-thumb { width: auto; max-height: 120px; margin: 0 auto 14px; border-radius: var(--radius-sm); flex-shrink: 0; }
.product-card .product-body { display: flex; flex-direction: column; flex: 1; }
.product-card h4 { margin: 0 0 8px; font-size: 16px; min-height: 2.6em; }
.product-card h4 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card p { margin: 0 0 12px; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex-shrink: 0; }
.product-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; align-items: center; }
.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: 999px; }
.btn-outline { background: #fff; color: var(--brand2); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-accent { background: var(--brand); color: #fff; }
.btn-accent:hover { background: var(--brand-dark); text-decoration: none; }
.price { font-weight: 800; color: var(--brand2); font-size: 16px; }

/* Product detail */
.product-hero { background: #fff; border-bottom: 1px solid var(--border); padding: 42px 0; }
.product-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.product-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: #fff; }
.product-box img { width: 100%; border-radius: var(--radius-sm); }
.screenshot-link { display: block; margin-top: 12px; text-align: center; font-size: 14px; }
.product-title { margin: 0 0 14px; font-size: 32px; letter-spacing: -.5px; }
.product-subtitle { color: var(--muted); font-size: 18px; margin-bottom: 22px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feature-item { background: #f8fafc; border-radius: var(--radius-sm); padding: 14px; font-size: 14px; }
.feature-item strong { display: block; margin-bottom: 4px; color: var(--brand2); }
.feature-list { columns: 2; column-gap: 28px; }
.feature-list li { margin-bottom: 8px; font-size: 14px; }
.format-section { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.format-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.format-box h4 { margin: 0 0 12px; font-size: 16px; color: var(--brand2); }
.format-box ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }

/* Sidebar */
.sidebar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.sidebar h4 { margin: 0 0 14px; font-size: 16px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { border-bottom: 1px solid var(--border); }
.sidebar li a { display: block; padding: 10px 0; font-size: 14px; color: var(--text); }
.sidebar li a:hover { color: var(--brand); text-decoration: none; }

/* Footer */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 48px 0 24px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; margin: 0 0 14px; font-size: 15px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li a { color: #94a3b8; font-size: 14px; }
.footer-grid li a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 28px; margin-top: 32px; border-top: 1px solid #1e293b; font-size: 13px; color: #64748b; }

/* Breadcrumb */
.breadcrumb { background: #fff; border-bottom: 1px solid var(--border); padding: 14px 0; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand2); }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { border: 1px solid var(--border); padding: 10px; text-align: left; }
.table th { background: #f1f5f9; }
.table td .row-sub { color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.4; }
.table td:first-child > a { font-weight: 700; color: var(--brand2); font-size: 15px; }
.table .price-cell { font-weight: 800; color: var(--brand); white-space: nowrap; }

/* Content pages */
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 34px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.5px; }
.page-head + * { margin-top: 0; }
.lead { font-size: 17px; line-height: 1.7; color: var(--text); margin: 0 0 26px; }
.toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 30px; box-shadow: var(--shadow); }
.toc strong { display: block; margin-bottom: 10px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px; }
.toc li a { color: var(--brand); text-decoration: none; font-size: 14.5px; }
.toc li a:hover { text-decoration: underline; }
.updated { font-size: 14px; color: var(--muted); font-style: italic; }
.group-title { font-size: 19px; margin: 30px 0 12px; color: var(--brand-dark); }
.dl-groups .table { margin-bottom: 8px; }
.dl-groups .table td:first-child { width: 46%; }

.benefit-box { background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%); color: #fff; border-radius: var(--radius); padding: 26px 28px; margin-bottom: 28px; }
.benefit-title { color: #fff; margin: 0 0 14px; font-size: 22px; }
.benefit-list { margin: 0; padding-left: 20px; }
.benefit-list li { margin-bottom: 8px; line-height: 1.6; }

.policy-list { padding-left: 22px; }
.policy-list li { margin-bottom: 12px; line-height: 1.65; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 16px; }
.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.contact-card h3 { margin: 0 0 8px; color: var(--brand-dark); font-size: 17px; }
.contact-card p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.contact-card a { font-weight: 600; }

.faq-list { margin-top: 12px; }
.faq-list details { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 16px; margin-bottom: 10px; background: var(--card); }
.faq-list summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: "+"; color: var(--brand); font-weight: 800; margin-right: 10px; }
.faq-list details[open] summary::before { content: "2"; }
.faq-list details p { margin: 0 0 14px; color: var(--text); line-height: 1.65; }
.faq-list code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 13px; word-break: break-all; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-chip { display: inline-block; padding: 8px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-size: 14px; text-decoration: none; transition: all .15s; }
.tag-chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; transform: translateY(-1px); }

/* Filters */
.filter-bar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 28px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.filter-bar input[type="search"] { min-width: 220px; padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; }
.group-block { margin-bottom: 18px; }

/* Responsive */
@media (max-width: 980px) {
  .card-grid.four, .card-grid.three, .card-grid.two { grid-template-columns: repeat(2, 1fr); }
  .product-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; }
  .mobile-menu-btn { display: block; }
  .nav { display: none; width: 100%; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; gap: 4px; padding-top: 10px; }
  .nav li ul { position: static; box-shadow: none; border: none; padding-left: 14px; }
  .hero h1 { font-size: 28px; }
  .card-grid.four, .card-grid.three, .card-grid.two { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .feature-list { columns: 1; }
  .format-section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Purchase order pages (per-product, under site/purchase/) ===== */
.order-page { padding: 40px 0 60px; }
.order-page .breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.order-page .breadcrumb a { color: var(--muted); }
.order-page .breadcrumb a:hover { color: var(--brand); text-decoration: none; }
.order-page .breadcrumb span { color: var(--text); }
.order-grid { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
.order-box { text-align: center; }
.order-box a { display: inline-block; }
.order-box img { width: 200px; max-width: 100%; height: auto; filter: drop-shadow(0 8px 18px rgba(15,23,42,.18)); }
.order-info h2 { font-size: 24px; margin: 0 0 10px; }
.order-info h2 a { color: var(--brand); text-decoration: none; }
.order-info h2 a:hover { text-decoration: underline; }
.order-desc { color: var(--muted); margin: 0 0 18px; line-height: 1.6; font-size: 15px; }
.order-points { list-style: none; padding: 0; margin: 0 0 24px; }
.order-points li { position: relative; padding-left: 26px; margin-bottom: 10px; line-height: 1.5; color: var(--text); font-size: 14px; }
.order-points li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 700; }
.order-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 4px 18px rgba(15,23,42,.06); padding: 22px 24px 20px; max-width: 420px; }
.order-card-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.order-card-price { font-size: 36px; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: 8px; }
.order-card-note { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.order-card .btn { display: block; width: 100%; text-align: center; padding: 14px 20px; font-size: 16px; border-radius: 999px; margin-bottom: 12px; }
.order-card-secure { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #0f766e; background: #f0fdfa; border-radius: 999px; padding: 8px 14px; white-space: nowrap; }
.order-card-secure svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 640px) {
  .order-grid { grid-template-columns: 1fr; gap: 22px; }
  .order-box img { width: 150px; }
  .order-card { max-width: 100%; }
}
