/* ============================================================
   Smartium Technologies Inc. — Global Stylesheet
   SOFT theme · light pastel AI-tech aesthetic · mobile-first · static
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Soft base surfaces */
  --bg: #eef2fc;
  --bg-2: #f4f1fb;
  --bg-3: #eafaf7;

  /* Soft pastel accents */
  --sky: #7cb8f5;
  --blue: #8aa8f7;
  --electric: #6f9bf2;
  --cyan: #6fd0e2;
  --violet: #b69ef2;
  --indigo: #9d9bf0;
  --pink: #f0a6d0;

  /* Ink (text) — deep soft navy → muted slate */
  --white: #ffffff;
  --ink-900: #232b52;   /* headings */
  --ink-700: #3a4470;
  --ink-500: #5b6488;   /* body */
  --ink-400: #6e7799;   /* secondary body */
  --ink-300: #8b93b6;   /* muted */
  --ink-200: #a6adca;   /* faint */

  /* Gradients (soft) */
  --grad-brand: linear-gradient(120deg, #7fd8e8 0%, #8aa8f7 50%, #b69ef2 100%);
  --grad-brand-soft: linear-gradient(120deg, rgba(127,216,232,.20), rgba(182,158,242,.22));
  --grad-text: linear-gradient(120deg, #5b8def 0%, #9b76f0 55%, #46c2d8 100%);

  /* Surfaces */
  --surface: rgba(255, 255, 255, 0.66);
  --surface-2: rgba(255, 255, 255, 0.95);
  --border: rgba(90, 110, 170, 0.16);
  --border-strong: rgba(90, 110, 170, 0.30);

  /* Shadows (soft, bluish) */
  --shadow-sm: 0 4px 16px rgba(80, 100, 170, 0.10);
  --shadow-md: 0 16px 44px rgba(80, 100, 170, 0.15);
  --shadow-lg: 0 30px 80px rgba(80, 100, 170, 0.20);
  --glow: 0 0 0 1px rgba(138, 168, 247, 0.4), 0 18px 50px rgba(138, 168, 247, 0.3);

  /* Layout */
  --maxw: 1180px;
  --radius: 18px;
  --radius-lg: 26px;
  --nav-h: 72px;

  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--ink-500);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
ul { list-style: none; }

/* ---------- Soft animated background ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 12% -8%, rgba(124,184,245,.30), transparent 60%),
    radial-gradient(1000px 700px at 95% 6%, rgba(182,158,242,.28), transparent 60%),
    radial-gradient(900px 600px at 50% 112%, rgba(111,208,226,.24), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 45%, var(--bg-3));
}
.bg-fx::after {
  /* subtle grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(70,90,150,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70,90,150,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 80%);
}
.orb {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(75px);
  opacity: .5;
  pointer-events: none;
  will-change: transform;
}
.orb-1 { width: 460px; height: 460px; top: -120px; left: -80px;
  background: radial-gradient(circle, rgba(124,184,245,.6), transparent 65%);
  animation: float1 18s ease-in-out infinite; }
.orb-2 { width: 520px; height: 520px; top: 10%; right: -160px;
  background: radial-gradient(circle, rgba(182,158,242,.55), transparent 65%);
  animation: float2 22s ease-in-out infinite; }
.orb-3 { width: 420px; height: 420px; bottom: -160px; left: 30%;
  background: radial-gradient(circle, rgba(127,216,232,.5), transparent 65%);
  animation: float3 26s ease-in-out infinite; }

@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(60px,40px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-50px,60px)} }
@keyframes float3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,-50px)} }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; position: relative; }
.section-sm { padding: 56px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--electric);
  padding: 7px 14px; border-radius: 999px;
  background: var(--grad-brand-soft);
  border: 1px solid var(--border-strong);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--electric); box-shadow: 0 0 10px rgba(111,155,242,.8); }

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 18px 0 14px; }
.section-head p { color: var(--ink-400); font-size: 1.06rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: 1.25rem; }
p { color: var(--ink-400); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-size: .98rem; font-weight: 700;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #1b2347; background: var(--grad-brand);
  box-shadow: 0 10px 26px rgba(138,168,247,.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(138,168,247,.6); }
.btn-ghost {
  color: var(--ink-900); background: var(--surface-2); border-color: var(--border-strong);
  backdrop-filter: blur(8px); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--electric); color: var(--electric); transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 56px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--ink-500); font-weight: 600; font-size: .95rem;
  padding: 9px 14px; border-radius: 10px;
}
.nav-links a:hover { color: var(--ink-900); background: var(--surface-2); }
.nav-links a.active { color: var(--electric); }
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  width: 44px; height: 44px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--ink-900); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease; margin: 5px auto;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 90px;
  text-align: center;
}
.hero-inner { max-width: 880px; margin: 0 auto; }
.hero h1 { margin: 24px 0 22px; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--ink-500); max-width: 660px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 64px; max-width: 760px; margin-left: auto; margin-right: auto;
}
.hero-stats .stat {
  padding: 22px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}
.hero-stats .stat strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--ink-900); }
.hero-stats .stat span { font-size: .82rem; color: var(--ink-300); letter-spacing: .02em; }

/* floating chips in hero */
.hero-orbit { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--ink-900);
  background: rgba(255,255,255,.9); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md); backdrop-filter: blur(8px);
}
.chip i { width: 8px; height: 8px; border-radius: 50%; }
.chip.c1 { top: 16%; left: 6%; animation: bob 7s ease-in-out infinite; }
.chip.c2 { top: 28%; right: 5%; animation: bob 8s ease-in-out infinite .6s; }
.chip.c3 { bottom: 20%; left: 9%; animation: bob 9s ease-in-out infinite 1.1s; }
.chip.c4 { bottom: 12%; right: 8%; animation: bob 7.5s ease-in-out infinite .3s; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; padding: 30px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: .9; }

