:root {
  --navy: #071433;
  --navy-2: #0b1f4d;
  --blue: #2f6bff;
  --blue-2: #5b8cff;
  --blue-soft: #e8efff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f5f8ff;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, .08);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, .14);
  --radius: 22px;
  --font-display: "Outfit", sans-serif;
  --font-body: "Sora", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(47,107,255,.16), transparent 55%),
    radial-gradient(700px 380px at 0% 20%, rgba(91,140,255,.1), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 45%, #ffffff 100%);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--blue); }
.ag-wrap { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }

/* Nav */
.ag-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,.8);
}
.ag-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 74px;
}
.ag-logo {
  font-family: var(--font-display); font-weight: 800; font-size: 1.45rem;
  letter-spacing: -.03em; color: var(--navy);
}
.ag-logo span { color: var(--blue); }
.ag-links { display: flex; align-items: center; gap: .15rem; flex-wrap: nowrap; }
.ag-links a {
  padding: .55rem .85rem; border-radius: 999px; color: var(--muted);
  font-weight: 500; font-size: .95rem; transition: .2s ease;
}
.ag-links a:hover { color: var(--navy); background: rgba(47,107,255,.06); }
.ag-links a.ag-btn-primary,
.ag-links a.ag-btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #1f54e8);
}
.ag-nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; cursor: pointer;
}
.ag-nav-toggle span {
  display: block; width: 18px; height: 2px; margin: 5px auto; background: var(--navy);
}

