/* ============================================================
   WAN — Ubuntu Budgie inspired design system
   Dark aubergine theme · Ubuntu typeface · Budgie panels
   ============================================================ */

:root {
  /* Ubuntu brand palette */
  --orange:        #E95420;   /* Ubuntu orange */
  --orange-bright: #FF6E3D;
  --orange-soft:   #ffb596;
  --aubergine:     #2C001E;   /* dark aubergine */
  --aubergine-mid: #772953;
  --aubergine-lt:  #9b3f7f;
  --teal:          #2BB5A0;   /* secondary accent, used sparingly */

  /* Dark theme surfaces (aubergine-charcoal) */
  --bg-0:   #160a13;          /* page base, deepest */
  --bg-1:   #1d0e19;          /* section alt */
  --bg-2:   #251020;          /* raised */
  --panel:  rgba(45, 22, 40, 0.55);     /* frosted Budgie panel */
  --panel-solid: #2a1424;
  --card:   rgba(42, 21, 38, 0.62);
  --card-hi: rgba(60, 30, 54, 0.72);
  --stroke: rgba(255, 224, 246, 0.10);
  --stroke-hi: rgba(255, 224, 246, 0.18);

  /* Text */
  --ink:    #F7F1F5;
  --ink-2:  #cdbcc8;
  --ink-3:  #97818f;

  /* Effects */
  --radius:   14px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --shadow:   0 18px 50px -18px rgba(0,0,0,0.7);
  --shadow-sm: 0 8px 24px -10px rgba(0,0,0,0.6);
  --ring:     0 0 0 1px var(--stroke);
  --glow:     0 0 40px -8px rgba(233,84,32,0.45);

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Ubuntu", system-ui, sans-serif;
  background: var(--bg-0);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Aubergine ambient backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(119,41,83,0.55), transparent 60%),
    radial-gradient(800px 700px at 92% 4%, rgba(233,84,32,0.16), transparent 55%),
    radial-gradient(1000px 800px at 70% 100%, rgba(119,41,83,0.30), transparent 60%),
    var(--bg-0);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 40%, transparent 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-1) 12%, var(--bg-1) 88%, transparent); }

/* ---------- Eyebrow / kickers ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "Ubuntu Mono", monospace;
  font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange-soft);
  padding: 7px 14px;
  border: 1px solid var(--stroke-hi);
  border-radius: 999px;
  background: rgba(233,84,32,0.07);
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); margin: 20px 0 16px; }
.section-head p { color: var(--ink-2); font-size: 18px; }
.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============================================================
   Budgie top panel (nav)
   ============================================================ */
.panel-shell {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
.panel {
  pointer-events: auto;
  width: min(var(--maxw), 100%);
  display: flex; align-items: center; gap: 18px;
  padding: 10px 12px 10px 18px;
  background: rgba(28, 14, 24, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--stroke-hi);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: background .3s, box-shadow .3s;
}
.panel.scrolled { background: rgba(22, 10, 19, 0.9); }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .word { font-size: 20px; letter-spacing: 0.04em; }
.brand .word b { color: var(--orange); }

.nav-group {
  margin: 0 auto;
  display: flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 4px;
}
.nav-group a, .nav-item {
  position: relative;
  font-size: 14.5px; color: var(--ink-2);
  padding: 8px 14px; border-radius: 9px;
  transition: color .2s, background .2s;
  cursor: pointer; white-space: nowrap;
  background: none; border: none; font-family: inherit;
}
.nav-group a:hover, .nav-item:hover { color: var(--ink); background: rgba(255,255,255,0.05); }
.nav-group a.active { color: var(--ink); background: rgba(233,84,32,0.16); }

/* dropdown */
.has-menu { position: relative; }
.menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 230px; padding: 8px;
  background: rgba(30,15,26,0.96);
  backdrop-filter: blur(18px);
  border: 1px solid var(--stroke-hi);
  border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: .22s var(--ease);
}
.has-menu:hover .menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.menu a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--ink-2); }
.menu a:hover { background: rgba(255,255,255,0.05); color: var(--ink); }
.menu .ic { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; }
.menu small { display: block; color: var(--ink-3); font-size: 12px; }

.panel-cta { display: flex; align-items: center; gap: 10px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: inherit; font-size: 15px; font-weight: 500;
  padding: 12px 22px; border-radius: 11px; cursor: pointer;
  border: 1px solid transparent; transition: .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { background: var(--orange-bright); transform: translateY(-2px); box-shadow: 0 0 50px -6px rgba(233,84,32,0.6); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--ink); border-color: var(--stroke-hi); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 190px 0 120px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 67px); line-height: 1.04;
  margin: 24px 0 22px; letter-spacing: -0.03em;
}
.hero h1 .hl { color: var(--orange); }
.hero .lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 46px; flex-wrap: wrap; }
.hero-meta .m b { display: block; font-size: 30px; color: var(--ink); letter-spacing: -0.02em; }
.hero-meta .m span { font-size: 13.5px; color: var(--ink-3); }

