/* ==========================================================================
   SmartTek — site styles. No inline styles anywhere (CSP style-src 'self').
   ========================================================================== */

:root {
  --bg: #0b1020;
  --bg-2: #0f172a;
  --text: #e8edf6;
  --dim: rgba(232, 237, 246, 0.68);
  --faint: rgba(232, 237, 246, 0.45);
  --line: rgba(255, 255, 255, 0.09);
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --c1: #22d3ee;
  --c2: #6366f1;
  --grad: linear-gradient(120deg, var(--c1), var(--c2));
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 20px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.center { text-align: center; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--c2); color: #fff; padding: 8px 14px; border-radius: 10px;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--c1); outline-offset: 3px; border-radius: 6px; }

/* ---------- Background ---------- */

.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; }
.bg-glow.g1 { width: 620px; height: 620px; top: -220px; right: -120px; background: var(--c2); }
.bg-glow.g2 { width: 520px; height: 520px; top: 380px; left: -220px; background: var(--c1); opacity: 0.18; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }

.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav { display: flex; align-items: center; gap: 6px; }

.site-nav a:not(.btn) {
  text-decoration: none; color: var(--dim); font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 10px; transition: color 0.2s, background 0.2s;
}
.site-nav a:not(.btn):hover { color: var(--text); background: var(--card); }
.site-nav a.active { color: var(--text); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .i-close { display: none; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad); color: #fff; text-decoration: none; border: 0;
  font: 600 15px/1 var(--font); padding: 13px 20px; border-radius: 12px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 12px 30px rgba(99, 102, 241, 0.45); }
.btn-sm { padding: 10px 16px; font-size: 14px; margin-left: 6px; }
.btn-ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--card); box-shadow: none; }

.link { display: inline-flex; align-items: center; gap: 6px; color: var(--c1); font-weight: 600; text-decoration: none; }
.link:hover { gap: 9px; }
.link .icon { transition: transform 0.2s; }

/* ---------- Type ---------- */

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c1); margin-bottom: 14px;
}

h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 750; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }

.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--dim); max-width: 640px; margin-top: 18px; }

p { color: var(--dim); }

/* ---------- Layout ---------- */

.section { padding: 56px 0; }

.section-head { max-width: 680px; margin-bottom: 34px; }
.section-head p { margin-top: 12px; font-size: 17px; }

.page-head { padding: 72px 0 12px; }
.page-head.center .lead { margin-inline: auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- Hero ---------- */

.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  padding: 84px 0 56px; min-height: min(760px, calc(100vh - 68px));
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }

.hero-art { position: relative; }


/* ---------- Services ---------- */

.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
  color: #fff; background: var(--grad); box-shadow: 0 8px 20px rgba(34, 211, 238, 0.25);
}

.service { transition: background 0.2s, transform 0.2s, border-color 0.2s; }
.service:hover { background: var(--card-hover); transform: translateY(-3px); border-color: rgba(34, 211, 238, 0.3); }
.service p { margin-top: 8px; }
.service-detail h2 { font-size: 26px; }
.service-detail .link { margin-top: 18px; }

.ticks { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--dim); }
.ticks .icon { color: var(--ok); flex: none; margin-top: 3px; }

/* ---------- Products ---------- */

.product-card {
  display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(99, 102, 241, 0.45); background: var(--card-hover); }

.shot { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.product-card:hover .shot img { transform: scale(1.04); }

.product-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

.product-title { display: flex; align-items: center; gap: 12px; }
.product-title.big { gap: 16px; margin: 18px 0 6px; }
.product-title.big h1 { font-size: clamp(36px, 4.6vw, 54px); }

.product-icon { border-radius: 22%; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); flex: none; background: #171a26; }

.meta { font-size: 13px; color: var(--faint); }

.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }

.more { display: inline-flex; align-items: center; gap: 6px; color: var(--c1); font-weight: 600; font-size: 14px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; color: var(--warn);
  background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.3);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.live { color: var(--ok); background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.3); }

/* Product page */

.product-hero { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; padding: 56px 0 24px; }
.product-hero-copy .lead { margin-top: 10px; color: var(--text); }
.product-hero-copy > p:not(.lead) { margin-top: 12px; }
.product-hero-shot img { border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: var(--shadow); width: 100%; }