/* Buttons */
.ag-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; transition: .25s ease; cursor: pointer;
}
.ag-btn-sm { padding: .65rem 1.05rem; font-size: .88rem; }
.ag-btn-primary {
  background: linear-gradient(135deg, var(--blue), #1f54e8);
  color: #fff; box-shadow: 0 12px 28px rgba(47,107,255,.35);
}
.ag-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(47,107,255,.45); }
.ag-btn-ghost {
  background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28);
}
.ag-hero .ag-btn-ghost { color: var(--navy); border-color: #cbd5e1; background: #fff; }
.ag-btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.ag-btn-dark {
  background: var(--navy); color: #fff; box-shadow: 0 12px 28px rgba(7,20,51,.25);
}
.ag-btn-dark:hover { transform: translateY(-2px); background: #0d2258; }

/* Hero */
.ag-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.ag-hero-glow {
  position: absolute; inset: auto -10% 10% 40%; height: 55%;
  background: radial-gradient(circle, rgba(47,107,255,.22), transparent 65%);
  filter: blur(20px); animation: agPulse 6s ease-in-out infinite alternate;
}
.ag-hero-grid {
  position: absolute; inset: 0; opacity: .4; pointer-events: none;
  background-image:
    linear-gradient(rgba(47,107,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,107,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 15%, transparent 70%);
  animation: agGridDrift 28s linear infinite;
}
.ag-hero-grid2 {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
.ag-brand-mark {
  display: inline-block; margin-bottom: .85rem;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -.04em; color: var(--navy);
  background: linear-gradient(90deg, var(--navy), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ag-hero h1 {
  margin: 0 0 1rem; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.5rem, 6.2vw, 4.4rem); line-height: .98; letter-spacing: -.045em; color: var(--navy);
}
.ag-hero-copy > p {
  margin: 0 0 1.5rem; max-width: 34rem; color: var(--muted); font-size: 1.05rem; line-height: 1.65;
}
.ag-hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.ag-trust span { display: block; color: var(--muted); font-size: .82rem; margin-bottom: .7rem; font-weight: 500; }
.ag-trust-logos {
  display: flex; flex-wrap: wrap; gap: .55rem .9rem; align-items: center;
}
.ag-trust-logos span {
  margin: 0; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.7); color: #94a3b8; font-size: .78rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  opacity: 0; transform: translateY(12px);
}
.ag-hero-in .ag-trust-logos span {
  animation: agFadeUp .65s cubic-bezier(.22, 1, .36, 1) forwards;
}
.ag-hero-in .ag-trust-logos span:nth-child(1) { animation-delay: .72s; }
.ag-hero-in .ag-trust-logos span:nth-child(2) { animation-delay: .82s; }
.ag-hero-in .ag-trust-logos span:nth-child(3) { animation-delay: .92s; }
.ag-hero-in .ag-trust-logos span:nth-child(4) { animation-delay: 1.02s; }
.ag-hero-in .ag-trust-logos span:nth-child(5) { animation-delay: 1.12s; }

/* Laptop mockup */
.ag-hero-visual { position: relative; min-height: 360px; }
.ag-laptop {
  position: relative; margin: 0 auto; width: min(100%, 520px);
  animation: agFloat 5.5s ease-in-out infinite;
  filter: drop-shadow(0 30px 50px rgba(15,23,42,.2));
}
.ag-laptop-screen {
  background: linear-gradient(160deg, #0b1636, #13265a);
  border: 10px solid #1a2744; border-bottom-width: 14px;
  border-radius: 18px 18px 8px 8px; overflow: hidden; aspect-ratio: 16/10.5;
}
.ag-laptop-base {
  height: 14px; margin: 0 auto; width: 72%;
  background: linear-gradient(180deg, #c9d4e8, #9eacc8);
  border-radius: 0 0 16px 16px; position: relative;
}
.ag-laptop-base::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -8px; width: 120%; height: 8px; border-radius: 999px;
  background: rgba(15,23,42,.08);
}
.ag-dash { display: grid; grid-template-columns: 56px 1fr; height: 100%; color: #fff; }
.ag-dash-side {
  background: rgba(0,0,0,.28); padding: .7rem .45rem; display: grid; gap: .45rem; align-content: start;
}
.ag-dash-logo {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), #7aa2ff); font-size: .7rem; font-weight: 800;
  margin-bottom: .3rem;
}
.ag-dash-side i {
  display: block; height: 8px; border-radius: 999px; background: rgba(255,255,255,.18);
}
.ag-dash-main { padding: .8rem .85rem; }
.ag-dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; }
.ag-dash-top strong { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: #c7d4ff; }
.ag-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #3dde8a;
  box-shadow: 0 0 0 0 rgba(61,222,138,.6); animation: agDot 1.6s infinite;
}
.ag-dash-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: .45rem; margin-bottom: .7rem; }
.ag-dash-kpis div {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: .45rem .5rem;
}
.ag-dash-kpis b { display: block; font-family: var(--font-display); font-size: 1rem; }
.ag-dash-kpis small { color: #9db0e0; font-size: .62rem; }
.ag-dash-chart {
  height: 78px; display: flex; align-items: end; gap: .35rem;
  padding: .5rem; border-radius: 12px; background: rgba(255,255,255,.05); margin-bottom: .55rem;
}
.ag-dash-chart span {
  flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #7aa2ff, var(--blue));
  animation: agBar 2.8s ease-in-out infinite alternate;
}
.ag-dash-chart span:nth-child(2){ animation-delay:.15s }
.ag-dash-chart span:nth-child(3){ animation-delay:.3s }
.ag-dash-chart span:nth-child(4){ animation-delay:.45s }
.ag-dash-chart span:nth-child(5){ animation-delay:.6s }
.ag-dash-chart span:nth-child(6){ animation-delay:.75s }
.ag-dash-table { display: grid; gap: .35rem; }
.ag-dash-table div { height: 10px; border-radius: 999px; background: rgba(255,255,255,.1); }
.ag-dash-table div:nth-child(2){ width: 82%; }
.ag-dash-table div:nth-child(3){ width: 64%; }

.ag-float-card {
  position: absolute; display: flex; gap: .65rem; align-items: center;
  padding: .75rem .9rem; border-radius: 16px; background: rgba(255,255,255,.92);
  border: 1px solid rgba(226,232,240,.9); box-shadow: var(--shadow);
  backdrop-filter: blur(10px); animation: agFloat 4.8s ease-in-out infinite;
}
.ag-float-card i {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
}
.ag-float-card strong { display: block; font-size: .92rem; color: var(--navy); }
.ag-float-card span { color: var(--muted); font-size: .72rem; }
.ag-float-a { left: -4%; top: 14%; animation-delay: -.8s; }
.ag-float-b { right: -2%; bottom: 18%; animation-delay: -1.6s; }

/* Sections */
.ag-section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.ag-section-soft { background: linear-gradient(180deg, #eef3ff 0%, #f8faff 100%); }
.ag-pill {
  display: inline-flex; padding: .35rem .75rem; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue); font-size: .78rem; font-weight: 600;
  margin-bottom: .85rem;
}
.ag-center { text-align: center; max-width: 40rem; margin: 0 auto 2rem; }
.ag-center p, .ag-about p { color: var(--muted); line-height: 1.65; }
.ag-section h2, .ag-cta-box h2 {
  margin: 0 0 .75rem; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.035em; color: var(--navy); line-height: 1.1;
}
.ag-about {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(1.25rem, 4vw, 3rem); align-items: start;
}
.ag-about p { margin: 0 0 1rem; font-size: 1.05rem; }

.ag-services {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.ag-card {
  background: var(--white); border: 1px solid rgba(226,232,240,.9);
  border-radius: var(--radius); padding: 1.35rem 1.2rem 1.2rem;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ag-card::before {
  content: ""; position: absolute; inset: 0 auto 0 -120%;
  width: 55%; background: linear-gradient(90deg, transparent, rgba(47,107,255,.1), transparent);
  transform: skewX(-18deg); transition: left .7s ease; pointer-events: none;
}
.ag-card:hover::before { left: 140%; }
.ag-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), #7aa2ff);
  transform: scaleX(.35); transform-origin: left; transition: transform .3s ease;
}
.ag-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ag-card:hover::after { transform: scaleX(1); }
.ag-ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(145deg, #eef3ff, #dce7ff); color: var(--blue);
  font-size: 1.15rem; margin-bottom: 1rem;
}
.ag-card h3 { margin: 0 0 .45rem; font-family: var(--font-display); color: var(--navy); font-size: 1.15rem; }
.ag-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }

/* Stats */
.ag-stats {
  position: relative; margin: 0 auto; width: min(1100px, calc(100% - 2rem));
  border-radius: 28px; overflow: hidden;
  background: linear-gradient(135deg, #071433, #12306f 55%, #0b1f4d);
  box-shadow: 0 25px 70px rgba(7,20,51,.35);
}
.ag-stats-glow {
  position: absolute; inset: -20% 20% auto; height: 70%;
  background: radial-gradient(circle, rgba(91,140,255,.55), transparent 60%);
  filter: blur(18px); animation: agPulse 5s ease-in-out infinite alternate;
}
.ag-stats-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  padding: clamp(1.6rem, 4vw, 2.4rem) 1rem;
  text-align: center; color: #fff;
}
.ag-stats-grid i {
  display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto .7rem;
  border-radius: 14px; background: rgba(255,255,255,.08); color: #9db6ff;
}
.ag-stats-grid strong {
  display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -.03em; margin-bottom: .2rem;
}
.ag-stats-grid > div > span { color: #b6c5ef; font-size: .9rem; }

.ag-work-cta { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* Portfolio page */
.ag-port-filters {
  display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; margin-bottom: 1.75rem;
}
.ag-port-filter {
  padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); font-size: .88rem; font-weight: 600;
  transition: .2s ease;
}
.ag-port-filter:hover, .ag-port-filter.is-active {
  color: var(--blue); border-color: rgba(47,107,255,.25); background: var(--blue-soft);
}

.ag-port-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.ag-port-grid-3 { grid-template-columns: repeat(3, 1fr); }

.ag-port-card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease;
}
.ag-port-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.ag-port-card-link { display: block; color: inherit; }
.ag-port-card-media {
  position: relative; aspect-ratio: 16/10; overflow: hidden; background: #eef2ff;
}
.ag-port-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.ag-port-card:hover .ag-port-card-media img { transform: scale(1.04); }
.ag-port-card-cat {
  position: absolute; left: .85rem; top: .85rem;
  padding: .35rem .7rem; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--blue);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.ag-port-card-body { padding: 1.15rem 1.2rem 1.25rem; }
.ag-port-card-meta {
  display: flex; justify-content: space-between; gap: .75rem;
  color: var(--muted); font-size: .78rem; margin-bottom: .45rem;
}
.ag-port-card-body h2 {
  margin: 0 0 .45rem; font-family: var(--font-display); font-size: 1.15rem;
  color: var(--navy); letter-spacing: -.02em; line-height: 1.25;
}
.ag-port-card-body p {
  margin: 0 0 .85rem; color: var(--muted); font-size: .9rem; line-height: 1.55;
}
.ag-port-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .85rem; }
.ag-port-tags span {
  padding: .28rem .6rem; border-radius: 999px; background: #f1f5f9;
  color: #475569; font-size: .72rem; font-weight: 600;
}
.ag-port-more {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--blue); font-size: .88rem; font-weight: 600;
}
.ag-port-more i { transition: transform .25s ease; }
.ag-port-card:hover .ag-port-more i { transform: translateX(4px); }

/* Case study */
.ag-page-hero-tight { padding-bottom: .5rem; }
.ag-crumb {
  display: flex; align-items: center; gap: .45rem; margin-bottom: .85rem;
  color: var(--muted); font-size: .85rem;
}
.ag-crumb a:hover { color: var(--blue); }
.ag-case-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; margin-top: 1.25rem;
}
.ag-case-meta div {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .85rem 1rem;
}
.ag-case-meta small {
  display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: .25rem;
}
.ag-case-meta strong { color: var(--navy); font-family: var(--font-display); font-size: .95rem; }

.ag-case-hero {
  position: relative; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); margin-bottom: 1.75rem;
}
.ag-case-hero img { display: block; width: 100%; height: auto; }
.ag-case-domain {
  position: absolute; left: 1rem; bottom: 1rem;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .85rem; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--navy); font-size: .82rem; font-weight: 600;
}

