/* Wisemark — corporate site styles */
:root {
  --bg: #fbfbfd;
  --bg-soft: #f2f3f7;
  --surface: #ffffff;
  --text: #0b0d17;
  --text-2: #4a4f63;
  --text-3: #7a7f93;
  --line: #e4e6ee;
  --accent: #4f46e5;
  --accent-2: #06b6d4;
  --accent-soft: rgba(79, 70, 229, 0.08);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --radius: 20px;
  --max: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07080d;
    --bg-soft: #0e1018;
    --surface: #11131c;
    --text: #f2f3f8;
    --text-2: #b4b8c9;
    --text-3: #7e8398;
    --line: #1f2230;
    --accent: #818cf8;
    --accent-2: #22d3ee;
    --accent-soft: rgba(129, 140, 248, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Inter Tight", "Inter", sans-serif; letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: "Inter Tight", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 15px; color: var(--text-2); transition: color .15s; }
.nav a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--text-3); }
.nav .btn { height: 38px; padding: 0 16px; font-size: 14px; color: var(--bg); }
.nav .btn:hover { color: var(--bg); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 900px; z-index: -1;
  background:
    radial-gradient(40% 40% at 30% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(35% 35% at 75% 30%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 70%);
  filter: blur(20px);
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 13px; font-weight: 500; color: var(--text-2);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.15); }
.hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 700; margin: 24px 0 20px; }
.gradient-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(18px, 2vw, 20px); color: var(--text-2); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.platforms { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 44px; color: var(--text-3); font-size: 14px; }
.platforms span { display: inline-flex; align-items: center; gap: 8px; }
.platforms svg { width: 18px; height: 18px; }

/* Hero visual: app-icon grid */
.hero-visual { position: relative; aspect-ratio: 1; max-width: 460px; margin-left: auto; width: 100%; }
.icon-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 24px; transform: rotate(-8deg); }
.app-icon {
  border-radius: 28%; box-shadow: var(--shadow);
  display: grid; place-items: center; color: #fff;
  animation: float 6s ease-in-out infinite;
}
.app-icon svg { width: 42%; height: 42%; }
.app-icon:nth-child(2n) { animation-delay: -1.5s; }
.app-icon:nth-child(3n) { animation-delay: -3s; }
.app-icon:nth-child(1) { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.app-icon:nth-child(2) { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.app-icon:nth-child(3) { background: linear-gradient(135deg, #f97316, #ef4444); }
.app-icon:nth-child(4) { background: linear-gradient(135deg, #10b981, #14b8a6); }
.app-icon:nth-child(5) { background: var(--text); color: var(--bg); }
.app-icon:nth-child(6) { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.app-icon:nth-child(7) { background: linear-gradient(135deg, #eab308, #f97316); }
.app-icon:nth-child(8) { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.app-icon:nth-child(9) { background: linear-gradient(135deg, #14b8a6, #22c55e); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .app-icon { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 900px) {
  .hero { padding: 56px 0 48px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; margin: 8px auto 0; }
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
@media (max-width: 600px) { section { padding: 64px 0; } }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .kicker { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.section-head h2 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 700; margin: 12px 0 16px; }
.section-head p { color: var(--text-2); font-size: 18px; }
.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 20px;
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 15px; }

/* Focus chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 10px;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.step { padding: 32px 28px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step .num { font-family: "Inter Tight", sans-serif; font-size: 14px; font-weight: 600; color: var(--text-3); }
.step h3 { font-size: 20px; margin: 28px 0 8px; }
.step p { color: var(--text-2); font-size: 15px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
}

/* Partners / company details */
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .partners { grid-template-columns: 1fr; gap: 32px; } }
.partners .section-head { margin-bottom: 0; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; color: var(--text-2); }
.checklist svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.details-head { padding: 22px 28px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.details-head h3 { font-size: 17px; }
.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(34,197,94,.12); color: #16a34a; }
@media (prefers-color-scheme: dark) { .badge { color: #4ade80; } }
.details dl { margin: 0; }
.details .row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 28px; border-bottom: 1px solid var(--line); font-size: 15px; }
.details .row:last-child { border-bottom: 0; }
.details dt { color: var(--text-3); }
.details dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.details dd a { color: var(--accent); }
@media (max-width: 480px) { .details .row { grid-template-columns: 1fr; gap: 2px; padding: 14px 20px; } .details-head { padding: 18px 20px; } }

/* Contact */
.contact-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: 64px 48px; text-align: center;
  background: var(--text); color: var(--bg);
}
.contact-card::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background:
    radial-gradient(50% 80% at 10% 0%, rgba(99,102,241,.55), transparent 60%),
    radial-gradient(50% 80% at 100% 100%, rgba(6,182,212,.45), transparent 60%);
}
.contact-card > * { position: relative; }
.contact-card h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.contact-card p { opacity: .75; max-width: 520px; margin: 0 auto; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.contact-links a {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 14px 22px; border-radius: 16px; min-width: 220px; text-align: left;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); transition: background .15s;
}
@media (prefers-color-scheme: dark) {
  .contact-links a { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.12); }
}
.contact-links a:hover { background: rgba(255,255,255,.16); }
.contact-links small { font-size: 12px; opacity: .65; text-transform: uppercase; letter-spacing: .08em; }
.contact-links span { font-weight: 600; }
@media (max-width: 560px) { .contact-card { padding: 44px 20px; border-radius: 22px; } .contact-links a { min-width: 0; width: 100%; } }

/* Footer */
.footer { padding: 48px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a:hover { color: var(--text); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 96px; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 12px; }
.legal .updated { color: var(--text-3); font-size: 15px; margin-bottom: 48px; }
.legal h2 { font-size: 22px; margin: 44px 0 14px; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 22px; margin: 14px 0; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--accent); }
.legal strong { color: var(--text); }
