/* ==========================================================================
   MALTA BROKERING — Design system v2
   Warm limestone paper · Mediterranean blue · Malta gold.
   Inspiration: Apple (space & product shots), Linear (bento & precision),
   Anthropic (warm editorial calm), Amalfi (serif luxe).
   One stylesheet powers the marketing site AND the login/signup/dashboard/
   admin subdomains — app component classes are preserved below.
   ========================================================================== */

:root {
  /* Surfaces — warm paper, not cold white */
  --paper: #faf7f0;        /* page background (limestone-warm) */
  --paper-2: #f4eee1;      /* deeper limestone band */
  --card: #ffffff;
  --card-2: #fbfaf6;

  /* Blues — the Mediterranean */
  --blue: #1e6ff0;
  --blue-2: #1858c8;
  --blue-ink: #0b2a5c;     /* deep marine — dark blocks, footer */
  --blue-ink-2: #071d43;
  --blue-soft: #e7f0fe;
  --blue-mist: #f0f5fd;
  --cyan: #35b6d6;         /* sea highlight for gradients */

  /* Malta gold — used sparingly, luxury accent */
  --gold: #b28a3c;
  --gold-2: #d8b877;
  --gold-soft: #f3ead5;

  /* Ink & text */
  --ink: #10233f;          /* headings */
  --text: #46536a;         /* body */
  --muted: #6d788f;        /* secondary */
  --muted-2: #9fb0cc;      /* on dark */
  --white: #ffffff;

  /* Lines */
  --line: #ece5d6;         /* warm hairline on paper */
  --line-cool: #e3e9f2;    /* cool hairline on white/blue */
  --line-dark: rgba(255,255,255,0.12);

  /* Status */
  --success: #2e7d5b;
  --warning: #b07d2b;
  --danger: #b04a3a;
  --info: #3a5f8a;

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --radius: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --shadow-xl: 0 40px 90px -40px rgba(11, 42, 92, 0.35);
  --shadow: 0 26px 60px -30px rgba(11, 42, 92, 0.28);
  --shadow-sm: 0 12px 30px -16px rgba(11, 42, 92, 0.20);
  --ring: 0 0 0 1px var(--line);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }

h1, h2, h3, h4, .serif {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.04;
  color: var(--ink);
  letter-spacing: -0.015em;
}

/* ---------- Layout utilities ---------- */
.container { width: min(1200px, 90%); margin-inline: auto; }
.narrow { width: min(760px, 90%); margin-inline: auto; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
section { padding: clamp(4.5rem, 9vw, 8.5rem) 0; position: relative; }
.sec-sm { padding: clamp(3rem, 6vw, 5rem) 0; }

.paper-2 { background: var(--paper-2); }
.blue-mist { background: var(--blue-mist); }

/* Section header block */
.sec-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head.center { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue);
  background: var(--blue-soft); padding: 0.4rem 0.85rem; border-radius: 999px;
  margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.eyebrow.gold { color: var(--gold); background: var(--gold-soft); }
.eyebrow.gold::before { background: var(--gold); }
.eyebrow.no-line::before { display: none; }
.eyebrow.on-dark { background: rgba(255,255,255,0.10); color: #fff; }
.eyebrow.on-dark::before { background: var(--gold-2); }

.display { font-size: clamp(2.9rem, 6.4vw, 5rem); letter-spacing: -0.025em; }
.h-lg { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.h-md { font-size: clamp(1.55rem, 2.8vw, 2.15rem); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.24rem); color: var(--muted); line-height: 1.6; max-width: 56ch; }
.balance { text-wrap: balance; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.95rem 1.7rem; border-radius: 999px;
  background: var(--blue); color: #fff;
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.01em;
  border: 1px solid var(--blue);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
  box-shadow: 0 10px 24px -12px rgba(30, 111, 240, 0.6);
}
.btn:hover { transform: translateY(-2px); background: var(--blue-2); border-color: var(--blue-2); box-shadow: 0 18px 34px -14px rgba(30, 111, 240, 0.65); }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,0.32); }
.btn-ghost.on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-white { background: #fff; color: var(--blue-2); border-color: #fff; }
.btn-white:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--blue-ink); }

.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.82rem; }
.btn-block { width: 100%; }

