/* =========================================================
   DTSTORE — Design tokens
   ========================================================= */
:root {
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --surface-2: #EEF1F8;
  --text: #12131A;
  --text-muted: #5B6472;
  --border: #E4E8F0;

  --primary: #5B21B6;
  --primary-hover: #4C1D95;
  --primary-soft: #EFE7FB;
  --accent: #F59E0B;
  --accent-hover: #DB8B04;
  --signal: #06B6D4;
  --success: #16A34A;
  --danger: #DC2626;

  --shadow-sm: 0 1px 2px rgba(18, 19, 26, 0.06);
  --shadow-md: 0 8px 24px rgba(18, 19, 26, 0.08);
  --shadow-lg: 0 20px 48px rgba(18, 19, 26, 0.14);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --header-h: 72px;
  --container: 1180px;
}

[data-theme="dark"] {
  --bg: #0B0D14;
  --surface: #12141F;
  --surface-2: #181B29;
  --text: #E8EAF2;
  --text-muted: #9199AC;
  --border: #232636;

  --primary: #8B5CF6;
  --primary-hover: #A78BFA;
  --primary-soft: #221A3B;
  --accent: #FBBF24;
  --accent-hover: #FCD34D;
  --signal: #22D3EE;
  --success: #34D399;
  --danger: #F87171;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 640px) {
  .container { padding-inline: 32px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 25%, transparent);
}

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.01em; margin-top: 14px; }
.section-head p { color: var(--text-muted); margin-top: 12px; font-size: 16px; }
.section-head.center { margin-inline: auto; text-align: center; }

.section { padding-block: clamp(56px, 8vw, 96px); }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }

/* connection-dot divider — echoes the hero "network" motif */
.node-divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-muted); font-family: var(--font-mono); font-size: 12px;
  margin-bottom: 18px;
}
.node-divider .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.node-divider .line { flex: 0 0 40px; height: 1px; background: var(--border); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  min-height: 48px;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-accent { background: var(--accent); color: #1A1200; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  overflow: hidden; flex: none;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand img { width: 36px; height: 36px; object-fit: cover; border-radius: 10px; display: block; }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; align-items: center; gap: 28px; }
.nav-desktop a { font-size: 14.5px; font-weight: 500; color: var(--text-muted); transition: color .15s ease; }
.nav-desktop a:hover { color: var(--primary); }

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

.icon-btn {
  width: 42px; height: 42px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); flex: none;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .icon-moon { display: none; }
[data-theme="dark"] .icon-btn .icon-sun { display: none; }
[data-theme="dark"] .icon-btn .icon-moon { display: block; }

.menu-toggle { display: flex; }
.menu-toggle span { display: block; }

@media (min-width: 900px) {
  .nav-desktop { display: block; }
  .menu-toggle { display: none; }
}

/* Mobile nav overlay — same links/actions as desktop, just full-screen */
.nav-mobile {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 20px;
  transform: translateY(-100%);
  transition: transform .3s ease;
}
.nav-mobile.open { transform: translateY(0); }
.nav-mobile .nav-mobile-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.nav-mobile ul { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.nav-mobile a {
  display: block; padding: 16px 4px; font-size: 20px; font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.nav-mobile .nav-mobile-cta { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 20px; }
body.nav-open { overflow: hidden; }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding-top: clamp(48px, 8vw, 88px); padding-bottom: clamp(40px, 6vw, 72px); overflow: hidden; }
.hero .container { display: grid; gap: 44px; align-items: center; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  letter-spacing: -0.02em;
  margin-top: 18px;
}
.hero h1 .accent-text { color: var(--primary); }
.hero-lead { margin-top: 18px; font-size: 17px; color: var(--text-muted); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 32px; }
.hero-meta div { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); }
.hero-meta strong { display: block; font-family: var(--font-display); font-size: 20px; color: var(--text); font-weight: 700; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 460px; margin-inline: auto; width: 100%; }
.hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 116px; height: 116px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); z-index: 3;
}
.hub strong { font-family: var(--font-display); font-size: 15px; color: var(--text); font-weight: 700; }