.ag-case-layout {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: 1.25rem; align-items: start;
}
.ag-case-block {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 1.25rem 1.35rem; box-shadow: var(--shadow); margin-bottom: 1rem;
}
.ag-case-block h2 {
  margin: 0 0 .65rem; font-family: var(--font-display); color: var(--navy); font-size: 1.2rem;
}
.ag-case-block p { margin: 0; color: var(--muted); line-height: 1.65; }
.ag-case-side { display: grid; gap: 1rem; position: sticky; top: 92px; }
.ag-case-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 1.15rem 1.2rem; box-shadow: var(--shadow);
}
.ag-case-panel h3 {
  margin: 0 0 .75rem; font-family: var(--font-display); color: var(--navy); font-size: 1rem;
}
.ag-case-panel p { margin: 0 0 .85rem; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.ag-case-panel .ag-btn { width: 100%; margin-top: .45rem; }
.ag-case-results { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ag-case-results li {
  display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .9rem;
}
.ag-case-results i { color: var(--blue); }
.ag-case-related { margin-top: 2.5rem; padding-top: 1rem; }

/* Legacy landing mock grid (kept for compatibility) */
.ag-portfolio {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.1rem;
  margin-top: 2rem;
}
.ag-port {
  display: flex; flex-direction: column; gap: .85rem;
  border-radius: 22px; overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.ag-port:hover { transform: translateY(-6px); }
.ag-port-lg { grid-row: span 2; }
.ag-port-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 0; align-items: stretch; }
.ag-port-visual {
  position: relative; border-radius: 20px; overflow: hidden;
  min-height: 210px; border: 1px solid rgba(15,23,42,.06);
  box-shadow: var(--shadow); transition: box-shadow .35s ease, transform .35s ease;
}
.ag-port-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: agShine 4.5s ease-in-out infinite;
}
.ag-port:hover .ag-port-visual { box-shadow: var(--shadow-lg); transform: scale(1.02); }
.ag-port-lg .ag-port-visual { min-height: 100%; flex: 1; }
.ag-port-wide .ag-port-visual { min-height: 220px; border-radius: 20px 0 0 20px; }
.ag-port-chrome {
  display: flex; align-items: center; gap: .35rem;
  padding: .55rem .75rem; background: rgba(255,255,255,.55);
  backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.35);
}
.ag-port-chrome i {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(15,23,42,.18);
}
.ag-port-chrome i:nth-child(1) { background: #ff5f57; }
.ag-port-chrome i:nth-child(2) { background: #febc2e; }
.ag-port-chrome i:nth-child(3) { background: #28c840; }
.ag-port-chrome span {
  margin-left: .45rem; font-size: .72rem; color: rgba(15,23,42,.55);
  font-weight: 600; letter-spacing: .02em;
}
.ag-port-screen { padding: 1rem 1.1rem 1.2rem; height: calc(100% - 34px); }
.ag-port-meta { padding: 0 .15rem .15rem; }
.ag-port-meta span {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: .35rem;
}
.ag-port-meta strong {
  display: block; font-family: var(--font-display); font-size: 1.15rem;
  color: var(--navy); letter-spacing: -.02em; margin-bottom: .2rem;
}
.ag-port-meta em {
  display: block; font-style: normal; color: var(--muted); font-size: .88rem; line-height: 1.45;
}
.ag-port-wide .ag-port-meta {
  display: flex; flex-direction: column; justify-content: center;
  padding: 1.5rem 1.75rem; background: #fff;
  border: 1px solid var(--line); border-left: 0; border-radius: 0 20px 20px 0;
}

/* Portfolio themes + mocks */
.ag-theme-corp {
  background:
    radial-gradient(500px 220px at 80% 20%, rgba(255,255,255,.35), transparent 55%),
    linear-gradient(145deg, #0b1f4d, #1a4fd6 55%, #5b8cff);
}
.ag-theme-shop {
  background: linear-gradient(160deg, #06281f, #0f766e 50%, #34d399);
}
.ag-theme-portal {
  background: linear-gradient(150deg, #1e1b4b, #312e81 45%, #818cf8);
}
.ag-theme-startup {
  background: linear-gradient(155deg, #3b0764, #7c3aed 50%, #c4b5fd);
}
.ag-theme-book {
  background: linear-gradient(155deg, #422006, #c2410c 48%, #fdba74);
}
.ag-theme-custom {
  background:
    radial-gradient(420px 180px at 20% 80%, rgba(91,140,255,.45), transparent 60%),
    linear-gradient(135deg, #071433, #12306f 60%, #2f6bff);
}

.ag-mock-nav {
  height: 10px; width: 55%; border-radius: 999px; margin-bottom: 1rem;
  background: rgba(255,255,255,.28);
}
.ag-mock-hero b {
  display: block; height: 14px; width: 70%; border-radius: 8px;
  background: rgba(255,255,255,.9); margin-bottom: .45rem;
}
.ag-mock-hero b:nth-child(2) { width: 48%; height: 10px; background: rgba(255,255,255,.45); }
.ag-mock-btn {
  margin-top: .85rem; width: 88px; height: 28px; border-radius: 999px;
  background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.ag-mock-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-top: 1.25rem;
}
.ag-mock-row span {
  height: 54px; border-radius: 12px; background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.22);
}
.ag-mock-shop {
  display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; height: 100%;
}
.ag-mock-shop div {
  border-radius: 12px; background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.2); min-height: 58px;
  position: relative; overflow: hidden;
}
.ag-mock-shop div::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 10px;
  height: 8px; border-radius: 6px; background: rgba(255,255,255,.45);
}
.ag-mock-dash {
  display: grid; grid-template-columns: 48px 1fr; gap: .65rem; height: 100%;
}
.ag-mock-dash aside {
  border-radius: 12px; background: rgba(255,255,255,.16);
}
.ag-mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-bottom: .55rem; }
.ag-mock-kpis i {
  display: block; height: 36px; border-radius: 10px; background: rgba(255,255,255,.2);
}
.ag-mock-bars {
  display: flex; align-items: end; gap: .35rem; height: 72px;
  padding: .55rem; border-radius: 12px; background: rgba(255,255,255,.12);
}
.ag-mock-bars i {
  flex: 1; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,.45));
  animation: agBar 2.4s ease-in-out infinite alternate;
}
.ag-mock-bars i:nth-child(1) { height: 42%; }
.ag-mock-bars i:nth-child(2) { height: 68%; animation-delay: .1s; }
.ag-mock-bars i:nth-child(3) { height: 55%; animation-delay: .2s; }
.ag-mock-bars i:nth-child(4) { height: 82%; animation-delay: .15s; }
.ag-mock-bars i:nth-child(5) { height: 70%; animation-delay: .25s; }

.ag-mock-launch { padding-top: .5rem; }
.ag-mock-launch b {
  display: block; height: 16px; width: 62%; border-radius: 8px;
  background: rgba(255,255,255,.92); margin-bottom: .4rem;
}
.ag-mock-launch b:nth-child(2) { width: 40%; height: 10px; background: rgba(255,255,255,.4); }
.ag-mock-pill {
  margin-top: 1rem; width: 110px; height: 30px; border-radius: 999px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
  animation: agFloat 4s ease-in-out infinite;
}

.ag-mock-cal header {
  height: 12px; width: 40%; border-radius: 8px; background: rgba(255,255,255,.75); margin-bottom: .85rem;
}
.ag-mock-days {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem;
}
.ag-mock-days i {
  display: block; aspect-ratio: 1; border-radius: 8px; background: rgba(255,255,255,.2);
}
.ag-mock-days i:nth-child(3),
.ag-mock-days i:nth-child(5) { background: rgba(255,255,255,.85); }

.ag-mock-custom {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: .85rem; align-items: center; height: 100%;
}
.ag-mock-layers { display: grid; gap: .45rem; }
.ag-mock-layers span {
  height: 38px; border-radius: 12px; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  transform-origin: left center;
  animation: agPortLayer 3.2s ease-in-out infinite alternate;
}
.ag-mock-layers span:nth-child(2) { width: 88%; animation-delay: .15s; }
.ag-mock-layers span:nth-child(3) { width: 72%; animation-delay: .3s; }
.ag-mock-flow {
  display: flex; flex-direction: column; gap: .45rem; align-items: stretch;
}
.ag-mock-flow i {
  display: block; height: 28px; border-radius: 999px; background: rgba(255,255,255,.22);
}
.ag-mock-flow i:nth-child(2) { width: 70%; }
.ag-mock-flow i:nth-child(3) { width: 45%; }

@keyframes agPortLayer {
  from { transform: translateX(0); opacity: .75; }
  to { transform: translateX(6px); opacity: 1; }
}

.ag-cta-box {
  display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow);
}
.ag-cta-box p { margin: 0; color: var(--muted); }

.ag-footer {
  border-top: 1px solid var(--line); background: #fff; padding: 2.5rem 0 1.2rem; color: var(--muted);
}
.ag-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.ag-footer h5 { margin: 0 0 .7rem; color: var(--navy); font-family: var(--font-display); }
.ag-footer a { display: block; margin: .35rem 0; }
.ag-footer a:hover { color: var(--blue); }
.ag-footer p { margin: .7rem 0 0; max-width: 28rem; line-height: 1.55; }
.ag-copy { border-top: 1px solid var(--line); padding-top: 1rem; font-size: .85rem; }

.ag-flash { margin: 1rem auto; padding: .85rem 1rem; border-radius: 12px; width: min(1180px, calc(100% - 2rem)); }
.ag-flash.ok { background: #ecfdf5; color: #047857; }
.ag-flash.err { background: #fef2f2; color: #b91c1c; }

.reveal {
  opacity: 0;
  transform: translateY(36px) scale(.98);
  transition:
    opacity .9s cubic-bezier(.22, 1, .36, 1),
    transform .9s cubic-bezier(.22, 1, .36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .22s; }
.reveal-d3 { transition-delay: .32s; }
.reveal-d4 { transition-delay: .42s; }

/* Hero — instant load entrance (no scroll wait) */
.ag-hero-in {
  opacity: 0;
  animation: agHeroIn 1s cubic-bezier(.22, 1, .36, 1) forwards;
}
.ag-hero-in-d1 { animation-delay: .12s; }
.ag-hero-in-d2 { animation-delay: .24s; }
.ag-hero-in-d3 { animation-delay: .36s; }
.ag-hero-in-d4 { animation-delay: .48s; }

.ag-stats-grid i {
  animation: agStatPop 2.4s ease-in-out infinite;
}
.ag-stats-grid > div:nth-child(2) i { animation-delay: .3s; }
.ag-stats-grid > div:nth-child(3) i { animation-delay: .6s; }
.ag-stats-grid > div:nth-child(4) i { animation-delay: .9s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .ag-hero-in, .ag-trust-logos span {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .ag-laptop, .ag-float-card, .ag-hero-grid, .ag-hero-glow,
  .ag-stats-glow, .ag-dash-chart span, .ag-mock-bars i,
  .ag-mock-pill, .ag-mock-layers span, .ag-port-visual::after,
  .ag-stats-grid i { animation: none !important; }
}

@keyframes agGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 64px 64px, 64px 64px; }
}
@keyframes agHeroIn {
  from { opacity: 0; transform: translateY(40px) scale(.96); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes agFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes agShine {
  0%, 72% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
@keyframes agStatPop {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.06); }
}
@keyframes agFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes agPulse {
  from { opacity: .55; transform: scale(1); }
  to { opacity: 1; transform: scale(1.08); }
}
@keyframes agDot {
  0% { box-shadow: 0 0 0 0 rgba(61,222,138,.55); }
  70% { box-shadow: 0 0 0 10px rgba(61,222,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,222,138,0); }
}
@keyframes agBar {
  from { transform: scaleY(.82); }
  to { transform: scaleY(1); }
}

.ag-links a.is-active { color: var(--navy); background: rgba(47,107,255,.08); }
.ag-btn-ink { color: var(--navy) !important; border-color: var(--line) !important; background: #fff !important; }
.ag-page-hero { padding: clamp(2.2rem, 5vw, 3.5rem) 0 1.5rem; }
.ag-page-hero h1 {
  margin: 0 0 .75rem; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.04em; color: var(--navy); line-height: 1.05;
}
.ag-page-hero p { margin: 0; max-width: 40rem; color: var(--muted); line-height: 1.6; }
.ag-filter {
  display: flex; flex-wrap: wrap; gap: .8rem; align-items: end;
  padding: 1rem; border: 1px solid var(--line); border-radius: 20px;
  background: #fff; box-shadow: var(--shadow); margin-bottom: 1.4rem;
}
.ag-filter label { display: grid; gap: .35rem; color: var(--muted); font-size: .85rem; min-width: 140px; }
.ag-filter label.grow { flex: 2; min-width: 200px; }
.ag-filter input, .ag-filter select, .ag-panel input, .ag-panel select, .ag-panel textarea,
.ag-auth-card input, .ag-auth-card select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: .75rem .85rem;
  font: inherit; color: var(--ink); background: #fff;
}
.ag-filter input:focus, .ag-filter select:focus, .ag-panel input:focus, .ag-auth-card input:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,107,255,.12);
}
.ag-catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ag-product-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); transition: .25s ease;
}
.ag-product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #c7d7ff; }
.ag-product-media {
  aspect-ratio: 16/10; padding: 1.1rem;
  background:
    radial-gradient(500px 180px at 80% 0%, rgba(47,107,255,.28), transparent 55%),
    linear-gradient(145deg, #0b1f4d, #16357a);
  color: #fff; display: flex; flex-direction: column; justify-content: space-between;
}
.ag-product-media-lg { min-height: 280px; border-radius: 22px; }
.ag-product-tag {
  align-self: start; font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; padding: .3rem .55rem; border-radius: 999px;
  background: rgba(255,255,255,.14);
}
.ag-product-media strong { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -.02em; }
.ag-product-body { padding: 1.1rem; display: grid; gap: .55rem; }
.ag-product-body h3 { margin: 0; font-family: var(--font-display); font-size: 1.08rem; color: var(--navy); }
.ag-product-body p, .ag-muted { margin: 0; color: var(--muted); line-height: 1.55; }
.ag-product-meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .25rem; }
.ag-price { font-family: var(--font-display); font-weight: 700; color: var(--blue); }
.ag-price s { color: #94a3b8; font-weight: 500; margin-right: .35rem; }
.ag-price-lg { font-size: 1.45rem; margin: 1rem 0; }
.ag-rating { color: #f59e0b; font-size: .9rem; font-weight: 600; }
.ag-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 1.25rem; box-shadow: var(--shadow);
}
.ag-panel h2, .ag-panel h3 { margin: 0 0 .7rem; font-family: var(--font-display); color: var(--navy); }
.ag-product-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.2rem; }
.ag-feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.ag-feature-list li { display: flex; gap: .65rem; align-items: start; color: var(--muted); }
.ag-feature-list i { color: var(--blue); margin-top: .2rem; }
.ag-table { width: 100%; border-collapse: collapse; }
.ag-table th, .ag-table td { text-align: left; padding: .9rem .2rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ag-table th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.ag-cart-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.ag-empty { padding: 2rem; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 18px; }
.ag-empty a { color: var(--blue); font-weight: 600; }
.ag-pager { margin-top: 1.2rem; }
.ag-pager nav { display: flex; gap: .5rem; justify-content: center; }
.ag-auth-wrap { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 2rem 1rem; }
.ag-auth-card {
  width: min(440px, 100%); background: #fff; border: 1px solid var(--line);
  border-radius: 24px; padding: 1.5rem; box-shadow: var(--shadow-lg);
}
.ag-auth-card h1 { margin: .6rem 0 1rem; font-family: var(--font-display); color: var(--navy); font-size: 1.6rem; }
.ag-auth-card label { display: grid; gap: .35rem; margin-bottom: .85rem; color: var(--muted); font-size: .9rem; }
.ag-auth-card label.ag-check {
  display: flex; align-items: center; gap: .55rem; grid-template-columns: none;
  margin: .15rem 0 1rem;
}
.ag-auth-card input[type="checkbox"] {
  width: 16px; height: 16px; min-width: 16px; padding: 0; margin: 0;
  border-radius: 4px; flex: 0 0 auto; accent-color: var(--blue);
}
.ag-auth-card .ag-btn { width: 100%; margin-top: .4rem; }

/* Dropdown nav */
.ag-nav { overflow: visible; }
.ag-drop { position: relative; }
.ag-drop-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem .85rem; border: 0; background: transparent; cursor: pointer;
  color: var(--muted); font: inherit; font-weight: 500; font-size: .95rem; border-radius: 999px;
}
.ag-drop-btn i { font-size: .65rem; transition: transform .2s ease; }
.ag-drop.open .ag-drop-btn i, .ag-drop:hover .ag-drop-btn i { transform: rotate(180deg); }
.ag-drop-btn:hover, .ag-drop-btn.is-active, .ag-drop.open .ag-drop-btn {
  color: var(--navy); background: rgba(47,107,255,.06);
}
.ag-drop-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 340px;
  padding: .85rem 0 0; z-index: 250; background: transparent; border: 0;
}
.ag-drop-menu::before {
  content: ""; position: absolute; inset: .85rem 0 0 0;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.ag-drop:hover .ag-drop-menu, .ag-drop.open .ag-drop-menu {
  display: grid; gap: .15rem; padding: 1.05rem .55rem .55rem;
}
.ag-drop-menu a {
  position: relative; z-index: 1;
  display: flex; align-items: flex-start; gap: .75rem; padding: .7rem .75rem; border-radius: 12px;
  color: var(--ink);
}
.ag-drop-menu a:hover { background: rgba(47,107,255,.08); color: var(--navy); }
.ag-drop-menu a i {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); flex: 0 0 auto; margin-top: .1rem;
}
.ag-drop-menu a b { display: block; font-size: .9rem; color: var(--navy); }
.ag-drop-menu a small { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; }
.ag-soon-dot {
  font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--blue); background: var(--blue-soft);
  padding: .12rem .4rem; border-radius: 999px; margin-left: .2rem;
}
.ag-soon-mini {
  font-size: .65rem; color: var(--blue); font-weight: 700; margin-left: .25rem;
}
.ag-soon-badge {
  display: inline-flex; padding: .22rem .55rem; border-radius: 999px;
  background: #fff7ed; color: #c2410c; font-size: .7rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: .55rem;
}