/* Budgie widget cluster */
.widget-stage { position: relative; min-height: 460px; }
.widget {
  background: var(--card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--stroke-hi);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px;
}
.widget-main { position: relative; z-index: 2; }
.w-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.w-head .t { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.w-dot { display: flex; gap: 6px; }
.w-dot i { width: 10px; height: 10px; border-radius: 50%; display: block; }

/* mini dashboard */
.dash-stat { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; white-space: nowrap; }
.dash-stat b { font-size: 34px; letter-spacing: -0.02em; }
.dash-stat .up { color: var(--teal); font-size: 14px; font-family: "Ubuntu Mono", monospace; }
.dash-sub { color: var(--ink-3); font-size: 13px; margin-bottom: 16px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--aubergine-lt), var(--aubergine-mid)); display: block; }
.bars i.hot { background: linear-gradient(180deg, var(--orange-bright), var(--orange)); box-shadow: 0 0 18px -4px var(--orange); }

/* floating mini widgets */
.widget-float { position: absolute; z-index: 3; padding: 14px 16px; }
.wf-secure { top: -26px; right: -8px; display: flex; align-items: center; gap: 12px; }
.wf-secure .shield { width: 38px; height: 38px; border-radius: 10px; background: rgba(43,181,160,0.16); display: grid; place-items: center; color: var(--teal); }
.wf-secure .l { font-size: 12px; color: var(--ink-3); }
.wf-secure .v { font-size: 14px; font-weight: 600; }

.wf-pay { bottom: 6px; left: -34px; width: 210px; }
.wf-pay .row { display: flex; align-items: center; gap: 11px; }
.wf-pay .ico { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--orange), var(--aubergine-mid)); display: grid; place-items: center; color: #fff; }
.wf-pay .amt { font-weight: 700; font-size: 16px; }
.wf-pay .meta { font-size: 11.5px; color: var(--ink-3); }
.wf-pay .ok { margin-left: auto; color: var(--teal); }

/* ============================================================
   Dock (Budgie) — solution launcher
   ============================================================ */