.card .icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: var(--grad-brand-soft); border: 1px solid var(--border-strong);
  margin-bottom: 20px; color: var(--electric);
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .96rem; }
.card .tag-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: .74rem; font-weight: 600; color: var(--ink-500);
  padding: 5px 11px; border-radius: 999px; background: var(--grad-brand-soft); border: 1px solid var(--border);
}

/* numbered list (why us) */
.feature {
  display: flex; gap: 18px; padding: 24px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.feature .num {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-weight: 800; color: #1b2347; background: var(--grad-brand);
}
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { font-size: .94rem; }

/* ---------- Vision / split section ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.vision-panel {
  position: relative; border-radius: var(--radius-lg); padding: 40px;
  background: linear-gradient(160deg, rgba(127,216,232,.16), rgba(182,158,242,.16));
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-md); overflow: hidden;
}
.vision-panel::after {
  content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -80px;
  background: radial-gradient(circle, rgba(138,168,247,.45), transparent 70%); filter: blur(20px);
}
.vision-list { display: grid; gap: 16px; margin-top: 8px; position: relative; z-index: 1; }
.vision-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-500); }
.vision-list .check {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  background: var(--grad-brand); color: #1b2347; font-size: 13px; font-weight: 900; margin-top: 2px;
}

/* ---------- CTA band ---------- */
.cta {
  position: relative; text-align: center; overflow: hidden;
  border-radius: var(--radius-lg); padding: 64px 28px;
  background: linear-gradient(135deg, rgba(124,184,245,.22), rgba(182,158,242,.22));
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
}
.cta::before, .cta::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
}
.cta::before { width: 300px; height: 300px; background: rgba(127,216,232,.5); left: -60px; top: -80px; }
.cta::after { width: 320px; height: 320px; background: rgba(182,158,242,.5); right: -60px; bottom: -90px; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { margin-bottom: 14px; }
.cta p { max-width: 560px; margin: 0 auto 28px; color: var(--ink-500); }
.cta .mail {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  font-weight: 700; color: var(--electric);
}
.cta .mail:hover { color: var(--violet); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.info-card {
  padding: 28px; border-radius: var(--radius); background: var(--surface-2);
  border: 1px solid var(--border); margin-bottom: 18px; box-shadow: var(--shadow-sm);
  display: flex; gap: 16px; align-items: flex-start;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.info-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.info-card .icon {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-brand-soft); border: 1px solid var(--border-strong); color: var(--electric);
}
.info-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.info-card a { color: var(--electric); font-weight: 700; }
.info-card a:hover { color: var(--violet); }
.info-card p, .info-card span { font-size: .94rem; color: var(--ink-400); }

.form-card {
  padding: 34px; border-radius: var(--radius-lg);
  background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 700; color: var(--ink-700); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: .96rem; color: var(--ink-900);
  padding: 13px 15px; border-radius: 12px;
  background: rgba(255,255,255,.85); border: 1px solid var(--border-strong);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-200); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(138,168,247,.28); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note {
  font-size: .82rem; color: var(--ink-300); margin-top: 14px; text-align: center;
}
.form-status {
  margin-top: 16px; padding: 13px 16px; border-radius: 12px; font-size: .9rem; display: none;
  background: rgba(127,216,232,.18); border: 1px solid rgba(111,208,226,.5); color: var(--ink-700);
}
.form-status.show { display: block; animation: fadeUp .4s ease; }

/* ---------- Legal / article pages ---------- */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 40px; text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.page-hero p { color: var(--ink-300); }
.legal {
  max-width: 820px; margin: 0 auto;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 54px); box-shadow: var(--shadow-md);
}
.legal h2 { font-size: 1.4rem; margin: 34px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin-bottom: 14px; color: var(--ink-400); }
.legal ul { margin: 0 0 16px; padding-left: 4px; }
.legal ul li {
  position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink-400);
}
.legal ul li::before {
  content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--grad-brand);
}
.legal a { color: var(--electric); font-weight: 700; }
.legal a:hover { color: var(--violet); }
.legal strong { color: var(--ink-700); }
.legal .updated {
  display: inline-block; font-size: .82rem; color: var(--ink-300);
  padding: 6px 12px; border-radius: 999px; background: var(--grad-brand-soft); border: 1px solid var(--border);
  margin-bottom: 24px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border); margin-top: 40px;
  background: rgba(255,255,255,0.55); backdrop-filter: blur(8px);
}
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 0 36px;
}
.footer .brand img { height: 72px; }
.footer-about { max-width: 320px; }
.footer-about p { font-size: .92rem; margin-top: 16px; color: var(--ink-400); }
.footer-col h4 {
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-300);
  margin-bottom: 16px; font-weight: 700;
}
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { color: var(--ink-500); font-size: .95rem; }
.footer-col a:hover { color: var(--electric); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: .86rem; color: var(--ink-300);
}
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-400);
  transition: all .25s ease;
}
.footer-bottom .socials a:hover { color: var(--electric); border-color: var(--electric); transform: translateY(-2px); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px);} to { opacity:1; transform:none;} }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 22px 24px;
    background: rgba(255,255,255,.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%); transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 14px; border-radius: 12px; font-size: 1rem; }
  .nav-cta { margin: 6px 0 0; }
  .nav-cta .btn { width: 100%; }
  .nav-toggle { display: block; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
}
@media (max-width: 460px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ---------- Accessibility ---------- */
:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
