/* ======================================================================
   WeCraft Solutions — company site + product legal pages
   ====================================================================== */
:root {
  --bg: #ffffff;
  --bg-2: #f6f7fb;
  --surface: #ffffff;
  --border: #e7e8f0;
  --ink: #0e1020;
  --text-hi: #14162a;
  --text-mid: #545872;
  --text-lo: #8b8fa6;
  --accent: #5b5bf0;
  --accent-ink: #4646d6;
  --accent-2: #8b5cff;
  --maxw: 1140px;
  --r: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 14px 40px rgba(20, 22, 42, .08);
  --shadow-lg: 0 34px 80px rgba(20, 22, 42, .14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg); color: var(--text-hi); line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 40% at 85% -5%, rgba(139, 92, 255, .12), transparent 60%),
    radial-gradient(46% 38% at 2% 8%, rgba(91, 91, 240, .10), transparent 60%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.center { text-align: center; }
h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -.02em; }
.eyebrow { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); display: inline-block; margin-bottom: 14px; }
.eyebrow.center { display: block; }
h2 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 700; line-height: 1.06; color: var(--ink); }
.lead { color: var(--text-mid); font-size: clamp(16px, 2vw, 19px); max-width: 620px; margin-top: 14px; }
.center .lead { margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 118px) 0; position: relative; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: 999px; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .25s var(--ease), background .2s, border-color .2s, color .2s; border: 1px solid transparent; }
.btn.solid { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn.solid:hover { transform: translateY(-2px); background: #23263f; }
.btn.ghost { border-color: var(--border); color: var(--ink); background: var(--surface); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(255, 255, 255, .8); backdrop-filter: blur(14px) saturate(150%); border-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -.01em; }
.brand .mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; box-shadow: var(--shadow); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a:not(.btn) { color: var(--text-mid); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links > a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle.on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.on span:nth-child(2) { opacity: 0; }
.nav-toggle.on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* hero */
.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(40px, 6.6vw, 76px); font-weight: 700; line-height: 1.02; color: var(--ink); }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { font-size: clamp(17px, 2.1vw, 21px); color: var(--text-mid); max-width: 620px; margin: 22px 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* products */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
.product { display: flex; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(91, 91, 240, .35); }
.product img { width: 76px; height: 76px; border-radius: 20px; box-shadow: var(--shadow); flex: 0 0 auto; }
.product h3 { font-size: 20px; color: var(--ink); font-weight: 700; }
.product .tag { font-family: "Space Grotesk", sans-serif; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.product p { color: var(--text-mid); font-size: 14.5px; margin: 4px 0 8px; }
.product .links { display: flex; gap: 14px; font-size: 14px; font-weight: 600; }
.product .links a { color: var(--accent-ink); }
.product.soon { align-items: center; justify-content: center; text-align: center; color: var(--text-lo); border-style: dashed; box-shadow: none; }
.product.soon:hover { transform: none; box-shadow: none; border-color: var(--border); }

/* services band */
.band { background: linear-gradient(180deg, var(--bg-2), #fff); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.svc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.svc .em { font-size: 30px; }
.svc h3 { font-size: 18px; margin: 14px 0 6px; color: var(--ink); }
.svc p { color: var(--text-mid); font-size: 14.5px; }

/* contact */
.contact-card { background: linear-gradient(135deg, #14162a, #23263f); color: #fff; border-radius: 26px; padding: clamp(36px, 6vw, 64px); text-align: center; box-shadow: var(--shadow-lg); }
.contact-card h2 { color: #fff; }
.contact-card .lead { color: #b9bcd0; margin-inline: auto; }
.contact-card .btn.solid { background: #fff; color: var(--ink); margin-top: 26px; }
.contact-card .btn.solid:hover { background: #f0f0f5; }

/* footer */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 52px 0 40px; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-tag { color: var(--text-lo); max-width: 320px; margin-top: 12px; font-size: 14.5px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { color: var(--text-mid); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.foot-links a:hover { color: var(--accent-ink); }
.copy { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-lo); }

/* legal / support */
.legal { padding: 56px 0 90px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; color: var(--ink); }
.legal .updated { color: var(--text-lo); font-family: "Space Grotesk", sans-serif; font-size: 13px; margin: 8px 0 26px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; color: var(--ink); }
.legal p, .legal li { color: var(--text-mid); font-size: 16px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; } .legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink); } .legal a { color: var(--accent-ink); font-weight: 600; }
.callout { background: var(--bg-2); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 14px; padding: 18px 20px; margin: 22px 0; }
.callout p { margin: 0; color: var(--ink); }
.faq { display: grid; gap: 12px; margin-top: 24px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 2px 20px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 17px 0; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 16px; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--accent); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 17px; margin: 0; }
.support-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); margin-top: 26px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.support-card .em { font-size: 40px; flex: 0 0 auto; }
.support-card > div { flex: 1; min-width: 240px; }
.support-card h2 { font-size: 22px; margin-bottom: 4px; }

/* reveals */
.js [data-h] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-h].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-h] { opacity: 1; transform: none; transition: none; } }

/* responsive */
@media (max-width: 900px) {
  .products, .services { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; position: absolute; top: 74px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 22px; }
}