.dock-wrap { display: flex; justify-content: center; margin-top: 8px; }
.dock {
  display: inline-flex; gap: 10px; padding: 12px 14px;
  background: rgba(28,14,24,0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--stroke-hi);
  border-radius: 18px; box-shadow: var(--shadow);
}
.dock a { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 78px; }
.dock .app-ic {
  width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center;
  color: #fff; box-shadow: 0 8px 18px -8px rgba(0,0,0,0.7); transition: transform .25s var(--ease);
}
.dock a:hover .app-ic { transform: translateY(-8px) scale(1.05); }
.dock a span { font-size: 12px; color: var(--ink-2); }
.app-cdev   { background: linear-gradient(140deg, #E95420, #9b3f7f); }
.app-rocket { background: linear-gradient(140deg, #2BB5A0, #1d6f8f); }
.app-cons   { background: linear-gradient(140deg, #9b3f7f, #2C001E); }
.app-contact{ background: linear-gradient(140deg, #5a4763, #2a1f33); }

/* ============================================================
   Trust strip
   ============================================================ */
.trust { display: flex; align-items: center; justify-content: center; gap: 14px 40px; flex-wrap: wrap; }
.trust .badge {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 14px; color: var(--ink-2);
  padding: 11px 18px; border: 1px solid var(--stroke); border-radius: 12px;
  background: var(--card);
}
.trust .badge svg { width: 20px; height: 20px; color: var(--orange-soft); }
.trust .badge b { color: var(--ink); }

/* ============================================================
   Icon tiles / cards (Pocillo style)
   ============================================================ */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: .28s var(--ease);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: var(--stroke-hi); background: var(--card-hi); box-shadow: var(--shadow); }
.tile {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  margin-bottom: 22px; color: #fff;
}
.tile svg { width: 28px; height: 28px; }
.tile-1 { background: linear-gradient(140deg, #E95420, #b5341c); }
.tile-2 { background: linear-gradient(140deg, #2BB5A0, #1d6f8f); }
.tile-3 { background: linear-gradient(140deg, #9b3f7f, #5a1f4a); }
.tile-4 { background: linear-gradient(140deg, #f0922f, #c2531f); }
.card h3 { font-size: 20px; margin-bottom: 9px; }
.card p { color: var(--ink-2); font-size: 15px; }
.card .corner-glow { position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(233,84,32,0.18), transparent 70%); opacity: 0; transition: opacity .3s; }
.card:hover .corner-glow { opacity: 1; }

/* ============================================================
   Split feature blocks
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.rev .split-media { order: 2; }
.split h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 20px; }
.split p { color: var(--ink-2); font-size: 17px; margin-bottom: 16px; }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); font-size: 15.5px; }
.feature-list .ck { width: 24px; height: 24px; flex: none; border-radius: 7px; background: rgba(233,84,32,0.14); color: var(--orange); display: grid; place-items: center; }
.feature-list .ck svg { width: 14px; height: 14px; }

/* media frames */
.frame {
  background: var(--card); border: 1px solid var(--stroke-hi); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow); position: relative;
}
.frame-bar { display: flex; gap: 7px; margin-bottom: 16px; }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.frame-bar i:first-child { background: var(--orange); }

/* ============================================================
   Pillars
   ============================================================ */
.pillar { padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--stroke); background: var(--card); transition: .28s var(--ease); }
.pillar:hover { transform: translateY(-6px); border-color: var(--orange); }
.pillar .n { font-family: "Ubuntu Mono", monospace; font-size: 13px; color: var(--orange); letter-spacing: 0.1em; }
.pillar h3 { font-size: 22px; margin: 14px 0 12px; }
.pillar p { color: var(--ink-2); font-size: 15px; }

/* ============================================================
   Solution showcase rows
   ============================================================ */
.sol { margin-bottom: 36px; }
.sol-tag { display: inline-flex; align-items: center; gap: 9px; font-family: "Ubuntu Mono", monospace; font-size: 13px; color: var(--ink-2); margin-bottom: 16px; }
.sol-tag .badge-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; }

/* ============================================================
   Mobile chat mock (Rocket)
   ============================================================ */
.phone {
  width: 280px; margin: 0 auto; border-radius: 34px; padding: 14px;
  background: linear-gradient(160deg, #2a1424, #1a0d16);
  border: 1px solid var(--stroke-hi); box-shadow: var(--shadow);
}
.phone .screen { background: #120a10; border-radius: 24px; overflow: hidden; }
.phone .topbar { background: linear-gradient(135deg, var(--teal), #1d6f8f); padding: 14px 16px; display: flex; align-items: center; gap: 11px; color: #fff; }
.phone .topbar .av { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.25); display: grid; place-items: center; }
.phone .topbar b { font-size: 14px; }
.phone .topbar small { display: block; font-size: 11px; opacity: .8; }
.chat { padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.bub { max-width: 80%; padding: 10px 13px; border-radius: 16px; font-size: 13px; line-height: 1.45; }
.bub.them { background: #2a1626; color: var(--ink); border-bottom-left-radius: 5px; align-self: flex-start; }
.bub.me { background: var(--teal); color: #06231f; border-bottom-right-radius: 5px; align-self: flex-end; font-weight: 500; }
.bub.card-bub { background: #20121c; border: 1px solid var(--stroke-hi); align-self: flex-start; width: 86%; }
.bub.card-bub .ph-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.bub.card-bub b { color: var(--ink); }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: stretch; }
.contact-card { background: var(--card); border: 1px solid var(--stroke-hi); border-radius: var(--radius-lg); padding: 34px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 8px; letter-spacing: .02em; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  background: rgba(0,0,0,0.25); border: 1px solid var(--stroke); border-radius: 11px;
  padding: 13px 15px; transition: .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: rgba(0,0,0,0.35); }
.field textarea { resize: vertical; min-height: 120px; }
.info-row { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--stroke); }
.info-row:last-child { border-bottom: none; }
.info-row .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(233,84,32,0.12); color: var(--orange); display: grid; place-items: center; }
.info-row .l { font-size: 13px; color: var(--ink-3); }
.info-row .v { font-size: 16px; color: var(--ink); font-weight: 500; }
.map {
  margin-top: 22px; border-radius: var(--radius); height: 200px; border: 1px solid var(--stroke);
  background:
    linear-gradient(rgba(233,84,32,0.04), rgba(233,84,32,0.04)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 36px),
    var(--bg-2);
  position: relative; overflow: hidden;
}
.map .pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-100%); color: var(--orange); }
.map .pin svg { width: 36px; height: 36px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }

/* ============================================================
   Footer
   ============================================================ */
.footer { padding: 70px 0 40px; border-top: 1px solid var(--stroke); margin-top: 40px; background: var(--bg-1); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 50px; }
.footer h4 { font-size: 14px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer a { color: var(--ink-2); font-size: 15px; }
.footer a:hover { color: var(--orange-soft); }
.footer .blurb { color: var(--ink-3); font-size: 14.5px; max-width: 280px; margin-top: 16px; }
.footer-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid var(--stroke); color: var(--ink-3); font-size: 13.5px; flex-wrap: wrap; gap: 12px; }

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

/* ============================================================
   Sub-page hero
   ============================================================ */
.subhero { padding: 170px 0 70px; }
.subhero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.subhero h1 { font-size: clamp(34px, 5vw, 58px); margin: 20px 0 18px; }
.subhero .lede { font-size: 19px; color: var(--ink-2); max-width: 520px; }
.crumb { font-family: "Ubuntu Mono", monospace; font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }
.crumb a:hover { color: var(--orange-soft); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid, .split, .subhero-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split.rev .split-media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-group { display: none; }
  .widget-stage { min-height: 400px; }
}
@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .hero { padding: 150px 0 80px; }
  .grid-4, .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .panel { padding: 10px 12px; }
  .hero-meta { gap: 20px; }
  .wf-pay { left: 0; }
}