.ag-kicker {
  display: inline-flex; margin-bottom: .85rem; padding: .35rem .75rem; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue); font-size: .82rem; font-weight: 600;
}
.ag-hero-pills { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.25rem; }
.ag-hero-pills a {
  padding: .4rem .75rem; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.75); color: var(--navy); font-size: .78rem; font-weight: 600;
}
.ag-hero-pills a span {
  color: var(--blue); font-size: .65rem; text-transform: uppercase; margin-left: .2rem;
}
.ag-hero-pills a:hover { border-color: var(--blue); color: var(--blue); }

.ag-about-rich .ag-about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.25rem;
}
.ag-about-stats div {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .85rem;
}
.ag-about-stats strong {
  display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--navy);
}
.ag-about-stats span { color: var(--muted); font-size: .78rem; }

.ag-feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.ag-feat-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease;
}
.ag-feat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ag-feat-media { position: relative; aspect-ratio: 16/10; background: #0b1f4d; }
.ag-feat-media img { width: 100%; height: 100%; object-fit: cover; }
.ag-feat-media span {
  position: absolute; left: .7rem; top: .7rem; padding: .28rem .55rem; border-radius: 999px;
  background: rgba(255,255,255,.94); color: var(--blue); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.ag-feat-body { padding: 1rem 1.05rem 1.15rem; }
.ag-feat-body h3 { margin: 0 0 .4rem; font-family: var(--font-display); color: var(--navy); font-size: 1.02rem; }
.ag-feat-body p { margin: 0 0 .7rem; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.ag-feat-meta { display: flex; align-items: baseline; gap: .45rem; }
.ag-feat-meta strong { color: var(--blue); font-family: var(--font-display); }
.ag-feat-meta s { color: #94a3b8; font-size: .82rem; }

.ag-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ag-svc {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 1.35rem 1.2rem; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ag-svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ag-svc h3 { margin: 0 0 .4rem; font-family: var(--font-display); color: var(--navy); }
.ag-svc p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.ag-svc-soon { outline: 1px dashed rgba(194,65,12,.35); }

.ag-journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.ag-journey-item:last-child { grid-column: 2 / 4; }
.ag-journey-item {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.1rem;
  position: relative;
}
.ag-journey-item > span {
  position: absolute; right: .9rem; top: .8rem; color: #dbe4ff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
}
.ag-journey-item i { color: var(--blue); margin-bottom: .55rem; }
.ag-journey-item h3 { margin: 0 0 .35rem; font-family: var(--font-display); color: var(--navy); font-size: 1.05rem; }
.ag-journey-item p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }

.ag-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.ag-process article {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.25rem;
  box-shadow: var(--shadow);
}
.ag-process strong {
  display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--blue);
  margin-bottom: .45rem;
}
.ag-process h3 { margin: 0 0 .4rem; font-family: var(--font-display); color: var(--navy); }
.ag-process p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }

.ag-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ag-quotes blockquote {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 1.25rem; box-shadow: var(--shadow);
}
.ag-quotes p { margin: 0 0 1rem; color: var(--ink); line-height: 1.6; font-size: .95rem; }
.ag-quotes footer { display: grid; gap: .15rem; }
.ag-quotes strong { color: var(--navy); font-family: var(--font-display); }
.ag-quotes span { color: var(--muted); font-size: .8rem; }

.ag-offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.ag-offer {
  display: flex; gap: .85rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.05rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ag-offer:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ag-offer i {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); flex: 0 0 auto;
}
.ag-offer h3 { margin: 0 0 .25rem; font-family: var(--font-display); color: var(--navy); font-size: 1rem; }
.ag-offer h3 em { font-size: .7rem; color: #c2410c; margin-left: .35rem; }
.ag-offer p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.ag-offer.is-soon { opacity: .92; }

.ag-contact {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.5rem; align-items: start;
}
.ag-contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 1.3rem; box-shadow: var(--shadow-lg);
}
.ag-contact-form label { display: grid; gap: .35rem; margin-bottom: .75rem; color: var(--muted); font-size: .88rem; }
.ag-contact-form input, .ag-contact-form textarea, .ag-waitlist input {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem;
  font: inherit; color: var(--ink); background: #fff;
}
.ag-contact-form input:focus, .ag-contact-form textarea:focus, .ag-waitlist input:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,107,255,.12);
}
.ag-contact-form .ag-btn { width: 100%; }