.textlink {
  display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; color: var(--blue);
  border-bottom: 1.5px solid transparent; transition: border-color 0.3s, gap 0.3s;
}
.textlink:hover { border-color: var(--blue); gap: 0.7rem; }
/* alias kept for app pages */
.link-more { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.85rem; color: var(--blue); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.link-more:hover { border-color: var(--blue); }

/* ---------- Navigation (floating pill) ---------- */
.nav {
  position: fixed; inset: 1rem 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; transition: inset 0.4s var(--ease);
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  background: rgba(255,255,255,0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.55rem 0.65rem 0.55rem 1.5rem;
  box-shadow: 0 14px 40px -22px rgba(11, 42, 92, 0.4);
  transition: box-shadow 0.4s var(--ease), background 0.4s;
}
.nav.scrolled .container { background: rgba(255,255,255,0.9); box-shadow: 0 18px 44px -20px rgba(11, 42, 92, 0.5); }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); }
.brand .dot { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(140deg, var(--blue), var(--cyan)); box-shadow: 0 6px 14px -6px rgba(30,111,240,0.7); position: relative; }
.brand .dot::after { content: ""; position: absolute; inset: 7px 7px auto auto; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); }
.brand .mark { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; letter-spacing: 0.01em; }
.brand .mark em { font-style: normal; color: var(--blue); }

.nav-menu { display: flex; align-items: center; gap: 2.2rem; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; }
.nav-links a {
  font-size: 0.9rem; font-weight: 600; color: var(--text);
  position: relative; padding: 0.3rem 0; transition: color 0.3s;
}
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--blue); border-radius: 2px; transition: width 0.35s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-cta .signin { font-size: 0.9rem; font-weight: 600; color: var(--text); padding: 0 0.4rem; }
.nav-cta .signin:hover { color: var(--blue); }

