/* ============================================================
   Webenology — Brand Design System
   Palette derived from the Webenology logo:
   amber honeycomb (#F5A623) + slate grays on light/dark grounds.
   ============================================================ */

:root {
  /* Brand */
  --amber: #f5a623;
  --amber-600: #e0900f;
  --amber-300: #ffc564;
  --amber-soft: #fff4e0;

  /* Neutrals */
  --ink: #2b2c2e;          /* near-black slate, wordmark color */
  --slate: #58595b;        /* logo gray */
  --slate-500: #6d6e70;
  --slate-400: #65676b;    /* AA-compliant secondary text on white */
  --muted: #6f7176;        /* AA-compliant tertiary text on white */
  --line: #e9eaec;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --surface-3: #eef0f3;

  /* Dark ground (hero/footer) */
  --night: #1b1c1e;
  --night-2: #242528;
  --night-line: rgba(255, 255, 255, 0.08);

  /* System */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 21, 23, 0.06), 0 4px 12px rgba(20, 21, 23, 0.05);
  --shadow-md: 0 10px 30px rgba(20, 21, 23, 0.10);
  --shadow-amber: 0 14px 34px rgba(245, 166, 35, 0.30);
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Hex mask used for bullets/icons/decoration */
  --hex-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h12l6 10-6 10H6L0 12 6 2z'/%3E%3C/svg%3E");
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.28rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.center { text-align: center; }
.grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 759px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber-600);
}
.eyebrow::before { content: ""; width: 18px; height: 18px; background: var(--amber); -webkit-mask: var(--hex-mask); mask: var(--hex-mask); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.eyebrow--light { color: var(--amber-300); }
.lead { font-size: 1.15rem; color: var(--slate-400); max-width: 60ch; }
.section-head { max-width: 720px; margin: 0 auto 48px; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 650; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--amber); color: #1c1500; box-shadow: var(--shadow-amber); }
.btn-primary:hover { transform: translateY(-2px); background: var(--amber-300); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost--light { color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost--light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }

.arrow-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; color: var(--amber-600); }
.arrow-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- Skip link (visible only on keyboard focus) ---------- */
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px;
  font-weight: 650; transition: top .15s var(--ease);
}
.skip-link:focus { top: 12px; outline: 2px solid var(--amber); outline-offset: 2px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; position: relative; }
.nav__logo img { height: 38px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  padding: 9px 14px; border-radius: 10px; font-weight: 550; color: var(--slate);
  transition: background .18s, color .18s;
}
.nav__links a:hover { background: var(--surface-2); color: var(--ink); }
.nav__links a.active { color: var(--ink); }
.nav__links a.active::after { content: ""; display: block; height: 2px; background: var(--amber); border-radius: 2px; margin-top: 4px; }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