.ag-soon-hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 2rem; text-align: center;
  background: radial-gradient(700px 280px at 50% 0%, rgba(47,107,255,.16), transparent 70%);
}
.ag-soon-inner h1 {
  margin: 0 0 .75rem; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--navy); letter-spacing: -.04em;
}
.ag-soon-inner p { max-width: 38rem; margin: 0 auto 1.25rem; color: var(--muted); line-height: 1.65; }
.ag-soon-inner small { display: block; margin-top: .7rem; color: var(--muted); }
.ag-waitlist { display: flex; gap: .55rem; max-width: 480px; margin: 0 auto; }
.ag-waitlist input { flex: 1; }
.ag-host-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ag-host-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.25rem;
  box-shadow: var(--shadow); display: grid; gap: .2rem;
}
.ag-host-card h3 { margin: .2rem 0 .4rem; font-family: var(--font-display); color: var(--navy); }
.ag-host-card p { margin: 0 0 .9rem; color: var(--muted); font-size: .9rem; }
.ag-host-card .ag-btn[disabled] { opacity: .55; cursor: not-allowed; }

.ag-svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ag-svc-detail article {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.4rem;
  box-shadow: var(--shadow);
}
.ag-svc-detail h2 { margin: .2rem 0 .5rem; font-family: var(--font-display); color: var(--navy); font-size: 1.35rem; }
.ag-svc-detail p { margin: 0 0 1rem; color: var(--muted); line-height: 1.6; }
.ag-svc-soon-block { position: relative; }
.ag-footer-wide { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; }