.crumb { color: var(--faint); text-decoration: none; font-size: 14px; }
.crumb:hover { color: var(--text); }

.about-product { align-items: start; }
.about-product .body { font-size: 17px; margin-top: 12px; }
.mt { margin-top: 22px; margin-bottom: 8px; }

.feature .feature-tick { color: var(--c1); margin-bottom: 12px; }
.feature p { margin-top: 6px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.gallery figure { padding: 0; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.5s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 12px 16px; font-size: 14px; color: var(--faint); }

/* ---------- Process & chips ---------- */

.process { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.process li { padding: 24px; }
.process p { margin-top: 6px; font-size: 15px; }
.step { display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; margin-bottom: 10px; color: var(--c1); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-size: 15px; font-weight: 500;
}
.chips.small li { padding: 6px 12px; font-size: 13px; }

/* ---------- Split & CTA ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.split p { margin: 12px 0 18px; }
.split img { border-radius: 14px; border: 1px solid var(--line); }

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 44px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(99, 102, 241, 0.25), transparent 60%),
    var(--card);
}
.cta-band p { margin-top: 8px; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.contact-side { display: grid; gap: 20px; }
.contact-side h3 { margin-bottom: 6px; }

.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.form .opt { font-weight: 400; color: var(--faint); }
.form input, .form select, .form textarea {
  width: 100%; font: 400 15px/1.5 var(--font); color: var(--text);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; transition: border-color 0.2s, background 0.2s;
}
.form select option { color: #0b1020; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--c1); background: rgba(255, 255, 255, 0.07); }
.form .btn { justify-self: start; }
.form .fine { font-size: 13px; color: var(--faint); }
.form .fine a { color: var(--dim); }
.field { display: grid; gap: 6px; align-content: start; }
.error { color: #fca5a5; font-size: 14px; }
.form [aria-invalid="true"] { border-color: #f87171; background: rgba(248, 113, 113, 0.08); }
.notice.error-box { background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.35); color: var(--text); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; margin-bottom: 20px; }
.notice.success { background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.35); color: var(--text); }
.notice.success .icon { color: var(--ok); flex: none; }

/* ---------- Prose (privacy) ---------- */

.prose { max-width: 820px; }
.prose h2 { font-size: 22px; margin: 28px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 12px; }
.prose a { color: var(--c1); }
.prose strong { color: var(--text); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 48px; background: rgba(5, 8, 18, 0.5); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 12px; }
.footer-grid a:not(.brand), .footer-grid > div > span { display: block; color: var(--dim); text-decoration: none; padding: 3px 0; font-size: 15px; }
.footer-grid a:not(.brand):hover { color: var(--text); }
.footer-brand p { margin-top: 12px; max-width: 320px; font-size: 15px; }
.footer-bottom { display: flex; justify-content: space-between; padding: 26px 0 32px; margin-top: 36px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }

/* ---------- Scroll reveal (only when JS runs) ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero, .product-hero { grid-template-columns: 1fr; min-height: 0; max-height: none; padding-top: 56px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 20px 20px;
    background: rgba(11, 16, 32, 0.97); border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav .btn-sm { margin: 8px 0 0; justify-content: center; }
  .nav-open .nav-toggle .i-open { display: none; }
  .nav-open .nav-toggle .i-close { display: block; }
  .grid-2, .grid-3, .process, .form .row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 30px 26px; }
  .card { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .section { padding: 40px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .service, .product-card, .shot img, .gallery img, .btn { transition: none; }
}

/* ---------- Illustrated feature sections (home) ---------- */

.hero-art img { width: 100%; height: auto; max-width: 640px; margin-left: auto; }

.feature-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.feature-split p { margin-top: 14px; font-size: 17px; }
.feature-split .ticks { margin: 18px 0 20px; }
.feature-split img { width: 100%; height: auto; }
.feature-split.flip > div { order: 2; }

@media (max-width: 1000px) {
  .feature-split { grid-template-columns: 1fr; gap: 28px; }
  .feature-split.flip > div { order: 0; }
}
