/* ============================================================
   TILLIO POS — Design System
   Visual DNA: modular rounded "blocks" (from the logo),
   clean SaaS surfaces, vibrant blue→cyan→mint accents.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand palette (from client) */
  --navy:        #040F4D;
  --blue:        #015EFD;
  --cyan:        #00BDFD;
  --mint:        #0FE6A8;
  --soft-cyan:   #6CD8F2;

  --bg:          #FFFFFF;
  --surface:     #F7FAFC;
  --surface-2:   #EFF5FA;
  --border:      #E5EEF5;
  --border-strong:#D5E2ED;

  --ink:         #07112F;   /* text primary */
  --slate:       #64748B;   /* text secondary */
  --slate-soft:  #94A4B8;

  /* Functional */
  --grad-brand:  linear-gradient(120deg, var(--blue) 0%, var(--cyan) 60%, var(--mint) 120%);
  --grad-deep:   linear-gradient(150deg, #061a6e 0%, var(--navy) 70%);
  --grad-soft:   linear-gradient(180deg, #ffffff 0%, var(--surface) 100%);

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  /* Radius — blocky but soft, echoing the logo's rounded squares */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Elevation — soft, cool-tinted shadows */
  --sh-sm: 0 2px 8px rgba(7,17,47,.06);
  --sh-md: 0 12px 30px -8px rgba(7,17,47,.12);
  --sh-lg: 0 30px 60px -18px rgba(7,17,47,.22);
  --sh-blue: 0 18px 40px -12px rgba(1,94,253,.45);

  /* Layout */
  --maxw: 1200px;
  --nav-h: 74px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }

::selection { background: var(--cyan); color: #fff; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }
.section { padding: 110px 0; }
.section--tight { padding: 72px 0; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--grad-brand); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin: 18px 0 14px; }
.section-head p { color: var(--slate); font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px;
  padding: 14px 24px; border-radius: var(--r-pill);
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--sh-blue); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -12px rgba(1,94,253,.55); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { background: #fff; border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-lg { padding: 17px 30px; font-size: 16.5px; }

/* ---------- Brand mark (rebuilt as crisp SVG of the logo blocks) ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); }
.brand-name span { color: var(--blue); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 20px -14px rgba(7,17,47,.25); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 15px; font-weight: 600; color: var(--slate);
  padding: 9px 14px; border-radius: var(--r-sm); transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-links a.active { color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* ---------- Pills / tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px; letter-spacing: .02em;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--surface); color: var(--slate); border: 1px solid var(--border);
}
.tag-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(15,230,168,.2); }
.tag-blue { background: rgba(1,94,253,.08); color: var(--blue); border-color: rgba(1,94,253,.18); }
.tag-mint { background: rgba(15,230,168,.12); color: #058a63; border-color: rgba(15,230,168,.28); }
.tag-soon { background: var(--surface-2); color: var(--slate-soft); border-color: var(--border); }
.tag-soon .tag-dot { background: var(--slate-soft); box-shadow: none; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #fff; padding: 76px 0 40px; }
.footer .brand-name { color: #fff; }
.footer .brand-name span { color: var(--cyan); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; }
.footer h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft-cyan); margin-bottom: 18px; font-weight: 600; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.66); font-size: 15px; padding: 6px 0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: rgba(255,255,255,.5); font-size: 14px; }
.footer-blurb { color: rgba(255,255,255,.6); font-size: 15px; max-width: 300px; margin-top: 16px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .section { padding: 80px 0; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .container { padding-inline: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