@media (max-width: 1100px) {
  .ag-feat-grid { grid-template-columns: 1fr 1fr; }
  .ag-journey { grid-template-columns: 1fr 1fr; }
  .ag-journey-item:last-child { grid-column: auto; }
}
@media (max-width: 980px) {
  .ag-hero-grid2, .ag-about, .ag-services, .ag-stats-grid, .ag-footer-grid,
  .ag-catalog, .ag-product-layout { grid-template-columns: 1fr 1fr; }
  .ag-services { grid-template-columns: 1fr 1fr; }
  .ag-portfolio { grid-template-columns: 1fr 1fr; }
  .ag-port-lg { grid-row: auto; }
  .ag-port-wide { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .ag-port-wide .ag-port-visual { border-radius: 20px 20px 0 0; }
  .ag-port-wide .ag-port-meta { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 20px 20px; }
  .ag-port-grid, .ag-port-grid-3 { grid-template-columns: 1fr 1fr; }
  .ag-case-layout { grid-template-columns: 1fr; }
  .ag-case-meta { grid-template-columns: 1fr 1fr; }
  .ag-case-side { position: static; }
  .ag-float-a, .ag-float-b { display: none; }
  .ag-svc-grid, .ag-process, .ag-quotes, .ag-offer-grid, .ag-host-grid, .ag-svc-detail, .ag-contact {
    grid-template-columns: 1fr 1fr;
  }
  .ag-footer-wide { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .ag-nav-toggle { display: inline-block; }
  .ag-links {
    display: none; position: absolute; left: 1rem; right: 1rem; top: 74px;
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    padding: .75rem; flex-direction: column; align-items: stretch; box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 100px); overflow: auto;
  }
  .ag-links.open { display: flex; }
  .ag-drop:hover .ag-drop-menu { display: none; }
  .ag-drop.open .ag-drop-menu {
    display: grid; position: static; box-shadow: none; border: 0;
    padding: .25rem 0 0 .15rem; min-width: 0;
  }
  .ag-drop.open .ag-drop-menu::before { display: none; }
  .ag-drop-btn { width: 100%; justify-content: space-between; }
  .ag-hero-grid2, .ag-about, .ag-services, .ag-stats-grid, .ag-footer-grid,
  .ag-catalog, .ag-product-layout, .ag-portfolio, .ag-port-grid, .ag-port-grid-3,
  .ag-feat-grid, .ag-svc-grid, .ag-journey, .ag-process, .ag-quotes, .ag-offer-grid,
  .ag-host-grid, .ag-svc-detail, .ag-contact, .ag-footer-wide, .ag-about-stats { grid-template-columns: 1fr; }
  .ag-case-meta { grid-template-columns: 1fr; }
  .ag-hero { padding-top: 1.5rem; }
  .ag-cta-box { text-align: center; justify-content: center; }
  .ag-port-lg .ag-port-visual { min-height: 240px; }
  .ag-waitlist { flex-direction: column; }
}

/* Client / user panel */
.up-body {
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(47,107,255,.12), transparent 55%),
    linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%);
  min-height: 100vh;
}
.up-shell { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }
.up-side {
  background: #fff; border-right: 1px solid var(--line); padding: 1.25rem 1rem;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.up-side-note {
  margin: .35rem 0 1.1rem; color: var(--muted); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}