@media (max-width: 940px) {
  .nav__toggle { display: block; }
  .nav__cta .btn-ghost { display: none; }
  .nav__links {
    display: none;
    position: absolute; top: 74px; left: -24px; right: -24px; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px; gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .nav.open .nav__links { display: flex; }
  .nav__links a { padding: 13px 12px; }
}

/* ============================================================
   HERO  (dark ground + honeycomb glow — inspired by Retool/Antimetal)
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1100px 600px at 78% -8%, #34302a 0%, var(--night) 46%, #141517 100%);
  color: #fff;
  padding: clamp(80px, 11vw, 150px) 0 clamp(70px, 9vw, 120px);
}
.hero::after { /* amber wash */
  content: ""; position: absolute; right: -8%; top: -20%; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(245,166,35,.30), transparent 62%); filter: blur(10px); pointer-events: none;
}
.hero .container { position: relative; z-index: 2; max-width: 980px; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .amber-text { color: var(--amber); }
.hero__lead { font-size: 1.25rem; color: rgba(255,255,255,.72); max-width: 56ch; margin-top: 8px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--night-line); }
.hero__stat b { display: block; font-size: 2rem; font-weight: 800; color: #fff; }
.hero__stat span { color: rgba(255,255,255,.55); font-size: .92rem; }

/* Floating honeycomb decoration */
.hero__comb { position: absolute; z-index: 1; inset: 0; pointer-events: none; opacity: .9; }
.hexel { position: absolute; width: 78px; height: 86px; -webkit-mask: var(--hex-mask); mask: var(--hex-mask); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.hexel.amber { background: linear-gradient(160deg, var(--amber), var(--amber-600)); box-shadow: var(--shadow-amber); }
.hexel.glass { background: rgba(255,255,255,.06); }
.hexel.line { background: rgba(255,255,255,.04); }
.h1pos { top: 14%; right: 12%; animation: float 7s var(--ease) infinite; }
.h2pos { top: 30%; right: 4%; width: 110px; height: 120px; animation: float 9s var(--ease) infinite reverse; }
.h3pos { top: 56%; right: 22%; width: 56px; height: 62px; animation: float 6s var(--ease) infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@media (max-width: 760px) { .hero__comb { opacity: .35; } }

/* ============================================================
   TRUST bar
   ============================================================ */
.trust { padding: 30px 0; border-bottom: 1px solid var(--line); }
.trust p { text-align: center; color: var(--muted); font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.trust__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 40px; }
.trust__row span { font-weight: 700; font-size: 1.15rem; color: var(--slate-400); opacity: .8; }
.trust__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 26px 46px; }
.trust__logos img {
  height: 38px; width: auto; max-width: 150px; object-fit: contain;
  filter: grayscale(1); opacity: .6; transition: filter .2s var(--ease), opacity .2s var(--ease);
}
.trust__logos img:hover { filter: none; opacity: 1; }

/* ============================================================
   CARDS  (inspired by Aboard/Fibery feature cards)
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #dfe1e5; }
.card__iconwrap { position: relative; width: 54px; height: 60px; margin-bottom: 20px; }
.card__iconwrap .hexbg { position: absolute; inset: 0; background: linear-gradient(160deg, var(--amber), var(--amber-600)); -webkit-mask: var(--hex-mask); mask: var(--hex-mask); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.card__iconwrap svg { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; color: #1c1500; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate-400); margin-bottom: 18px; font-size: .98rem; }
.card ul.ticks li { position: relative; padding-left: 24px; color: var(--slate); font-size: .95rem; margin-bottom: 7px; }
.card ul.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; background: var(--amber); -webkit-mask: var(--hex-mask); mask: var(--hex-mask); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

/* feature column variant (Stripe-style, no border) */
.feature { padding: 8px 0; }
.feature .bar { width: 30px; height: 3px; background: var(--amber); border-radius: 2px; margin-bottom: 16px; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--slate-400); font-size: .97rem; margin: 0; }

/* ============================================================
   SPLIT / alternating content
   ============================================================ */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.rev .split__media { order: -1; } }
.split__media {
  border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--line);
  min-height: 320px; padding: 28px; position: relative; overflow: hidden; display: grid; align-content: center;
}