.node {
  position: absolute; width: 64px; height: 64px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); z-index: 3;
}
.node svg { width: 26px; height: 26px; }
.node-wa { top: 2%; left: 8%; color: #16A34A; }
.node-tg { top: 6%; right: 2%; color: var(--signal); }
.node-dc { bottom: 4%; right: 10%; color: var(--primary); }
.node-web { bottom: 8%; left: 0%; color: var(--accent); }

.hero-visual svg.links { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-visual svg.links path {
  fill: none; stroke: var(--border); stroke-width: 2;
}
.hero-visual svg.links path.flow {
  stroke: var(--signal); stroke-width: 2; stroke-dasharray: 6 10;
  animation: flow 3.2s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -160; } }

@media (prefers-reduced-motion: reduce) {
  .hero-visual svg.links path.flow { animation: none; }
}

@media (min-width: 960px) {
  .hero .container { grid-template-columns: 1.05fr 0.95fr; }
  .hero-visual { max-width: none; }
}

/* =========================================================
   Product / service cards
   ========================================================= */
.grid-products {
  display: grid; gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-products { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .grid-products { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(18,19,26,.65); color: #fff;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  padding: 5px 10px; border-radius: var(--radius-pill); backdrop-filter: blur(4px);
}

.card-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body h3 { font-size: 19px; }
.card-body .desc { color: var(--text-muted); font-size: 14.5px; }
.card-feats { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.card-feats li { display: flex; gap: 8px; font-size: 13.5px; color: var(--text-muted); align-items: flex-start; }
.card-feats svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--success); }

.card-footer { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--font-mono); }
.price .from { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.price .amount { font-size: 17px; font-weight: 700; color: var(--text); }
.card-footer .btn { padding: 11px 18px; font-size: 13.5px; min-height: 42px; }

/* =========================================================
   Why us
   ========================================================= */
.grid-why { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-why { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .grid-why { grid-template-columns: repeat(4, 1fr); } }
.why-item { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.why-item .icon-wrap {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.why-item .icon-wrap svg { width: 22px; height: 22px; }
.why-item h3 { font-size: 16.5px; margin-bottom: 8px; }
.why-item p { font-size: 14px; color: var(--text-muted); }

/* =========================================================
   Location
   ========================================================= */
.location-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .location-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.location-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.location-row { display: flex; gap: 14px; align-items: flex-start; }
.location-row .icon-wrap {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.location-row .icon-wrap svg { width: 19px; height: 19px; }
.location-row h4 { font-size: 14.5px; margin-bottom: 3px; }
.location-row p, .location-row a { font-size: 14.5px; color: var(--text-muted); }
.map-embed {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border);
  min-height: 320px; background: var(--surface-2);
}
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* =========================================================
   FAQ (native details/summary — robust on mobile)
   ========================================================= */
.faq-list { max-width: 780px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-weight: 600; font-size: 15.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 22px; color: var(--primary); flex: none;
  font-family: var(--font-mono); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 20px 20px; color: var(--text-muted); font-size: 14.5px; max-width: 68ch; }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }

.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 18px;
}
.contact-card .icon-wrap {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.contact-card .icon-wrap svg { width: 20px; height: 20px; }
.contact-card h4 { font-size: 14px; }
.contact-card p, .contact-card a { font-size: 14px; color: var(--text-muted); }
.contact-card a:hover { color: var(--primary); }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label { font-size: 13.5px; font-weight: 600; }
.form-row input, .form-row select, .form-row textarea {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text); font-size: 14.5px; width: 100%;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12.5px; color: var(--text-muted); margin-top: 10px; }

/* =========================================================
   Modal (product detail)
   ========================================================= */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10, 11, 16, .55);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface); width: 100%; max-width: 640px;
  border-radius: 20px 20px 0 0;
  max-height: 92vh; overflow-y: auto;
  transform: translateY(24px); transition: transform .25s ease;
}
.modal-backdrop.open .modal { transform: translateY(0); }
@media (min-width: 720px) {
  .modal-backdrop { align-items: center; }
  .modal { border-radius: var(--radius-lg); }
}

.modal-media { position: relative; aspect-ratio: 16/9; background: var(--surface-2); }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(10,11,16,.6); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
}
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: 24px 26px 28px; }
.modal-body .card-tag { position: static; display: inline-block; background: var(--primary-soft); color: var(--primary); margin-bottom: 12px; }
.modal-body h3 { font-size: 24px; margin-bottom: 12px; }
.modal-body .desc { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }
.modal-section { margin-bottom: 20px; }
.modal-section h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 10px; }
.modal-list { display: flex; flex-direction: column; gap: 8px; }
.modal-list li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.modal-list svg { width: 16px; height: 16px; color: var(--success); flex: none; margin-top: 3px; }
.modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.modal-footer .modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* =========================================================
   Floating WhatsApp button
   ========================================================= */
.fab-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: #16A34A; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.fab-wa svg { width: 27px; height: 27px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-block: 48px 26px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14.5px; color: var(--text-muted); }
.footer-col a:hover { color: var(--primary); }
.footer-about p { color: var(--text-muted); font-size: 14px; margin-top: 12px; max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-muted);
}
.footer-bottom .legal-links { display: flex; gap: 18px; }

/* =========================================================
   Terms page
   ========================================================= */
.legal-doc { max-width: 760px; margin-inline: auto; }
.legal-doc h1 { font-size: clamp(28px, 4vw, 36px); margin-bottom: 8px; }
.legal-doc .updated { color: var(--text-muted); font-size: 13.5px; font-family: var(--font-mono); margin-bottom: 40px; display: block; }
.legal-doc h2 { font-size: 19px; margin-top: 34px; margin-bottom: 12px; }
.legal-doc p { color: var(--text-muted); font-size: 15px; margin-bottom: 12px; }
.legal-doc ul { margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.legal-doc li { color: var(--text-muted); font-size: 15px; padding-left: 18px; position: relative; }
.legal-doc li::before { content: "—"; position: absolute; left: 0; color: var(--primary); }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--primary); margin-bottom: 22px; }
.back-link svg { width: 16px; height: 16px; }

/* utility */
.visually-hidden {
  position: absolute; width: px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