.up-nav { display: grid; gap: .25rem; flex: 1; overflow: auto; }
.up-nav a {
  display: flex; align-items: center; gap: .7rem; padding: .72rem .85rem;
  border-radius: 12px; color: var(--muted); font-weight: 500; transition: .15s ease;
}
.up-nav a i { width: 1.1rem; text-align: center; }
.up-nav a:hover, .up-nav a.active { background: var(--blue-soft); color: var(--blue); }
.up-side-foot { border-top: 1px solid var(--line); padding-top: .8rem; display: grid; gap: .35rem; }
.up-side-foot a, .up-side-foot button {
  display: flex; align-items: center; gap: .65rem; width: 100%;
  padding: .7rem .85rem; border-radius: 12px; border: 0; background: transparent;
  color: var(--muted); font: inherit; cursor: pointer; text-align: left;
}
.up-side-foot a:hover, .up-side-foot button:hover { background: #f8fafc; color: var(--navy); }
.up-main { padding: 1.25rem 1.4rem 2rem; }
.up-top {
  display: flex; justify-content: space-between; gap: 1rem; align-items: start;
  margin-bottom: 1.2rem; flex-wrap: wrap;
}
.up-top h1 {
  margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy); letter-spacing: -.03em;
}
.up-top p { margin: .3rem 0 0; color: var(--muted); }
.up-top-meta { display: flex; gap: .75rem; flex-wrap: wrap; }
.up-wallet, .up-userchip {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: .75rem 1rem; box-shadow: var(--shadow);
}
.up-wallet span, .up-userchip span { display: block; color: var(--muted); font-size: .75rem; }
.up-wallet strong, .up-userchip strong { color: var(--navy); font-family: var(--font-display); }
.up-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.1rem; }
.up-kpi {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1rem;
  box-shadow: var(--shadow); display: flex; gap: .8rem; align-items: start;
}
.up-kpi i {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
}
.up-kpi .label { color: var(--muted); font-size: .82rem; }
.up-kpi .value { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); margin-top: .15rem; }
.up-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.up-grid-2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }
.up-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 1.1rem; box-shadow: var(--shadow);
}
.up-panel h3 { margin: 0 0 1rem; font-family: var(--font-display); color: var(--navy); font-size: 1.05rem; }
.up-panel input, .up-panel select, .up-panel textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: .75rem .85rem;
  font: inherit; color: var(--ink); background: #fff;
}
.up-panel input:focus, .up-panel select:focus, .up-panel textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,107,255,.12);
}
.up-pill {
  display: inline-flex; align-items: center; padding: .22rem .55rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; background: var(--blue-soft); color: var(--blue);
}
.up-pill.ok { background: #ecfdf5; color: #047857; }
.up-pill.warn { background: #fffbeb; color: #b45309; }
.up-pill.danger { background: #fef2f2; color: #b91c1c; }
.up-pill.muted { background: #f1f5f9; color: #64748b; }
.up-thread { display: grid; gap: .8rem; margin: 1rem 0; }
.up-msg {
  border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem;
  background: #f8fafc;
}
.up-msg.admin { background: #eef4ff; border-color: #d7e4ff; }
.up-msg .meta { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; color: var(--muted); font-size: .8rem; }
.up-ref {
  display: flex; justify-content: space-between; gap: .75rem; align-items: center; flex-wrap: wrap;
  padding: .9rem 1rem; border-radius: 14px; background: linear-gradient(135deg, #0b1f4d, #16357a); color: #fff;
}
.up-ref code { font-size: 1.05rem; letter-spacing: .06em; }

@media (max-width: 980px) {
  .up-shell { grid-template-columns: 1fr; }
  .up-side { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .up-kpis, .up-grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .up-kpis, .up-grid-2 { grid-template-columns: 1fr; }
}