/* Mock UI panel used inside split media */
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm);
  overflow: hidden; font-size: .82rem;
}
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6d8dc; display: inline-block; }
.mock__bar b { margin-left: 8px; font-size: .8rem; color: var(--slate-400); font-weight: 600; }
.mock__body { padding: 16px; }
.mock__row { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border-radius: 9px; margin-bottom: 8px; background: var(--surface-2); }
.mock__row:last-child { margin-bottom: 0; }
.mock__row b { font-weight: 650; }
.pill { font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill.ok { background: #e6f6ec; color: #1a7f43; }
.pill.warn { background: var(--amber-soft); color: var(--amber-600); }
.pill.info { background: #e8f0fe; color: #2b62d8; }

/* ============================================================
   STATS band
   ============================================================ */
.stats { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(36px,5vw,56px); }
.stat b { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: var(--amber); }
.stat span { color: rgba(255,255,255,.6); }

/* ============================================================
   PROCESS  (numbered honeycomb steps)
   ============================================================ */
.step { position: relative; padding-left: 76px; padding-bottom: 36px; }
.step:last-child { padding-bottom: 0; }
.step__num {
  position: absolute; left: 0; top: 0; width: 52px; height: 58px; display: grid; place-items: center;
  font-weight: 800; color: #1c1500; font-size: 1.1rem;
  background: linear-gradient(160deg, var(--amber), var(--amber-600));
  -webkit-mask: var(--hex-mask); mask: var(--hex-mask); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.step::before { content: ""; position: absolute; left: 26px; top: 58px; bottom: 0; width: 2px; background: linear-gradient(var(--amber), transparent); }
.step:last-child::before { display: none; }
.step h3 { margin-bottom: 4px; }
.step p { color: var(--slate-400); margin: 0; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quote { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.quote p { font-size: 1.05rem; color: var(--ink); }
.quote__by { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote__by .av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(160deg,var(--amber),var(--amber-600)); display: grid; place-items: center; font-weight: 800; color: #1c1500; }
.quote__by b { display: block; font-size: .95rem; }
.quote__by span { color: var(--muted); font-size: .85rem; }
.stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 12px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--radius-lg);
  background: radial-gradient(700px 360px at 85% 0%, #3a352b, var(--night) 60%);
  padding: clamp(44px, 6vw, 76px); text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.7); max-width: 52ch; margin-inline: auto; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; position: relative; z-index: 2; }
.cta-band .hexel { opacity: .7; }
.cta-band .c1 { top: -20px; left: 6%; }
.cta-band .c2 { bottom: -30px; right: 10%; width: 110px; height: 120px; }

/* ============================================================
   FORMS (Contact — Trawelt/Rox-inspired)
   ============================================================ */
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .18s, box-shadow .18s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(245,166,35,.15);
}
.field .text-danger { color: #c0392b; font-size: .85rem; margin-top: 6px; display: block; }
.form-row { display: grid; gap: 0 20px; }
@media (min-width: 620px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.alert-success {
  display: flex; gap: 14px; align-items: flex-start;
  background: #e9f8ef; border: 1px solid #bce6cc; color: #176a39; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 24px;
}
.alert-success svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }

/* contact split shell */
.contact-shell { display: grid; gap: 48px; }
@media (min-width: 920px) { .contact-shell { grid-template-columns: 0.85fr 1.15fr; } }
.contact-info .item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info .item .hexbtn { flex: none; width: 44px; height: 48px; display: grid; place-items: center; background: var(--amber-soft); -webkit-mask: var(--hex-mask); mask: var(--hex-mask); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat; }
.contact-info .item svg { width: 20px; height: 20px; color: var(--amber-600); }
.contact-info .item b { display: block; }
.contact-info .item a, .contact-info .item span { color: var(--slate-400); }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px,4vw,40px); box-shadow: var(--shadow-sm); }

/* page hero (inner pages) */
.page-hero { background: var(--surface-2); border-bottom: 1px solid var(--line); padding: clamp(56px,7vw,90px) 0 clamp(40px,5vw,60px); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 10px; }
.breadcrumb { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--amber-600); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--night); color: rgba(255,255,255,.66); padding: 70px 0 30px; }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { display: block; padding: 5px 0; transition: color .15s; }
.site-footer a:hover { color: var(--amber); }
.footer-brand img { height: 36px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { max-width: 34ch; font-size: .95rem; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; color: rgba(255,255,255,.78); background: rgba(255,255,255,.07); transition: color .15s, background .15s, transform .15s; }
.footer-social a:hover { color: var(--night); background: var(--amber); transform: translateY(-2px); }
.footer-badge { margin-top: 22px; }
.footer-badge iframe { border: 0; max-width: 100%; color-scheme: light; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: .85rem; color: rgba(255,255,255,.62); }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); 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; }
  .hexel { animation: none !important; }
  html { scroll-behavior: auto; }
}