.nav-burger { display: none; background: none; border: 0; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.35s var(--ease); }
.nav.open .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav { inset: 0.6rem 0 auto 0; }
  .nav-burger { display: flex; }
  .nav-menu {
    position: fixed; inset: 0; background: var(--paper);
    flex-direction: column; align-items: center; justify-content: center; gap: 2.2rem;
    opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease); z-index: -1;
  }
  .nav.open .nav-menu { opacity: 1; pointer-events: auto; }
  .nav-links { flex-direction: column; gap: 1.7rem; }
  .nav-links a { font-size: 1.15rem; }
  .nav-cta { flex-direction: column; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding: calc(var(--nav-h) + 4.5rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero-wash {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(48% 42% at 82% 6%, rgba(216, 184, 119, 0.28), transparent 60%),
    radial-gradient(60% 55% at 6% 96%, rgba(30, 111, 240, 0.14), transparent 60%),
    radial-gradient(40% 40% at 96% 88%, rgba(53, 182, 214, 0.14), transparent 65%);
}
.hero-blob {
  position: absolute; z-index: 0; filter: blur(10px); opacity: 0.9; pointer-events: none;
  width: 42vw; max-width: 620px; aspect-ratio: 1; right: -8%; top: 4%;
  background: conic-gradient(from 120deg, rgba(30,111,240,0.16), rgba(53,182,214,0.14), rgba(216,184,119,0.16), rgba(30,111,240,0.16));
  border-radius: 44% 56% 63% 37% / 42% 44% 56% 58%;
  animation: morph 18s var(--ease) infinite alternate;
}
@keyframes morph {
  0% { border-radius: 44% 56% 63% 37% / 42% 44% 56% 58%; transform: rotate(0deg) scale(1); }
  100% { border-radius: 60% 40% 38% 62% / 56% 58% 42% 44%; transform: rotate(18deg) scale(1.08); }
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 3rem; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.6rem;
  padding: 0.4rem 0.5rem 0.4rem 0.5rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 0.82rem; font-weight: 600; color: var(--text);
}
.hero-badge .pill { background: var(--blue); color: #fff; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px; }
.hero h1 { font-size: clamp(2.9rem, 6.2vw, 5rem); letter-spacing: -0.03em; }
.hero h1 em { font-style: italic; color: var(--blue); }
.hero .lead { margin: 1.6rem 0 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero-note { margin-top: 1.6rem; display: flex; align-items: center; gap: 0.7rem; font-size: 0.9rem; color: var(--muted); }
.hero-note .dots { display: flex; }
.hero-note .dots i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--paper); margin-left: -8px; background: linear-gradient(135deg, var(--blue-soft), var(--gold-soft)); }
.hero-note .dots i:first-child { margin-left: 0; }

/* App-preview window (Apple-style product shot, pure CSS) */
.appwin {
  position: relative; background: #fff; border: 1px solid var(--line-cool);
  border-radius: var(--radius); box-shadow: var(--shadow-xl); overflow: hidden;
  animation: rise 1s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.appwin-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line-cool); background: var(--card-2); }
.appwin-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e2dccd; }
.appwin-bar i:nth-child(1) { background: #f0b6ac; } .appwin-bar i:nth-child(2) { background: #f4d9a6; } .appwin-bar i:nth-child(3) { background: #b7e0c2; }
.appwin-bar .addr { margin-left: 0.6rem; font-size: 0.74rem; color: var(--muted); background: #fff; border: 1px solid var(--line-cool); border-radius: 999px; padding: 0.25rem 0.8rem; }
.appwin-body { padding: 1.2rem; }
.appwin-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.appwin-title b { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.lead-row {
  display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; align-items: center;
  padding: 0.8rem 0.9rem; border: 1px solid var(--line-cool); border-radius: var(--radius-sm);
  margin-bottom: 0.55rem; background: #fff; transition: transform 0.4s var(--ease), border-color 0.4s;
}
.lead-row:hover { transform: translateX(4px); border-color: #c7d9f6; }
.lead-row .who { font-weight: 700; color: var(--ink); font-size: 0.92rem; }
.lead-row .sub { font-size: 0.76rem; color: var(--muted); }
.lead-row.new { animation: pop 0.6s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

/* floating stat cards over the window */
.float-card {
  position: absolute; background: #fff; border: 1px solid var(--line-cool);
  border-radius: 16px; box-shadow: var(--shadow); padding: 0.85rem 1.05rem;
  display: flex; align-items: center; gap: 0.7rem; animation: bob 6s ease-in-out infinite;
}
.float-card .fig { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--blue); line-height: 1; }
.float-card .cap { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.float-card.fc1 { top: 8%; left: -7%; animation-delay: -1s; }
.float-card.fc2 { bottom: 6%; right: -6%; animation-delay: -3s; }
.float-card .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 800; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 560px) { .float-card { display: none; } }

/* ---------- Ticker / trust strip ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--paper-2); overflow: hidden; }
.ticker-inner { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 0; }
.ticker-label { flex: none; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding-right: 1.4rem; border-right: 1px solid var(--line); }
.ticker-mask { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 2.6rem; width: max-content; animation: marquee 34s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: #8a7b58; display: inline-flex; align-items: center; gap: 2.6rem; white-space: nowrap; }
.ticker-track span::after { content: "✦"; font-size: 0.6rem; color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* legacy marquee alias */
.marquee { overflow: hidden; padding: 1.2rem 0; border-block: 1px solid var(--line); background: var(--paper-2); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 34s linear infinite; }

/* ==========================================================================
   BENTO GRID
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.bento .tile {
  grid-column: span 2; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem; position: relative; overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
}
.bento .tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d8e4f6; }
.tile.wide { grid-column: span 3; }
.tile.tall { grid-row: span 2; }
.tile.feature { grid-column: span 3; background: linear-gradient(150deg, #0e2f66, var(--blue-ink)); border-color: var(--blue-ink); color: var(--muted-2); }
.tile.feature h3, .tile.feature .fig { color: #fff; }
.tile.feature .glow2 { position: absolute; inset: auto -20% -40% auto; width: 60%; height: 80%; background: radial-gradient(circle, rgba(53,182,214,0.4), transparent 65%); }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento .tile, .tile.wide, .tile.feature { grid-column: span 1; } .tile.tall { grid-row: auto; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento .tile, .tile.wide, .tile.feature { grid-column: span 1; } }

.tile .ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 1.3rem;
  font-size: 1.4rem; font-family: var(--serif); font-weight: 600;
}
.tile.feature .ico { background: rgba(255,255,255,0.12); color: #fff; }
.tile.gold .ico { background: var(--gold-soft); color: var(--gold); }
.tile h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.tile p { font-size: 0.98rem; color: var(--muted); }
.tile.feature p { color: var(--muted-2); }
.tile .fig { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 600; color: var(--blue); line-height: 1; }
.tile .fig-lbl { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 0.5rem; }

/* ==========================================================================
   FLOW (numbered horizontal steps with connector)
   ========================================================================== */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; }
@media (max-width: 820px) { .flow { grid-template-columns: 1fr; } }
.flow-step { position: relative; padding: 2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.flow-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.flow-step .num {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--blue), var(--cyan)); color: #fff;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 1.3rem;
  box-shadow: 0 10px 20px -8px rgba(30,111,240,0.6);
}
.flow-step h3 { font-size: 1.35rem; margin-bottom: 0.55rem; }
.flow-step p { color: var(--muted); font-size: 0.97rem; }
.flow-step .tag { position: absolute; top: 1.6rem; right: 1.6rem; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }

/* ==========================================================================
   SPLIT feature (text + figure)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.split.flip .split-media { order: -1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.flip .split-media { order: 0; } }

.figure {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 400px;
  background: linear-gradient(155deg, #dcecfe, var(--blue-mist));
  border: 1px solid var(--line-cool); box-shadow: var(--shadow); display: grid; place-items: center; padding: 2rem;
}
.figure.deep { background: linear-gradient(155deg, #0f326c, var(--blue-ink)); }
.figure .panel-mini {
  width: min(380px, 100%); background: rgba(255,255,255,0.9); border: 1px solid var(--line-cool);
  border-radius: var(--radius-md); padding: 1.1rem; box-shadow: var(--shadow-sm); backdrop-filter: blur(6px);
}
.figure.deep .panel-mini { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.16); color: var(--muted-2); }
.panel-mini .prow { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; padding: 0.7rem 0.85rem; border-radius: 10px; background: rgba(255,255,255,0.6); margin-bottom: 0.5rem; font-size: 0.85rem; }
.figure.deep .panel-mini .prow { background: rgba(255,255,255,0.06); }
.panel-mini .prow b { color: var(--ink); } .figure.deep .panel-mini .prow b { color: #fff; }

/* Checklist */
.checklist { list-style: none; display: grid; gap: 1.05rem; margin-top: 1.8rem; }
.checklist li { display: flex; gap: 0.9rem; align-items: flex-start; }
.checklist .tick { flex: 0 0 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 0.72rem; font-weight: 900; margin-top: 2px; }
.checklist b { color: var(--ink); }

/* ==========================================================================
   METRICS band
   ========================================================================== */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 760px) { .metrics { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.metric { text-align: center; }
.metric .num { font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 600; line-height: 1; background: linear-gradient(140deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.metric .lbl { margin-top: 0.6rem; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.on-dark .metric .num { background: linear-gradient(140deg, #8fc2ff, var(--gold-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.on-dark .metric .lbl { color: var(--muted-2); }

/* ==========================================================================
   COMPARE (why us table)
   ========================================================================== */
.compare { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; align-items: center; }
.compare-row + .compare-row { border-top: 1px solid var(--line); }
.compare-row > div { padding: 1.15rem 1.3rem; }
.compare-row.head > div { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.compare-row.head .us { color: var(--blue); }
.compare .us { background: var(--blue-mist); font-weight: 700; }
.compare .feat { font-weight: 700; color: var(--ink); }
.compare .yes { color: var(--success); font-weight: 800; }
.compare .no { color: #b9b2a3; }
@media (max-width: 720px) { .compare-row { grid-template-columns: 1fr; } .compare-row > div { padding: 0.6rem 1.1rem; } .compare-row.head { display: none; } .compare .us::before { content: "Malta Brokering: "; font-weight: 800; } }

/* ==========================================================================
   VOICE (testimonial / editorial quote)
   ========================================================================== */
.voice { max-width: 900px; margin-inline: auto; text-align: center; }
.voice blockquote { font-family: var(--serif); font-size: clamp(1.7rem, 3.6vw, 2.8rem); font-weight: 500; font-style: italic; color: var(--ink); line-height: 1.28; text-wrap: balance; }
.voice .qm { font-family: var(--serif); font-size: 4rem; color: var(--gold-2); line-height: 0.4; display: block; margin-bottom: 1rem; }
.voice cite { display: block; margin-top: 1.8rem; font-style: normal; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.voice.on-dark blockquote { color: #fff; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0.4rem 1.4rem; margin-bottom: 0.9rem; background: var(--card); transition: border-color 0.3s, box-shadow 0.3s; }
.faq details[open] { border-color: #cdddf5; box-shadow: var(--shadow-sm); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; cursor: pointer; list-style: none; padding: 1.1rem 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.5rem; color: var(--blue); transition: transform 0.35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.2rem; color: var(--muted); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, #1560d8, var(--blue-ink) 90%);
  padding: clamp(3rem, 6vw, 5.5rem); text-align: center; box-shadow: var(--shadow-xl);
}
.cta::before { content: ""; position: absolute; inset: -30%; background: radial-gradient(40% 40% at 50% 0%, rgba(53,182,214,0.4), transparent 70%); animation: pulse 8s ease-in-out infinite; }
.cta::after { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 80%; background: radial-gradient(50% 60% at 50% 100%, rgba(216,184,119,0.25), transparent 70%); }
@keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { color: #cfe1fb; margin: 1.1rem auto 2rem; max-width: 50ch; }
.cta .hero-actions { justify-content: center; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--blue-ink-2); color: var(--muted-2); padding: 5rem 0 2.5rem; }
.footer-grid { display: grid; gap: 3rem; grid-template-columns: 2.2fr 1fr 1fr 1.2fr; margin-bottom: 3.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .brand { color: #fff; margin-bottom: 1.1rem; }
.footer .brand .mark em { color: var(--gold-2); }
.footer p.blurb { max-width: 34ch; font-size: 0.95rem; color: var(--muted-2); }
.footer h4 { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; margin-bottom: 1.2rem; font-weight: 800; }
.footer ul { list-style: none; display: grid; gap: 0.65rem; }
.footer a { font-size: 0.95rem; transition: color 0.3s; }
.footer a:hover { color: var(--gold-2); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: 0.82rem; color: #6f83a8; }

/* ==========================================================================
   Reveal on scroll + counters
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.18s; }
.reveal.d3 { transition-delay: 0.28s; }
.reveal.d4 { transition-delay: 0.38s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-blob, .float-card, .ticker-track, .marquee-track, .cta::before, .appwin, .lead-row.new { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   AUTH PAGES  (login. / signup. / admin)  — class contract preserved
   ========================================================================== */
.auth-page { min-height: 100svh; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); background: var(--paper); }
@media (max-width: 900px) { .auth-page { grid-template-columns: 1fr; } .auth-side { display: none; } }
.auth-side { position: relative; overflow: hidden; background: var(--blue-ink); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 3rem; }
.auth-side .hero-bg, .auth-side .hero-grain { position: absolute; inset: 0; pointer-events: none; }
.auth-side .hero-bg { background: radial-gradient(60% 80% at 78% 12%, rgba(216,184,119,0.30), transparent 60%), radial-gradient(55% 65% at 10% 90%, rgba(53,182,214,0.4), transparent 62%), linear-gradient(160deg, #123a72 0%, var(--blue-ink) 60%, var(--blue-ink-2) 100%); }
.auth-side .quote { position: relative; z-index: 1; margin-top: auto; }
.auth-side .quote p { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-style: italic; line-height: 1.35; max-width: 24ch; color: #fff; }
.auth-side .quote span { display: block; margin-top: 1.2rem; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-2); }
.auth-side .brand { position: relative; z-index: 1; color: #fff; }
.auth-side .brand .mark em { color: var(--gold-2); }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; background: linear-gradient(180deg, #fff, var(--blue-mist)); }
.auth-card { width: min(440px, 100%); }
.auth-card > .eyebrow { margin-bottom: 1rem; }
.auth-card h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 0.5rem; }
.auth-card .sub { color: var(--muted); margin-bottom: 2rem; }
.auth-card .sub a { color: var(--blue); font-weight: 700; }
.auth-card .sub a:hover { text-decoration: underline; }

.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1.7rem; }
.role-switch label { position: relative; }
.role-switch input { position: absolute; opacity: 0; }
.role-switch .opt { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.9rem 1.1rem; border: 1px solid var(--line-cool); border-radius: var(--radius-sm); background: #fff; cursor: pointer; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease); }
.role-switch .opt b { font-size: 0.95rem; color: var(--ink); }
.role-switch .opt small { font-size: 0.76rem; color: var(--muted); }
.role-switch input:checked + .opt { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow-sm); transform: translateY(-2px); }

/* Forms */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.4rem; }
.field input, .field select, .field textarea { width: 100%; padding: 0.85rem 1.05rem; border: 1px solid var(--line-cool); border-radius: var(--radius-sm); background: #fff; transition: border-color 0.3s, box-shadow 0.3s; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,111,240,0.14); }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.35rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-foot { margin-top: 1.5rem; }
.form-meta { display: flex; justify-content: space-between; align-items: center; margin: -0.3rem 0 1.3rem; font-size: 0.85rem; color: var(--muted); }
.form-meta a { color: var(--blue); font-weight: 600; }

.alert { padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 1.3rem; border: 1px solid; }
.alert-error { background: #faece9; border-color: #ecc8c0; color: #8c3527; }
.alert-success { background: #e9f4ee; border-color: #c3e0d1; color: #22593f; }

/* ==========================================================================
   APP / DASHBOARD CHROME  (dashboard. / agent. / admin.) — contract preserved
   ========================================================================== */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100svh; background: var(--paper); }
@media (max-width: 980px) { .app { grid-template-columns: 1fr; } }
.side { background: #fff; color: var(--muted); padding: 2rem 1.5rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2.5rem; position: sticky; top: 0; height: 100svh; }
@media (max-width: 980px) { .side { position: static; height: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; gap: 1rem; border-right: 0; border-bottom: 1px solid var(--line); } }
.side .brand { color: var(--ink); }
.side nav { display: grid; gap: 0.3rem; }
@media (max-width: 980px) { .side nav { display: flex; gap: 0.2rem; } }
.side nav a { display: flex; align-items: center; gap: 0.8rem; padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 600; color: var(--muted); transition: background 0.3s, color 0.3s; }
.side nav a:hover { color: var(--ink); background: var(--blue-mist); }
.side nav a.active { color: var(--blue); background: var(--blue-soft); }
.side .foot { margin-top: auto; font-size: 0.78rem; }
@media (max-width: 980px) { .side .foot { margin: 0; } }
.side .foot a { color: var(--muted); } .side .foot a:hover { color: var(--ink); }

.main { padding: clamp(1.6rem, 3.5vw, 3rem); }
.topbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 2.2rem; }
.topbar h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.topbar .who { font-size: 0.9rem; color: var(--muted); }
.topbar .who b { color: var(--ink); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.panel-head { padding: 1.3rem 1.6rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.35rem; }
.panel-body { padding: 1.6rem; }

.kpis { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 2rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.4rem 1.6rem; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.kpi:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.kpi .num { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.kpi .lbl { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.kpi.gold { background: linear-gradient(135deg, var(--blue), var(--blue-2)); border-color: var(--blue-2); }
.kpi.gold .num { color: #fff; } .kpi.gold .lbl { color: #cfe1fb; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.data th { text-align: left; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background 0.25s; }
table.data tbody tr:hover { background: var(--blue-mist); }
table.data .t-main { font-weight: 700; color: var(--ink); }
table.data .t-sub { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 400; }

.badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-new { background: #eef2f8; color: var(--info); }
.badge-assigned { background: #f4eede; color: #8a6d2f; }
.badge-in_progress { background: #e4eefc; color: #2264c4; }
.badge-viewing { background: #f0eaf7; color: #6a4b9c; }
.badge-offer { background: #fdf3e2; color: var(--warning); }
.badge-closed_won { background: #e9f4ee; color: var(--success); }
.badge-closed_lost { background: #f7ecea; color: var(--danger); }

.timeline { list-style: none; position: relative; padding-left: 1.6rem; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 1.6rem 1rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -1.6rem; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.timeline .t-when { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.timeline .t-note { margin-top: 0.3rem; color: var(--text); }
.timeline .t-who { font-weight: 700; color: var(--ink); }

.empty { text-align: center; padding: 3.5rem 2rem; color: var(--muted); }
.empty .glyph { font-family: var(--serif); font-size: 3rem; color: var(--blue); margin-bottom: 0.7rem; }

.assign-form { display: flex; gap: 0.5rem; align-items: center; }
.assign-form select { padding: 0.45rem 0.7rem; border: 1px solid var(--line-cool); border-radius: 7px; background: #fff; font-size: 0.85rem; }

.page-enter { animation: pageIn 0.7s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
