/* styles.css */
:root{
  --shell: 980px;

  --ink:#0b1220;
  --muted: rgba(11,18,32,.72);
  --panel: rgba(255,255,255,.72);
  --panel2: rgba(255,255,255,.70);
  --border: rgba(11,18,32,.10);
  --border2: rgba(11,18,32,.08);

  --accent:#4A6CF7;
  --accent2:#21C59B;
  --accent3:#7C5CFF;

  --accentDeep:#0a3ed6;

  --themeFade: 190ms;
}

*{ box-sizing:border-box; }

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

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background:#eaf2ff;
  overflow-x:hidden;
  transition: background-color var(--themeFade) ease, color var(--themeFade) ease;
}

.bg,
.topbar,
.btn,
.card,
.contact-inner,
input,
textarea,
.legal-mini,
.code-banner,
.ticklist-float li,
.weee-banner{
  transition:
    background var(--themeFade) ease,
    background-color var(--themeFade) ease,
    border-color var(--themeFade) ease,
    color var(--themeFade) ease,
    box-shadow var(--themeFade) ease,
    opacity var(--themeFade) ease,
    filter var(--themeFade) ease,
    transform 220ms ease;
}

/* ===== Background ===== */
.bg{
  position:fixed;
  inset:0;
  z-index:-2;
  background:
    radial-gradient(1100px 700px at 18% 18%, rgba(191,212,255,.95), transparent 60%),
    radial-gradient(1000px 650px at 82% 24%, rgba(199,255,238,.88), transparent 62%),
    radial-gradient(900px 650px at 50% 88%, rgba(230,200,255,.70), transparent 65%),
    linear-gradient(140deg, #eaf2ff, #f2ecff, #e8fff6);
  animation: hue 26s linear infinite;
}

@keyframes hue{
  from{ filter:hue-rotate(0deg) saturate(1.10); }
  to{ filter:hue-rotate(26deg) saturate(1.10); }
}

.bg-noise{
  position:absolute;
  inset:0;
  opacity:.06;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  background-size: 260px 260px;
  pointer-events:none;
}

.bg-blobs{
  position:absolute;
  inset:0;
  background:
    radial-gradient(560px 560px at 12% 10%, rgba(191,212,255,.70), transparent 62%),
    radial-gradient(600px 600px at 90% 18%, rgba(199,255,238,.62), transparent 62%),
    radial-gradient(760px 560px at 45% 95%, rgba(255,226,240,.45), transparent 65%);
  filter: blur(18px);
  pointer-events:none;
}

/* ===== Topbar ===== */
.topbar{
  position:sticky;
  top:0;
  z-index:20;

  /* faint solid blue tint + still translucent */
  background:
    linear-gradient(180deg, rgba(74,108,247,.08), rgba(74,108,247,.03)),
    radial-gradient(900px 180px at 20% 20%, rgba(191,212,255,.55), transparent 70%),
    radial-gradient(900px 180px at 80% 20%, rgba(199,255,238,.45), transparent 70%),
    rgba(255,255,255,.35);

  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner{
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 20px 18px;
  min-height: 78px;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  text-decoration:none;
  color: var(--ink);
  font-weight: 900;
}

.brand-center{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: max-content;
}

.logo{ width:34px; height:34px; display:grid; place-items:center; }

.brand-name{
  font-size: 18px;
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1;
  white-space: nowrap;
}

/* breathing restored + noticeable */
@keyframes breathe{
  0%, 100%{ transform: translateZ(0) scale(1); opacity: .92; }
  50%{ transform: translateZ(0) scale(1.045); opacity: 1; }
}
.breathe{
  display:inline-block;
  animation: breathe 2.9s ease-in-out infinite;
}

/* Layout */
.shell{
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 18px 60px;
}

.hero{
  padding: 24px 0 10px;
  text-align:center;
}

.hero-blank{
  height: 300px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
}

/* ===== Code box ===== */
.code-banner{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  overflow: hidden;
  position: relative;

  background:
    radial-gradient(900px 260px at 20% 0%, rgba(74,108,247,.14), transparent 60%),
    radial-gradient(900px 260px at 80% 0%, rgba(33,197,155,.12), transparent 60%),
    rgba(10, 14, 28, .92);

  box-shadow: 0 28px 80px rgba(11,18,32,.22);
  backdrop-filter: blur(10px);
}

.code-square{
  width: min(520px, 92vw);
  height: 260px;
  margin-top: 18px;
  opacity: 0.50;
}

.code-topbar{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.dot{ width:10px; height:10px; border-radius:50%; display:inline-block; opacity:.9; }
.dot.r{ background:#ff5f57; }
.dot.y{ background:#febc2e; }
.dot.g{ background:#28c840; }

.code-filename{
  margin-left: 8px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,.72);
}

.code{
  margin:0;
  padding: 14px 16px 18px;
  text-align:left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,.84);
  white-space: pre;
  overflow:auto;
  height: calc(100% - 44px);
}

.code-glow{
  position:absolute;
  inset:-35%;
  background:
    radial-gradient(circle at 30% 30%, rgba(74,108,247,.18), transparent 60%),
    radial-gradient(circle at 70% 40%, rgba(33,197,155,.14), transparent 60%);
  filter: blur(28px);
  pointer-events:none;
}

/* Code colours */
.kw{ color: #8bd5ff; font-weight: 700; }
.fn{ color: #b4ffd8; font-weight: 700; }
.tp{ color: #d6c7ff; font-weight: 700; }
.st{ color: #ffd27b; }
.cmt{ color: rgba(255,255,255,.55); font-style: italic; }

/* Cards */
.cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:26px;
}

.cards-secondary{ margin-top: 0; }

.cards-secondary .card{
  text-align:center;
}
.cards-secondary .card p{
  text-align:center;
  margin-left:auto;
  margin-right:auto;
  max-width: 260px;
}

.card{
  background: rgba(255,255,255,.92);
  padding:18px;
  border-radius:10px;
  box-shadow:0 18px 40px rgba(11,18,32,.12);
  border: 1px solid rgba(11,18,32,.06);
}

.card-icon{
  width: 64px;
  height: 50px;
  margin: 0 auto 10px;
  display:grid;
  place-items:center;
}

/* Emoji icons: force proper emoji fonts */
.emoji-icon{
  font-size: 30px;
  line-height: 1;
  display:inline-block;
  transform: translateY(-1px);
  font-family:
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Noto Color Emoji",
    "Twemoji Mozilla",
    system-ui, sans-serif;
}

.emoji-big{ font-size: 28px; }

.card-title{
  font-size:13px;
  margin:6px 0;
  letter-spacing: -.2px;
}

.center-card-title{ text-align:center; }

.card p{
  font-size:12px;
  line-height: 1.45;
  color: rgba(11,18,32,.70);
  margin: 0;
}

/* WEEE slim centered card */
.weee-banner{
  margin: 16px auto 0;
  width: min(920px, 100%);
}

.weee-inner{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.56);
  border: 1px solid rgba(11,18,32,.10);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(11,18,32,.10);
}

.weee-center{
  justify-content: center;
  text-align: center;
}

.weee-icon{
  width: 44px;
  height: 44px;
  display:grid;
  place-items:center;
  border-radius: 12px;
  background: rgba(33,197,155,.12);
  border: 1px solid rgba(33,197,155,.28);
}

.weee-text{ display:grid; gap:2px; }
.weee-text-center{ text-align:center; }

.weee-title{
  font-weight: 900;
  letter-spacing: -0.2px;
  color: rgba(11,18,32,.90);
  font-size: 13px;
}

.weee-sub{
  color: rgba(11,18,32,.72);
  font-size: 12px;
  line-height: 1.5;
}

/* Gaps */
.big-gap{ height: 54px; }
.gap-after-services{ height: 54px; }
.gap-after-secondary{ height: 56px; }

.section{ margin-top: 18px; }

/* ===== Services centring (hard centred) ===== */
.services-float{
  width: 100%;
  display:flex;
  justify-content:center;
}

.services-inner{
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  display:flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.center-title{
  margin: 0 0 6px;
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-size: 18px;
  letter-spacing: -.2px;
  color: var(--ink);
}

.center-muted{
  margin: 0 auto 12px;
  max-width: 760px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* Floating list */
.ticklist-float{
  margin: 14px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  text-align: left;

  width: 100%;
  max-width: 760px;  /* centred within services-inner */
}

.ticklist-float li{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.20);
  border: 1px solid rgba(11,18,32,.06);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.ticklist-float li:hover{
  transform: translateY(-6px) scale(1.02);
  background: rgba(255,255,255,.74);
  border-color: rgba(74,108,247,.55);
  box-shadow:
    0 30px 90px rgba(11,18,32,.26),
    0 0 0 6px rgba(74,108,247,.14);
}

.ticklist-float li::before{
  content: "✓";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
  color: #0b3d22;
  background: rgba(34, 220, 128, .22);
  border: 1px solid rgba(34, 220, 128, .55);
  margin-top: 1px;
}

/* Contact */
.contact{ margin-top: 18px; }

.contact-inner{
  background: var(--panel2);
  padding:18px;
  border-radius:12px;
  border: 1px solid var(--border2);
  backdrop-filter: blur(10px);
}

.contact-inner h2{
  margin: 0;
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-size: 18px;
  letter-spacing: -.2px;
}

.contact-inner p{
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.form .row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.field{
  display:grid;
  gap:6px;
  text-align:left;
}

.field span{
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

input, textarea{
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(11,18,32,.14);
  background: rgba(255,255,255,.90);
  color: var(--ink);
  outline:none;
}

textarea{ min-height: 110px; resize: vertical; }

input:focus, textarea:focus{
  border-color: rgba(74,108,247,.55);
  box-shadow: 0 0 0 4px rgba(74,108,247,.18);
}

.form-actions{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top: 12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 13px;
  text-decoration:none;
  border: 1px solid var(--border);
  cursor:pointer;
  background: rgba(255,255,255,.75);
  color: var(--ink);
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(11,18,32,.14);
}

.btn.primary{
  color:#fff;
  background: linear-gradient(180deg, var(--accent), var(--accentDeep));
  border-color: rgba(255,255,255,.28);
}

.form-note{
  font-size: 12px;
  font-weight: 800;
  color: rgba(11,18,32,.72);
}
.form-note.sending{ color: rgba(10,62,214,.80); }
.form-note.ok{ color: rgba(11,18,32,.84); }

.hp{
  position:absolute !important;
  left:-10000px !important;
  top:auto !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}

/* Legal card */
.legal-mini{
  max-width: 720px;
  margin: 18px auto 0;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.56);
  backdrop-filter: blur(10px);
  text-align: center;

  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(11,18,32,.76);

  box-shadow: 0 12px 30px rgba(11,18,32,.10);
}

.legal-row{
  display:flex;
  justify-content:center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
}

.legal-label{
  font-weight: 900;
  color: rgba(11,18,32,.86);
}

/* Responsive */
@media (max-width:860px){
  .cards{ grid-template-columns:1fr; }
  .form .row{ grid-template-columns:1fr; }
  .form-actions{ flex-direction: column; align-items:flex-start; }
  .code-square{ height: 250px; }
  .weee-inner{ align-items:flex-start; }
  .weee-center{ text-align:left; justify-content:flex-start; }
  .weee-text-center{ text-align:left; }
}

/* Small screens: keep header neat (one line) */
@media (max-width:520px){
  .brand-name{ font-size: 14px; }
  .logo{ width:28px; height:28px; }
  .topbar-inner{ padding: 16px 12px; min-height: 64px; }
  .brand{ gap:10px; }
  .emoji-icon{ font-size: 28px; }
}